Revert "arm64: dts: fsl: fix ifc simple-bus unit address format warnings"
Fabio Estevam
reviewerPATCH 1/4 Revert "arm64: dts: fsl: fix ifc simple-bus unit address format warnings"
From: Fabio Estevam <[email protected]>
This reverts commit f81d7af7957539b7808961f929f945381530acb9.
As explained by Rob Herring:
"This "fix" is wrong. Memory controllers with chip selects should have the chip select in the unit-address. The correct fix here is you should drop "simple-bus"."
--- arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++-- arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 4 ++-- arch/arm64/boot/dts/freescale/fsl-ls208xa-qds.dtsi | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts +3 -3
@@ -84,19 +84,19 @@ 0x2 0x0 0x0 0x7fb00000 0x00000100>; status = "okay"; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; reg = <0x0 0x0 0x8000000>; bank-width = <2>; device-width = <1>; }; - nand@100000000 { + nand@1,0 { compatible = "fsl,ifc-nand"; reg = <0x1 0x0 0x10000>; }; - fpga: board-control@200000000 { + fpga: board-control@2,0 { compatible = "fsl,ls1043aqds-fpga", "fsl,fpga-qixis"; reg = <0x2 0x0 0x0000100>; };
arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +3 -3
@@ -97,7 +97,7 @@ 0x1 0x0 0x0 0x7e800000 0x00010000 0x2 0x0 0x0 0x7fb00000 0x00000100>; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; #address-cells = <1>; #size-cells = <1>;
@@ -106,14 +106,14 @@ device-width = <1>; }; - nand@100000000 { + nand@1,0 { compatible = "fsl,ifc-nand"; #address-cells = <1>; #size-cells = <1>; reg = <0x1 0x0 0x10000>; }; - cpld: board-control@200000000 { + cpld: board-control@2,0 { compatible = "fsl,ls1043ardb-cpld"; reg = <0x2 0x0 0x0000100>; };
arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts +3 -3
@@ -175,19 +175,19 @@ 0x2 0x0 0x0 0x7fb00000 0x00000100>; status = "okay"; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; reg = <0x0 0x0 0x8000000>; bank-width = <2>; device-width = <1>; }; - nand@100000000 { + nand@1,0 { compatible = "fsl,ifc-nand"; reg = <0x1 0x0 0x10000>; }; - fpga: board-control@200000000 { + fpga: board-control@2,0 { compatible = "fsl,ls1046aqds-fpga", "fsl,fpga-qixis"; reg = <0x2 0x0 0x0000100>; };
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +2 -2
@@ -122,14 +122,14 @@ 0x2 0x0 0x0 0x7fb00000 0x00000100>; status = "okay"; - nand@0 { + nand@0,0 { compatible = "fsl,ifc-nand"; #address-cells = <1>; #size-cells = <1>; reg = <0x0 0x0 0x10000>; }; - cpld: board-control@200000000 { + cpld: board-control@2,0 { compatible = "fsl,ls1046ardb-cpld"; reg = <0x2 0x0 0x0000100>; };
arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts +3 -3
@@ -116,19 +116,19 @@ 3 0 0x5 0x20000000 0x00010000>; status = "okay"; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; reg = <0x0 0x0 0x8000000>; bank-width = <2>; device-width = <1>; }; - nand@200000000 { + nand@2,0 { compatible = "fsl,ifc-nand"; reg = <0x2 0x0 0x10000>; }; - fpga: board-control@300000000 { + fpga: board-control@3,0 { compatible = "fsl,ls1088aqds-fpga", "fsl,fpga-qixis"; reg = <0x3 0x0 0x0000100>; };
arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +2 -2
@@ -99,12 +99,12 @@ 2 0 0x5 0x20000000 0x00010000>; status = "okay"; - nand@0 { + nand@0,0 { compatible = "fsl,ifc-nand"; reg = <0x0 0x0 0x10000>; }; - fpga: board-control@200000000 { + fpga: board-control@2,0 { compatible = "fsl,ls1088ardb-fpga", "fsl,fpga-qixis"; reg = <0x2 0x0 0x0000100>; };
arch/arm64/boot/dts/freescale/fsl-ls208xa-qds.dtsi +3 -3
@@ -58,7 +58,7 @@ 0x2 0x0 0x5 0x30000000 0x00010000 0x3 0x0 0x5 0x20000000 0x00010000>; - nor@0 { + nor@0,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash";
@@ -67,12 +67,12 @@ device-width = <1>; }; - nand@200000000 { + nand@2,0 { compatible = "fsl,ifc-nand"; reg = <0x2 0x0 0x10000>; }; - cpld@300000000 { + cpld@3,0 { reg = <0x3 0x0 0x10000>; compatible = "fsl,ls2080aqds-fpga", "fsl,fpga-qixis"; };
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH 2/4 arm64: dts: ls: Remove "simple-bus" from ifc compatible
From: Fabio Estevam <[email protected]>
Currently the following dtc warnings are seen when building with W=1:
Warning (simple_bus_reg): Node /soc/ifc@1530000/nor@0,0 simple-bus unit address format error, expected "0" Warning (simple_bus_reg): Node /soc/ifc@1530000/nand@1,0 simple-bus unit address format error, expected "100000000" Warning (simple_bus_reg): Node /soc/ifc@1530000/board-control@2,0 simple-bus unit address format error, expect"
Remove the "simple-bus" from the ifc compatible string to fix these warnings.
--- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi +1 -1
@@ -312,7 +312,7 @@ }; ifc: ifc@1530000 { - compatible = "fsl,ifc", "simple-bus"; + compatible = "fsl,ifc"; reg = <0x0 0x1530000 0x0 0x10000>; big-endian; interrupts = <0 43 0x4>;
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -1
@@ -230,7 +230,7 @@ }; ifc: ifc@1530000 { - compatible = "fsl,ifc", "simple-bus"; + compatible = "fsl,ifc"; reg = <0x0 0x1530000 0x0 0x10000>; big-endian; interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +1 -1
@@ -410,7 +410,7 @@ }; ifc: ifc@2240000 { - compatible = "fsl,ifc", "simple-bus"; + compatible = "fsl,ifc"; reg = <0x0 0x2240000 0x0 0x20000>; interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>; little-endian;
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +1 -1
@@ -619,7 +619,7 @@ }; ifc: ifc@2240000 { - compatible = "fsl,ifc", "simple-bus"; + compatible = "fsl,ifc"; reg = <0x0 0x2240000 0x0 0x20000>; interrupts = <0 21 0x4>; /* Level high type */ little-endian;
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH 3/4 Revert "dt-bindings: ifc: Fix the unit address format in the examples"
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
This reverts commit 4e017f1419397473cf3db6e9fa020013998b1aa4.
As explained by Rob Herring:
"This "fix" is wrong. Memory controllers with chip selects should have the chip select in the unit-address. The correct fix here is you should drop "simple-bus"."
--- Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt +3 -3
@@ -43,7 +43,7 @@ Example: 0x1 0x0 0x0 0xffa00000 0x00010000 0x3 0x0 0x0 0xffb00000 0x00020000>; - flash@0 { + flash@0,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash";
@@ -58,7 +58,7 @@ Example: }; }; - flash@100000000 { + flash@1,0 { #address-cells = <1>; #size-cells = <1>; compatible = "fsl,ifc-nand";
@@ -73,7 +73,7 @@ Example: }; }; - cpld@@300000000 { + cpld@3,0 { #address-cells = <1>; #size-cells = <1>; compatible = "fsl,p1010rdb-cpld";
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH 4/4 dt-bindings: ifc: Remove "simple-bus" from ifc compatible string
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>>
DTC warnings will be seen if these examples are used in a real dts file due to a mismatch in the unit address notation.
Remove "simple-bus" from the ifc compatible string to fix the warnings.
--- Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt +1 -1
@@ -31,7 +31,7 @@ like FPGAs, CPLDs, etc. Example: ifc@ffe1e000 { - compatible = "fsl,ifc", "simple-bus"; + compatible = "fsl,ifc"; #address-cells = <2>; #size-cells = <1>; reg = <0x0 0xffe1e000 0 0x2000>;
Signature · 1 line
2.7.4
Quoted 9 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
This reverts commit
f81d7af7957539b7808961f929f945381530acb9.As explained by Rob Herring:
"This "fix" is wrong. Memory controllers with chip selects should have the chip select in the unit-address. The correct fix here is you should drop "simple-bus"."
Right, Rob talked to me about this last week during Linaro Connect.
Quoted 2 lines
Signed-off-by Fabio Estevam <[email protected]>
The series should be copied to LAKML as well. Also, I suspect that we will have regressions if we drop "simple-bus" from IFC node right now, because the child devices will likely not get populated. I would suggest that you resend two reverting patches firstly, and send the other two separately later with someone being able to test the changes on copy, to make sure we do not break things.
Shawn
Quoted 192 lines
--- arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++-- arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts | 6 +++--- arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 4 ++-- arch/arm64/boot/dts/freescale/fsl-ls208xa-qds.dtsi | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-)arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts +3
-3@@ -84,19 +84,19 @@ 0x2 0x0 0x0 0x7fb00000 0x00000100>; status = "okay"; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; reg = <0x0 0x0 0x8000000>; bank-width = <2>; device-width = <1>; }; - nand@100000000 { + nand@1,0 { compatible = "fsl,ifc-nand"; reg = <0x1 0x0 0x10000>; }; - fpga: board-control@200000000 { + fpga: board-control@2,0 { compatible = "fsl,ls1043aqds-fpga", "fsl,fpga-qixis"; reg = <0x2 0x0 0x0000100>; };arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +3
-3@@ -97,7 +97,7 @@ 0x1 0x0 0x0 0x7e800000 0x00010000 0x2 0x0 0x0 0x7fb00000 0x00000100>; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; #address-cells = <1>; #size-cells = <1>;@@ -106,14 +106,14 @@ device-width = <1>; }; - nand@100000000 { + nand@1,0 { compatible = "fsl,ifc-nand"; #address-cells = <1>; #size-cells = <1>; reg = <0x1 0x0 0x10000>; }; - cpld: board-control@200000000 { + cpld: board-control@2,0 { compatible = "fsl,ls1043ardb-cpld"; reg = <0x2 0x0 0x0000100>; };arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts +3
-3@@ -175,19 +175,19 @@ 0x2 0x0 0x0 0x7fb00000 0x00000100>; status = "okay"; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; reg = <0x0 0x0 0x8000000>; bank-width = <2>; device-width = <1>; }; - nand@100000000 { + nand@1,0 { compatible = "fsl,ifc-nand"; reg = <0x1 0x0 0x10000>; }; - fpga: board-control@200000000 { + fpga: board-control@2,0 { compatible = "fsl,ls1046aqds-fpga", "fsl,fpga-qixis"; reg = <0x2 0x0 0x0000100>; };arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +2
-2@@ -122,14 +122,14 @@ 0x2 0x0 0x0 0x7fb00000 0x00000100>; status = "okay"; - nand@0 { + nand@0,0 { compatible = "fsl,ifc-nand"; #address-cells = <1>; #size-cells = <1>; reg = <0x0 0x0 0x10000>; }; - cpld: board-control@200000000 { + cpld: board-control@2,0 { compatible = "fsl,ls1046ardb-cpld"; reg = <0x2 0x0 0x0000100>; };arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts +3
-3@@ -116,19 +116,19 @@ 3 0 0x5 0x20000000 0x00010000>; status = "okay"; - nor@0 { + nor@0,0 { compatible = "cfi-flash"; reg = <0x0 0x0 0x8000000>; bank-width = <2>; device-width = <1>; }; - nand@200000000 { + nand@2,0 { compatible = "fsl,ifc-nand"; reg = <0x2 0x0 0x10000>; }; - fpga: board-control@300000000 { + fpga: board-control@3,0 { compatible = "fsl,ls1088aqds-fpga", "fsl,fpga-qixis"; reg = <0x3 0x0 0x0000100>; };arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +2
-2@@ -99,12 +99,12 @@ 2 0 0x5 0x20000000 0x00010000>; status = "okay"; - nand@0 { + nand@0,0 { compatible = "fsl,ifc-nand"; reg = <0x0 0x0 0x10000>; }; - fpga: board-control@200000000 { + fpga: board-control@2,0 { compatible = "fsl,ls1088ardb-fpga", "fsl,fpga-qixis"; reg = <0x2 0x0 0x0000100>; };arch/arm64/boot/dts/freescale/fsl-ls208xa-qds.dtsi +3
-3@@ -58,7 +58,7 @@ 0x2 0x0 0x5 0x30000000 0x00010000 0x3 0x0 0x5 0x20000000 0x00010000>; - nor@0 { + nor@0,0 { #address-cells = <1>; #size-cells = <1>; compatible = "cfi-flash";@@ -67,12 +67,12 @@ device-width = <1>; }; - nand@200000000 { + nand@2,0 { compatible = "fsl,ifc-nand"; reg = <0x2 0x0 0x10000>; }; - cpld@300000000 { + cpld@3,0 { reg = <0x3 0x0 0x10000>; compatible = "fsl,ls2080aqds-fpga", "fsl,fpga-qixis"; };Signature · 1 line
2.7.4
Re: [PATCH 3/4] Revert "dt-bindings: ifc: Fix the unit address format in the examples"
In reply to Fabio EstevamQuoted 6 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
This reverts commit
4e017f1419397473cf3db6e9fa020013998b1aa4.As explained by Rob Herring:
Quoted 8 lines
"This "fix" is wrong. Memory controllers with chip selects should have the chip select in the unit-address. The correct fix here is you should drop "simple-bus"."
Signed-off-by Fabio Estevam <[email protected]>--- Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Re: [PATCH 2/4] arm64: dts: ls: Remove "simple-bus" from ifc compatible
In reply to Fabio EstevamQuoted 11 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Currently the following dtc warnings are seen when building with W=1:
Warning (
simple_bus_reg): Node /soc/ifc@1530000/nor@0,0 simple-bus unit address format error, expected "0" Warning (simple_bus_reg): Node /soc/ifc@1530000/nand@1,0 simple-bus unit address format error, expected "100000000" Warning (simple_bus_reg): Node /soc/ifc@1530000/board-control@2,0 simple-bus unit address format error, expect"Remove the "simple-bus" from the ifc compatible string to fix these warnings.
Quoted 8 lines
Suggested-by Rob Herring <[email protected]>Signed-off-by Fabio Estevam <[email protected]>--- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
Re: [PATCH 4/4] dt-bindings: ifc: Remove "simple-bus" from ifc compatible string
In reply to Fabio EstevamQuoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>>
DTC warnings will be seen if these examples are used in a real dts file due to a mismatch in the unit address notation.
Quoted 7 lines
Remove "simple-bus" from the ifc compatible string to fix the warnings.
Suggested-by Rob Herring <[email protected]>Signed-off-by Fabio Estevam <[email protected]>--- Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)