ARM: dts: imx6: Remove unneeded address-cells/size-cells
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx6: Remove unneeded address-cells/size-cells
From: Fabio Estevam <[email protected]>
According to Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt:
"- #address-cells, #size-cells : Must be present if the device has sub-nodes representing partitions."
Remove the occurrences of #address-cells/size-cells where no sub-nodes representing partitions are present.
--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 2 -- arch/arm/boot/dts/imx6q-mccmon6.dts | 2 -- arch/arm/boot/dts/imx6qdl-aristainetos.dtsi | 2 -- arch/arm/boot/dts/imx6qdl-aristainetos2.dtsi | 2 -- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 2 -- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 2 -- arch/arm/boot/dts/imx6sl-evk.dts | 2 -- arch/arm/boot/dts/imx6sx-sdb-reva.dts | 4 ---- arch/arm/boot/dts/imx6sx-sdb.dts | 4 ---- 9 files changed, 22 deletions(-)
arch/arm/boot/dts/imx6q-cm-fx6.dts +0 -2
@@ -194,8 +194,6 @@ status = "okay"; m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;
arch/arm/boot/dts/imx6q-mccmon6.dts +0 -2
@@ -90,8 +90,6 @@ status = "okay"; s25sl032p: flash at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; spi-max-frequency = <40000000>; reg = <0>;
arch/arm/boot/dts/imx6qdl-aristainetos.dtsi +0 -2
@@ -106,8 +106,6 @@ status = "okay"; flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q128a11", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;
arch/arm/boot/dts/imx6qdl-aristainetos2.dtsi +0 -2
@@ -136,8 +136,6 @@ status = "okay"; flash: m25p80 at 1 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q128a11", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <1>;
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +0 -2
@@ -200,8 +200,6 @@ status = "disabled"; /* pin conflict with WEIM NOR */ flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p32", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;
arch/arm/boot/dts/imx6qdl-sabresd.dtsi +0 -2
@@ -196,8 +196,6 @@ status = "okay"; flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p32", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;
arch/arm/boot/dts/imx6sl-evk.dts +0 -2
@@ -123,8 +123,6 @@ status = "okay"; flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p32", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;
arch/arm/boot/dts/imx6sx-sdb-reva.dts +0 -4
@@ -127,16 +127,12 @@ flash0: s25fl128s at 0 { reg = <0>; - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl128s", "jedec,spi-nor"; spi-max-frequency = <66000000>; }; flash1: s25fl128s at 1 { reg = <1>; - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl128s", "jedec,spi-nor"; spi-max-frequency = <66000000>; };
arch/arm/boot/dts/imx6sx-sdb.dts +0 -4
@@ -113,16 +113,12 @@ status = "okay"; flash0: n25q256a at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q256a", "jedec,spi-nor"; spi-max-frequency = <29000000>; reg = <0>; }; flash1: n25q256a at 1 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q256a", "jedec,spi-nor"; spi-max-frequency = <29000000>; reg = <1>;
Signature · 1 line
2.7.4
PATCH 1/1 ARM: dts: imx6: Remove unneeded address-cells/size-cells
Hi Fabio,
(I'm sorry if I've missed some recipients or broke the email thread but I got Fabio's email from the infradead archive.)
Quoted 9 lines · festevam at gmail.com (Fabio Estevam)
From: Fabio Estevam <[email protected]>
According to
Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt:"- #address-cells, #size-cells : Must be present if the device has sub-nodes representing partitions."
Remove the occurrences of #address-cells/size-cells where no sub-nodes representing partitions are present.
This results in a regression for those devices where U-Boot is supposed to inject the partition sub-nodes. For example, this is the case for cm-fx6 module based devices like the Utilite Pro.
Linux fails to parse the partitions and reports:
[ 9.330881] spi0.0: error parsing ofpart partition /soc/aips-bus at 2000000/spba-bus at 2000000/ecspi at 2008000/m25p80 at 0/partition at 0 (/soc/aips-bus at 2000000/spba-bus at 2000000/ecspi at 2008000/m25p80 at 0) [ 9.330887] mtd: failed to find partitions; one or more parsers
reports errors (-22)
Also, the documentation does not forbid the #address-cells/size-cells if no partitions are present.
So, please, drop this patch (or exclude at least the cm-fx6 related change).
Thanks!
Christopher
Quoted 147 lines
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 2 -- arch/arm/boot/dts/imx6q-mccmon6.dts | 2 -- arch/arm/boot/dts/imx6qdl-aristainetos.dtsi | 2 -- arch/arm/boot/dts/imx6qdl-aristainetos2.dtsi | 2 -- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 2 -- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 2 -- arch/arm/boot/dts/imx6sl-evk.dts | 2 -- arch/arm/boot/dts/imx6sx-sdb-reva.dts | 4 ---- arch/arm/boot/dts/imx6sx-sdb.dts | 4 ---- 9 files changed, 22 deletions(-)arch/arm/boot/dts/imx6q-cm-fx6.dts +0
-2@@ -194,8 +194,6 @@ status = "okay"; m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;arch/arm/boot/dts/imx6q-mccmon6.dts +0
-2@@ -90,8 +90,6 @@ status = "okay"; s25sl032p: flash at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; spi-max-frequency = <40000000>; reg = <0>;arch/arm/boot/dts/imx6qdl-aristainetos.dtsi +0
-2@@ -106,8 +106,6 @@ status = "okay"; flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q128a11", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;arch/arm/boot/dts/imx6qdl-aristainetos2.dtsi +0
-2@@ -136,8 +136,6 @@ status = "okay"; flash: m25p80 at 1 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q128a11", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <1>;arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +0
-2@@ -200,8 +200,6 @@ status = "disabled"; /* pin conflict with WEIM NOR */ flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p32", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;arch/arm/boot/dts/imx6qdl-sabresd.dtsi +0
-2@@ -196,8 +196,6 @@ status = "okay"; flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p32", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;arch/arm/boot/dts/imx6sl-evk.dts +0
-2@@ -123,8 +123,6 @@ status = "okay"; flash: m25p80 at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "st,m25p32", "jedec,spi-nor"; spi-max-frequency = <20000000>; reg = <0>;arch/arm/boot/dts/imx6sx-sdb-reva.dts +0
-4@@ -127,16 +127,12 @@ flash0: s25fl128s at 0 { reg = <0>; - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl128s", "jedec,spi-nor"; spi-max-frequency = <66000000>; }; flash1: s25fl128s at 1 { reg = <1>; - #address-cells = <1>; - #size-cells = <1>; compatible = "spansion,s25fl128s", "jedec,spi-nor"; spi-max-frequency = <66000000>; };arch/arm/boot/dts/imx6sx-sdb.dts +0
-4@@ -113,16 +113,12 @@ status = "okay"; flash0: n25q256a at 0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q256a", "jedec,spi-nor"; spi-max-frequency = <29000000>; reg = <0>; }; flash1: n25q256a at 1 { - #address-cells = <1>; - #size-cells = <1>; compatible = "micron,n25q256a", "jedec,spi-nor"; spi-max-frequency = <29000000>; reg = <1>;
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx6: Remove unneeded address-cells/size-cells
Hi Christopher,
Quoted 9 lines · Christopher Spinrath
This results in a regression for those devices where U-Boot is supposed to inject the partition sub-nodes. For example, this is the case for cm-fx6 module based devices like the Utilite Pro.
Linux fails to parse the partitions and reports:
[ 9.330881] spi0.0: error parsing ofpart partition /soc/aips-bus at 2000000/spba-bus at 2000000/ecspi at 2008000/m25p80 at 0/partition at 0 (/soc/aips-bus at 2000000/spba-bus at 2000000/ecspi at 2008000/m25p80 at 0) [ 9.330887] mtd: failed to find partitions; one or more parsers
Quoted 6 lines
reports errors (-22)
Also, the documentation does not forbid the #address-cells/size-cells if no partitions are present.
So, please, drop this patch (or exclude at least the cm-fx6 related change).
Good point! I will resend the patch and will only change the NXP boards.
Thanks
PATCH 1/1 ARM: dts: imx6: Remove unneeded address-cells/size-cells
In reply to Christopher SpinrathHello,
Quoted 11 lines · Christopher Spinrath
(I'm sorry if I've missed some recipients or broke the email thread but I got Fabio's email from the infradead archive.)
Quoted 7 lines · festevam at gmail.com (Fabio Estevam)
From: Fabio Estevam <[email protected]>
According to
Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt:"- #address-cells, #size-cells : Must be present if the device has sub-nodes representing partitions."
Quoted 6 lines
Quoted 2 lines
Remove the occurrences of #address-cells/size-cells where no sub-nodes representing partitions are present.
This results in a regression for those devices where U-Boot is supposed to inject the partition sub-nodes. For example, this is the case for cm-fx6 module based devices like the Utilite Pro.
sounds like an U-Boot bug that it inserts partition nodes, but doesn't ensure matching #address-cells/size-cells are specified.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |