arm64: Add basic support for Marvell Berlin4CT SoC
Subsystems (4)
v3 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 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 | 67 +++++++++++ arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 164 ++++++++++++++++++++++++++ arch/arm64/configs/defconfig | 1 + 6 files changed, 244 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 v3 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 | 67 +++++++++++ arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 164 ++++++++++++++++++++++++++ 4 files changed, 237 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 +67 -0
67 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 v3 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
Re: [PATCH v3 1/2] arm64: dts: Add dts files for Marvell Berlin4CT SoC
In reply to Jisheng ZhangQuoted 17 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]>--- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/marvell/Makefile | 5 + arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 67 +++++++++++ arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 164 ++++++++++++++++++++++++++ 4 files changed, 237 insertions(+)create mode 100644
arch/arm64/boot/dts/marvell/Makefilecreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct-dmp.dtscreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct.dtsi
[..]
Quoted 6 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +0
-0@@ -0,0 +1,67 @@
[..]
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts line 55
Quoted 11 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +11
-0+/dts-v1/; + +#include "berlin4ct.dtsi" + +/ { + model = "MARVELL BG4CT DMP BOARD"; + compatible = "marvell,berlin4ct-dmp", "marvell,berlin4ct", "marvell,berlin"; + + chosen { + bootargs = "earlycon=uart8250,mmio32,0xf7fcd000"; + stdout-path = "serial0:115200n8";
Just earlycon without any parameters will suffice. Currently earlycon parsing code has issues and it's being worked out[1]. The serial port details specified in stdout-path will be used by earlycon.
Regards,
Sudeep
Re: [PATCH v3 1/2] arm64: dts: Add dts files for Marvell Berlin4CT SoC
Dear Sudeep,
Quoted 48 lines · On Wed, 22 Jul 2015 10:19:19 +0100 Sudeep Holla <[email protected]> wrote:
Quoted 17 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]>--- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/marvell/Makefile | 5 + arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts | 67 +++++++++++ arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 164 ++++++++++++++++++++++++++ 4 files changed, 237 insertions(+)create mode 100644
arch/arm64/boot/dts/marvell/Makefilecreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct-dmp.dtscreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct.dtsi[..]
Quoted 6 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +0
-0@@ -0,0 +1,67 @@[..]
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts line 55
Quoted 11 lines
arch/arm64/boot/dts/marvell/berlin4ct-dmp.dts new file +11
-0+/dts-v1/; + +#include "berlin4ct.dtsi" + +/ { + model = "MARVELL BG4CT DMP BOARD"; + compatible = "marvell,berlin4ct-dmp", "marvell,berlin4ct", "marvell,berlin"; + + chosen { + bootargs = "earlycon=uart8250,mmio32,0xf7fcd000"; + stdout-path = "serial0:115200n8";Just earlycon without any parameters will suffice. Currently earlycon parsing code has issues and it's being worked out[1]. The serial port details specified in stdout-path will be used by earlycon.
Quoted 4 lines
Regards,
Sudeep
I just found all arm64 ports don't have bootargs, so neither earlycon, I will follow this behavior. Will send out v4 later.
Thanks