Skip to contentSkip to conversation

Introduce new DT files for Meson-AXG SoC

PATCH New Yixun Lan 5 participants 7 messages Oct 13, 2017 – Oct 19, 2017

Subsystems (2)
lore
Share & tools
lore

Yixun Lan

author
#0 lore raw

cover Introduce new DT files for Meson-AXG SoC

This attempt will try to add new DT files to support Meson-AXG SoC. Due to the AXG series has new memory layout, we decide to start a new DT structure without sharing with previous meson-gx.dtsi

1) in the first patch, we try to document the new Meson-AXG bindings
2) in the second patch, we try to bring up a minimal serial console, so it's capable of running a minimal system (in ramdisk).

Yixun Lan (2):
dt-bindings: arm: amlogic: Add Meson AXG binding
arm64: dts: meson-axg: add initial A113D SoC DT support

 Documentation/devicetree/bindings/arm/amlogic.txt |   6 +
 arch/arm64/boot/dts/amlogic/Makefile              |   1 +
 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts    |  22 +++
 arch/arm64/boot/dts/amlogic/meson-axg.dtsi        | 204 ++++++++++++++++++++++
 4 files changed, 233 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-axg.dtsi
Signature · 1 line
2.14.1
author
#1 lore raw

PATCH 1/2 dt-bindings: arm: amlogic: Add Meson AXG binding

Introduce new bindings for the Meson AXG SoC which now have different memory layout.

---
 Documentation/devicetree/bindings/arm/amlogic.txt | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/amlogic.txt +6 -0
index 4e4bc0bae597..89ee830bd55c 100644
@@ -41,6 +41,10 @@ Boards with the Amlogic Meson GXM S912 SoC shall have the following properties:
   Required root node property:
     compatible: "amlogic,s912", "amlogic,meson-gxm";
 
+Boards with the Amlogic Meson AXG A113D SoC shall have the following properties:
+  Required root node property:
+    compatible: "amlogic,a113d", "amlogic,meson-axg";
+
 Board compatible values (alphabetically, grouped by SoC):
 
   - "geniatech,atv1200" (Meson6)
@@ -74,6 +78,8 @@ Board compatible values (alphabetically, grouped by SoC):
   - "kingnovel,r-box-pro" (Meson gxm S912)
   - "nexbox,a1" (Meson gxm s912)
 
+  - "amlogic,s400" (Meson axg a113d)
+
 Amlogic Meson Firmware registers Interface
 ------------------------------------------
 
Signature · 1 line
2.14.1
maintainer
#2 lore raw

PATCH 1/2 dt-bindings: arm: amlogic: Add Meson AXG binding

Quoted 7 lines · Yixun Lan

Introduce new bindings for the Meson AXG SoC which now have different memory layout.

---
 Documentation/devicetree/bindings/arm/amlogic.txt | 6 ++++++
 1 file changed, 6 insertions(+)
author
#3 lore raw

PATCH 2/2 arm64: dts: meson-axg: add initial A113D SoC DT support

In reply to Yixun Lan

Try to add basic DT support for the Amlogic's Meson-AXG A113D SoC, which describe components as follows: Reserve Memory, CPU, GIC, IRQ, Timer, UART. It's capable of booting up into the serial console.

---
 arch/arm64/boot/dts/amlogic/Makefile           |   1 +
 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts |  22 +++
 arch/arm64/boot/dts/amlogic/meson-axg.dtsi     | 204 +++++++++++++++++++++++++
 3 files changed, 227 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-axg.dtsi
arch/arm64/boot/dts/amlogic/Makefile +1 -0
index 7a9f48c27b1f..aedecf088272 100644
@@ -1,3 +1,4 @@
+dtb-$(CONFIG_ARCH_MESON) += meson-axg-s400.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nanopi-k2.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nexbox-a95x.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-odroidc2.dtb
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts new file +22 -0
new file mode 100644
index 000000000000..70eca1f8736a
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
+ *
+ * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+ */
+
+/dts-v1/;
+
+#include "meson-axg.dtsi"
+
+/ {
+	compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg";
+	model = "Amlogic Meson AXG S400 Development Board";
+
+	aliases {
+		serial0 = &uart_AO;
+	};
+};
+
+&uart_AO {
+	status = "okay";
+};
arch/arm64/boot/dts/amlogic/meson-axg.dtsi new file +204 -0

204 lines not on this page · raw message

Signature · 1 line
2.14.1
#4 lore raw

cover Introduce new DT files for Meson-AXG SoC

In reply to Yixun Lan

Am 14.10.2017 um 01:13 schrieb Yixun Lan:

Quoted 4 lines

This attempt will try to add new DT files to support Meson-AXG SoC. Due to the AXG series has new memory layout, we decide to start a new DT structure without sharing with previous meson-gx.dtsi

Quoted 8 lines

1) in the first patch, we try to document the new Meson-AXG bindings
2) in the second patch, we try to bring up a minimal serial console, so it's capable of running a minimal system (in ramdisk).

Yixun Lan (2):
dt-bindings: arm: amlogic: Add Meson AXG binding
arm64: dts: meson-axg: add initial A113D SoC DT support

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#5 lore raw

cover Introduce new DT files for Meson-AXG SoC

In reply to Yixun Lan
Quoted 13 lines · Yixun Lan

This attempt will try to add new DT files to support Meson-AXG SoC. Due to the AXG series has new memory layout, we decide to start a new DT structure without sharing with previous meson-gx.dtsi

1) in the first patch, we try to document the new Meson-AXG bindings
2) in the second patch, we try to bring up a minimal serial console, so it's capable of running a minimal system (in ramdisk).

Yixun Lan (2):
dt-bindings: arm: amlogic: Add Meson AXG binding
arm64: dts: meson-axg: add initial A113D SoC DT support

Quoted 8 lines
 Documentation/devicetree/bindings/arm/amlogic.txt |   6 +
 arch/arm64/boot/dts/amlogic/Makefile              |   1 +
 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts    |  22 +++
 arch/arm64/boot/dts/amlogic/meson-axg.dtsi        | 204 ++++++++++++++++++++++
 4 files changed, 233 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-axg.dtsi
maintainer Applied
#6 lore raw

cover Introduce new DT files for Meson-AXG SoC

In reply to Yixun Lan
Quoted 11 lines · Yixun Lan

This attempt will try to add new DT files to support Meson-AXG SoC. Due to the AXG series has new memory layout, we decide to start a new DT structure without sharing with previous meson-gx.dtsi

1) in the first patch, we try to document the new Meson-AXG bindings
2) in the second patch, we try to bring up a minimal serial console, so it's capable of running a minimal system (in ramdisk).

Yixun Lan (2):
dt-bindings: arm: amlogic: Add Meson AXG binding
arm64: dts: meson-axg: add initial A113D SoC DT support

Applied to v4.15/dt64 with reviews and acks.

Kevin