arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)
Subsystems (3)
v5 cover arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)
From: "Ying-Chun Liu (PaulLiu)" <[email protected]>
*** BLURB HERE ***
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.
arch/arm/dts/Makefile | 2 + arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi | 131 ++ 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 | 69 + board/compulab/imx8mm-cl-iot-gate/spl.c | 187 ++ configs/imx8mm-cl-iot-gate_defconfig | 130 ++ include/configs/imx8mm-cl-iot-gate.h | 193 ++ 18 files changed, 8939 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/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.29.2
PATCH v5 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.
--- arch/arm/dts/Makefile | 2 + arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi | 131 +++++ arch/arm/dts/imx8mm-cl-iot-gate.dts | 554 ++++++++++++++++++++ 3 files changed, 687 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
@@ -1001,6 +1001,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 +131 -0
131 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.29.2
PATCH v5 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 dfu/pxeboot variable.
--- 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 | 69 + board/compulab/imx8mm-cl-iot-gate/spl.c | 187 ++ configs/imx8mm-cl-iot-gate_defconfig | 130 ++ include/configs/imx8mm-cl-iot-gate.h | 193 ++ 15 files changed, 8252 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/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
@@ -77,6 +77,13 @@ config TARGET_PHYCORE_IMX8MM select IMX8MM select SUPPORT_SPL select IMX8M_LPDDR4 + +config TARGET_IMX8MM_CL_IOT_GATE + bool "CompuLab iot-gate-imx8" + select IMX8MM + select SUPPORT_SPL + select IMX8M_LPDDR4 + endchoice source "board/freescale/imx8mq_evk/Kconfig"
@@ -88,5 +95,6 @@ source "board/technexion/pico-imx8mq/Kconfig" source "board/toradex/verdin-imx8mm/Kconfig" source "board/beacon/imx8mm/Kconfig" source "board/phytec/phycore_imx8mm/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 +69 -0
69 lines not on this page · 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 +130 -0
130 lines not on this page · raw message
include/configs/imx8mm-cl-iot-gate.h new file +193 -0
193 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.29.2
Part of the diff is not shown here. View the raw message.