generic: 6.1, 6.6: replace Airoha EN8811H PHY driver with upstream
[openwrt/openwrt.git] / target / linux / gemini / patches-6.1 / 0025-ARM-dts-gemini-Push-down-flash-address-size-cells.patch
1 From 6b84aa39a063eec883d410a9893cec70fce56163 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Sun, 4 Dec 2022 20:02:28 +0100
4 Subject: [PATCH 25/29] ARM: dts: gemini: Push down flash address/size cells
5
6 The platforms not defining any OF partions complain like
7 this:
8
9 ../arch/arm/boot/dts/gemini.dtsi:19.25-28.5: Warning
10 (avoid_unnecessary_addr_size): /soc/flash@30000000: unnecessary
11 #address-cells/#size-cells without "ranges" or child "reg" property
12
13 Get rid of this by only defining the address-cells and
14 size-cells where it is actually used by OF partitions.
15
16 Link: https://lore.kernel.org/r/20221204190230.3345590-1-linus.walleij@linaro.org
17 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
18 ---
19 --- a/arch/arm/boot/dts/gemini-dlink-dns-313.dts
20 +++ b/arch/arm/boot/dts/gemini-dlink-dns-313.dts
21 @@ -164,6 +164,8 @@
22 compatible = "cortina,gemini-flash", "jedec-flash";
23 status = "okay";
24 reg = <0x30000000 0x00080000>;
25 + #address-cells = <1>;
26 + #size-cells = <1>;
27
28 /*
29 * This "RedBoot" is the Storlink derivative.
30 --- a/arch/arm/boot/dts/gemini-wbd111.dts
31 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
32 @@ -86,6 +86,8 @@
33 status = "okay";
34 /* 8MB of flash */
35 reg = <0x30000000 0x00800000>;
36 + #address-cells = <1>;
37 + #size-cells = <1>;
38
39 partition@0 {
40 label = "RedBoot";
41 --- a/arch/arm/boot/dts/gemini-wbd222.dts
42 +++ b/arch/arm/boot/dts/gemini-wbd222.dts
43 @@ -90,6 +90,8 @@
44 status = "okay";
45 /* 8MB of flash */
46 reg = <0x30000000 0x00800000>;
47 + #address-cells = <1>;
48 + #size-cells = <1>;
49
50 partition@0 {
51 label = "RedBoot";
52 --- a/arch/arm/boot/dts/gemini.dtsi
53 +++ b/arch/arm/boot/dts/gemini.dtsi
54 @@ -22,8 +22,6 @@
55 pinctrl-names = "default";
56 pinctrl-0 = <&pflash_default_pins>;
57 bank-width = <2>;
58 - #address-cells = <1>;
59 - #size-cells = <1>;
60 status = "disabled";
61 };
62