ARM: dts: gemini: Push down flash address/size cells
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 4 Dec 2022 19:02:28 +0000 (20:02 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 25 Jan 2023 07:48:33 +0000 (08:48 +0100)
The platforms not defining any OF partions complain like
this:

../arch/arm/boot/dts/gemini.dtsi:19.25-28.5: Warning
 (avoid_unnecessary_addr_size): /soc/flash@30000000: unnecessary
 #address-cells/#size-cells without "ranges" or child "reg" property

Get rid of this by only defining the address-cells and
size-cells where it is actually used by OF partitions.

Link: https://lore.kernel.org/r/20221204190230.3345590-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/gemini-dlink-dns-313.dts
arch/arm/boot/dts/gemini-wbd111.dts
arch/arm/boot/dts/gemini-wbd222.dts
arch/arm/boot/dts/gemini.dtsi

index eba1c94..fbbea13 100644 (file)
                        compatible = "cortina,gemini-flash", "jedec-flash";
                        status = "okay";
                        reg = <0x30000000 0x00080000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
                        /*
                         * This "RedBoot" is the Storlink derivative.
index de3c441..bfb7fdd 100644 (file)
@@ -86,6 +86,8 @@
                        status = "okay";
                        /* 8MB of flash */
                        reg = <0x30000000 0x00800000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
                        partition@0 {
                                label = "RedBoot";
index e5ceaad..82a08e3 100644 (file)
@@ -90,6 +90,8 @@
                        status = "okay";
                        /* 8MB of flash */
                        reg = <0x30000000 0x00800000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
                        partition@0 {
                                label = "RedBoot";
index e836bd0..3ed04d2 100644 (file)
@@ -22,8 +22,6 @@
                        pinctrl-names = "default";
                        pinctrl-0 = <&pflash_default_pins>;
                        bank-width = <2>;
-                       #address-cells = <1>;
-                       #size-cells = <1>;
                        status = "disabled";
                };