arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)
Subsystems (3)
v8 cover arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)
From: "Ying-Chun Liu (PaulLiu)" <[email protected]>
Add initial support for Compulab iot-gate-imx8 board (imx8mm-cl-iot-gate). The initial support includes:
- MMC
- eMMC
- I2C
- FEC
- Serial console
Ying-Chun Liu (PaulLiu) (2):
arm: dts: add imx8mm-cl-iot-gate dts file
arm: imx8m: add support for Compulab iot-gate-imx8
(imx8mm-cl-iot-gate)
v2: Rename iot-gate-imx8 -> imx8mm-cl-iot-gate
v3: Use distro_bootcmd.
v4: Re-sent for adding changelog
v5: add eeprom and rtc node, clean redundant pinctrl node, add dfu/pxeboot variable.
v6: Rebase to latest master. Use abx80x rtc driver instead of emulation rtc.
v7: Rebase to latest master.
v8: Use binman
arch/arm/dts/Makefile | 2 + arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi | 255 +++ arch/arm/dts/imx8mm-cl-iot-gate.dts | 554 +++++ arch/arm/mach-imx/imx8m/Kconfig | 8 + board/compulab/imx8mm-cl-iot-gate/Kconfig | 12 + board/compulab/imx8mm-cl-iot-gate/MAINTAINERS | 6 + board/compulab/imx8mm-cl-iot-gate/Makefile | 13 + .../compulab/imx8mm-cl-iot-gate/ddr/Makefile | 8 + board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c | 211 ++ board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h | 26 + .../ddr/lpddr4_timing_01061010.1_2.c | 1848 +++++++++++++++++ .../ddr/lpddr4_timing_01061010.c | 1847 ++++++++++++++++ .../ddr/lpddr4_timing_ff000110.c | 1847 ++++++++++++++++ .../ddr/lpddr4_timing_ff020008.c | 1847 ++++++++++++++++ .../imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c | 71 + .../imximage-8mm-lpddr4.cfg | 9 + board/compulab/imx8mm-cl-iot-gate/spl.c | 187 ++ configs/imx8mm-cl-iot-gate_defconfig | 153 ++ include/configs/imx8mm-cl-iot-gate.h | 196 ++ 19 files changed, 9100 insertions(+) create mode 100644 arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi create mode 100644 arch/arm/dts/imx8mm-cl-iot-gate.dts create mode 100644 board/compulab/imx8mm-cl-iot-gate/Kconfig create mode 100644 board/compulab/imx8mm-cl-iot-gate/MAINTAINERS create mode 100644 board/compulab/imx8mm-cl-iot-gate/Makefile create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/Makefile create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/imximage-8mm-lpddr4.cfg create mode 100644 board/compulab/imx8mm-cl-iot-gate/spl.c create mode 100644 configs/imx8mm-cl-iot-gate_defconfig create mode 100644 include/configs/imx8mm-cl-iot-gate.h
Signature · 1 line
2.30.2
PATCH v8 1/2 arm: dts: add imx8mm-cl-iot-gate dts file
From: "Ying-Chun Liu (PaulLiu)" <[email protected]>
Add board dts for imx8mm-cl-iot-gate
---
v2: Rename iot-gate-imx8 -> imx8mm-cl-iot-gate
v4: Re-sent for adding changelog
v5: add eeprom and rtc node, clean redundant pinctrl node.
v7: rebase to master
v8: use binman
--- arch/arm/dts/Makefile | 2 + arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi | 255 +++++++++ arch/arm/dts/imx8mm-cl-iot-gate.dts | 554 ++++++++++++++++++++ 3 files changed, 811 insertions(+) create mode 100644 arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi create mode 100644 arch/arm/dts/imx8mm-cl-iot-gate.dts
arch/arm/dts/Makefile +2 -0
@@ -1078,6 +1078,8 @@ dtb-$(CONFIG_TARGET_DURIAN) += phytium-durian.dtb dtb-$(CONFIG_TARGET_PRESIDIO_ASIC) += ca-presidio-engboard.dtb +dtb-$(CONFIG_TARGET_IMX8MM_CL_IOT_GATE) += imx8mm-cl-iot-gate.dtb + targets += $(dtb-y) # Add any required device tree compiler flags here
arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi new file +255 -0
255 lines not on this page · raw message
arch/arm/dts/imx8mm-cl-iot-gate.dts new file +554 -0
554 lines not on this page · raw message
Signature · 1 line
2.30.2
PATCH v8 1/2 arm: dts: add imx8mm-cl-iot-gate dts file
Quoted 7 lines
From: "Ying-Chun Liu (PaulLiu)" <[email protected]> Add board dts for imx8mm-cl-iot-gate
Signed-off-by Kirill Kapranov <[email protected]>Signed-off-by Uri Mashiach <[email protected]>Signed-off-by Valentin Raevsky <[email protected]>Signed-off-by Ying-Chun Liu (PaulLiu) <[email protected]>Cc Peter Robinson <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH v8 2/2 arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)
In reply to Ying-Chun LiuFrom: "Ying-Chun Liu (PaulLiu)" <[email protected]>
Add initial support for Compulab iot-gate-imx8 board (imx8mm-cl-iot-gate). The initial support includes:
- MMC
- eMMC
- I2C
- FEC
- Serial console
---
v2: Rename iot-gate-imx8 -> imx8mm-cl-iot-gate
v3: Use distro_bootcmd.
v4: Re-sent for adding changelog
v5: add eeprom and rtc node, clean redundant pinctrl node, add dfu/pxeboot variable.
v6: Rebase to latest master. Use abx80x rtc driver instead of emulation rtc.
v7: Rebase to latest master.
v8: Use binman
--- arch/arm/mach-imx/imx8m/Kconfig | 8 + board/compulab/imx8mm-cl-iot-gate/Kconfig | 12 + board/compulab/imx8mm-cl-iot-gate/MAINTAINERS | 6 + board/compulab/imx8mm-cl-iot-gate/Makefile | 13 + .../compulab/imx8mm-cl-iot-gate/ddr/Makefile | 8 + board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c | 211 ++ board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h | 26 + .../ddr/lpddr4_timing_01061010.1_2.c | 1848 +++++++++++++++++ .../ddr/lpddr4_timing_01061010.c | 1847 ++++++++++++++++ .../ddr/lpddr4_timing_ff000110.c | 1847 ++++++++++++++++ .../ddr/lpddr4_timing_ff020008.c | 1847 ++++++++++++++++ .../imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c | 71 + .../imximage-8mm-lpddr4.cfg | 9 + board/compulab/imx8mm-cl-iot-gate/spl.c | 187 ++ configs/imx8mm-cl-iot-gate_defconfig | 153 ++ include/configs/imx8mm-cl-iot-gate.h | 196 ++ 16 files changed, 8289 insertions(+) create mode 100644 board/compulab/imx8mm-cl-iot-gate/Kconfig create mode 100644 board/compulab/imx8mm-cl-iot-gate/MAINTAINERS create mode 100644 board/compulab/imx8mm-cl-iot-gate/Makefile create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/Makefile create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c create mode 100644 board/compulab/imx8mm-cl-iot-gate/imximage-8mm-lpddr4.cfg create mode 100644 board/compulab/imx8mm-cl-iot-gate/spl.c create mode 100644 configs/imx8mm-cl-iot-gate_defconfig create mode 100644 include/configs/imx8mm-cl-iot-gate.h
arch/arm/mach-imx/imx8m/Kconfig +8 -0
@@ -106,6 +106,13 @@ config TARGET_PHYCORE_IMX8MP select IMX8MP select SUPPORT_SPL select IMX8M_LPDDR4 + +config TARGET_IMX8MM_CL_IOT_GATE + bool "CompuLab iot-gate-imx8" + select BINMAN + select IMX8MM + select SUPPORT_SPL + select IMX8M_LPDDR4 endchoice source "board/freescale/imx8mq_evk/Kconfig"
@@ -120,5 +127,6 @@ source "board/beacon/imx8mm/Kconfig" source "board/beacon/imx8mn/Kconfig" source "board/phytec/phycore_imx8mm/Kconfig" source "board/phytec/phycore_imx8mp/Kconfig" +source "board/compulab/imx8mm-cl-iot-gate/Kconfig" endif
board/compulab/imx8mm-cl-iot-gate/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_IMX8MM_CL_IOT_GATE + +config SYS_BOARD + default "imx8mm-cl-iot-gate" + +config SYS_VENDOR + default "compulab" + +config SYS_CONFIG_NAME + default "imx8mm-cl-iot-gate" + +endif
board/compulab/imx8mm-cl-iot-gate/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +Compulab IOT-GATE-iMX8 BOARD +M: Ying-Chun Liu (PaulLiu) <[email protected]> +S: Maintained +F: board/compulab/imx8mm-cl-iot-gate/ +F: include/configs/imx8mm-cl-iot-gate.h +F: configs/imx8mm-cl-iot-gate_defconfig
board/compulab/imx8mm-cl-iot-gate/Makefile new file +13 -0
@@ -0,0 +1,13 @@ +# +# Copyright 2018 NXP +# Copyright 2020 Linaro +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += imx8mm-cl-iot-gate.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +obj-y += ddr/ +endif
board/compulab/imx8mm-cl-iot-gate/ddr/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +obj-y += ddr.o +obj-y += lpddr4_timing_ff020008.o +obj-y += lpddr4_timing_ff000110.o +ifdef CONFIG_TARGET_MCM_IMX8M_MINI +obj-y += lpddr4_timing_01061010.o +else +obj-y += lpddr4_timing_01061010.1_2.o +endif
board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c new file +211 -0
211 lines not on this page · raw message
board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h new file +26 -0
@@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2017 NXP +* Copyright 2020 Linaro +* +*/ + +#ifndef __COMPULAB_DDR_H__ +#define __COMPULAB_DDR_H__ + +extern struct dram_timing_info ucm_dram_timing_ff020008; +extern struct dram_timing_info ucm_dram_timing_ff000110; +extern struct dram_timing_info ucm_dram_timing_01061010; + +void spl_dram_init_compulab (void ); + +#define TCM_DATA_CFG 0x7e0000 + +struct lpddr4_tcm_desc { +unsigned int size; +unsigned int sign; +unsigned int index; +unsigned int count; +}; + +#endif
board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c new file +1848 -0
1,848 lines not on this page · raw message
board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c new file +1847 -0
857 lines not on this page · raw message
board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c new file +1847 -0
1,847 lines not on this page · raw message
board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c new file +1847 -0
1,847 lines not on this page · raw message
board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c new file +71 -0
71 lines not on this page · raw message
board/compulab/imx8mm-cl-iot-gate/imximage-8mm-lpddr4.cfg new file +9 -0
Lines of this file are not shown. View the raw message.
board/compulab/imx8mm-cl-iot-gate/spl.c new file +187 -0
187 lines not on this page · raw message
configs/imx8mm-cl-iot-gate_defconfig new file +153 -0
153 lines not on this page · raw message
include/configs/imx8mm-cl-iot-gate.h new file +196 -0
196 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.30.2
Part of the diff is not shown here. View the raw message.
PATCH v8 2/2 arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)
Quoted 8 lines
From: "Ying-Chun Liu (PaulLiu)" <[email protected]>
Add initial support for Compulab iot-gate-imx8 board (imx8mm-cl-iot-gate). The initial support includes:
- MMC
- eMMC
- I2C
- FEC
- Serial console
Quoted 5 lines
Signed-off-by Kirill Kapranov <[email protected]>Signed-off-by Uri Mashiach <[email protected]>Signed-off-by Valentin Raevsky <[email protected]>Signed-off-by Ying-Chun Liu (PaulLiu) <[email protected]>Cc Peter Robinson <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================