ARM: dts: Remove use of skeleton.dtsi from bcm283x.dtsi
Subsystems (3)
PATCH v2 1/2 ARM: dts: Remove use of skeleton.dtsi from bcm283x.dtsi
This file is included from DTS files under arch/arm64 too (via broadcom/bcm2837-rpi-3-b.dts and broadcom/bcm2837.dtsi). There is a desire not to have skeleton.dtsi for ARM64. See commit 3ebee5a2e141 ("arm64: dts:
kill skeleton.dtsi") for rationale for its removal.
As well as the addition of #*-cells also requires adding the device_type to the rpi memory node explicitly.
Note that this change results in the removal of an empty /aliases node from bcm2835-rpi-a.dtb and bcm2835-rpi-a-plus.dtb. I have no hardware to check if this is a problem or not.
It also results in some reordering of the nodes in the DTBs (the /aliases and /memory nodes come later). This isn't supposed to matter but, again, I've no hardware to check if it is true in this particular case.
---
v2: New patch to avoid needing to add skeleton.dtsi to arch/arm64
--- arch/arm/boot/dts/bcm2835-rpi.dtsi | 1 + arch/arm/boot/dts/bcm283x.dtsi | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/bcm2835-rpi.dtsi +1 -0
@@ -2,6 +2,7 @@ / { memory { + device_type = "memory"; reg = <0 0x10000000>; };
arch/arm/boot/dts/bcm283x.dtsi +2 -1
@@ -2,7 +2,6 @@ #include <dt-bindings/clock/bcm2835.h> #include <dt-bindings/clock/bcm2835-aux.h> #include <dt-bindings/gpio/gpio.h> -#include "skeleton.dtsi" /* This include file covers the common peripherals and configuration between * bcm2835 and bcm2836 implementations, leaving the CPU configuration to
@@ -13,6 +12,8 @@ compatible = "brcm,bcm2835"; model = "BCM2835"; interrupt-parent = <&intc>; + #address-cells = <1>; + #size-cells = <1>; chosen { bootargs = "earlyprintk console=ttyAMA0";
Signature · 1 line
2.8.1
PATCH v2 2/2 ARM64: dts: bcm: Use a symlink to R-Pi dtsi files from arch=arm
The ../../../arm... style cross-references added by commit 9d56c22a7861 ("ARM: bcm2835: Add devicetree for the Raspberry Pi 3.") do not work in the context of the split device-tree repository[0] (where the directory structure differs). As with commit 8ee57b8182c4 ("ARM64: dts: vexpress: Use a symlink to vexpress-v2m-rs1.dtsi from arch=arm") use symlinks instead.
[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-rebasing.git/
---
v2: No more need for skeleton.dtsi since this was cleaned up in the previous
patch
--- arch/arm64/boot/dts/broadcom/bcm2835-rpi.dtsi | 1 + arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 4 ++-- arch/arm64/boot/dts/broadcom/bcm2837.dtsi | 2 +- arch/arm64/boot/dts/broadcom/bcm283x-rpi-smsc9514.dtsi | 1 + arch/arm64/boot/dts/broadcom/bcm283x.dtsi | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) create mode 120000 arch/arm64/boot/dts/broadcom/bcm2835-rpi.dtsi create mode 120000 arch/arm64/boot/dts/broadcom/bcm283x-rpi-smsc9514.dtsi create mode 120000 arch/arm64/boot/dts/broadcom/bcm283x.dtsi
arch/arm64/boot/dts/broadcom/bcm2835-rpi.dtsi new file +1 -0
@@ -0,0 +1 @@ +../../../../arm/boot/dts/bcm2835-rpi.dtsi
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts +2 -2
@@ -1,7 +1,7 @@ /dts-v1/; #include "bcm2837.dtsi" -#include "../../../../arm/boot/dts/bcm2835-rpi.dtsi" -#include "../../../../arm/boot/dts/bcm283x-rpi-smsc9514.dtsi" +#include "bcm2835-rpi.dtsi" +#include "bcm283x-rpi-smsc9514.dtsi" / { compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
arch/arm64/boot/dts/broadcom/bcm2837.dtsi +1 -1
@@ -1,4 +1,4 @@ -#include "../../../../arm/boot/dts/bcm283x.dtsi" +#include "bcm283x.dtsi" / { compatible = "brcm,bcm2836";
arch/arm64/boot/dts/broadcom/bcm283x-rpi-smsc9514.dtsi new file +1 -0
@@ -0,0 +1 @@ +../../../../arm/boot/dts/bcm283x-rpi-smsc9514.dtsi
arch/arm64/boot/dts/broadcom/bcm283x.dtsi new file +1 -0
@@ -0,0 +1 @@ +../../../../arm/boot/dts/bcm283x.dtsi
Signature · 1 line
2.8.1
Re: [PATCH v2 2/2] ARM64: dts: bcm: Use a symlink to R-Pi dtsi files from arch=arm
Quoted 9 lines · Ian Campbell
The ../../../arm... style cross-references added by commit
9d56c22a7861("ARM: bcm2835: Add devicetree for the Raspberry Pi 3.") do not work in the context of the split device-tree repository[0] (where the directory structure differs). As with commit8ee57b8182c4("ARM64: dts: vexpress: Use a symlink tovexpress-v2m-rs1.dtsifrom arch=arm") use symlinks instead.[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-rebasing.git/
Signed-off-by Ian Campbell <[email protected]>
As this matches what we did in 8ee57b8182c4, and no longer involves raising skeletons back from the dead:
Mark.
Quoted 51 lines
arch/arm64/boot/dts/broadcom/bcm2835-rpi.dtsi new file +1
-0@@ -0,0 +1 @@ +../../../../arm/boot/dts/bcm2835-rpi.dtsiarch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts +2
-2@@ -1,7 +1,7 @@ /dts-v1/; #include "bcm2837.dtsi" -#include "../../../../arm/boot/dts/bcm2835-rpi.dtsi" -#include "../../../../arm/boot/dts/bcm283x-rpi-smsc9514.dtsi" +#include "bcm2835-rpi.dtsi" +#include "bcm283x-rpi-smsc9514.dtsi" / { compatible = "raspberrypi,3-model-b", "brcm,bcm2837";arch/arm64/boot/dts/broadcom/bcm2837.dtsi +1
-1@@ -1,4 +1,4 @@ -#include "../../../../arm/boot/dts/bcm283x.dtsi" +#include "bcm283x.dtsi" / { compatible = "brcm,bcm2836";arch/arm64/boot/dts/broadcom/bcm283x-rpi-smsc9514.dtsi new file +1
-0@@ -0,0 +1 @@ +../../../../arm/boot/dts/bcm283x-rpi-smsc9514.dtsiarch/arm64/boot/dts/broadcom/bcm283x.dtsi new file +1
-0@@ -0,0 +1 @@ +../../../../arm/boot/dts/bcm283x.dtsiSignature · 1 line
2.8.1
Quoted 12 lines · Ian Campbell
This file is included from DTS files under
arch/arm64too (viabroadcom/bcm2837-rpi-3-b.dtsandbroadcom/bcm2837.dtsi). There is a desire not to haveskeleton.dtsifor ARM64. See commit3ebee5a2e141("arm64: dts:
killskeleton.dtsi") for rationale for its removal.As well as the addition of #*-cells also requires adding the
device_typeto the rpi memory node explicitly.Note that this change results in the removal of an empty /aliases node from bcm2835-rpi-a.dtb and bcm2835-rpi-a-plus.dtb. I have no hardware to check if this is a problem or not.
Quoted 5 lines
It also results in some reordering of the nodes in the DTBs (the /aliases and /memory nodes come later). This isn't supposed to matter but, again, I've no hardware to check if it is true in this particular case.
Signed-off-by Ian Campbell <[email protected]>
I also don't have the relevant hardware to test with, but this looks generally like the right thing. So FWIW:
Mark.
Quoted 36 lines
arch/arm/boot/dts/bcm2835-rpi.dtsi +1
-0@@ -2,6 +2,7 @@ / { memory { + device_type = "memory"; reg = <0 0x10000000>; };arch/arm/boot/dts/bcm283x.dtsi +2
-1@@ -2,7 +2,6 @@ #include <dt-bindings/clock/bcm2835.h> #include <dt-bindings/clock/bcm2835-aux.h> #include <dt-bindings/gpio/gpio.h> -#include "skeleton.dtsi" /* This include file covers the common peripherals and configuration between * bcm2835 and bcm2836 implementations, leaving the CPU configuration to@@ -13,6 +12,8 @@ compatible = "brcm,bcm2835"; model = "BCM2835"; interrupt-parent = <&intc>; + #address-cells = <1>; + #size-cells = <1>; chosen { bootargs = "earlyprintk console=ttyAMA0";Signature · 1 line
2.8.1
Quoted 7 lines · Mark Rutland
Quoted 2 lines
[...]Signed-off-by: Ian Campbell <[email protected]>
I also don't have the relevant hardware to test with, but this looks generally like the right thing. So FWIW:
Acked-by Mark Rutland <[email protected]>
Thanks (and Stefan too).
I think these things generally go via the arm-soc tree? Arnd & Olaf, would it be possible to get this fix in for rc2 please (or in any event for 4.8). Although it's an external tree I believe build breakage in the split-out DT git repo is worth addressing.
Ian.
Quoted 10 lines · Ian Campbell
Quoted 4 lines · Mark Rutland
?
Quoted 1 line
[...]Signed-off-by: Ian Campbell <[email protected]>
?
I also don't have the relevant hardware to test with, but thislooks
Quoted 3 lines
generally like the right thing. So FWIW:
?Acked-by Mark Rutland <[email protected]>
Quoted 6 lines
Thanks (and Stefan too).
I think these things generally go via the arm-soc tree? Arnd & Olaf, would it be possible to get this fix in for rc2 please (or in any event for 4.8). Although it's an external tree I believe build breakage in the split-out DT git repo is worth addressing.
This change doesn't appear to be in either v4.8-rc2, Linus' tree nor in the arm-soc tree that I can see. So, ping?
Or am I barking up the wrong tree pointing this patch towards arm-soc (via arm at k.o)?
Ian
Quoted 18 lines · Ian Campbell
Quoted 10 lines · Ian Campbell
Quoted 4 lines · Mark Rutland
?
Quoted 1 line
[...]Signed-off-by: Ian Campbell <[email protected]>
?
I also don't have the relevant hardware to test with, but thislooks
Quoted 3 lines
generally like the right thing. So FWIW:
?Acked-by Mark Rutland <[email protected]>Quoted 6 lines
Thanks (and Stefan too).
I think these things generally go via the arm-soc tree? Arnd & Olaf, would it be possible to get this fix in for rc2 please (or in any event for 4.8). Although it's an external tree I believe build breakage in the split-out DT git repo is worth addressing.
Quoted 5 lines
This change doesn't appear to be in either v4.8-rc2, Linus' tree nor in the arm-soc tree that I can see. So, ping?
Or am I barking up the wrong tree pointing this patch towards arm-soc (via arm at k.o)?
That's the right place.
The best thing to do would be to resend the patch, with all tags accumulated, with arm-soc, Arnd, and Olof in the To line (rather than Cc'd), so it's clear they need to action it.
Thanks,
Mark.
Quoted 22 lines · CEST Mark Rutland
Quoted 21 lines · Ian Campbell
Quoted 8 lines · Ian Campbell
Quoted 4 lines · Mark Rutland
Quoted 2 lines
[...]Signed-off-by: Ian Campbell <[email protected]>
I also don't have the relevant hardware to test with, but this
looks
Quoted 2 lines
generally like the right thing. So FWIW:
Quoted 8 lines
Quoted 1 line
Acked-by Mark Rutland <[email protected]>Thanks (and Stefan too).
I think these things generally go via the arm-soc tree? Arnd & Olaf, would it be possible to get this fix in for rc2 please (or in any event for 4.8). Although it's an external tree I believe build breakage in the split-out DT git repo is worth addressing.
This change doesn't appear to be in either v4.8-rc2, Linus' tree nor in the arm-soc tree that I can see. So, ping?
Quoted 8 lines
Quoted 2 lines
Or am I barking up the wrong tree pointing this patch towards arm-soc (via arm at k.o)?
That's the right place.
The best thing to do would be to resend the patch, with all tags accumulated, with arm-soc, Arnd, and Olof in the To line (rather than Cc'd), so it's clear they need to action it.
I had skipped the new message as well while sorting through 5000 messages after my vacation, but I've now put it into my TODO folder and will get to it eventually.
We sometimes miss stuff that is meant for arm-soc when it comes from people that don't normally send us patches. If you want to be sure to catch the attention, stick a 'GIT PULL' into the subject or send a ping on IRC.
The easiest way for us is when things get funnelled through the platform maintainers that handle all the other patches, but I can see how that may be annoying for a patch like this.
Arnd
Quoted 3 lines · Arnd Bergmann
I had skipped the new message as well while sorting through 5000 messages after my vacation, but I've now put it into my TODO folder and will get to it eventually.
Is it still on your TODO or should I do...
Quoted 4 lines
We sometimes miss stuff that is meant for arm-soc when it comes from people that don't normally send us patches. If you want to be sure to catch the attention, stick a 'GIT PULL' into the subject or send a ping on IRC.
... one of these?
It'd be great to get this fixed in v4.8 so that the corresponding device-tree.git tag will build.
Thanks,
Ian.
Arnd Bergmann
AppliedQuoted 12 lines · CEST Ian Campbell
Quoted 3 lines · Arnd Bergmann
I had skipped the new message as well while sorting through 5000 messages after my vacation, but I've now put it into my TODO folder and will get to it eventually.
Is it still on your TODO or should I do...
Quoted 4 lines
We sometimes miss stuff that is meant for arm-soc when it comes from people that don't normally send us patches. If you want to be sure to catch the attention, stick a 'GIT PULL' into the subject or send a ping on IRC.
Quoted 4 lines
... one of these?
It'd be great to get this fixed in v4.8 so that the corresponding device-tree.git tag will build.
Oh, it ended up in my v4.9-todo folder, not 4.8, I misunderstood the urgency, sorry.
I've applied it to the fixes branch now.
Arnd
Quoted 18 lines · Arnd Bergmann
Quoted 17 lines · CEST Ian Campbell
Quoted 5 lines · Arnd Bergmann
I had skipped the new message as well while sorting through 5000 messages after my vacation, but I've now put it into my TODO folder
and will get to it eventually.Is it still on your TODO or should I do...
Quoted 6 lines
We sometimes miss stuff that is meant for arm-soc when it comes from people that don't normally send us patches. If you want to be sure to catch the attention, stick a 'GIT PULL' into the subject
or send a ping on IRC.
Quoted 7 lines
Quoted 4 lines
... one of these?
It'd be great to get this fixed in v4.8 so that the corresponding device-tree.git tag will build.
Oh, it ended??up in my v4.9-todo folder, not 4.8, I misunderstood the urgency, sorry.
No worries.
Quoted 1 line
I've applied it to the fixes branch now.
Thank you!
Ian.
Hi Ian,
Quoted 11 lines
Ian Campbell <[email protected]> hat am 3. August 2016 um 16:12 geschrieben:
This file is included from DTS files under
arch/arm64too (viabroadcom/bcm2837-rpi-3-b.dtsandbroadcom/bcm2837.dtsi). There is a desire not to haveskeleton.dtsifor ARM64. See commit3ebee5a2e141("arm64: dts:
killskeleton.dtsi") for rationale for its removal.As well as the addition of #*-cells also requires adding the
device_typeto the rpi memory node explicitly.
Quoted 7 lines
Note that this change results in the removal of an empty /aliases node from bcm2835-rpi-a.dtb and bcm2835-rpi-a-plus.dtb. I have no hardware to check if this is a problem or not.
It also results in some reordering of the nodes in the DTBs (the /aliases and /memory nodes come later). This isn't supposed to matter but, again, I've no hardware to check if it is true in this particular case.
i tested this patch with a Raspberry Pi Model B successfully.