Skip to contentSkip to conversation

powerpc: dts: p2020: Allow to use P2020 DTS files from Linux

PATCH New Pali Rohár 1 participant 3 messages Apr 2, 2022 PowerPC

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 powerpc: dts: p2020: Add fsl/p2020si-pre.dtsi and fsl/p2020si-post.dtsi symlinks

In reply to Pali Rohár

P2020 DTS files in upstream Linux kernel use fsl/p2020si-pre.dtsi and fsl/p2020si-post.dtsi include device tree files.

Add symlinks for these include device tree files into U-Boot powerpc directory and points them to U-Boot inline device tree files p2020.dtsi and p2020-post.dtsi.

This allows to use P2020 DTS files from upstream Linux kernel in U-Boot.

---
 arch/powerpc/dts/fsl/p2020si-post.dtsi | 1 +
 arch/powerpc/dts/fsl/p2020si-pre.dtsi  | 1 +
 2 files changed, 2 insertions(+)
 create mode 120000 arch/powerpc/dts/fsl/p2020si-post.dtsi
 create mode 120000 arch/powerpc/dts/fsl/p2020si-pre.dtsi
arch/powerpc/dts/fsl/p2020si-post.dtsi new file +1 -0
new file mode 120000
index 000000000000..b51ebf58b7aa
@@ -0,0 +1 @@
+../p2020-post.dtsi
\ No newline at end of file
arch/powerpc/dts/fsl/p2020si-pre.dtsi new file +1 -0
new file mode 120000
index 000000000000..1e4b16fbe462
@@ -0,0 +1 @@
+../p2020.dtsi
\ No newline at end of file
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/2 powerpc: dts: p2020: Add serial0 and serial1 via pq3-duart-0.dtsi

In reply to Pali Rohár

Import pq3-duart-0.dtsi device tree include file from upstream Linux kernel for P2020. This allows U-Boot to use P2020 device tree files from upstream Linux kernel which reference serial0 or serial1 devices.

---
 arch/powerpc/dts/p2020-post.dtsi  |  1 +
 arch/powerpc/dts/pq3-duart-0.dtsi | 51 +++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 arch/powerpc/dts/pq3-duart-0.dtsi
arch/powerpc/dts/p2020-post.dtsi +1 -0
index 6d46f7d8dd72..8d30fa212c43 100644
@@ -49,6 +49,7 @@
 
 /include/ "pq3-i2c-0.dtsi"
 /include/ "pq3-i2c-1.dtsi"
+/include/ "pq3-duart-0.dtsi"
 
 /include/ "pq3-etsec1-0.dtsi"
 /include/ "pq3-etsec1-1.dtsi"
arch/powerpc/dts/pq3-duart-0.dtsi new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.20.1
#0 lore raw

cover powerpc: dts: p2020: Allow to use P2020 DTS files from Linux

This patch series imports device tree include files for comaptibility with P2020 device tree files from upstream Linux kernel. So it allows to share same P2020 board device tree files between Linux kernel and U-Boot.

Pali Rohár (2):
powerpc: dts: p2020: Add fsl/p2020si-pre.dtsi and
fsl/p2020si-post.dtsi symlinks
powerpc: dts: p2020: Add serial0 and serial1 via pq3-duart-0.dtsi

 arch/powerpc/dts/fsl/p2020si-post.dtsi |  1 +
 arch/powerpc/dts/fsl/p2020si-pre.dtsi  |  1 +
 arch/powerpc/dts/p2020-post.dtsi       |  1 +
 arch/powerpc/dts/pq3-duart-0.dtsi      | 51 ++++++++++++++++++++++++++
 4 files changed, 54 insertions(+)
 create mode 120000 arch/powerpc/dts/fsl/p2020si-post.dtsi
 create mode 120000 arch/powerpc/dts/fsl/p2020si-pre.dtsi
 create mode 100644 arch/powerpc/dts/pq3-duart-0.dtsi
Signature · 1 line
2.20.1