Skip to contentSkip to conversation

ARM: dts: Remove use of skeleton.dtsi from bcm283x.dtsi

PATCH Applied Ian Campbell 4 participants 12 messages Aug 3, 2016 – Sep 9, 2016

Subsystems (3)

v2 of 3 Applied Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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.

Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Rob Herring <[email protected]>
Cc Frank Rowand <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Lee Jones <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc linux-rpi-kernel at lists.infradead.org
Cc arm at kernel.org

---
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
index caf2707..e9b47b2 100644
@@ -2,6 +2,7 @@
 
 / {
 	memory {
+		device_type = "memory";
 		reg = <0 0x10000000>;
 	};
 
arch/arm/boot/dts/bcm283x.dtsi +2 -1
index b982522..445624a 100644
@@ -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
#1 lore raw

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/

Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Rob Herring <[email protected]>
Cc Frank Rowand <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Lee Jones <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc linux-rpi-kernel at lists.infradead.org
Cc arm at kernel.org

---
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
new file mode 120000
index 0000000..3937b77
@@ -0,0 +1 @@
+../../../../arm/boot/dts/bcm2835-rpi.dtsi
\ No newline at end of file
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts +2 -2
index 6f47dd2..7841b72 100644
@@ -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
index f2a31d0..8216bbb 100644
@@ -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
new file mode 120000
index 0000000..dca7c05
@@ -0,0 +1 @@
+../../../../arm/boot/dts/bcm283x-rpi-smsc9514.dtsi
\ No newline at end of file
arch/arm64/boot/dts/broadcom/bcm283x.dtsi new file +1 -0
new file mode 120000
index 0000000..5f54e4c
@@ -0,0 +1 @@
+../../../../arm/boot/dts/bcm283x.dtsi
\ No newline at end of file
Signature · 1 line
2.8.1
Acked-by on v2 1/2
#3 lore raw
In reply to Ian Campbell
Quoted 12 lines · Ian Campbell

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.

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.

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
index caf2707..e9b47b2 100644
@@ -2,6 +2,7 @@
 
 / {
 	memory {
+		device_type = "memory";
 		reg = <0 0x10000000>;
 	};
 
arch/arm/boot/dts/bcm283x.dtsi +2 -1
index b982522..445624a 100644
@@ -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
Acked-by on v2 2/2
#2 lore raw

Re: [PATCH v2 2/2] ARM64: dts: bcm: Use a symlink to R-Pi dtsi files from arch=arm

In reply to Ian Campbell
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 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/

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
new file mode 120000
index 0000000..3937b77
@@ -0,0 +1 @@
+../../../../arm/boot/dts/bcm2835-rpi.dtsi
\ No newline at end of file
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts +2 -2
index 6f47dd2..7841b72 100644
@@ -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
index f2a31d0..8216bbb 100644
@@ -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
new file mode 120000
index 0000000..dca7c05
@@ -0,0 +1 @@
+../../../../arm/boot/dts/bcm283x-rpi-smsc9514.dtsi
\ No newline at end of file
arch/arm64/boot/dts/broadcom/bcm283x.dtsi new file +1 -0
new file mode 120000
index 0000000..5f54e4c
@@ -0,0 +1 @@
+../../../../arm/boot/dts/bcm283x.dtsi
\ No newline at end of file
Signature · 1 line
2.8.1
Tested-by on v2 1/2
#11 lore raw
In reply to Ian Campbell

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/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.

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.

#4 lore raw
In reply to Mark Rutland
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:

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.

#5 lore raw
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 this

looks

Quoted 3 lines

generally like the right thing. So FWIW:
?

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

#6 lore raw
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 this

looks

Quoted 3 lines

generally like the right thing. So FWIW:
?

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.

#7 lore raw
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

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

#8 lore raw
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.

#9 lore raw
Quoted 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

#10 lore raw
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.