add support for mws4 board
Subsystems (3)
PATCH 1/1 add support for mws4 board
mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity
--- arch/arm/dts/Makefile | 3 + arch/arm/dts/omap3-mws4-u-boot.dtsi | 14 ++ arch/arm/dts/omap3-mws4.dts | 137 ++++++++++++++ arch/arm/mach-omap2/omap3/Kconfig | 10 + board/ultratronik/mws4/Kconfig | 12 ++ board/ultratronik/mws4/MAINTAINERS | 6 + board/ultratronik/mws4/Makefile | 6 + board/ultratronik/mws4/default.env | 11 ++ board/ultratronik/mws4/mws4.c | 283 ++++++++++++++++++++++++++++ board/ultratronik/mws4/mws4.h | 203 ++++++++++++++++++++ configs/omap3_mws4_defconfig | 74 ++++++++ include/configs/omap3_mws4.h | 103 ++++++++++ 12 files changed, 862 insertions(+) create mode 100644 arch/arm/dts/omap3-mws4-u-boot.dtsi create mode 100644 arch/arm/dts/omap3-mws4.dts create mode 100644 board/ultratronik/mws4/Kconfig create mode 100644 board/ultratronik/mws4/MAINTAINERS create mode 100644 board/ultratronik/mws4/Makefile create mode 100644 board/ultratronik/mws4/default.env create mode 100644 board/ultratronik/mws4/mws4.c create mode 100644 board/ultratronik/mws4/mws4.h create mode 100644 configs/omap3_mws4_defconfig create mode 100644 include/configs/omap3_mws4.h
arch/arm/dts/Makefile +3 -0
@@ -1047,6 +1047,9 @@ dtb-$(CONFIG_TARGET_OMAP3_BEAGLE) += \ omap3-beagle-xm.dtb \ omap3-beagle.dtb +dtb-$(CONFIG_TARGET_OMAP3_MWS4) += \ + omap3-mws4.dtb + dtb-$(CONFIG_TARGET_OMAP3_IGEP00X0) += \ omap3-igep0020.dtb
arch/arm/dts/omap3-mws4-u-boot.dtsi new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * U-Boot additions + * + * (C) Copyright 2017 Derald D. Woods <[email protected]> + */ + +#include "omap3-u-boot.dtsi" + +/ { + chosen { + stdout-path = &uart3; + }; +};
arch/arm/dts/omap3-mws4.dts new file +137 -0
137 lines not on this page · raw message
arch/arm/mach-omap2/omap3/Kconfig +10 -0
@@ -43,6 +43,15 @@ config TARGET_OMAP3_BEAGLE select OMAP3_GPIO_6 imply CMD_DM +config TARGET_OMAP3_MWS4 + bool "Ultratrokik OMAP3 MWS4" + select DM + select DM_GPIO + select DM_SERIAL + select OMAP3_GPIO_5 + select OMAP3_GPIO_6 + imply CMD_DM + config TARGET_CM_T35 bool "CompuLab CM-T3530 and CM-T3730 boards" select OMAP3_GPIO_2
@@ -162,5 +171,6 @@ source "board/isee/igep00x0/Kconfig" source "board/logicpd/omap3som/Kconfig" source "board/nokia/rx51/Kconfig" source "board/lg/sniper/Kconfig" +source "board/ultratronik/mws4/Kconfig" endif
board/ultratronik/mws4/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_OMAP3_MWS4 + +config SYS_BOARD + default "mws4" + +config SYS_VENDOR + default "ultratronik" + +config SYS_CONFIG_NAME + default "omap3_mws4" + +endif
board/ultratronik/mws4/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +MWS4 BfS +M: M. Ulbricht <[email protected]> +S: Maintained +F: board/ultratronik/mws4/ +F: include/configs/omap3_mws4.h +F: configs/omap3_mws4_defconfig
board/ultratronik/mws4/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2000, 2001, 2002 +# Wolfgang Denk, DENX Software Engineering, [email protected]. + +obj-y := mws4.o
board/ultratronik/mws4/default.env new file +11 -0
@@ -0,0 +1,11 @@ +arch=arm +baudrate=115200 +board=mws4 +board_name=mws4 +bootargs=console=ttyS2,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait +boot_sd=fatload mmc 0 0x80000000 uImage; fatload mmc 0 0x89000000 omap3-mws4.dtb; bootm 0x80000000 - 0x89000000 +boot_nand=nand read.e 0x80000000 0x140000 0xA00000;nand read.e 0x89000000 0x120000 0x20000;bootm 0x80000000 - 0x89000000 +bootmode_nand=setenv bootcmd run boot_nand;setenv bootargs 'console=ttyS2,115200 ubi.mtd=5 root=ubi0:rootfs rootfstype=ubifs rw rootwait';saveenv +bootmode_sd=setenv bootcmd run boot_sd; setenv bootargs 'console=ttyS2,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait';saveenv +flash_kernel=fatload mmc 0 0x80000000 uImage;nand erase 0x140000 0xA00000;nand write.e 0x80000000 0x140000 0xA00000;fatload mmc 0 0x89000000 omap3-mws4.dtb;nand erase 0x120000 0x20000;nand write.e 0x89000000 0x120000 0x20000 +bootcmd=run boot_sd
board/ultratronik/mws4/mws4.c new file +283 -0
283 lines not on this page · raw message
board/ultratronik/mws4/mws4.h new file +203 -0
203 lines not on this page · raw message
configs/omap3_mws4_defconfig new file +74 -0
74 lines not on this page · raw message
include/configs/omap3_mws4.h new file +103 -0
103 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 4 lines · Marian Ulbricht
mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity
Signed-off-by Marian Ulbricht <[email protected]>
Thanks for the submission. Have you submitted the board dts files to upstream Linux? Also, please remove all of the commented out code in the board files, etc.
Signature · 1 line
Tom
Am 08.05.22 um 16:21 schrieb Tom Rini:
Quoted 11 lines · Marian Ulbricht
Quoted 5 lines
mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity
Signed-off-by Marian Ulbricht <[email protected]>Thanks for the submission. Have you submitted the board dts files to upstream Linux? Also, please remove all of the commented out code in the board files, etc.
Hi,
not yet, i started from bottom up: u-boot -> buildroot -> kernel
[PATCH 1/1 v2] add support for mws4 board
mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity
---
Changes v2:
* code cleanup
arch/arm/dts/Makefile | 3 + arch/arm/dts/omap3-mws4-u-boot.dtsi | 14 ++ arch/arm/dts/omap3-mws4.dts | 137 +++++++++++++++++ arch/arm/mach-omap2/omap3/Kconfig | 10 ++ board/ultratronik/mws4/Kconfig | 12 ++ board/ultratronik/mws4/MAINTAINERS | 6 + board/ultratronik/mws4/Makefile | 6 + board/ultratronik/mws4/default.env | 11 ++ board/ultratronik/mws4/mws4.c | 226 ++++++++++++++++++++++++++++ board/ultratronik/mws4/mws4.h | 203 +++++++++++++++++++++++++ configs/omap3_mws4_defconfig | 74 +++++++++ include/configs/omap3_mws4.h | 100 ++++++++++++ 12 files changed, 802 insertions(+) create mode 100644 arch/arm/dts/omap3-mws4-u-boot.dtsi create mode 100644 arch/arm/dts/omap3-mws4.dts create mode 100644 board/ultratronik/mws4/Kconfig create mode 100644 board/ultratronik/mws4/MAINTAINERS create mode 100644 board/ultratronik/mws4/Makefile create mode 100644 board/ultratronik/mws4/default.env create mode 100644 board/ultratronik/mws4/mws4.c create mode 100644 board/ultratronik/mws4/mws4.h create mode 100644 configs/omap3_mws4_defconfig create mode 100644 include/configs/omap3_mws4.h
arch/arm/dts/Makefile +3 -0
@@ -1047,6 +1047,9 @@ dtb-$(CONFIG_TARGET_OMAP3_BEAGLE) += \ omap3-beagle-xm.dtb \ omap3-beagle.dtb +dtb-$(CONFIG_TARGET_OMAP3_MWS4) += \ + omap3-mws4.dtb + dtb-$(CONFIG_TARGET_OMAP3_IGEP00X0) += \ omap3-igep0020.dtb
arch/arm/dts/omap3-mws4-u-boot.dtsi new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * U-Boot additions + * + * (C) Copyright 2017 Derald D. Woods <[email protected]> + */ + +#include "omap3-u-boot.dtsi" + +/ { + chosen { + stdout-path = &uart3; + }; +};
arch/arm/dts/omap3-mws4.dts new file +137 -0
137 lines not on this page · raw message
arch/arm/mach-omap2/omap3/Kconfig +10 -0
@@ -43,6 +43,15 @@ config TARGET_OMAP3_BEAGLE select OMAP3_GPIO_6 imply CMD_DM +config TARGET_OMAP3_MWS4 + bool "Ultratrokik OMAP3 MWS4" + select DM + select DM_GPIO + select DM_SERIAL + select OMAP3_GPIO_5 + select OMAP3_GPIO_6 + imply CMD_DM + config TARGET_CM_T35 bool "CompuLab CM-T3530 and CM-T3730 boards" select OMAP3_GPIO_2
@@ -162,5 +171,6 @@ source "board/isee/igep00x0/Kconfig" source "board/logicpd/omap3som/Kconfig" source "board/nokia/rx51/Kconfig" source "board/lg/sniper/Kconfig" +source "board/ultratronik/mws4/Kconfig" endif
board/ultratronik/mws4/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_OMAP3_MWS4 + +config SYS_BOARD + default "mws4" + +config SYS_VENDOR + default "ultratronik" + +config SYS_CONFIG_NAME + default "omap3_mws4" + +endif
board/ultratronik/mws4/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +MWS4 BfS +M: M. Ulbricht <[email protected]> +S: Maintained +F: board/ultratronik/mws4/ +F: include/configs/omap3_mws4.h +F: configs/omap3_mws4_defconfig
board/ultratronik/mws4/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2000, 2001, 2002 +# Wolfgang Denk, DENX Software Engineering, [email protected]. + +obj-y := mws4.o
board/ultratronik/mws4/default.env new file +11 -0
@@ -0,0 +1,11 @@ +arch=arm +baudrate=115200 +board=mws4 +board_name=mws4 +bootargs=console=ttyS2,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait +boot_sd=fatload mmc 0 0x80000000 uImage; fatload mmc 0 0x89000000 omap3-mws4.dtb; bootm 0x80000000 - 0x89000000 +boot_nand=nand read.e 0x80000000 0x140000 0xA00000;nand read.e 0x89000000 0x120000 0x20000;bootm 0x80000000 - 0x89000000 +bootmode_nand=setenv bootcmd run boot_nand;setenv bootargs 'console=ttyS2,115200 ubi.mtd=5 root=ubi0:rootfs rootfstype=ubifs rw rootwait';saveenv +bootmode_sd=setenv bootcmd run boot_sd; setenv bootargs 'console=ttyS2,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait';saveenv +flash_kernel=fatload mmc 0 0x80000000 uImage;nand erase 0x140000 0xA00000;nand write.e 0x80000000 0x140000 0xA00000;fatload mmc 0 0x89000000 omap3-mws4.dtb;nand erase 0x120000 0x20000;nand write.e 0x89000000 0x120000 0x20000 +bootcmd=run boot_sd
board/ultratronik/mws4/mws4.c new file +226 -0
226 lines not on this page · raw message
board/ultratronik/mws4/mws4.h new file +203 -0
203 lines not on this page · raw message
configs/omap3_mws4_defconfig new file +74 -0
74 lines not on this page · raw message
include/configs/omap3_mws4.h new file +100 -0
100 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 6 lines · Marian Ulbricht
Am 08.05.22 um 16:21 schrieb Tom Rini:
Quoted 5 lines · Marian Ulbricht
Quoted 4 lines
mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Marian Ulbricht <[email protected]>Thanks for the submission. Have you submitted the board dts files to upstream Linux? Also, please remove all of the commented out code in the board files, etc.
Hi,
not yet, i started from bottom up: u-boot -> buildroot -> kernel
OK. We require the board dts itself to be submitted to the kernel first, as we keep that as an unchanged copy of the file in upstream and try and sync them down periodically.
Quoted 10 lines
[PATCH 1/1 v2] add support for mws4 board
mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity
Signed-off-by Marian Ulbricht <[email protected]>---
Changes v2:* code cleanup
Note that there's a number of whitespace, etc, issues that checkpatch.pl reports. For the dts files, you can set that aside and follow what upstream says there, but the rest need to be addressed.
Signature · 1 line
Tom