Skip to contentSkip to conversation

Add ZTE ZX296718 support

PATCH New Jun Nie 3 participants 8 messages Sep 13, 2016 – Sep 16, 2016

Subsystems (3)
lore
Share & tools
lore

Jun Nie

author
#0 lore raw

v5 cover Add ZTE ZX296718 support

Changes in version5:
- Add GPL license to new files.
- Unify clocks dts nodes names.
- Move interrupt parents info to root nodes in dts, move pmu and timer node out of soc node.

Changes in version4:
- Change dts file name to align with compatible name.
- Reorder dts nodes with reg address sequence.
- Move nodes out of soc, which do not have soc simple bus address or share soc interrupt.
- Change some nodes name to align with convention.

Changes in version3:
- Remove unnecessary flag of gic in dts.

Changes in version2:
- Use more precise cpu and pmu compatible name in dts.
- fix minor coding style issue.

Jun Nie (3):
arm64: add ZTE ZX SoC family
arm64: dts: Add ZTE ZX296718 SoC dts and Makefile
arm64: defconfig: enable ZTE ZX related config

 Documentation/devicetree/bindings/arm/zte.txt |  24 +++
 arch/arm64/Kconfig.platforms                  |   5 +
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/zte/Makefile              |   5 +
 arch/arm64/boot/dts/zte/zx296718-evb.dts      |  25 +++
 arch/arm64/boot/dts/zte/zx296718.dtsi         | 254 ++++++++++++++++++++++++++
 arch/arm64/configs/defconfig                  |   1 +
 7 files changed, 315 insertions(+)
 create mode 100644 arch/arm64/boot/dts/zte/Makefile
 create mode 100644 arch/arm64/boot/dts/zte/zx296718-evb.dts
 create mode 100644 arch/arm64/boot/dts/zte/zx296718.dtsi
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v5 1/3 arm64: add ZTE ZX SoC family

This patch introduces ARCH_ZX to add the support of the ZTE ZX SoC family for the arm64 architecture.

---
 arch/arm64/Kconfig.platforms | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/Kconfig.platforms +5 -0
index be5d824..bc75fd2 100644
@@ -204,6 +204,11 @@ config ARCH_XGENE
 	help
 	  This enables support for AppliedMicro X-Gene SOC Family
 
+config ARCH_ZX
+	bool "ZTE ZX SoC Family"
+	help
+	  This enables support for ZTE ZX SoC Family
+
 config ARCH_ZYNQMP
 	bool "Xilinx ZynqMP Family"
 	help
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH v5 2/3 arm64: dts: Add ZTE ZX296718 SoC dts and Makefile

In reply to Jun Nie

Add device tree support for ZX296718 SoC and evaluation board based on it. Also document new values.

---
 Documentation/devicetree/bindings/arm/zte.txt |  24 +++
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/zte/Makefile              |   5 +
 arch/arm64/boot/dts/zte/zx296718-evb.dts      |  29 +++
 arch/arm64/boot/dts/zte/zx296718.dtsi         | 260 ++++++++++++++++++++++++++
 5 files changed, 319 insertions(+)
 create mode 100644 arch/arm64/boot/dts/zte/Makefile
 create mode 100644 arch/arm64/boot/dts/zte/zx296718-evb.dts
 create mode 100644 arch/arm64/boot/dts/zte/zx296718.dtsi
Documentation/devicetree/bindings/arm/zte.txt +24 -0
index 3ff5c9e..8336978 100644
@@ -13,3 +13,27 @@ Low power management required properties:
 
 Bus matrix required properties:
       - compatible = "zte,zx-bus-matrix"
+
+
+---------------------------------------
+-  ZX296718 SoC:
+    Required root node properties:
+      - compatible = "zte,zx296718"
+
+ZX296718 EVB board:
+      - "zte,zx296718-evb"
+
+System management required properties:
+      - compatible = "zte,zx296718-aon-sysctrl"
+      - compatible = "zte,zx296718-sysctrl"
+
+Example:
+aon_sysctrl: aon-sysctrl at 116000 {
+	compatible = "zte,zx296718-aon-sysctrl", "syscon";
+	reg = <0x116000 0x1000>;
+};
+
+sysctrl: sysctrl at 1463000 {
+	compatible = "zte,zx296718-sysctrl", "syscon";
+	reg = <0x1463000 0x1000>;
+};
arch/arm64/boot/dts/Makefile +1 -0
index 6e199c9..6684f97 100644
@@ -19,6 +19,7 @@ dts-dirs += socionext
 dts-dirs += sprd
 dts-dirs += xilinx
 dts-dirs += lg
+dts-dirs += zte
 
 subdir-y	:= $(dts-dirs)
 
arch/arm64/boot/dts/zte/Makefile new file +5 -0
new file mode 100644
index 0000000..6678066
@@ -0,0 +1,5 @@
+dtb-$(CONFIG_ARCH_ZX) += zx296718-evb.dtb
+
+always		:= $(dtb-y)
+subdir-y	:= $(dts-dirs)
+clean-files	:= *.dtb
arch/arm64/boot/dts/zte/zx296718-evb.dts new file +29 -0
new file mode 100644
index 0000000..820fe1c
@@ -0,0 +1,29 @@
+/*
+ * ZTE Ltd. zx296718 Plaform
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * publishhed by the Free Software Foundation.
+ *
+ */
+/dts-v1/;
+#include "zx296718.dtsi"
+
+/ {
+	model = "ZTE zx296718 evaluation board";
+	compatible = "zte,zx296718-evb", "zte,zx296718";
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory at 40000000 {
+		device_type = "memory";
+		reg = <0x40000000 0x40000000>;
+	};
+
+};
+
+&uart0 {
+	status = "okay";
+};
arch/arm64/boot/dts/zte/zx296718.dtsi new file +260 -0

260 lines not on this page · raw message

Signature · 1 line
1.9.1
#3 lore raw

PATCH v5 2/3 arm64: dts: Add ZTE ZX296718 SoC dts and Makefile

Quoted 6 lines · Jun Nie
arch/arm64/boot/dts/zte/zx296718-evb.dts new file +0 -0
new file mode 100644
index 0000000..820fe1c

arch/arm64/boot/dts/zte/zx296718-evb.dts line 8

Quoted 8 lines
arch/arm64/boot/dts/zte/zx296718-evb.dts new file +8 -0
@@ -0,0 +1,29 @@
+/*
+ * ZTE Ltd. zx296718 Plaform
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * publishhed by the Free Software Foundation.
+ *
+ */

Just found this is still not what's recommended, i.e. GPL/X11 dual license. I updated it and applied all 3 patches.

Shawn

author
#4 lore raw

PATCH v5 3/3 arm64: defconfig: enable ZTE ZX related config

In reply to Jun Nie

This patch enables the configuration for the ZTE ZX family.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index eadf485..2bd5c88 100644
@@ -57,6 +57,7 @@ CONFIG_ARCH_UNIPHIER=y
 CONFIG_ARCH_VEXPRESS=y
 CONFIG_ARCH_VULCAN=y
 CONFIG_ARCH_XGENE=y
+CONFIG_ARCH_ZX=y
 CONFIG_ARCH_ZYNQMP=y
 CONFIG_PCI=y
 CONFIG_PCI_MSI=y
Signature · 1 line
1.9.1
#5 lore raw

v5 cover Add ZTE ZX296718 support

In reply to Jun Nie
Quoted 21 lines · Jun Nie

Changes in version5:
- Add GPL license to new files.
- Unify clocks dts nodes names.
- Move interrupt parents info to root nodes in dts, move pmu and timer node out of soc node.

Changes in version4:
- Change dts file name to align with compatible name.
- Reorder dts nodes with reg address sequence.
- Move nodes out of soc, which do not have soc simple bus address or share soc interrupt.
- Change some nodes name to align with convention.

Changes in version3:
- Remove unnecessary flag of gic in dts.

Changes in version2:
- Use more precise cpu and pmu compatible name in dts.
- fix minor coding style issue.

Quoted 4 lines

Jun Nie (3):
arm64: add ZTE ZX SoC family
arm64: dts: Add ZTE ZX296718 SoC dts and Makefile
arm64: defconfig: enable ZTE ZX related config

For the series,

Arnd, Olof,

If you like, I can help collect ZTE DTS patches to reduce your maintenance burden, considering we have an established pull-request work flow and I get ZTE platform on hands to test patches.

Shawn

maintainer
#6 lore raw

v5 cover Add ZTE ZX296718 support

Quoted 8 lines · CEST Shawn Guo

Arnd, Olof,

If you like, I can help collect ZTE DTS patches to reduce your maintenance burden, considering we have an established pull-request work flow and I get ZTE platform on hands to test patches.

Thanks, I think that would be a good idea. I was going to apply the patches manually, but I'll just wait for you to forward them to me.

Also thanks for your thorough reviews of the patch series!

Arnd

#7 lore raw

v5 cover Add ZTE ZX296718 support

Quoted 6 lines · Arnd Bergmann
Quoted 5 lines · CEST Shawn Guo

Arnd, Olof,

Quoted 7 lines
Quoted 3 lines

If you like, I can help collect ZTE DTS patches to reduce your maintenance burden, considering we have an established pull-request work flow and I get ZTE platform on hands to test patches.

Thanks, I think that would be a good idea. I was going to apply the patches manually, but I'll just wait for you to forward them to me.

I will send pull requests to you shortly. We will likely have more ZTE DTS patches to come for the later releases, and doing so should ease your life, I hope.

Shawn