arm64: dts: berlin: fix dtc warnings
Subsystems (2)
cover arm64: dts: berlin: fix dtc warnings
This is a clean up series to fix berlin arm64 platforms dtc warnings by add missing unit name of /soc node and /memory node.
Jisheng Zhang (3):
arm64: dts: berlin4ct: add missing unit name to /soc node
arm64: dts: berlin4ct-stb: add missing unit name to /memory node
arm64: dts: berlin4ct-dmp: add missing unit name to /memory node
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 2 +- arch/arm64/boot/dts/marvell/berlin4ct-stb.dts | 2 +- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.9.3
PATCH 1/3 arm64: dts: berlin4ct: add missing unit name to /soc node
This patch fixes the following DTC warning with W=1:
"Node /soc has a reg or ranges property, but no unit name"
--- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/berlin4ct.dtsi +1 -1
@@ -134,7 +134,7 @@ <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; - soc { + soc at f7000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.9.3
PATCH 2/3 arm64: dts: berlin4ct-stb: add missing unit name to /memory node
In reply to Jisheng ZhangThis patch fixes the following DTC warning with W=1:
"Node /memory has a reg or ranges property, but no unit name"
--- arch/arm64/boot/dts/marvell/berlin4ct-stb.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/berlin4ct-stb.dts +1 -1
@@ -54,7 +54,7 @@ stdout-path = "serial0:115200n8"; }; - memory { + memory at 1000000 { device_type = "memory"; /* the first 16MB is for firmwares' usage */ reg = <0 0x01000000 0 0x7f000000>;
Signature · 1 line
2.9.3
PATCH 3/3 arm64: dts: berlin4ct-dmp: add missing unit name to /memory node
In reply to Jisheng ZhangThis patch fixes the following DTC warning with W=1:
"Node /memory has a reg or ranges property, but no unit name"
--- arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts +1 -1
@@ -54,7 +54,7 @@ stdout-path = "serial0:115200n8"; }; - memory { + memory at 1000000 { device_type = "memory"; /* the first 16MB is for firmwares' usage */ reg = <0 0x01000000 0 0x7f000000>;
Signature · 1 line
2.9.3
Re: [PATCH 1/3] arm64: dts: berlin4ct: add missing unit name to /soc node
In reply to Mark RutlandHi Mark,
Quoted 9 lines · On Tue, 6 Sep 2016 11:22:08 +0100 Mark Rutland wrote:
Quoted 5 lines · Jisheng Zhang
This patch fixes the following DTC warning with W=1:
"Node /soc has a reg or ranges property, but no unit name"
Signed-off-by Jisheng Zhang <[email protected]>The node is only compatible with simple-bus, and so shouldn't have a reg.
IIUC, the warning is caused by "ranges = <0 0 0xf7000000 0x1000000>;"
Thanks,
Jisheng
Quoted 25 lines
Why not remove the reg?
Mark
Quoted 20 lines
--- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/marvell/berlin4ct.dtsi +1
-1@@ -134,7 +134,7 @@ <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; - soc { + soc at f7000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;Signature · 1 line
2.9.3
Re: [PATCH 1/3] arm64: dts: berlin4ct: add missing unit name to /soc node
In reply to Jisheng ZhangQuoted 5 lines · Jisheng Zhang
This patch fixes the following DTC warning with W=1:
"Node /soc has a reg or ranges property, but no unit name"
Signed-off-by Jisheng Zhang <[email protected]>
The node is only compatible with simple-bus, and so shouldn't have a reg.
Why not remove the reg?
Mark
Quoted 20 lines
--- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/marvell/berlin4ct.dtsi +1
-1@@ -134,7 +134,7 @@ <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; - soc { + soc at f7000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;Signature · 1 line
2.9.3
Re: [PATCH 1/3] arm64: dts: berlin4ct: add missing unit name to /soc node
In reply to Jisheng ZhangQuoted 7 lines · Jisheng Zhang
Hi Mark,
Quoted 3 lines · On Tue, 6 Sep 2016 11:22:08 +0100 Mark Rutland wrote:
Quoted 2 lines · Jisheng Zhang
This patch fixes the following DTC warning with W=1:
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
"Node /soc has a reg or ranges property, but no unit name"
Signed-off-by Jisheng Zhang <[email protected]>The node is only compatible with simple-bus, and so shouldn't have a reg.
IIUC, the warning is caused by "ranges = <0 0
0xf70000000x1000000>;"
Hmm.. I've rather confused by that warning. Per ePAPR and the devicetree.org spec, the unit-addresss is meant to match the reg property, and no mention is made of the ranges property. So I do not think that it is necessary to require this.
That warning seems to have gone into DTC in commit c9d9121683b35281 ("Warn on node name unit-address presence/absence mismatch").
Rob, Stephen, was there some discussion that prompted ranges requiring a matching unit-address?
Thanks,
Mark.
Quoted 25 lines
Quoted 24 lines
Why not remove the reg?
Mark
Quoted 20 lines
--- arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/marvell/berlin4ct.dtsi +1
-1@@ -134,7 +134,7 @@ <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; - soc { + soc at f7000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;Signature · 1 line
2.9.3
Re: [PATCH 1/3] arm64: dts: berlin4ct: add missing unit name to /soc node
Quoted 22 lines · Mark Rutland
Quoted 7 lines · Jisheng Zhang
Hi Mark,
Quoted 3 lines · On Tue, 6 Sep 2016 11:22:08 +0100 Mark Rutland wrote:
Quoted 2 lines · Jisheng Zhang
This patch fixes the following DTC warning with W=1:
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
"Node /soc has a reg or ranges property, but no unit name"
Signed-off-by Jisheng Zhang <[email protected]>The node is only compatible with simple-bus, and so shouldn't have a reg.
IIUC, the warning is caused by "ranges = <0 0
0xf70000000x1000000>;"Hmm.. I've rather confused by that warning. Per ePAPR and the devicetree.org spec, the unit-addresss is meant to match the reg property, and no mention is made of the ranges property. So I do not think that it is necessary to require this.
Quoted 5 lines
That warning seems to have gone into DTC in commit
c9d9121683b35281("Warn on node name unit-address presence/absence mismatch").Rob, Stephen, was there some discussion that prompted ranges requiring a matching unit-address?
It looks like there was some in response to V2 of the patch which introduced this warning in dtc:
https://lkml.org/lkml/2013/9/19/301
I assume that's why Rob added that part to the patch when he reposted it.