arm64: Add basic support for Marvell Berlin4CT SoC
Subsystems (4)
v4 cover arm64: Add basic support for Marvell Berlin4CT SoC
Marvell Berlin4CT is a SoC based on 64bit ARMv8 architecture. It contains quad CA53 cores.
This SoC shares many HW IP with BG2Q and other berlin series. This patchset was tested on Berlin4CT DMP board, and boot to shell ok.
Since v3:
- remove bootargs. follow the same behavior as other arm64 SoCs.
Since v2:
- remove the memreserve which isn't removed by mistake
- add earlycon to enable earlyconsole, inspired by Sudeep
Since v1:
- remove "earlyprintk" bootargs which doesn't work on arm64
- fix GICC_DIR size as pointed out by Mark
- define memory start address instead of memory reservation as suggested by Mark
- add interrupt-affinity to pmu node as pointed out by Sudeep
Jisheng Zhang (2):
arm64: dts: Add dts files for Marvell Berlin4CT SoC
arm64: Enable Marvell Berlin SoC family in Kconfig and defconfig
arch/arm64/Kconfig.platforms | 6 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/marvell/Makefile | 5 + arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 66 +++++++++++ arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 164 ++++++++++++++++++++++++++ arch/arm64/configs/defconfig | 1 + 6 files changed, 243 insertions(+) create mode 100644 arch/arm64/boot/dts/marvell/Makefile create mode 100644 arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts create mode 100644 arch/arm64/boot/dts/marvell/berlin4ct.dtsi
Signature · 1 line
2.1.4
PATCH v4 1/2 arm64: dts: Add dts files for Marvell Berlin4CT SoC
Add initial dtsi file to support Marvell Berlin4CT SoC with quad Cortex-A53 CPUs.
It also adds dts file for Marvell Berlin4CT DMP board which is based on Berlin4CT SoC.
--- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/marvell/Makefile | 5 + arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 66 +++++++++++ arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 164 ++++++++++++++++++++++++++ 4 files changed, 236 insertions(+) create mode 100644 arch/arm64/boot/dts/marvell/Makefile create mode 100644 arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts create mode 100644 arch/arm64/boot/dts/marvell/berlin4ct.dtsi
arch/arm64/boot/dts/Makefile +1 -0
@@ -5,6 +5,7 @@ dts-dirs += cavium dts-dirs += exynos dts-dirs += freescale dts-dirs += hisilicon +dts-dirs += marvell dts-dirs += mediatek dts-dirs += qcom dts-dirs += rockchip
arch/arm64/boot/dts/marvell/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +dtb-$(CONFIG_ARCH_BERLIN) += berlin4ct-dmp.dtb + +always := $(dtb-y) +subdir-y := $(dts-dirs) +clean-files := *.dtb
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +66 -0
66 lines not on this page · raw message
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +164 -0
164 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH v4 2/2 arm64: Enable Marvell Berlin SoC family in Kconfig and defconfig
In reply to Jisheng ZhangThis patch introduces ARCH_BERLIN to enable Marvell Berlin SoC family in Kconfig and defconfig.
--- arch/arm64/Kconfig.platforms | 6 ++++++ arch/arm64/configs/defconfig | 1 + 2 files changed, 7 insertions(+)
arch/arm64/Kconfig.platforms +6 -0
@@ -1,5 +1,11 @@ menu "Platform selection" +config ARCH_BERLIN + bool "Marvell Berlin SoC Family" + select DW_APB_ICTL + help + This enables support for Marvell Berlin SoC Family + config ARCH_EXYNOS bool help
arch/arm64/configs/defconfig +1 -0
@@ -31,6 +31,7 @@ CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y # CONFIG_BLK_DEV_BSG is not set # CONFIG_IOSCHED_DEADLINE is not set +CONFIG_ARCH_BERLIN=y CONFIG_ARCH_EXYNOS7=y CONFIG_ARCH_FSL_LS2085A=y CONFIG_ARCH_HISI=y
Signature · 1 line
2.1.4
Sebastian Hesselbarth
maintainerRe: [PATCH v4 1/2] arm64: dts: Add dts files for Marvell Berlin4CT SoC
In reply to Jisheng ZhangQuoted 8 lines · Jisheng Zhang
Add initial dtsi file to support Marvell Berlin4CT SoC with quad Cortex-A53 CPUs.
It also adds dts file for Marvell Berlin4CT DMP board which is based on Berlin4CT SoC.
Signed-off-by Jisheng Zhang <[email protected]>---
[...]
Quoted 10 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +4
-0@@ -0,0 +1,66 @@ +/* + * Copyright (C) 2015 Marvell Technology Group Ltd. + * + * Author: Jisheng Zhang <[email protected]>
[...]
Quoted 1 line
+/ {
Jisheng,
before I take this series, some nitpicking.
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts line 50
Quoted 1 line
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +1
-0+ model = "MARVELL BG4CT DMP BOARD";
Are you fine with fixing the broken CAPSLOCK key, i.e. make above "Marvell BG4CT DMP board" ?
Quoted 26 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +16
-0+ compatible = "marvell,berlin4ct-dmp", "marvell,berlin4ct", "marvell,berlin"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + device_type = "memory"; + /* the first 16MB is for firmwares's usage */ + reg = <0 0x01000000 0 0x80000000>; + }; +}; + +&uart0 { + status = "okay"; +};arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +4
-0@@ -0,0 +1,164 @@ +/* + * Copyright (C) 2015 Marvell Technology Group Ltd. + * + * Author: Jisheng Zhang <[email protected]>
[...]
arch/arm64/boot/dts/marvell/berlin4ct.dtsi line 48
Quoted 3 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +3
-0+ +/ { + compatible = "marvell,berlin";
compatible = "marvell,berlin4ct", "marvell,berlin";
Quoted 3 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +3
-0+ interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>;
[...]
arch/arm64/boot/dts/marvell/berlin4ct.dtsi line 125
Quoted 11 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +11
-0+ soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0xf7000000 0x1000000>; + + osc: osc { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + };
Is the oscillator above really part of the SoC bus fabric? If 25MHz is the only option for an external OSC, I suggest to move it at least out of the soc {} node.
Sebastian
Quoted 39 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +38
-0+ gic: interrupt-controller at 901000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x901000 0x1000>, + <0x902000 0x2000>, + <0x904000 0x2000>, + <0x906000 0x2000>; + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; + }; + + apb at fc0000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xfc0000 0x10000>; + interrupt-parent = <&sic>; + + sic: interrupt-controller at 1000 { + compatible = "snps,dw-apb-ictl"; + reg = <0x1000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; + }; + + uart0: uart at d000 { + compatible = "snps,dw-apb-uart"; + reg = <0xd000 0x100>; + interrupts = <8>; + clocks = <&osc>; + reg-shift = <2>; + status = "disabled"; + }; + }; + }; +};
Re: [PATCH v4 2/2] arm64: Enable Marvell Berlin SoC family in Kconfig and defconfig
In reply to Jisheng ZhangQuoted 4 lines · Jisheng Zhang
This patch introduces
ARCH_BERLINto enable Marvell Berlin SoC family inKconfigand defconfig.Signed-off-by Jisheng Zhang <[email protected]>
I guess this will go through arm64 directly? If so,
Quoted 34 lines
--- arch/arm64/Kconfig.platforms | 6 ++++++ arch/arm64/configs/defconfig | 1 + 2 files changed, 7 insertions(+)arch/arm64/Kconfig.platforms +6
-0@@ -1,5 +1,11 @@ menu "Platform selection" +config ARCH_BERLIN + bool "Marvell Berlin SoC Family" + select DW_APB_ICTL + help + This enables support for Marvell Berlin SoC Family + config ARCH_EXYNOS bool helparch/arm64/configs/defconfig +1
-0@@ -31,6 +31,7 @@ CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y # CONFIG_BLK_DEV_BSG is not set # CONFIG_IOSCHED_DEADLINE is not set +CONFIG_ARCH_BERLIN=y CONFIG_ARCH_EXYNOS7=y CONFIG_ARCH_FSL_LS2085A=y CONFIG_ARCH_HISI=y
Re: [PATCH v4 2/2] arm64: Enable Marvell Berlin SoC family in Kconfig and defconfig
Dear Sebastian,
Quoted 7 lines · On Thu, 30 Jul 2015 10:07:44 +0200 Sebastian Hesselbarth…
Quoted 4 lines · Jisheng Zhang
This patch introduces
ARCH_BERLINto enable Marvell Berlin SoC family inKconfigand defconfig.Signed-off-by Jisheng Zhang <[email protected]>I guess this will go through arm64 directly? If so,
I dunno. But from previous pull request for mt8173, rk3368, their according change goes through arm-soc tree.
Thanks,
Jisheng
Quoted 37 lines
Quoted 34 lines
--- arch/arm64/Kconfig.platforms | 6 ++++++ arch/arm64/configs/defconfig | 1 + 2 files changed, 7 insertions(+)arch/arm64/Kconfig.platforms +6
-0@@ -1,5 +1,11 @@ menu "Platform selection" +config ARCH_BERLIN + bool "Marvell Berlin SoC Family" + select DW_APB_ICTL + help + This enables support for Marvell Berlin SoC Family + config ARCH_EXYNOS bool helparch/arm64/configs/defconfig +1
-0@@ -31,6 +31,7 @@ CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y # CONFIG_BLK_DEV_BSG is not set # CONFIG_IOSCHED_DEADLINE is not set +CONFIG_ARCH_BERLIN=y CONFIG_ARCH_EXYNOS7=y CONFIG_ARCH_FSL_LS2085A=y CONFIG_ARCH_HISI=y
Re: [PATCH v4 1/2] arm64: dts: Add dts files for Marvell Berlin4CT SoC
In reply to Sebastian HesselbarthQuoted 23 lines · On Thu, 30 Jul 2015 10:06:38 +0200 Sebastian Hesselbarth…
Quoted 8 lines · Jisheng Zhang
Add initial dtsi file to support Marvell Berlin4CT SoC with quad Cortex-A53 CPUs.
It also adds dts file for Marvell Berlin4CT DMP board which is based on Berlin4CT SoC.
Signed-off-by Jisheng Zhang <[email protected]>---
[...]
Quoted 10 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +4
-0@@ -0,0 +1,66 @@ +/* + * Copyright (C) 2015 Marvell Technology Group Ltd. + * + * Author: Jisheng Zhang <[email protected]>[...]
Quoted 1 line
+/ {
Quoted 8 lines
Jisheng,
before I take this series, some nitpicking.
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts line 50
Quoted 1 line
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +1
-0+ model = "MARVELL BG4CT DMP BOARD";Are you fine with fixing the broken CAPSLOCK key, i.e. make above "Marvell BG4CT DMP board" ?
It doesn't matter, will do in newer version.
Quoted 28 lines
Quoted 27 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +16
-0+ compatible = "marvell,berlin4ct-dmp", "marvell,berlin4ct", "marvell,berlin"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + device_type = "memory"; + /* the first 16MB is for firmwares's usage */ + reg = <0 0x01000000 0 0x80000000>; + }; +}; + +&uart0 { + status = "okay"; +};arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +4
-0@@ -0,0 +1,164 @@ +/* + * Copyright (C) 2015 Marvell Technology Group Ltd. + * + * Author: Jisheng Zhang <[email protected]>[...]
Quoted 5 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi line 48
Quoted 3 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +3
-0+ +/ { + compatible = "marvell,berlin";compatible = "marvell,berlin4ct", "marvell,berlin";
Thanks for pointing this out.
Quoted 5 lines
Quoted 4 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +3
-0+ interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>;[...]
Quoted 13 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi line 125
Quoted 11 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +11
-0+ soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0xf7000000 0x1000000>; + + osc: osc { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + };Is the oscillator above really part of the SoC bus fabric? If 25MHz is
No. it's not part of SoC bus.
Quoted 2 lines
the only option for an external OSC, I suggest to move it at least out of the soc {} node.
Good idea.
Thanks for the review,
Jisheng
Quoted 42 lines
Sebastian
Quoted 39 lines
arch/arm64/boot/dts/marvell/berlin4ct.dtsi new file +38
-0+ gic: interrupt-controller at 901000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x901000 0x1000>, + <0x902000 0x2000>, + <0x904000 0x2000>, + <0x906000 0x2000>; + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; + }; + + apb at fc0000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xfc0000 0x10000>; + interrupt-parent = <&sic>; + + sic: interrupt-controller at 1000 { + compatible = "snps,dw-apb-ictl"; + reg = <0x1000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; + }; + + uart0: uart at d000 { + compatible = "snps,dw-apb-uart"; + reg = <0xd000 0x100>; + interrupts = <8>; + clocks = <&osc>; + reg-shift = <2>; + status = "disabled"; + }; + }; + }; +};