Commit 41054628 authored by Linus Walleij's avatar Linus Walleij
Browse files

ARM: dts: gemini: Push down flash address/size cells

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: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1b929c02
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -164,6 +164,8 @@ flash@30000000 {
			compatible = "cortina,gemini-flash", "jedec-flash";
			status = "okay";
			reg = <0x30000000 0x00080000>;
			#address-cells = <1>;
			#size-cells = <1>;

			/*
			 * This "RedBoot" is the Storlink derivative.
+2 −0
Original line number Diff line number Diff line
@@ -86,6 +86,8 @@ flash@30000000 {
			status = "okay";
			/* 8MB of flash */
			reg = <0x30000000 0x00800000>;
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "RedBoot";
+2 −0
Original line number Diff line number Diff line
@@ -90,6 +90,8 @@ flash@30000000 {
			status = "okay";
			/* 8MB of flash */
			reg = <0x30000000 0x00800000>;
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "RedBoot";
+0 −2
Original line number Diff line number Diff line
@@ -22,8 +22,6 @@ flash: flash@30000000 {
			pinctrl-names = "default";
			pinctrl-0 = <&pflash_default_pins>;
			bank-width = <2>;
			#address-cells = <1>;
			#size-cells = <1>;
			status = "disabled";
		};