Add ZTE ZX296718 support
v2 cover Add ZTE ZX296718 support
Changes vs version1:
- 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.dts | 21 +++ arch/arm64/boot/dts/zte/zx296718.dtsi | 253 ++++++++++++++++++++++++++ arch/arm64/configs/defconfig | 1 + 7 files changed, 310 insertions(+) create mode 100644 arch/arm64/boot/dts/zte/Makefile create mode 100644 arch/arm64/boot/dts/zte/zx296718.dts create mode 100644 arch/arm64/boot/dts/zte/zx296718.dtsi
Signature · 1 line
1.9.1
PATCH v2 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
@@ -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
PATCH v2 2/3 arm64: dts: Add ZTE ZX296718 SoC dts and Makefile
In reply to Jun NieAdd 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.dts | 21 +++ arch/arm64/boot/dts/zte/zx296718.dtsi | 253 ++++++++++++++++++++++++++ 5 files changed, 304 insertions(+) create mode 100644 arch/arm64/boot/dts/zte/Makefile create mode 100644 arch/arm64/boot/dts/zte/zx296718.dts create mode 100644 arch/arm64/boot/dts/zte/zx296718.dtsi
Documentation/devicetree/bindings/arm/zte.txt +24 -0
@@ -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 0x1463000 { + compatible = "zte,zx296718-sysctrl", "syscon"; + reg = <0x1463000 0x1000>; +};
arch/arm64/boot/dts/Makefile +1 -0
@@ -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
@@ -0,0 +1,5 @@ +dtb-$(CONFIG_ARCH_ZX) += zx296718.dtb + +always := $(dtb-y) +subdir-y := $(dts-dirs) +clean-files := *.dtb
arch/arm64/boot/dts/zte/zx296718.dts new file +21 -0
@@ -0,0 +1,21 @@ +/* + * ZTE Ltd. zx296718 Plaform + * + */ +/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>; + }; + +};
arch/arm64/boot/dts/zte/zx296718.dtsi new file +253 -0
253 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v2 3/3 arm64: defconfig: enable ZTE ZX related config
In reply to Jun NieThis 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
@@ -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
PATCH v2 2/3 arm64: dts: Add ZTE ZX296718 SoC dts and Makefile
In reply to Jun NieQuoted 4 lines · Jun Nie
Add device tree support for ZX296718 SoC and evaluation board based on it. Also document new values.
Reviewed-by Mark Rutland <[email protected]>
NAK.
I did *not* provide a Reviewed-by in v1 [1,2]. Please remove this tag.
Unless explicitly provided, do not add a Reviewed-by tag. Comments alone do not imply a Reviewed-by tag.
I also have a further comment below.
Quoted 14 lines
arch/arm64/boot/dts/zte/zx296718.dtsi new file +14
-0+ gic: interrupt-controller at 2a00000 { + compatible = "arm,gic-v3"; + #interrupt-cells = <3>; + #address-cells = <0>; + #redistributor-regions = <6>; + redistributor-stride = <0x0 0x40000>; + interrupt-controller; + reg = <0x02a00000 0x10000>, + <0x02b00000 0x20000>, + <0x02b20000 0x20000>, + <0x02b40000 0x20000>, + <0x02b60000 0x20000>, + <0x02b80000 0x20000>, + <0x02ba0000 0x20000>;
arch/arm64/boot/dts/zte/zx296718.dtsi line 211
Quoted 10 lines
arch/arm64/boot/dts/zte/zx296718.dtsi new file +10
-0+ interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; + };
GIC_CPU_MASK* is only valid for GICv2, not GICv3. Please remove the GIC_CPU_MASK_SIMPLE(8) uses from these.
Thanks,
Mark.
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-August/449162.html
[2] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-August/449230.html