arm: mvebu: Add Helios4 Armada 38x initial support
Subsystems (3)
PATCH 1/1 arm: mvebu: Add Helios4 Armada 38x initial support
From: Dennis Gilmore <[email protected]>
The helios4 is built on the SolidRun Armada 38x SOM. The port os based on the ClearFog board, using information from
https://github.com/helios-4/u-boot-marvell as well as dtb input from https://github.com/helios-4/linux-marvell
---
changes since RFC
add armada-38x-solidrun-microsom.dtsi minus buffer-memory nodes from linux kernel fix up maintainers file
use correct switch in README file
add SPDX header to kwbimage.cfg and dts file
Port to DM_I2C
Changes since V1
moved to kobol namespace at the request of the board supplier remove gpio resets they are clearfog specific
set maintainer to myself and update copyrights remove unused config options
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/armada-388-helios4.dts | 313 ++++++++++++++++++ .../arm/dts/armada-38x-solidrun-microsom.dtsi | 101 ++++++ arch/arm/mach-mvebu/Kconfig | 7 + board/kobol/helios4/MAINTAINERS | 6 + board/kobol/helios4/Makefile | 5 + board/kobol/helios4/README | 46 +++ board/kobol/helios4/helios4.c | 162 +++++++++ board/kobol/helios4/kwbimage.cfg | 13 + configs/helios4_defconfig | 58 ++++ include/configs/helios4.h | 172 ++++++++++ 11 files changed, 884 insertions(+) create mode 100644 arch/arm/dts/armada-388-helios4.dts create mode 100644 arch/arm/dts/armada-38x-solidrun-microsom.dtsi create mode 100644 board/kobol/helios4/MAINTAINERS create mode 100644 board/kobol/helios4/Makefile create mode 100644 board/kobol/helios4/README create mode 100644 board/kobol/helios4/helios4.c create mode 100644 board/kobol/helios4/kwbimage.cfg create mode 100644 configs/helios4_defconfig create mode 100644 include/configs/helios4.h
arch/arm/dts/Makefile +1 -0
@@ -91,6 +91,7 @@ dtb-$(CONFIG_ARCH_MVEBU) += \ armada-375-db.dtb \ armada-388-clearfog.dtb \ armada-388-gp.dtb \ + armada-388-helios4.dtb \ armada-385-amc.dtb \ armada-7040-db.dtb \ armada-7040-db-nand.dtb \
arch/arm/dts/armada-388-helios4.dts new file +313 -0
313 lines not on this page · raw message
arch/arm/dts/armada-38x-solidrun-microsom.dtsi new file +101 -0
101 lines not on this page · raw message
arch/arm/mach-mvebu/Kconfig +7 -0
@@ -75,6 +75,10 @@ config TARGET_CLEARFOG bool "Support ClearFog" select 88F6820 +config TARGET_HELIOS4 + bool "Support Helios4" + select 88F6820 + config TARGET_MVEBU_ARMADA_37XX bool "Support Armada 37xx platforms" select ARMADA_3700
@@ -132,6 +136,7 @@ endchoice config SYS_BOARD default "clearfog" if TARGET_CLEARFOG + default "helios4" if TARGET_HELIOS4 default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX default "db-88f6720" if TARGET_DB_88F6720 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
@@ -146,6 +151,7 @@ config SYS_BOARD config SYS_CONFIG_NAME default "clearfog" if TARGET_CLEARFOG + default "helios4" if TARGET_HELIOS4 default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX default "db-88f6720" if TARGET_DB_88F6720 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
@@ -166,6 +172,7 @@ config SYS_VENDOR default "Marvell" if TARGET_DB_88F6820_AMC default "Marvell" if TARGET_MVEBU_ARMADA_8K default "solidrun" if TARGET_CLEARFOG + default "kobol" if TARGET_HELIOS4 default "Synology" if TARGET_DS414 default "CZ.NIC" if TARGET_TURRIS_OMNIA default "CZ.NIC" if TARGET_TURRIS_MOX
board/kobol/helios4/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +HELIOS4 BOARD +M: Dennis Gilmore <[email protected]> +S: Maintained +F: board/kobol/helios4/ +F: include/configs/helios4.h +F: configs/helios4_defconfig
board/kobol/helios4/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2018 Dennis Gilmore <[email protected]> + +obj-y := helios4.o
board/kobol/helios4/README new file +46 -0
46 lines not on this page · raw message
board/kobol/helios4/helios4.c new file +162 -0
162 lines not on this page · raw message
board/kobol/helios4/kwbimage.cfg new file +13 -0
@@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2015 Stefan Roese <[email protected]> +# + +# Armada 38x use version 1 image format +VERSION 1 + +# Boot Media configurations +BOOT_FROM sdio + +# Binary Header (bin_hdr) with DDR3 training code +BINARY spl/u-boot-spl-dtb.bin 0000005b 00000068
configs/helios4_defconfig new file +58 -0
58 lines not on this page · raw message
include/configs/helios4.h new file +172 -0
172 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 1/1 arm: mvebu: Add Helios4 Armada 38x initial support
Gmail is stubbornly refusing to quote this *sigh*
PATCH 1/1 arm: mvebu: Add Helios4 Armada 38x initial support
In reply to dgilmore at redhat.comHi Dennis,
Quoted 17 lines · dgilmore at redhat.com
From: Dennis Gilmore <[email protected]>
The helios4 is built on the SolidRun Armada 38x SOM. The port os based on the ClearFog board, using information from
https://github.com/helios-4/u-boot-marvell as well as dtb input from https://github.com/helios-4/linux-marvellSigned-off-by Dennis Gilmore <[email protected]>Signed-off-by Dennis Gilmore <[email protected]>---
changes since RFC
addarmada-38x-solidrun-microsom.dtsiminus buffer-memory nodes from linux kernel fix up maintainers file
use correct switch in README file
add SPDX header to kwbimage.cfg and dts file
Port toDM_I2C
Quoted 5 lines
Changes since V1
moved to kobol namespace at the request of the board supplier remove gpio resets they are clearfog specific
set maintainer to myself and update copyrights remove unused config options
Before pulling this patch into mainline, I ran the checkpatch --git test as requested by Tom. This reveals some mostly minor issues:
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #51:
new file mode 100644
WARNING: line over 80 characters
#245: FILE: arch/arm/dts/armada-388-helios4.dts:190:
+ line-name = "usb-overcurrent-status";
CHECK: Prefer using the BIT macro
#617: FILE: board/kobol/helios4/helios4.c:22:
+#define ETH_PHY_CTRL_POWER_DOWN_MASK (1 << ETH_PHY_CTRL_POWER_DOWN_BIT)
WARNING: Missing a blank line after declarations
#730: FILE: board/kobol/helios4/helios4.c:135:
+ int ret;
+ ret = i2c_get_chip_for_busnum(0, io_exp[i].addr, 1, &dev);
ERROR: code indent should use tabs where possible
#890: FILE: include/configs/helios4.h:44:
+ CONFIG_SYS_SCSI_MAX_LUN)$
WARNING: please, no spaces at the start of a line
#890: FILE: include/configs/helios4.h:44:
+ CONFIG_SYS_SCSI_MAX_LUN)$
CHECK: Macro argument reuse 'func' - possible side-effects? #987: FILE: include/configs/helios4.h:141:
+#define BOOT_TARGET_DEVICES(func) \
+ BOOT_TARGET_DEVICES_MMC(func) \ + BOOT_TARGET_DEVICES_USB(func) \ + BOOT_TARGET_DEVICES_SATA(func) \ + func(PXE, pxe, na) \ + func(DHCP, dhcp, na)
total: 1 errors, 4 warnings, 2 checks, 914 lines checked
Could you please check and fix most of these issues (BIT macro, missing blank line, code indentation and space@start of line)?
Thanks,
Stefan