apalis imx8qm 4gb wb it v1.0b module support
Subsystems (6)
v3 cover apalis imx8qm 4gb wb it v1.0b module support
This series adds support for more lpuart instances, support for i2c0, i2c1, i2c2, i2c3, i2c4, fixes support for uSDHC2, fixes CPU frequency reporting, fixes fuse driver and last but not least introduces support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module.
This series is available together with the last few clean-up patches and the Colibri iMX8X patch series on our git server [1] as well.
[1] http://git.toradex.com/cgit/u-boot-toradex.git/log/?h=for-next
Changes in v3:
- no longer explicitly disable CONFIG_CMD_CRC32, CONFIG_CMD_EXPORTENV, CONFIG_CMD_IMLS and CONFIG_CMD_IMPORTENV
- increase max gunzip size (CONFIG_SYS_BOOTM_LEN) to 64 MB
- rename board file and folder to more generic apalis-imx8 to be used for all SKUs
- just exclusively use distro_bootcmd trying SD cards before eMMC
- enable FDT relocation
- added update_uboot helper wrapper as internally suggested by Igor
Changes in v2:
- Use firmware-imx-8.0 matching NXP's sumo-4.14.78-1.0.0_ga BSP as suggested by Max.
- Drop Qualcomm (formwerly Atheros) AR8031 specific board_phy_config() stuff not applicable to the Micrel PHY we are using as suggested by Max.
- Drop CONFIG_FEC_XCV_TYPE in favour of device tree configuration therof as suggested by Max.
Marcel Ziswiler (6):
arm: dts: imx8qm: add lpuart1, lpuart2, lpuart3, lpuart4
arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4
clk: imx8qm: fix usdhc2 clocks
imx8qm: fix cpu frequency reporting
imx8: fuse: fix fuse driver
board: toradex: add apalis imx8qm 4gb wb it v1.0b module support
arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi | 128 ++++ arch/arm/dts/fsl-imx8qm-apalis.dts | 615 ++++++++++++++++++ arch/arm/dts/fsl-imx8qm.dtsi | 155 +++++ arch/arm/mach-imx/imx8/Kconfig | 6 + arch/arm/mach-imx/imx8/cpu.c | 4 +- board/toradex/apalis-imx8/Kconfig | 30 + board/toradex/apalis-imx8/MAINTAINERS | 9 + board/toradex/apalis-imx8/Makefile | 6 + board/toradex/apalis-imx8/README | 66 ++ board/toradex/apalis-imx8/apalis-imx8.c | 149 +++++ .../apalis-imx8/apalis-imx8qm-imximage.cfg | 24 + configs/apalis-imx8qm_defconfig | 56 ++ drivers/clk/imx/clk-imx8qm.c | 18 + drivers/misc/imx8/fuse.c | 2 - include/configs/apalis-imx8.h | 131 ++++ 16 files changed, 1397 insertions(+), 3 deletions(-) create mode 100644 arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi create mode 100644 arch/arm/dts/fsl-imx8qm-apalis.dts create mode 100644 board/toradex/apalis-imx8/Kconfig create mode 100644 board/toradex/apalis-imx8/MAINTAINERS create mode 100644 board/toradex/apalis-imx8/Makefile create mode 100644 board/toradex/apalis-imx8/README create mode 100644 board/toradex/apalis-imx8/apalis-imx8.c create mode 100644 board/toradex/apalis-imx8/apalis-imx8qm-imximage.cfg create mode 100644 configs/apalis-imx8qm_defconfig create mode 100644 include/configs/apalis-imx8.h
Signature · 1 line
2.21.0
PATCH v3 1/6 arm: dts: imx8qm: add lpuart1, lpuart2, lpuart3, lpuart4
From: Marcel Ziswiler <[email protected]>
Add support for lpuart1, lpuart2, lpuart3 and lpuart4.
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/fsl-imx8qm.dtsi | 80 ++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+)
arch/arm/dts/fsl-imx8qm.dtsi +80 -0
@@ -22,6 +22,10 @@ ethernet0 = &fec1; ethernet1 = &fec2; serial0 = &lpuart0; + serial1 = &lpuart1; + serial2 = &lpuart2; + serial3 = &lpuart3; + serial4 = &lpuart4; mmc0 = &usdhc1; mmc1 = &usdhc2; mmc2 = &usdhc3;
@@ -193,6 +197,30 @@ power-domains = <&pd_dma>; wakeup-irq = <345>; }; + pd_dma_lpuart1: PD_DMA_UART1 { + reg = <SC_R_UART_1>; + #power-domain-cells = <0>; + power-domains = <&pd_dma>; + wakeup-irq = <346>; + }; + pd_dma_lpuart2: PD_DMA_UART2 { + reg = <SC_R_UART_2>; + #power-domain-cells = <0>; + power-domains = <&pd_dma>; + wakeup-irq = <347>; + }; + pd_dma_lpuart3: PD_DMA_UART3 { + reg = <SC_R_UART_3>; + #power-domain-cells = <0>; + power-domains = <&pd_dma>; + wakeup-irq = <348>; + }; + pd_dma_lpuart4: PD_DMA_UART4 { + reg = <SC_R_UART_4>; + #power-domain-cells = <0>; + power-domains = <&pd_dma>; + wakeup-irq = <349>; + }; }; };
@@ -297,6 +325,58 @@ status = "disabled"; }; + lpuart1: serial at 5a070000 { + compatible = "fsl,imx8qm-lpuart"; + reg = <0x0 0x5a070000 0x0 0x1000>; + interrupts = <GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8QM_UART1_CLK>, + <&clk IMX8QM_UART1_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_UART1_CLK>; + assigned-clock-rates = <80000000>; + power-domains = <&pd_dma_lpuart1>; + status = "disabled"; + }; + + lpuart2: serial at 5a080000 { + compatible = "fsl,imx8qm-lpuart"; + reg = <0x0 0x5a080000 0x0 0x1000>; + interrupts = <GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8QM_UART2_CLK>, + <&clk IMX8QM_UART2_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_UART2_CLK>; + assigned-clock-rates = <80000000>; + power-domains = <&pd_dma_lpuart2>; + status = "disabled"; + }; + + lpuart3: serial at 5a090000 { + compatible = "fsl,imx8qm-lpuart"; + reg = <0x0 0x5a090000 0x0 0x1000>; + interrupts = <GIC_SPI 348 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8QM_UART3_CLK>, + <&clk IMX8QM_UART3_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_UART3_CLK>; + assigned-clock-rates = <80000000>; + power-domains = <&pd_dma_lpuart3>; + status = "disabled"; + }; + + lpuart4: serial at 5a0a0000 { + compatible = "fsl,imx8qm-lpuart"; + reg = <0x0 0x5a0a0000 0x0 0x1000>; + interrupts = <GIC_SPI 349 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8QM_UART4_CLK>, + <&clk IMX8QM_UART4_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_UART4_CLK>; + assigned-clock-rates = <80000000>; + power-domains = <&pd_dma_lpuart4>; + status = "disabled"; + }; + usdhc1: usdhc at 5b010000 { compatible = "fsl,imx8qm-usdhc", "fsl,imx6sl-usdhc"; interrupt-parent = <&gic>;
Signature · 1 line
2.21.0
PATCH v3 1/6 arm: dts: imx8qm: add lpuart1, lpuart2,
Quoted 4 lines
From: Marcel Ziswiler <[email protected]> Add support for lpuart1, lpuart2, lpuart3 and lpuart4.
Signed-off-by Marcel Ziswiler <[email protected]>Reviewed-by Max Krummenacher <[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 v3 2/6 arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Add support for i2c0, i2c1, i2c2, i2c3 and i2c4.
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/fsl-imx8qm.dtsi | 75 ++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+)
arch/arm/dts/fsl-imx8qm.dtsi +75 -0
@@ -29,6 +29,11 @@ mmc0 = &usdhc1; mmc1 = &usdhc2; mmc2 = &usdhc3; + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; + i2c4 = &i2c4; }; memory at 80000000 {
@@ -224,6 +229,76 @@ }; }; + i2c0: i2c at 5a800000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a800000 0x0 0x4000>; + interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + clocks = <&clk IMX8QM_I2C0_CLK>, + <&clk IMX8QM_I2C0_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_I2C0_CLK>; + assigned-clock-rates = <24000000>; + power-domains = <&pd_dma_lpi2c0>; + status = "disabled"; + }; + + i2c1: i2c at 5a810000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a810000 0x0 0x4000>; + interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + clocks = <&clk IMX8QM_I2C1_CLK>, + <&clk IMX8QM_I2C1_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_I2C1_CLK>; + assigned-clock-rates = <24000000>; + power-domains = <&pd_dma_lpi2c1>; + status = "disabled"; + }; + + i2c2: i2c at 5a820000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a820000 0x0 0x4000>; + interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + clocks = <&clk IMX8QM_I2C2_CLK>, + <&clk IMX8QM_I2C2_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_I2C2_CLK>; + assigned-clock-rates = <24000000>; + power-domains = <&pd_dma_lpi2c2>; + status = "disabled"; + }; + + i2c3: i2c at 5a830000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a830000 0x0 0x4000>; + interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + clocks = <&clk IMX8QM_I2C3_CLK>, + <&clk IMX8QM_I2C3_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_I2C3_CLK>; + assigned-clock-rates = <24000000>; + power-domains = <&pd_dma_lpi2c3>; + status = "disabled"; + }; + + i2c4: i2c at 5a840000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a840000 0x0 0x4000>; + interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + clocks = <&clk IMX8QM_I2C4_CLK>, + <&clk IMX8QM_I2C4_IPG_CLK>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX8QM_I2C4_CLK>; + assigned-clock-rates = <24000000>; + power-domains = <&pd_dma_lpi2c4>; + status = "disabled"; + }; + gpio0: gpio at 5d080000 { compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio"; reg = <0x0 0x5d080000 0x0 0x10000>;
Signature · 1 line
2.21.0
PATCH v3 2/6 arm: dts: imx8qm: add support for i2c0, i2c1,
Quoted 4 lines
From: Marcel Ziswiler <[email protected]> Add support for i2c0, i2c1, i2c2, i2c3 and i2c4.
Signed-off-by Marcel Ziswiler <[email protected]>Reviewed-by Max Krummenacher <[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 v3 3/6 clk: imx8qm: fix usdhc2 clocks
In reply to Marcel ZiswilerTrying to bring up uSDHC2 the following error message was observed:
MMC: imx8_clk_set_rate(Invalid clk ID #60)imx8_clk_set_rate(Invalid clk ID #60)
usdhc at 5b030000 - probe failed: -22
This commit fixes this by properly setting resp. clocks.
---
Changes in v3: None
Changes in v2: None
drivers/clk/imx/clk-imx8qm.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
drivers/clk/imx/clk-imx8qm.c +18 -0
@@ -80,6 +80,12 @@ ulong imx8_clk_get_rate(struct clk *clk) resource =SC_R_SDHC_1 ; pm_clk =SC_PM_CLK_PER ;break ; +case IMX8QM_SDHC2_IPG_CLK : +case IMX8QM_SDHC2_CLK : +case IMX8QM_SDHC2_DIV : + resource =SC_R_SDHC_2 ; + pm_clk =SC_PM_CLK_PER ; +break ;case IMX8QM_UART0_IPG_CLK :case IMX8QM_UART0_CLK : resource =SC_R_UART_0 ;
@@ -185,6 +191,12 @@ ulong imx8_clk_set_rate(struct clk *clk, unsigned long rate) resource =SC_R_SDHC_1 ; pm_clk =SC_PM_CLK_PER ;break ; +case IMX8QM_SDHC2_IPG_CLK : +case IMX8QM_SDHC2_CLK : +case IMX8QM_SDHC2_DIV : + resource =SC_R_SDHC_2 ; + pm_clk =SC_PM_CLK_PER ; +break ;case IMX8QM_ENET0_IPG_CLK :case IMX8QM_ENET0_AHB_CLK :case IMX8QM_ENET0_REF_DIV :
@@ -273,6 +285,12 @@ int __imx8_clk_enable(struct clk *clk, bool enable) resource =SC_R_SDHC_1 ; pm_clk =SC_PM_CLK_PER ;break ; +case IMX8QM_SDHC2_IPG_CLK : +case IMX8QM_SDHC2_CLK : +case IMX8QM_SDHC2_DIV : + resource =SC_R_SDHC_2 ; + pm_clk =SC_PM_CLK_PER ; +break ;case IMX8QM_ENET0_IPG_CLK :case IMX8QM_ENET0_AHB_CLK :case IMX8QM_ENET0_REF_DIV :
Signature · 1 line
2.21.0
PATCH v3 3/6 clk: imx8qm: fix usdhc2 clocks
Quoted 7 lines
Trying to bring up uSDHC2 the following error message was observed:
MMC:imx8_clk_set_rate(Invalid clk ID #60)imx8_clk_set_rate(Invalid clk ID #60)
usdhc at5b030000- probe failed: -22
This commit fixes this by properly setting resp. clocks.Signed-off-by Marcel Ziswiler <[email protected]>Reviewed-by Max Krummenacher <[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 v3 4/6 imx8qm: fix cpu frequency reporting
In reply to Marcel ZiswilerCPU frequency reporting failed with the following error message being printed:
sc_pm_get_clock_rate: resource:507 clk:2: res:3
Could not read CPU frequency: -22
CPU: NXP i.MX8QM RevB A53 at 0 MHz
Fix this by differentiating between the A35 as found on the i.MX 8QXP and the A53 as found on the i.MX 8QM SoCs.
---
Changes in v3: None
Changes in v2: None
arch/arm/mach-imx/imx8/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/mach-imx/imx8/cpu.c +3 -1
@@ -623,8 +623,10 @@ static ulong imx8_get_cpu_rate(void) {ulong rate;int ret; +int type =is_cortex_a35 () ?SC_R_A35 :is_cortex_a53 () ? +SC_R_A53 :SC_R_A72 ; - ret =sc_pm_get_clock_rate (-1 ,SC_R_A35 ,SC_PM_CLK_CPU , + ret =sc_pm_get_clock_rate (-1 , type,SC_PM_CLK_CPU , (sc_pm_clock_rate_t *)&rate);if (ret) {printf ("Could not read CPU frequency: %d\n" , ret);
Signature · 1 line
2.21.0
PATCH v3 4/6 imx8qm: fix cpu frequency reporting
Quoted 9 lines
CPU frequency reporting failed with the following error message being printed:
sc_pm_get_clock_rate: resource:507 clk:2: res:3
Could not read CPU frequency: -22
CPU: NXP i.MX8QM RevB A53 at 0 MHz
Fix this by differentiating between the A35 as found on the i.MX 8QXP and the A53 as found on the i.MX 8QM SoCs.Signed-off-by Marcel Ziswiler <[email protected]>Reviewed-by Max Krummenacher <[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 v3 5/6 imx8: fuse: fix fuse driver
In reply to Marcel ZiswilerThis fixes the i.MX 8 fuse driver to actually build for i.MX 8QM as well.
---
Changes in v3: None
Changes in v2: None
drivers/misc/imx8/fuse.c | 2 -- 1 file changed, 2 deletions(-)
drivers/misc/imx8/fuse.c +0 -2
@@ -15,13 +15,11 @@ DECLARE_GLOBAL_DATA_PTR;#define FSL_ECC_WORD_START_1 0x10#define FSL_ECC_WORD_END_1 0x10F -#ifdef CONFIG_IMX8QXP #define FSL_ECC_WORD_START_2 0x220#define FSL_ECC_WORD_END_2 0x31F#define FSL_QXP_FUSE_GAP_START 0x110#define FSL_QXP_FUSE_GAP_END 0x21F -#endif #define FSL_SIP_OTP_READ 0xc200000A#define FSL_SIP_OTP_WRITE 0xc200000B
Signature · 1 line
2.21.0
PATCH v3 5/6 imx8: fuse: fix fuse driver
Quoted 4 lines
This fixes the i.MX 8 fuse driver to actually build for i.MX 8QM as well.
Signed-off-by Marcel Ziswiler <[email protected]>Reviewed-by Max Krummenacher <[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 v3 6/6 board: toradex: add apalis imx8qm 4gb wb it v1.0b module support
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
This commit adds initial support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. Unlike the V1.0A early access samples exclusively booting from SD card, they are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC. U-Boot supports either booting from the on-module eMMC or may be used for recovery purpose using the universal update utility (uuu) aka mfgtools 3.0.
Functionality wise the following is known to be working:
- eMMC, 8-bit and 4-bit MMC/SD card slots
- Gigabit Ethernet
- GPIOs
- I2C
Unfortunately, there is no USB functionality for the i.MX 8QM as of yet.
---
Changes in v3:
- no longer explicitly disable CONFIG_CMD_CRC32, CONFIG_CMD_EXPORTENV, CONFIG_CMD_IMLS and CONFIG_CMD_IMPORTENV
- increase max gunzip size (CONFIG_SYS_BOOTM_LEN) to 64 MB
- rename board file and folder to more generic apalis-imx8 to be used for all SKUs
- just exclusively use distro_bootcmd trying SD cards before eMMC
- enable FDT relocation
- added update_uboot helper wrapper as internally suggested by Igor
Changes in v2:
- Use firmware-imx-8.0 matching NXP's sumo-4.14.78-1.0.0_ga BSP as suggested by Max.
- Drop Qualcomm (formwerly Atheros) AR8031 specific board_phy_config() stuff not applicable to the Micrel PHY we are using as suggested by Max.
- Drop CONFIG_FEC_XCV_TYPE in favour of device tree configuration therof as suggested by Max.
arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi | 128 ++++ arch/arm/dts/fsl-imx8qm-apalis.dts | 615 ++++++++++++++++++ arch/arm/mach-imx/imx8/Kconfig | 6 + board/toradex/apalis-imx8/Kconfig | 30 + board/toradex/apalis-imx8/MAINTAINERS | 9 + board/toradex/apalis-imx8/Makefile | 6 + board/toradex/apalis-imx8/README | 66 ++ board/toradex/apalis-imx8/apalis-imx8.c | 149 +++++ .../apalis-imx8/apalis-imx8qm-imximage.cfg | 24 + configs/apalis-imx8qm_defconfig | 56 ++ include/configs/apalis-imx8.h | 131 ++++ 12 files changed, 1221 insertions(+) create mode 100644 arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi create mode 100644 arch/arm/dts/fsl-imx8qm-apalis.dts create mode 100644 board/toradex/apalis-imx8/Kconfig create mode 100644 board/toradex/apalis-imx8/MAINTAINERS create mode 100644 board/toradex/apalis-imx8/Makefile create mode 100644 board/toradex/apalis-imx8/README create mode 100644 board/toradex/apalis-imx8/apalis-imx8.c create mode 100644 board/toradex/apalis-imx8/apalis-imx8qm-imximage.cfg create mode 100644 configs/apalis-imx8qm_defconfig create mode 100644 include/configs/apalis-imx8.h
arch/arm/dts/Makefile +1 -0
@@ -603,6 +603,7 @@ dtb-$(CONFIG_MX7) += imx7d-sdb.dtb \ dtb-$(CONFIG_ARCH_MX7ULP) += imx7ulp-evk.dtb dtb-$(CONFIG_ARCH_IMX8) += \ + fsl-imx8qm-apalis.dtb \ fsl-imx8qm-mek.dtb \ fsl-imx8qxp-colibri.dtb \ fsl-imx8qxp-mek.dtb
arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi new file +128 -0
128 lines not on this page · raw message
arch/arm/dts/fsl-imx8qm-apalis.dts new file +615 -0
615 lines not on this page · raw message
arch/arm/mach-imx/imx8/Kconfig +6 -0
@@ -27,6 +27,11 @@ choice prompt "i.MX8 board select" optional +config TARGET_APALIS_IMX8 + bool "Support Apalis iMX8 module" + select BOARD_LATE_INIT + select IMX8QM + config TARGET_COLIBRI_IMX8X bool "Support Colibri iMX8X module" select BOARD_LATE_INIT
@@ -46,6 +51,7 @@ endchoice source "board/freescale/imx8qm_mek/Kconfig" source "board/freescale/imx8qxp_mek/Kconfig" +source "board/toradex/apalis-imx8/Kconfig" source "board/toradex/colibri-imx8x/Kconfig" endif
board/toradex/apalis-imx8/Kconfig new file +30 -0
@@ -0,0 +1,30 @@ +if TARGET_APALIS_IMX8 + +config SYS_BOARD + default "apalis-imx8" + +config SYS_VENDOR + default "toradex" + +config SYS_CONFIG_NAME + default "apalis-imx8" + +config TDX_CFG_BLOCK + default y + +config TDX_HAVE_MMC + default y + +config TDX_CFG_BLOCK_DEV + default "0" + +config TDX_CFG_BLOCK_PART + default "1" + +# Toradex config block in eMMC, at the end of 1st "boot sector" +config TDX_CFG_BLOCK_OFFSET + default "-512" + +source "board/toradex/common/Kconfig" + +endif
board/toradex/apalis-imx8/MAINTAINERS new file +9 -0
@@ -0,0 +1,9 @@ +Apalis iMX8 +M: Marcel Ziswiler <[email protected]> +W: http://developer.toradex.com/software/linux/linux-software +S: Maintained +F: arch/arm/dts/fsl-imx8-apalis.dts +F: arch/arm/dts/fsl-imx8-apalis-u-boot.dtsi +F: board/toradex/apalis-imx8/ +F: configs/apalis-imx8qm_defconfig +F: include/configs/apalis-imx8.h
board/toradex/apalis-imx8/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright 2019 Toradex +# + +obj-y += apalis-imx8.o
board/toradex/apalis-imx8/README new file +66 -0
66 lines not on this page · raw message
board/toradex/apalis-imx8/apalis-imx8.c new file +149 -0
149 lines not on this page · raw message
board/toradex/apalis-imx8/apalis-imx8qm-imximage.cfg new file +24 -0
@@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2019 Toradex + * + * Refer doc/README.imx8image for more details about how-to configure + * and create imx8image boot image + */ + +#define __ASSEMBLY__ + +/* Boot from SD, sector size 0x400 */ +BOOT_FROM EMMC_FASTBOOT 0x400 +/* SoC type IMX8QM */ +SOC_TYPE IMX8QM +/* Append seco container image */ +APPEND mx8qm-ahab-container.img +/* Create the 2nd container */ +CONTAINER +/* Add scfw image with exec attribute */ +IMAGE SCU mx8qm-apalis-scfw-tcm.bin +/* Add ATF image with exec attribute */ +IMAGE A35 bl31.bin 0x80000000 +/* Add U-Boot image with load attribute */ +DATA A35 u-boot-dtb.bin 0x80020000
configs/apalis-imx8qm_defconfig new file +56 -0
56 lines not on this page · raw message
include/configs/apalis-imx8.h new file +131 -0
131 lines not on this page · raw message
Signature · 1 line
2.21.0
PATCH v3 6/6 board: toradex: add apalis imx8qm 4gb wb it
Quoted 14 lines
From: Marcel Ziswiler <[email protected]>
This commit adds initial support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. Unlike the V1.0A early access samples exclusively booting from SD card, they are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC. U-Boot supports either booting from the on-module eMMC or may be used for recovery purpose using the universal update utility (uuu) aka mfgtools 3.0.
Functionality wise the following is known to be working:
- eMMC, 8-bit and 4-bit MMC/SD card slots
- Gigabit Ethernet
- GPIOs
- I2C
Unfortunately, there is no USB functionality for the i.MX 8QM as of yet.
Quoted 2 lines
Signed-off-by Marcel Ziswiler <[email protected]>Reviewed-by Max Krummenacher <[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 =====================================================================