arm64: Add basic support for Marvell Berlin4CT SoC
Subsystems (4)
v5 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 v4:
- rebased on the latest next tree
- adopt Sebastian suggestions such as: move osc out of "/soc" node, use "Marvell BG4CT DMP board" as model, etc.
- use correct memory size for BG4CT DMP. The total DDR size is 2GB, we start from 0x01000000, so the avaiable linux memory should be 0x7f000000.
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.5.0
PATCH v5 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
@@ -6,6 +6,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.5.0
PATCH v5 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
@@ -5,6 +5,12 @@ config ARCH_BCM_IPROC help This enables support for Broadcom iProc based SoCs +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
@@ -32,6 +32,7 @@ CONFIG_MODULE_UNLOAD=y # CONFIG_BLK_DEV_BSG is not set # CONFIG_IOSCHED_DEADLINE is not set CONFIG_ARCH_BCM_IPROC=y +CONFIG_ARCH_BERLIN=y CONFIG_ARCH_EXYNOS7=y CONFIG_ARCH_FSL_LS2085A=y CONFIG_ARCH_HISI=y
Signature · 1 line
2.5.0
Sebastian Hesselbarth
maintainerQuoted 8 lines · Jisheng Zhang
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 v4:
- rebased on the latest next tree
Jisheng,
some git basics, so you get a better idea of the merge process:
Please do not base your patches on linux-next. It is not a stable branch I can refer to. Also, if there was any dependency with another feature that your patches require, you should mention that dependency by pointing out either a floating patch set or even better a _stable_ topic branch of the feature that will be added in the same cycle you expect your patches to be merged.
AFAIKS, there is no dependency at all so please just base them on -rc1 (No need to resend, I can take care of it).
Anyway, I am fine with the series and it has been out for a while now. I pick it up, let is set on linux-next for a while and send out a topic PR at the end of the week.
Thanks!
Sebastian
Quoted 33 lines
- adopt Sebastian suggestions such as: move osc out of "/soc" node, use "Marvell BG4CT DMP board" as model, etc.
- use correct memory size for BG4CT DMP. The total DDR size is 2GB, we startfrom 0x01000000, so the avaiable linux memory should be 0x7f000000.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 SudeepSince v1:
- remove "earlyprintk" bootargs which doesn't work on arm64
- fixGICC_DIRsize 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 SudeepJisheng Zhang (2):
arm64: dts: Add dts files for Marvell Berlin4CT SoC
arm64: Enable Marvell Berlin SoC family inKconfigand defconfigarch/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/Makefilecreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct-dmp.dtscreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct.dtsi
Hi Sebastian,
Quoted 12 lines · On Thu, 30 Jul 2015 11:57:27 +0200 Sebastian Hesselbarth…
Quoted 8 lines · Jisheng Zhang
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 v4:
- rebased on the latest next treeJisheng,
Quoted 8 lines
some git basics, so you get a better idea of the merge process:
Please do not base your patches on linux-next. It is not a stable branch I can refer to. Also, if there was any dependency with another feature that your patches require, you should mention that dependency by pointing out either a floating patch set or even better a _stable_ topic branch of the feature that will be added in the same cycle you expect your patches to be merged.
Got it. Thanks for the kindly remind. There's only one dependency:
"arm64: Split out platform options to separate Kconfig" from Olof.
Quoted 2 lines
AFAIKS, there is no dependency at all so please just base them on -rc1
I'd like to learn more to avoid future inconvenience. This means it's better to rebase on 4.2-rc, right?
Another question is: could patches be based on arm-soc tree if necessary? for example: if I need the "arm64: Split out platform options to separate Kconfig" commit.
Quoted 5 lines
(No need to resend, I can take care of it).
Anyway, I am fine with the series and it has been out for a while now. I pick it up, let is set on linux-next for a while and send out a topic PR at the end of the week.
Thanks a lot,
Jisheng
Quoted 38 lines
Thanks!
Sebastian
Quoted 33 lines
- adopt Sebastian suggestions such as: move osc out of "/soc" node, use "Marvell BG4CT DMP board" as model, etc.
- use correct memory size for BG4CT DMP. The total DDR size is 2GB, we startfrom 0x01000000, so the avaiable linux memory should be 0x7f000000.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 SudeepSince v1:
- remove "earlyprintk" bootargs which doesn't work on arm64
- fixGICC_DIRsize 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 SudeepJisheng Zhang (2):
arm64: dts: Add dts files for Marvell Berlin4CT SoC
arm64: Enable Marvell Berlin SoC family inKconfigand defconfigarch/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/Makefilecreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct-dmp.dtscreate mode 100644arch/arm64/boot/dts/marvell/berlin4ct.dtsi
Quoted 24 lines · Jisheng Zhang
Quoted 12 lines · On Thu, 30 Jul 2015 11:57:27 +0200 Sebastian Hesselbarth…
Quoted 8 lines · Jisheng Zhang
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 v4:
- rebased on the latest next treeJisheng,
Quoted 8 lines
some git basics, so you get a better idea of the merge process:
Please do not base your patches on linux-next. It is not a stable branch I can refer to. Also, if there was any dependency with another feature that your patches require, you should mention that dependency by pointing out either a floating patch set or even better a _stable_ topic branch of the feature that will be added in the same cycle you expect your patches to be merged.
Quoted 2 lines
Got it. Thanks for the kindly remind. There's only one dependency:
"arm64: Split out platform options to separateKconfig" from Olof.
AFAIKS, the patch in question has been applied by Olof for the next cycle and after 4.2-rc2. You just name the patch, while Olof and I will have to work it out:
@Olof: Any specific branch you want me to base a potential PR for the initial Berlin4CT patches on? If you prefer to pick up the two patches directly, feel free to add my
Quoted 4 lines
Quoted 1 line
AFAIKS, there is no dependency at all so please just base them on -rc1
I'd like to learn more to avoid future inconvenience. This means it's better to rebase on 4.2-rc, right?
You can rebase on anything that is considered stable, i.e. my berlin/foo-for-4.x-n branches become stable as soon as I send out a PR to arm-soc. Before stable I can reorder/squash/fixup any patches in there (or anything that will change the commit hash). Once I declare it stable and anything needs to be changed, I'll have to apply proper patches or even apply revert patches.
Quoted 3 lines
Another question is: could patches be based on arm-soc tree if necessary? for example: if I need the "arm64: Split out platform options to separate
Kconfig" commit.
Not directly, arm-soc by itself has no stable branches I know of. But there may be stable topic branches that can be referred to but that will be worked out on single topics by arm-soc/subsystem maintainers and patch authors. Likely cross-subsystem patch sets or large patch sets will end up in topic branches.
Sebastian