imx: add i.MX8ULP support
Subsystems (13)
v3 cover imx: add i.MX8ULP support
From: Peng Fan <[email protected]>
V3:
Fix build error which break 8MN, pass buildman for i.MX.
Select GPIO_EXTRA_HEADER for 8ULP to fix build break which caused by upstream change. Rebased
Drop 7ULP, since already been picked up.
Stefano, I see you have a PR to Tom, do you plan to pick up this patchset for a following PR, or I send a PR to your?
Thanks, Peng
V2:
Rebased and test on new revision silicon with upower included.
The i.MX 8ULP crossover applications processor family brings ultra-low power processing and advanced integrated security with EdgeLockTM secure enclave to the intelligent edge.
It includes an uPower core for handling power related functions.
This patchset is to add initial support for i.MX8ULP, with core soc functions, clock, dtsi, and evk board.
Peng Fan (24):
arm: imx: add i.MX8ULP basic Kconfig option
arm: imx: add i.MX8ULP cpu type and helper
arm: imx: sys_proto: move boot mode define to common header
arm: imx8ulp: support print cpu info
imx: imx8ulp: add get reset cause
arm: imx: basic i.MX8ULP support
arm: imx: parse-container: guard included header files
arm: imx: move container Kconfig under mach-imx
net: fec_mxc: support i.MX8ULP
driver: serial: fsl_lpuart: support i.MX8ULP
arm: imx8ulp: add clock support
drivers: mmc: fsl_esdhc_imx: support i.MX8ULP
arm: imx8ulp: disable wdog3
arm: imx8ulp: add rdc support
arm: imx8ulp: add trdc release request
arm: imx8ulp: release trdc and assign lpav from RTD to APD
imx8ulp: unify rdc functions
arm: imx8ulp: add dummy imx_get_mac_from_fuse
arm: imx8ulp: add iomuxc support
imx8ulp: soc: correct reset cause
imx8ulp: move struct mu_type to common header
imx8ulp: add upower api support
arm: dts: add i.MX8ULP dtsi
arm: imx: add i.MX8ULP EVK support
Ye Li (20):
arm: imx8: Move container parser and image to mach-imx common folder
arm: imx8: Move container image header file to mach-imx
arm: imx8ulp: add container support
driver: misc: Add MU and S400 API to communicate with Sentinel
pinctrl: Add pinctrl driver for imx8ulp
arm: imx8ulp: soc: Change to use CMC1 to get bootcfg
arm: imx8ulp: Enable full L2 cache in SPL
arm: imx8ulp: Update the reset vector in u-boot
drivers: misc: s400_api: Update S400_SUCCESS_IND to 0xd6
drivers: misc: imx8ulp: Add S400 API for image authentication
drivers: misc: imx8ulp: Update S400 API for release RDC
drivers: misc: s400_api: Update API for fuse read and write
arm: imx8ulp: release and configure XRDC at early phase
arm: imx8ulp: Probe the S400 MU device in arch init
arm: iMX8ULP: Add boot device relevant functions
arm: imx8ulp: Allocate DCNANO and MIPI_DSI to AD domain
driver: misc: imx8ulp: Add fuse driver for imx8ulp
imx8ulp: Use DGO_GP5 to get boot config
imx8ulp: Add workaround for eMMC boot
ddr: Add DDR driver for iMX8ULP
arch/arm/Kconfig | 11 +
arch/arm/Makefile | 4 +-
arch/arm/dts/Makefile | 3 +
arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 40 +
arch/arm/dts/imx8ulp-evk.dts | 223 ++++
arch/arm/dts/imx8ulp-pinfunc.h | 978 ++++++++++++++
arch/arm/dts/imx8ulp.dtsi | 728 +++++++++++
arch/arm/include/asm/arch-imx/cpu.h | 4 +
arch/arm/include/asm/arch-imx8ulp/cgc.h | 130 ++
arch/arm/include/asm/arch-imx8ulp/clock.h | 41 +
arch/arm/include/asm/arch-imx8ulp/ddr.h | 38 +
arch/arm/include/asm/arch-imx8ulp/gpio.h | 20 +
arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 162 +++
.../include/asm/arch-imx8ulp/imx8ulp-pins.h | 60 +
arch/arm/include/asm/arch-imx8ulp/iomux.h | 82 ++
arch/arm/include/asm/arch-imx8ulp/mu_hal.h | 12 +
arch/arm/include/asm/arch-imx8ulp/pcc.h | 139 ++
arch/arm/include/asm/arch-imx8ulp/rdc.h | 27 +
arch/arm/include/asm/arch-imx8ulp/s400_api.h | 41 +
arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 19 +
arch/arm/include/asm/arch-imx8ulp/upower.h | 15 +
arch/arm/include/asm/arch-mx7ulp/sys_proto.h | 9 -
arch/arm/include/asm/global_data.h | 5 +
.../asm/{arch-imx8 => mach-imx}/image.h | 2 +
arch/arm/include/asm/mach-imx/sys_proto.h | 13 +-
arch/arm/mach-imx/Kconfig | 15 +-
arch/arm/mach-imx/Makefile | 5 +
arch/arm/mach-imx/cmd_dek.c | 2 +-
.../{imx8/image.c => image-container.c} | 51 +-
arch/arm/mach-imx/imx8/Kconfig | 13 -
arch/arm/mach-imx/imx8/Makefile | 3 -
arch/arm/mach-imx/imx8/ahab.c | 2 +-
arch/arm/mach-imx/imx8ulp/Kconfig | 23 +
arch/arm/mach-imx/imx8ulp/Makefile | 11 +
arch/arm/mach-imx/imx8ulp/cgc.c | 455 +++++++
arch/arm/mach-imx/imx8ulp/clock.c | 397 ++++++
arch/arm/mach-imx/imx8ulp/iomux.c | 58 +
arch/arm/mach-imx/imx8ulp/lowlevel_init.S | 26 +
arch/arm/mach-imx/imx8ulp/pcc.c | 449 +++++++
arch/arm/mach-imx/imx8ulp/rdc.c | 411 ++++++
arch/arm/mach-imx/imx8ulp/soc.c | 544 ++++++++
arch/arm/mach-imx/imx8ulp/upower/Makefile | 6 +
arch/arm/mach-imx/imx8ulp/upower/upower_api.c | 486 +++++++
arch/arm/mach-imx/imx8ulp/upower/upower_api.h | 258 ++++
arch/arm/mach-imx/imx8ulp/upower/upower_hal.c | 179 +++
.../arm/mach-imx/{imx8 => }/parse-container.c | 4 +-
arch/arm/mach-imx/spl_imx_romapi.c | 172 ++-
board/freescale/imx8ulp_evk/Kconfig | 14 +
board/freescale/imx8ulp_evk/MAINTAINERS | 6 +
board/freescale/imx8ulp_evk/Makefile | 7 +
board/freescale/imx8ulp_evk/ddr_init.c | 207 +++
board/freescale/imx8ulp_evk/imx8ulp_evk.c | 67 +
board/freescale/imx8ulp_evk/lpddr4_timing.c | 1159 +++++++++++++++++
board/freescale/imx8ulp_evk/spl.c | 115 ++
configs/imx8ulp_evk_defconfig | 103 ++
drivers/Makefile | 1 +
drivers/ddr/imx/Kconfig | 1 +
drivers/ddr/imx/imx8ulp/Kconfig | 11 +
drivers/ddr/imx/imx8ulp/Makefile | 9 +
drivers/ddr/imx/imx8ulp/ddr_init.c | 217 +++
drivers/misc/Makefile | 1 +
drivers/misc/imx8ulp/Makefile | 4 +
drivers/misc/imx8ulp/fuse.c | 198 +++
drivers/misc/imx8ulp/imx8ulp_mu.c | 234 ++++
drivers/misc/imx8ulp/s400_api.c | 244 ++++
drivers/mmc/Kconfig | 2 +-
drivers/mmc/fsl_esdhc_imx.c | 12 +-
drivers/net/Kconfig | 2 +-
drivers/net/fec_mxc.c | 2 +-
drivers/pinctrl/nxp/Kconfig | 14 +
drivers/pinctrl/nxp/Makefile | 1 +
drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 44 +
include/configs/imx8ulp_evk.h | 107 ++
include/dt-bindings/clock/imx8ulp-clock.h | 247 ++++
include/fsl_lpuart.h | 2 +-
75 files changed, 9321 insertions(+), 86 deletions(-)
create mode 100644 arch/arm/dts/imx8ulp-evk-u-boot.dtsi
create mode 100644 arch/arm/dts/imx8ulp-evk.dts
create mode 100644 arch/arm/dts/imx8ulp-pinfunc.h
create mode 100644 arch/arm/dts/imx8ulp.dtsi
create mode 100644 arch/arm/include/asm/arch-imx8ulp/cgc.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/clock.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/ddr.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/gpio.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/imx-regs.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/imx8ulp-pins.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/iomux.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/mu_hal.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/pcc.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/rdc.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/s400_api.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/sys_proto.h
create mode 100644 arch/arm/include/asm/arch-imx8ulp/upower.h
rename arch/arm/include/asm/{arch-imx8 => mach-imx}/image.h (95%)
rename arch/arm/mach-imx/{imx8/image.c => image-container.c} (79%)
create mode 100644 arch/arm/mach-imx/imx8ulp/Kconfig
create mode 100644 arch/arm/mach-imx/imx8ulp/Makefile
create mode 100644 arch/arm/mach-imx/imx8ulp/cgc.c
create mode 100644 arch/arm/mach-imx/imx8ulp/clock.c
create mode 100644 arch/arm/mach-imx/imx8ulp/iomux.c
create mode 100644 arch/arm/mach-imx/imx8ulp/lowlevel_init.S
create mode 100644 arch/arm/mach-imx/imx8ulp/pcc.c
create mode 100644 arch/arm/mach-imx/imx8ulp/rdc.c
create mode 100644 arch/arm/mach-imx/imx8ulp/soc.c
create mode 100644 arch/arm/mach-imx/imx8ulp/upower/Makefile
create mode 100644 arch/arm/mach-imx/imx8ulp/upower/upower_api.c
create mode 100644 arch/arm/mach-imx/imx8ulp/upower/upower_api.h
create mode 100644 arch/arm/mach-imx/imx8ulp/upower/upower_hal.c
rename arch/arm/mach-imx/{imx8 => }/parse-container.c (98%)
create mode 100644 board/freescale/imx8ulp_evk/Kconfig
create mode 100644 board/freescale/imx8ulp_evk/MAINTAINERS
create mode 100644 board/freescale/imx8ulp_evk/Makefile
create mode 100644 board/freescale/imx8ulp_evk/ddr_init.c
create mode 100644 board/freescale/imx8ulp_evk/imx8ulp_evk.c
create mode 100644 board/freescale/imx8ulp_evk/lpddr4_timing.c
create mode 100644 board/freescale/imx8ulp_evk/spl.c
create mode 100644 configs/imx8ulp_evk_defconfig
create mode 100644 drivers/ddr/imx/imx8ulp/Kconfig
create mode 100644 drivers/ddr/imx/imx8ulp/Makefile
create mode 100644 drivers/ddr/imx/imx8ulp/ddr_init.c
create mode 100644 drivers/misc/imx8ulp/Makefile
create mode 100644 drivers/misc/imx8ulp/fuse.c
create mode 100644 drivers/misc/imx8ulp/imx8ulp_mu.c
create mode 100644 drivers/misc/imx8ulp/s400_api.c
create mode 100644 drivers/pinctrl/nxp/pinctrl-imx8ulp.c
create mode 100644 include/configs/imx8ulp_evk.h
create mode 100644 include/dt-bindings/clock/imx8ulp-clock.hSignature · 1 line
2.30.0
PATCH v3 1/44 arm: imx: add i.MX8ULP basic Kconfig option
From: Peng Fan <[email protected]>
Add i.MX8ULP related basic Kconfig option, which will be used later.
--- arch/arm/Kconfig | 11 +++++++++++ arch/arm/mach-imx/imx8ulp/Kconfig | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/arm/mach-imx/imx8ulp/Kconfig
arch/arm/Kconfig +11 -0
@@ -800,6 +800,15 @@ config ARCH_IMX8M select SUPPORT_SPL imply CMD_DM +config ARCH_IMX8ULP + bool "NXP i.MX8ULP platform" + select ARM64 + select DM + select OF_CONTROL + select SUPPORT_SPL + select GPIO_EXTRA_HEADER + imply CMD_DM + config ARCH_IMXRT bool "NXP i.MXRT platform" select CPU_V7M
@@ -1979,6 +1988,8 @@ source "arch/arm/mach-imx/imx8/Kconfig" source "arch/arm/mach-imx/imx8m/Kconfig" +source "arch/arm/mach-imx/imx8ulp/Kconfig" + source "arch/arm/mach-imx/imxrt/Kconfig" source "arch/arm/mach-imx/mxs/Kconfig"
arch/arm/mach-imx/imx8ulp/Kconfig new file +16 -0
@@ -0,0 +1,16 @@ +if ARCH_IMX8ULP + +config IMX8ULP + bool + select ARMV8_SPL_EXCEPTION_VECTORS + +config SYS_SOC + default "imx8ulp" + +choice + prompt "i.MX8ULP board select" + optional + +endchoice + +endif
Signature · 1 line
2.30.0
PATCH v3 1/44 arm: imx: add i.MX8ULP basic Kconfig option
Quoted 3 lines
From: Peng Fan <[email protected]>
Add i.MX8ULP related basicKconfigoption, which will be used later.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 2/44 arm: imx: add i.MX8ULP cpu type and helper
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add i.MX8ULP cpu type and helpers.
--- arch/arm/include/asm/arch-imx/cpu.h | 4 ++++ arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 11 +++++++++++ arch/arm/include/asm/mach-imx/sys_proto.h | 1 + arch/arm/mach-imx/imx8ulp/soc.c | 11 +++++++++++ 4 files changed, 27 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8ulp/sys_proto.h create mode 100644 arch/arm/mach-imx/imx8ulp/soc.c
arch/arm/include/asm/arch-imx/cpu.h +4 -0
@@ -50,8 +50,12 @@#define MXC_CPU_IMX8QXP_A0 0x90/* dummy ID */ #define MXC_CPU_IMX8QM 0x91/* dummy ID */ #define MXC_CPU_IMX8QXP 0x92/* dummy ID */ + +#define MXC_CPU_IMX8ULP 0xA1/* dummy ID */ +#define MXC_CPU_IMXRT1020 0xB4/* dummy ID */ #define MXC_CPU_IMXRT1050 0xB6/* dummy ID */ +#define MXC_CPU_MX7ULP 0xE1/* Temporally hard code */ #define MXC_CPU_VF610 0xF6/* dummy ID */
arch/arm/include/asm/arch-imx8ulp/sys_proto.h new file +11 -0
@@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2021 NXP +*/ + +#ifndef __ARCH_IMX8ULP_SYS_PROTO_H +#define __ARCH_NMX8ULP_SYS_PROTO_H + +#include <asm/mach-imx/sys_proto.h> + +#endif
arch/arm/include/asm/mach-imx/sys_proto.h +1 -0
@@ -51,6 +51,7 @@ struct bd_info;#define is_imx8md () (is_cpu_type(MXC_CPU_IMX8MD))#define is_imx8mql () (is_cpu_type(MXC_CPU_IMX8MQL))#define is_imx8qm () (is_cpu_type(MXC_CPU_IMX8QM)) +#define is_imx8ulp () (is_cpu_type(MXC_CPU_IMX8ULP))#define is_imx8mm () (is_cpu_type(MXC_CPU_IMX8MM) || is_cpu_type(MXC_CPU_IMX8MML) ||\ is_cpu_type(MXC_CPU_IMX8MMD) || is_cpu_type(MXC_CPU_IMX8MMDL) || \ is_cpu_type(MXC_CPU_IMX8MMS) || is_cpu_type(MXC_CPU_IMX8MMSL))
arch/arm/mach-imx/imx8ulp/soc.c new file +11 -0
@@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Copyright 2021 NXP +*/ + +#include <asm/arch/sys_proto.h> + +u32 get_cpu_rev (void ) +{ +return (MXC_CPU_IMX8ULP <<12 ) |CHIP_REV_1_0 ; +}
Signature · 1 line
2.30.0
PATCH v3 2/44 arm: imx: add i.MX8ULP cpu type and helper
Quoted 3 lines
From: Peng Fan <[email protected]>
Add i.MX8ULP cpu type and helpers.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 3/44 arm: imx: sys_proto: move boot mode define to common header
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
These defines could be reused by i.MX8ULP, so move them to common header.
--- arch/arm/include/asm/arch-mx7ulp/sys_proto.h | 9 --------- arch/arm/include/asm/mach-imx/sys_proto.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-)
arch/arm/include/asm/arch-mx7ulp/sys_proto.h +0 -9
@@ -8,14 +8,5 @@#include <asm/mach-imx/sys_proto.h> -#define BT0CFG_LPBOOT_MASK 0x1 -#define BT0CFG_DUALBOOT_MASK 0x2 - -enum bt_mode { -LOW_POWER_BOOT ,/* LP_BT = 1 */ -DUAL_BOOT ,/* LP_BT = 0, DUAL_BT = 1 */ -SINGLE_BOOT /* LP_BT = 0, DUAL_BT = 0 */ -}; -enum boot_device get_boot_device (void );#endif
arch/arm/include/asm/mach-imx/sys_proto.h +10 -0
@@ -178,6 +178,16 @@ enum boot_dev_type_e {extern struct rom_api *g_rom_api;#endif +/* For i.MX ULP */ +#define BT0CFG_LPBOOT_MASK 0x1 +#define BT0CFG_DUALBOOT_MASK 0x2 + +enum bt_mode { +LOW_POWER_BOOT ,/* LP_BT = 1 */ +DUAL_BOOT ,/* LP_BT = 0, DUAL_BT = 1 */ +SINGLE_BOOT /* LP_BT = 0, DUAL_BT = 0 */ +}; +u32 get_nr_cpus (void );u32 get_cpu_rev (void );u32 get_cpu_speed_grade_hz (void );
Signature · 1 line
2.30.0
PATCH v3 3/44 arm: imx: sys_proto: move boot mode define to common header
Quoted 4 lines
From: Peng Fan <[email protected]>
These defines could be reused by i.MX8ULP, so move them to common header.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 4/44 arm: imx8ulp: support print cpu info
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Support print cpu info. the clock function has not been added, it will be added in following patches.
--- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 3 + arch/arm/mach-imx/imx8ulp/soc.c | 59 +++++++++++++++++++ 2 files changed, 62 insertions(+)
arch/arm/include/asm/arch-imx8ulp/sys_proto.h +3 -0
@@ -8,4 +8,7 @@#include <asm/mach-imx/sys_proto.h> +extern unsigned long rom_pointer[]; + +enum bt_mode get_boot_mode (void );#endif
arch/arm/mach-imx/imx8ulp/soc.c +59 -0
68 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 4/44 arm: imx8ulp: support print cpu info
Quoted 4 lines
From: Peng Fan <[email protected]>
Support print cpu info. the clock function has not been added, it will be added in following patches.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 5/44 imx: imx8ulp: add get reset cause
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add get reset cause function to show what triggerred reset.
--- arch/arm/mach-imx/imx8ulp/soc.c | 69 +++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)
arch/arm/mach-imx/imx8ulp/soc.c +69 -0
@@ -32,6 +32,73 @@ enum bt_mode get_boot_mode(void)return LOW_POWER_BOOT ; } +#define CMC_SRS_TAMPER BIT(31) +#define CMC_SRS_SECURITY BIT(30) +#define CMC_SRS_TZWDG BIT(29) +#define CMC_SRS_JTAG_RST BIT(28) +#define CMC_SRS_CORE1 BIT(16) +#define CMC_SRS_LOCKUP BIT(15) +#define CMC_SRS_SW BIT(14) +#define CMC_SRS_WDG BIT(13) +#define CMC_SRS_PIN_RESET BIT(8) +#define CMC_SRS_WARM BIT(4) +#define CMC_SRS_HVD BIT(3) +#define CMC_SRS_LVD BIT(2) +#define CMC_SRS_POR BIT(1) +#define CMC_SRS_WUP BIT(0) + +static u32 reset_cause =-1 ; + +static char *get_reset_cause (char *ret) +{ +u32 cause1, cause =0 , srs =0 ; +void __iomem *reg_ssrs = (void __iomem *)(SRC_BASE_ADDR +0x88 ); +void __iomem *reg_srs = (void __iomem *)(SRC_BASE_ADDR +0x80 ); + +if (!ret) +return "null" ; + + srs =readl (reg_srs); + cause1 =readl (reg_ssrs); + + reset_cause = cause1; + + cause = cause1 & (CMC_SRS_POR |CMC_SRS_WUP |CMC_SRS_WARM ); + +switch (cause) { +case CMC_SRS_POR : +sprintf (ret,"%s" ,"POR" ); +break ; +case CMC_SRS_WUP : +sprintf (ret,"%s" ,"WUP" ); +break ; +case CMC_SRS_WARM : + cause = cause1 & (CMC_SRS_WDG |CMC_SRS_SW | +CMC_SRS_JTAG_RST ); +switch (cause) { +case CMC_SRS_WDG : +sprintf (ret,"%s" ,"WARM-WDG" ); +break ; +case CMC_SRS_SW : +sprintf (ret,"%s" ,"WARM-SW" ); +break ; +case CMC_SRS_JTAG_RST : +sprintf (ret,"%s" ,"WARM-JTAG" ); +break ; +default : +sprintf (ret,"%s" ,"WARM-UNKN" ); +break ; + } +break ; +default : +sprintf (ret,"%s-%X" ,"UNKN" , cause1); +break ; + } + +debug ("[%X] SRS[%X] %X - " , cause1, srs, srs ^ cause1); +return ret; +} +#if defined(CONFIG_DISPLAY_CPUINFO )const char *get_imx_type (u32 imxtype) {
@@ -50,6 +117,8 @@ int print_cpuinfo(void) (cpurev &0x000F0 ) >>4 , (cpurev &0x0000F ) >>0 , mxc_get_clock(MXC_ARM_CLK) / 1000000); +printf ("Reset cause: %s\n" ,get_reset_cause (cause)); +printf ("Boot mode: " );switch (get_boot_mode ()) {case LOW_POWER_BOOT :
Signature · 1 line
2.30.0
PATCH v3 5/44 imx: imx8ulp: add get reset cause
Quoted 3 lines
From: Peng Fan <[email protected]>
Add get reset cause function to show what triggerred reset.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 6/44 arm: imx: basic i.MX8ULP support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add basic i.MX8ULP support
For the MMU part, Using a simple way the calculate the MMU size to avoid default heavy calcaulation. And align address and size in the table settings to 2MB or 4GB as much as possible. So we can reduce the 4K page allocations in MMU table which will spends much time in create the page table
--- arch/arm/Makefile | 4 +- arch/arm/include/asm/arch-imx8ulp/clock.h | 34 ++++ arch/arm/include/asm/arch-imx8ulp/ddr.h | 38 +++++ arch/arm/include/asm/arch-imx8ulp/gpio.h | 20 +++ arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 136 ++++++++++++++++ .../include/asm/arch-imx8ulp/imx8ulp-pins.h | 60 +++++++ arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/imx8ulp/Makefile | 7 + arch/arm/mach-imx/imx8ulp/clock.c | 27 +++ arch/arm/mach-imx/imx8ulp/iomux.c | 4 + arch/arm/mach-imx/imx8ulp/lowlevel_init.S | 32 ++++ arch/arm/mach-imx/imx8ulp/soc.c | 154 +++++++++++++++++- 12 files changed, 513 insertions(+), 4 deletions(-) create mode 100644 arch/arm/include/asm/arch-imx8ulp/clock.h create mode 100644 arch/arm/include/asm/arch-imx8ulp/ddr.h create mode 100644 arch/arm/include/asm/arch-imx8ulp/gpio.h create mode 100644 arch/arm/include/asm/arch-imx8ulp/imx-regs.h create mode 100644 arch/arm/include/asm/arch-imx8ulp/imx8ulp-pins.h create mode 100644 arch/arm/mach-imx/imx8ulp/Makefile create mode 100644 arch/arm/mach-imx/imx8ulp/clock.c create mode 100644 arch/arm/mach-imx/imx8ulp/iomux.c create mode 100644 arch/arm/mach-imx/imx8ulp/lowlevel_init.S
arch/arm/Makefile +2 -2
@@ -107,11 +107,11 @@ libs-y += arch/arm/cpu/ libs-y += arch/arm/lib/ ifeq ($(CONFIG_SPL_BUILD),y) -ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m imx8 imxrt)) +ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_MX35)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m imx8 imx8ulp imxrt)) libs-y += arch/arm/mach-imx/ endif else -ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx7 mx7ulp mx31 mx35 mxs imx8m imx8 imxrt vf610)) +ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx7 mx7ulp mx31 mx35 mxs imx8m imx8 imx8ulp imxrt vf610)) libs-y += arch/arm/mach-imx/ endif endif
arch/arm/include/asm/arch-imx8ulp/clock.h new file +34 -0
@@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2020 NXP +*/ + +#ifndef _ASM_ARCH_IMX8ULP_CLOCK_H +#define _ASM_ARCH_IMX8ULP_CLOCK_H + +/* Mainly for compatible to imx common code. */ +enum mxc_clock { +MXC_ARM_CLK =0 , +MXC_AHB_CLK , +MXC_IPG_CLK , +MXC_UART_CLK , +MXC_CSPI_CLK , +MXC_AXI_CLK , +MXC_DDR_CLK , +MXC_ESDHC_CLK , +MXC_ESDHC2_CLK , +MXC_I2C_CLK , +}; + +u32 mxc_get_clock (enum mxc_clock clk); +u32 get_lpuart_clk (void ); +#ifdef CONFIG_SYS_I2C_IMX_LPI2C +int enable_i2c_clk (unsigned char enable,unsigned int i2c_num); +u32 imx_get_i2cclk (unsigned int i2c_num); +#endif +#ifdef CONFIG_MXC_OCOTP +void enable_ocotp_clk (unsigned char enable); +#endif +void init_clk_usdhc (u32 index); +void clock_init (void ); +#endif
arch/arm/include/asm/arch-imx8ulp/ddr.h new file +38 -0
@@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2020 NXP +*/ + +#ifndef __ASM_ARCH_IMX8ULP_DDR_H +#define __ASM_ARCH_IMX8ULP_DDR_H + +#include <asm/io.h> +#include <asm/types.h> + +struct dram_cfg_param { +unsigned int reg; +unsigned int val; +}; + +struct dram_timing_info2 { +/* ddr controller config */ +struct dram_cfg_param *ctl_cfg; +unsigned int ctl_cfg_num; +/* pi config */ +struct dram_cfg_param *pi_cfg; +unsigned int pi_cfg_num; +/* phy freq1 config */ +struct dram_cfg_param *phy_f1_cfg; +unsigned int phy_f1_cfg_num; +/* phy freq2 config */ +struct dram_cfg_param *phy_f2_cfg; +unsigned int phy_f2_cfg_num; +/* initialized drate table */ +unsigned int fsp_table[3 ]; +}; + +extern struct dram_timing_info2 dram_timing; + +int ddr_init (struct dram_timing_info2 *dram_timing); + +#endif
arch/arm/include/asm/arch-imx8ulp/gpio.h new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2020 NXP +*/ + +#ifndef __ASM_ARCH_IMX8ULP_GPIO_H +#define __ASM_ARCH_IMX8ULP_GPIO_H + +struct gpio_regs { +u32 gpio_pdor; +u32 gpio_psor; +u32 gpio_pcor; +u32 gpio_ptor; +u32 gpio_pdir; +u32 gpio_pddr; +u32 gpio_pidr; +u8 gpio_pxdr[32 ]; +}; + +#endif
arch/arm/include/asm/arch-imx8ulp/imx-regs.h new file +136 -0
136 lines not on this page · raw message
arch/arm/include/asm/arch-imx8ulp/imx8ulp-pins.h new file +60 -0
60 lines not on this page · raw message
arch/arm/mach-imx/Makefile +1 -0
@@ -227,6 +227,7 @@ obj-$(CONFIG_MX5) += mx5/ obj-$(CONFIG_MX6) += mx6/ obj-$(CONFIG_MX7) += mx7/ obj-$(CONFIG_ARCH_MX7ULP) += mx7ulp/ +obj-$(CONFIG_ARCH_IMX8ULP) += imx8ulp/ obj-$(CONFIG_IMX8M) += imx8m/ obj-$(CONFIG_ARCH_IMX8) += imx8/ obj-$(CONFIG_ARCH_IMXRT) += imxrt/
arch/arm/mach-imx/imx8ulp/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright 2020 NXP +# + +obj-y += lowlevel_init.o +obj-y += soc.o clock.o iomux.o
arch/arm/mach-imx/imx8ulp/clock.c new file +27 -0
@@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Copyright 2020 NXP +*/ + +#include <common.h> +#include <div64.h> +#include <asm/io.h> +#include <errno.h> +#include <asm/arch/clock.h> +#include <asm/arch/sys_proto.h> + +DECLARE_GLOBAL_DATA_PTR ; + +void clock_init (void ) +{ +} + +unsigned int mxc_get_clock (enum mxc_clock clk) +{ +return 0 ; +} + +u32 get_lpuart_clk (void ) +{ +return 24000000 ; +}
arch/arm/mach-imx/imx8ulp/iomux.c new file +4 -0
@@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Copyright 2020 NXP +*/
arch/arm/mach-imx/imx8ulp/lowlevel_init.S new file +32 -0
@@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2020 NXP + */ + +#include <config.h> + +.align 8 +.global rom_pointer +rom_pointer: + .space 256 + +/* + * Routine: save_boot_params (called after reset from start.S) + */ + +.global save_boot_params +save_boot_params: + /* The firmware provided ATAG/FDT address can be found in r2/x0 */ + adr x0, rom_pointer + stp x1, x2, [x0], #16 + stp x3, x4, [x0], #16 + + /* Returns */ + b save_boot_params_ret + +.global restore_boot_params +restore_boot_params: + adr x0, rom_pointer + ldp x1, x2, [x0], #16 + ldp x3, x4, [x0], #16 + ret
arch/arm/mach-imx/imx8ulp/soc.c +152 -2
171 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 6/44 arm: imx: basic i.MX8ULP support
Quoted 9 lines
From: Peng Fan <[email protected]>
Add basic i.MX8ULP support
For the MMU part, Using a simple way the calculate the MMU size to avoid default heavy calcaulation. And align address and size in the table settings to 2MB or 4GB as much as possible. So we can reduce the 4K page allocations in MMU table which will spends much time in create the page tableSigned-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 7/44 arm: imx8: Move container parser and image to mach-imx common folder
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Since we will re-use the container parser on imx8ulp, move the codes to mach-imx
---
arch/arm/mach-imx/Makefile | 4 ++++
arch/arm/mach-imx/{imx8/image.c => image-container.c} | 0
arch/arm/mach-imx/imx8/Makefile | 3 ---
arch/arm/mach-imx/{imx8 => }/parse-container.c | 0
4 files changed, 4 insertions(+), 3 deletions(-)
rename arch/arm/mach-imx/{imx8/image.c => image-container.c} (100%)
rename arch/arm/mach-imx/{imx8 => }/parse-container.c (100%)arch/arm/mach-imx/Makefile +4 -0
@@ -68,6 +68,10 @@ obj-$(CONFIG_CMD_DEKBLOB) += cmd_dek.o obj-$(CONFIG_CMD_NANDBCB) += cmd_nandbcb.o endif +ifeq ($(CONFIG_SPL_BUILD),y) +obj-$(CONFIG_SPL_LOAD_IMX_CONTAINER) += image-container.o parse-container.o +endif + PLUGIN = board/$(BOARDDIR)/plugin ifeq ($(CONFIG_USE_IMXIMG_PLUGIN),y)
arch/arm/mach-imx/image-container.c renamed from arch/arm/mach-imx/imx8/image.c +0 -0
arch/arm/mach-imx/imx8/Makefile +0 -3
@@ -8,7 +8,4 @@ obj-y += cpu.o iomux.o misc.o lowlevel_init.o obj-$(CONFIG_OF_SYSTEM_SETUP) += fdt.o obj-$(CONFIG_AHAB_BOOT) += ahab.o -ifdef CONFIG_SPL_BUILD -obj-$(CONFIG_SPL_LOAD_IMX_CONTAINER) += image.o parse-container.o -endif obj-$(CONFIG_IMX_SNVS_SEC_SC) += snvs_security_sc.o
arch/arm/mach-imx/parse-container.c renamed from arch/arm/mach-imx/imx8/parse-container.c +0 -0
Signature · 1 line
2.30.0
PATCH v3 7/44 arm: imx8: Move container parser and image to mach-imx common folder
Quoted 4 lines
From: Ye Li <[email protected]>
Since we will re-use the container parser on imx8ulp, move the codes to mach-imxSigned-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 8/44 arm: imx8: Move container image header file to mach-imx
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Since the container is shared among i.MX platforms, move its header file to mach-imx
---
arch/arm/include/asm/{arch-imx8 => mach-imx}/image.h | 0
arch/arm/mach-imx/cmd_dek.c | 2 +-
arch/arm/mach-imx/image-container.c | 2 +-
arch/arm/mach-imx/imx8/ahab.c | 2 +-
arch/arm/mach-imx/parse-container.c | 2 +-
5 files changed, 4 insertions(+), 4 deletions(-)
rename arch/arm/include/asm/{arch-imx8 => mach-imx}/image.h (100%)arch/arm/include/asm/mach-imx/image.h renamed from arch/arm/include/asm/arch-imx8/image.h +0 -0
arch/arm/mach-imx/cmd_dek.c +1 -1
@@ -17,7 +17,7 @@#include <tee.h> #ifdef CONFIG_IMX_SECO_DEK_ENCAP #include <asm/arch/sci/sci.h> -#include <asm/arch/image.h> +#include <asm/mach-imx/image.h> #endif #include <cpu_func.h>
arch/arm/mach-imx/image-container.c +1 -1
@@ -11,7 +11,7 @@#include <mmc.h> #include <spi_flash.h> #include <nand.h> -#include <asm/arch/image.h> +#include <asm/mach-imx/image.h> #include <asm/arch/sys_proto.h> #include <asm/mach-imx/boot_mode.h>
arch/arm/mach-imx/imx8/ahab.c +1 -1
@@ -13,7 +13,7 @@#include <asm/mach-imx/sys_proto.h> #include <asm/arch-imx/cpu.h> #include <asm/arch/sys_proto.h> -#include <asm/arch/image.h> +#include <asm/mach-imx/image.h> #include <console.h> #include <cpu_func.h>
arch/arm/mach-imx/parse-container.c +1 -1
@@ -7,7 +7,7 @@#include <errno.h> #include <log.h> #include <spl.h> -#include <asm/arch/image.h> +#include <asm/mach-imx/image.h> #include <asm/arch/sci/sci.h> #define SEC_SECURE_RAM_BASE 0x31800000UL
Signature · 1 line
2.30.0
PATCH v3 8/44 arm: imx8: Move container image header file to mach-imx
Quoted 5 lines
From: Ye Li <[email protected]>
Since the container is shared among i.MX platforms, move its header file to mach-imxSigned-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 9/44 arm: imx: parse-container: guard included header files
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Guard included sci.h with CONFIG_AHAB_BOOT to avoid build failure for i.MX8ULP
--- arch/arm/mach-imx/parse-container.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-imx/parse-container.c +2 -0
@@ -8,7 +8,9 @@#include <log.h> #include <spl.h> #include <asm/mach-imx/image.h> +#ifdef CONFIG_AHAB_BOOT #include <asm/arch/sci/sci.h> +#endif #define SEC_SECURE_RAM_BASE 0x31800000UL#define SEC_SECURE_RAM_END_BASE (SEC_SECURE_RAM_BASE + 0xFFFFUL)
Signature · 1 line
2.30.0
PATCH v3 9/44 arm: imx: parse-container: guard included header files
Quoted 4 lines
From: Peng Fan <[email protected]>
Guard includedsci.hwithCONFIG_AHAB_BOOTto avoid build failure for i.MX8ULPSigned-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 10/44 arm: imx8ulp: add container support
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
i.MX8ULP support using ROM API to load container image, it use same ROM API as i.MX8MN/MP, and use same container format as i.MX8QM/QXP.
--- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 2 + arch/arm/include/asm/mach-imx/image.h | 2 + arch/arm/include/asm/mach-imx/sys_proto.h | 2 +- arch/arm/mach-imx/Kconfig | 2 +- arch/arm/mach-imx/image-container.c | 42 ++++- arch/arm/mach-imx/imx8ulp/soc.c | 2 + arch/arm/mach-imx/spl_imx_romapi.c | 172 ++++++++++++++---- 7 files changed, 177 insertions(+), 47 deletions(-)
arch/arm/include/asm/arch-imx8ulp/sys_proto.h +2 -0
@@ -10,5 +10,7 @@extern unsigned long rom_pointer[]; +ulong spl_romapi_raw_seekable_read (u32 offset,u32 size,void *buf); +ulong spl_romapi_get_uboot_base (u32 image_offset,u32 rom_bt_dev);enum bt_mode get_boot_mode (void );#endif
arch/arm/include/asm/mach-imx/image.h +2 -0
@@ -64,4 +64,6 @@ struct generate_key_blob_hdr {u8 algorithm; u8 mode; } __packed; + +int get_container_size (ulong addr,u16 *header_length);#endif
arch/arm/include/asm/mach-imx/sys_proto.h +1 -1
@@ -145,7 +145,7 @@ struct rproc_att {u32 size;/* size of reg range */ }; -#ifdef CONFIG_IMX8M +#if defined(CONFIG_IMX8M) || defined(CONFIG_IMX8ULP) struct rom_api { u16 ver; u16 tag;
arch/arm/mach-imx/Kconfig +1 -1
@@ -161,7 +161,7 @@ config DDRMC_VF610_CALIBRATION config SPL_IMX_ROMAPI_LOADADDR hex "Default load address to load image through ROM API" - depends on IMX8MN || IMX8MP + depends on IMX8MN || IMX8MP || IMX8ULP config IMX_DCD_ADDR hex "DCD Blocks location on the image"
arch/arm/mach-imx/image-container.c +36 -6
92 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/soc.c +2 -0
@@ -12,6 +12,8 @@DECLARE_GLOBAL_DATA_PTR ; +struct rom_api *g_rom_api = (struct rom_api *)0x1980 ; +u32 get_cpu_rev (void ) {return (MXC_CPU_IMX8ULP <<12 ) |CHIP_REV_1_0 ;
arch/arm/mach-imx/spl_imx_romapi.c +133 -39
273 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 10/44 arm: imx8ulp: add container support
Quoted 6 lines
From: Ye Li <[email protected]>
i.MX8ULP support using ROM API to load container image, it use same ROM API as i.MX8MN/MP, and use same container format as i.MX8QM/QXP.Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 11/44 arm: imx: move container Kconfig under mach-imx
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Since i.MX8 and i.MX8ULP reuse common container, so move the Kconfig public to both.
--- arch/arm/mach-imx/Kconfig | 13 +++++++++++++ arch/arm/mach-imx/imx8/Kconfig | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-)
arch/arm/mach-imx/Kconfig +13 -0
@@ -172,3 +172,16 @@ config IMX_DCD_ADDR the ROM code to configure the device at early boot stage, is located. This information is shared with the user via mkimage -l just so the image can be signed. + +config SPL_LOAD_IMX_CONTAINER + bool "Enable SPL loading U-Boot as a i.MX Container image" + depends on SPL + help + This is to let SPL could load i.MX Container image + +config IMX_CONTAINER_CFG + string "i.MX Container config file" + depends on SPL + help + This is to specific the cfg file for generating container + image which will be loaded by SPL.
arch/arm/mach-imx/imx8/Kconfig +0 -13
@@ -31,19 +31,6 @@ config IMX8QXP config SYS_SOC default "imx8" -config SPL_LOAD_IMX_CONTAINER - bool "Enable SPL loading U-Boot as a i.MX Container image" - depends on SPL - help - This is to let SPL could load i.MX8 Container image - -config IMX_CONTAINER_CFG - string "i.MX Container config file" - depends on SPL - help - This is to specific the cfg file for generating container - image which will be loaded by SPL. - config BOOTAUX_RESERVED_MEM_BASE hex "i.MX auxiliary core dram memory base" default 0
Signature · 1 line
2.30.0
PATCH v3 11/44 arm: imx: move container Kconfig under mach-imx
Quoted 4 lines
From: Peng Fan <[email protected]>
Since i.MX8 and i.MX8ULP reuse common container, so move theKconfigpublic to both.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 12/44 driver: misc: Add MU and S400 API to communicate with Sentinel
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Add MU driver and S400 API. Need enable MISC driver to work
--- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 30 +++ arch/arm/include/asm/global_data.h | 5 + drivers/misc/Makefile | 1 + drivers/misc/imx8ulp/Makefile | 3 + drivers/misc/imx8ulp/imx8ulp_mu.c | 247 +++++++++++++++++++ drivers/misc/imx8ulp/s400_api.c | 41 +++ 6 files changed, 327 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8ulp/s400_api.h create mode 100644 drivers/misc/imx8ulp/Makefile create mode 100644 drivers/misc/imx8ulp/imx8ulp_mu.c create mode 100644 drivers/misc/imx8ulp/s400_api.c
arch/arm/include/asm/arch-imx8ulp/s400_api.h new file +30 -0
@@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2021 NXP +*/ + +#ifndef __S400_API_H__ +#define __S400_API_H__ + +#define AHAB_VERSION 0x6 +#define AHAB_CMD_TAG 0x17 +#define AHAB_RESP_TAG 0xe1 + +#define AHAB_LOG_CID 0x21 +#define AHAB_AUTH_OEM_CTNR_CID 0x87 +#define AHAB_VERIFY_IMG_CID 0x88 +#define AHAB_RELEASE_CTNR_CID 0x89 +#define AHAB_RELEASE_RDC_REQ_CID 0xC4 + +#define S400_MAX_MSG 8U + +struct imx8ulp_s400_msg { +u8 version; +u8 size; +u8 command; +u8 tag; +u32 data[(S400_MAX_MSG -1U )]; +}; + +int ahab_release_rdc (u8 core_id); +#endif
arch/arm/include/asm/global_data.h +5 -0
@@ -89,6 +89,11 @@ struct arch_global_data {#ifdef CONFIG_ARCH_IMX8 struct udevice *scu_dev;#endif + +#ifdef CONFIG_ARCH_IMX8ULP +struct udevice *s400_dev; +#endif + };#include <asm-generic/global_data.h>
drivers/misc/Makefile +1 -0
@@ -46,6 +46,7 @@ obj-$(CONFIG_SANDBOX) += irq_sandbox.o obj-$(CONFIG_$(SPL_)I2C_EEPROM) += i2c_eeprom.o obj-$(CONFIG_IHS_FPGA) += ihs_fpga.o obj-$(CONFIG_IMX8) += imx8/ +obj-$(CONFIG_IMX8ULP) += imx8ulp/ obj-$(CONFIG_LED_STATUS) += status_led.o obj-$(CONFIG_LED_STATUS_GPIO) += gpio_led.o obj-$(CONFIG_MPC83XX_SERDES) += mpc83xx_serdes.o
drivers/misc/imx8ulp/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y += s400_api.o imx8ulp_mu.o
drivers/misc/imx8ulp/imx8ulp_mu.c new file +247 -0
247 lines not on this page · raw message
drivers/misc/imx8ulp/s400_api.c new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 12/44 driver: misc: Add MU and S400 API to communicate with Sentinel
Quoted 3 lines
From: Ye Li <[email protected]>
Add MU driver and S400 API. Need enable MISC driver to workSigned-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 13/44 net: fec_mxc: support i.MX8ULP
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Support i.MX8ULP in fec_mxc
--- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/Kconfig +1 -1
@@ -330,7 +330,7 @@ config FEC_MXC_MDIO_BASE config FEC_MXC bool "FEC Ethernet controller" - depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || VF610 + depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || VF610 help This driver supports the 10/100 Fast Ethernet controller for NXP i.MX processors.
drivers/net/fec_mxc.c +1 -1
@@ -631,7 +631,7 @@ static int fec_init(struct eth_device *dev, struct bd_info *bd)writel (0x00000000 , &fec->eth->gaddr2);/* Do not access reserved register */ -if (!is_mx6ul () && !is_mx6ull () && !is_imx8 () && !is_imx8m ()) { +if (!is_mx6ul () && !is_mx6ull () && !is_imx8 () && !is_imx8m () && !is_imx8ulp ()) {/* clear MIB RAM */ for (i = mib_ptr; i <= mib_ptr +0xfc ; i +=4 )writel (0 , i);
Signature · 1 line
2.30.0
PATCH v3 13/44 net: fec_mxc: support i.MX8ULP
Quoted 4 lines
From: Peng Fan <[email protected]> Support i.MX8ULP in
fec_mxcSigned-off-by Peng Fan <[email protected]>Reviewed-by Ramon Fried <[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: [email protected] =====================================================================
PATCH v3 14/44 pinctrl: Add pinctrl driver for imx8ulp
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Add pinctrl driver for i.MX8ULP
--- drivers/pinctrl/nxp/Kconfig | 14 +++++++++ drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 44 +++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 drivers/pinctrl/nxp/pinctrl-imx8ulp.c
drivers/pinctrl/nxp/Kconfig +14 -0
@@ -60,6 +60,20 @@ config PINCTRL_IMX7ULP only parses the 'fsl,pins' property and configure related registers. +config PINCTRL_IMX8ULP + bool "IMX8ULP pinctrl driver" + depends on ARCH_IMX8ULP && PINCTRL_FULL + select DEVRES + select PINCTRL_IMX + help + Say Y here to enable the imx8ulp pinctrl driver + + This provides a simple pinctrl driver for i.MX8ULP SoC familiy. + This feature depends on device tree configuration. This driver + is different from the linux one, this is a simple implementation, + only parses the 'fsl,pins' property and configure related + registers. + config PINCTRL_IMX8 bool "IMX8 pinctrl driver" depends on ARCH_IMX8 && PINCTRL_FULL
drivers/pinctrl/nxp/Makefile +1 -0
@@ -3,6 +3,7 @@ obj-$(CONFIG_PINCTRL_IMX5) += pinctrl-imx5.o obj-$(CONFIG_PINCTRL_IMX6) += pinctrl-imx6.o obj-$(CONFIG_PINCTRL_IMX7) += pinctrl-imx7.o obj-$(CONFIG_PINCTRL_IMX7ULP) += pinctrl-imx7ulp.o +obj-$(CONFIG_PINCTRL_IMX8ULP) += pinctrl-imx8ulp.o obj-$(CONFIG_PINCTRL_IMX_SCU) += pinctrl-scu.o obj-$(CONFIG_PINCTRL_IMX8) += pinctrl-imx8.o obj-$(CONFIG_PINCTRL_IMX8M) += pinctrl-imx8m.o
drivers/pinctrl/nxp/pinctrl-imx8ulp.c new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 14/44 pinctrl: Add pinctrl driver for imx8ulp
Quoted 4 lines
From: Ye Li <[email protected]> Add pinctrl driver for i.MX8ULP
Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 15/44 driver: serial: fsl_lpuart: support i.MX8ULP
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
i.MX8ULP lpuart has same register layout as i.MX7ULP and i.MX8
--- include/fsl_lpuart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/fsl_lpuart.h +1 -1
@@ -5,7 +5,7 @@*/ #if defined(CONFIG_ARCH_MX7ULP) || defined(CONFIG_ARCH_IMX8) || \ - defined(CONFIG_ARCH_IMXRT) + defined(CONFIG_ARCH_IMXRT) || defined(CONFIG_ARCH_IMX8ULP) struct lpuart_fsl_reg32 { u32 verid; u32 param;
Signature · 1 line
2.30.0
PATCH v3 15/44 driver: serial: fsl_lpuart: support i.MX8ULP
Quoted 3 lines
From: Peng Fan <[email protected]>
i.MX8ULP lpuart has same register layout as i.MX7ULP and i.MX8Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 16/44 arm: imx8ulp: add clock support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add i.MX8ULP clock support
--- arch/arm/include/asm/arch-imx8ulp/cgc.h | 130 ++++++ arch/arm/include/asm/arch-imx8ulp/clock.h | 9 +- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 1 + arch/arm/include/asm/arch-imx8ulp/pcc.h | 139 ++++++ arch/arm/mach-imx/imx8ulp/Makefile | 2 +- arch/arm/mach-imx/imx8ulp/cgc.c | 455 +++++++++++++++++++ arch/arm/mach-imx/imx8ulp/clock.c | 374 ++++++++++++++- arch/arm/mach-imx/imx8ulp/pcc.c | 449 ++++++++++++++++++ arch/arm/mach-imx/imx8ulp/soc.c | 3 + 9 files changed, 1558 insertions(+), 4 deletions(-) create mode 100644 arch/arm/include/asm/arch-imx8ulp/cgc.h create mode 100644 arch/arm/include/asm/arch-imx8ulp/pcc.h create mode 100644 arch/arm/mach-imx/imx8ulp/cgc.c create mode 100644 arch/arm/mach-imx/imx8ulp/pcc.c
arch/arm/include/asm/arch-imx8ulp/cgc.h new file +130 -0
@@ -0,0 +1,130 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2021 NXP +*/ + +#ifndef _ASM_ARCH_CGC_H +#define _ASM_ARCH_CGC_H + +enum cgc1_clk { +DUMMY0_CLK , +DUMMY1_CLK , +LPOSC , +XBAR_BUSCLK , +SOSC , +SOSC_DIV1 , +SOSC_DIV2 , +SOSC_DIV3 , +FRO , +FRO_DIV1 , +FRO_DIV2 , +FRO_DIV3 , +PLL2 , +PLL3 , +PLL3_VCODIV , +PLL3_PFD0 , +PLL3_PFD1 , +PLL3_PFD2 , +PLL3_PFD3 , +PLL3_PFD0_DIV1 , +PLL3_PFD0_DIV2 , +PLL3_PFD1_DIV1 , +PLL3_PFD1_DIV2 , +PLL3_PFD2_DIV1 , +PLL3_PFD2_DIV2 , +PLL3_PFD3_DIV1 , +PLL3_PFD3_DIV2 , +}; + +struct cgc1_regs { +u32 verid; +u32 rsvd1[4 ]; +u32 ca35clk; +u32 rsvd2[2 ]; +u32 clkoutcfg; +u32 rsvd3[4 ]; +u32 nicclk; +u32 xbarclk; +u32 rsvd4[21 ]; +u32 clkdivrst; +u32 rsvd5[29 ]; +u32 soscdiv; +u32 rsvd6[63 ]; +u32 frodiv; +u32 rsvd7[189 ]; +u32 pll2csr; +u32 rsvd8[3 ]; +u32 pll2cfg; +u32 rsvd9; +u32 pll2denom; +u32 pll2num; +u32 pll2ss; +u32 rsvd10[55 ]; +u32 pll3csr; +u32 pll3div_vco; +u32 pll3div_pfd0; +u32 pll3div_pfd1; +u32 pll3cfg; +u32 pll3pfdcfg; +u32 pll3denom; +u32 pll3num; +u32 pll3ss; +u32 pll3lock; +u32 rsvd11[54 ]; +u32 enetstamp; +u32 rsvd12[67 ]; +u32 pllusbcfg; +u32 rsvd13[59 ]; +u32 aud_clk1; +u32 sai5_4_clk; +u32 tpm6_7clk; +u32 mqs1clk; +u32 rsvd14[60 ]; +u32 lvdscfg; +}; + +struct cgc2_regs { +u32 verid; +u32 rsvd1[4 ]; +u32 hificlk; +u32 rsvd2[2 ]; +u32 clkoutcfg; +u32 rsvd3[6 ]; +u32 niclpavclk; +u32 ddrclk; +u32 rsvd4[19 ]; +u32 clkdivrst; +u32 rsvd5[29 ]; +u32 soscdiv; +u32 rsvd6[63 ]; +u32 frodiv; +u32 rsvd7[253 ]; +u32 pll4csr; +u32 pll4div_vco; +u32 pll4div_pfd0; +u32 pll4div_pfd1; +u32 pll4cfg; +u32 pll4pfdcfg; +u32 pll4denom; +u32 pll4num; +u32 pll4ss; +u32 pll4lock; +u32 rsvd8[128 ]; +u32 aud_clk2; +u32 sai7_6_clk; +u32 tpm8clk; +u32 rsvd9[1 ]; +u32 spdifclk; +u32 rsvd10[59 ]; +u32 lvdscfg; +}; + +u32 cgc1_clk_get_rate (enum cgc1_clk clk); +void cgc1_pll3_init (void ); +void cgc1_pll2_init (void ); +void cgc1_soscdiv_init (void ); +void cgc1_init_core_clk (void ); +void cgc2_pll4_init (void ); +void cgc2_ddrclk_config (u32 src,u32 div); +u32 cgc1_sosc_div (enum cgc1_clk clk); +#endif
arch/arm/include/asm/arch-imx8ulp/clock.h +8 -1
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0+ */ /* -* Copyright 2020 NXP +* Copyright 2021 NXP */ #ifndef _ASM_ARCH_IMX8ULP_CLOCK_H
@@ -17,6 +17,7 @@ enum mxc_clock {MXC_DDR_CLK ,MXC_ESDHC_CLK ,MXC_ESDHC2_CLK , +MXC_ESDHC3_CLK , MXC_I2C_CLK, };
@@ -26,9 +27,15 @@ u32 get_lpuart_clk(void);int enable_i2c_clk (unsigned char enable,unsigned int i2c_num);u32 imx_get_i2cclk (unsigned int i2c_num);#endif +void enable_usboh3_clk (unsigned char enable); +int enable_usb_pll (ulong usb_phy_base);#ifdef CONFIG_MXC_OCOTP void enable_ocotp_clk (unsigned char enable);#endif void init_clk_usdhc (u32 index); +void init_clk_fspi (int index); +void init_clk_ddr (void ); +int set_ddr_clk (u32 phy_freq_mhz);void clock_init (void ); +void cgc1_enet_stamp_sel (u32 clk_src);#endif
arch/arm/include/asm/arch-imx8ulp/imx-regs.h +1 -0
@@ -7,6 +7,7 @@#define _IMX8ULP_REGS_H_#define ARCH_MXC +#include <linux/bitops.h> #include <linux/sizes.h> #define PBRIDGE0_BASE 0x28000000
arch/arm/include/asm/arch-imx8ulp/pcc.h new file +139 -0
139 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/Makefile +1 -1
@@ -4,4 +4,4 @@ # obj-y += lowlevel_init.o -obj-y += soc.o clock.o iomux.o +obj-y += soc.o clock.o iomux.o pcc.o cgc.o
arch/arm/mach-imx/imx8ulp/cgc.c new file +455 -0
455 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/clock.c +372 -2
396 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/pcc.c new file +449 -0
449 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/soc.c +3 -0
@@ -287,5 +287,8 @@ void get_board_serial(struct tag_serialnr *serialnr)int arch_cpu_init (void ) { +if (IS_ENABLED (CONFIG_SPL_BUILD )) +clock_init (); +return 0 ; }
Signature · 1 line
2.30.0
PATCH v3 16/44 arm: imx8ulp: add clock support
Quoted 3 lines
From: Peng Fan <[email protected]>
Add i.MX8ULP clock supportSigned-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 17/44 drivers: mmc: fsl_esdhc_imx: support i.MX8ULP
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
i.MX8ULP reuse same SDHC IP as i.MX8M, so follow i.MX8M code logic.
--- drivers/mmc/Kconfig | 2 +- drivers/mmc/fsl_esdhc_imx.c | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-)
drivers/mmc/Kconfig +1 -1
@@ -832,7 +832,7 @@ config FSL_ESDHC_IMX config FSL_USDHC bool "Freescale/NXP i.MX uSDHC controller support" - depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMXRT + depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMXRT select FSL_ESDHC_IMX help This enables the Ultra Secured Digital Host Controller enhancements
drivers/mmc/fsl_esdhc_imx.c +8 -4
@@ -291,7 +291,8 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc, {int timeout;struct fsl_esdhc *regs = priv->esdhc_regs; -#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) +#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) || \ + defined(CONFIG_IMX8ULP )dma_addr_t addr;#endif uint wml_value;
@@ -304,7 +305,8 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,esdhc_clrsetbits32 (®s->wml,WML_RD_WML_MASK , wml_value);#ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO -#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) +#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) || \ + defined(CONFIG_IMX8ULP ) addr =virt_to_phys ((void *)(data->dest));if (upper_32_bits (addr))printf ("Error found for upper 32 bits\n" );
@@ -341,7 +343,8 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,esdhc_clrsetbits32 (®s->wml,WML_WR_WML_MASK , wml_value <<16 );#ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO -#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) +#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) || \ + defined(CONFIG_IMX8ULP ) addr =virt_to_phys ((void *)(data->src));if (upper_32_bits (addr))printf ("Error found for upper 32 bits\n" );
@@ -406,7 +409,8 @@ static void check_and_invalidate_dcache_rangeunsigned end =0 ;unsigned size =roundup (ARCH_DMA_MINALIGN , data->blocks*data->blocksize); -#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) +#if defined(CONFIG_S32V234 ) || defined(CONFIG_IMX8 ) || defined(CONFIG_IMX8M ) || \ + defined(CONFIG_IMX8ULP )dma_addr_t addr; addr =virt_to_phys ((void *)(data->dest));
Signature · 1 line
2.30.0
PATCH v3 17/44 drivers: mmc: fsl_esdhc_imx: support i.MX8ULP
Quoted 3 lines
From: Peng Fan <[email protected]>
i.MX8ULP reuse same SDHC IP as i.MX8M, so follow i.MX8M code logic.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 18/44 arm: imx8ulp: soc: Change to use CMC1 to get bootcfg
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
CMC1 also has a MR register for bootcfg
--- arch/arm/mach-imx/imx8ulp/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx8ulp/soc.c +1 -1
@@ -23,7 +23,7 @@ enum bt_mode get_boot_mode(void) {u32 bt0_cfg =0 ; - bt0_cfg =readl (CMC0_RBASE +0x80 ); + bt0_cfg =readl (CMC1_BASE_ADDR +0xa0 ); bt0_cfg &= (BT0CFG_LPBOOT_MASK |BT0CFG_DUALBOOT_MASK );if (!(bt0_cfg &BT0CFG_LPBOOT_MASK )) {
Signature · 1 line
2.30.0
PATCH v3 18/44 arm: imx8ulp: soc: Change to use CMC1 to get bootcfg
Quoted 3 lines
From: Ye Li <[email protected]>
CMC1 also has a MR register for bootcfgSigned-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 19/44 arm: imx8ulp: Enable full L2 cache in SPL
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
SRAM2 is half L2 cache and default to SRAM after system boot. To enable the full l2 cache (512KB), it needs to reset A35 to make the change happen.
So re-implement the jump entry function in SPL:
1. configure the core0 reset vector to entry (ATF)
2. enable the L2 full cache
3. reset A35
So when core0 up, it runs into ATF. And we have 512KB L2 cache working.
--- arch/arm/mach-imx/imx8ulp/soc.c | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+)
arch/arm/mach-imx/imx8ulp/soc.c +34 -0
@@ -9,6 +9,8 @@#include <asm/arch/sys_proto.h> #include <asm/armv8/mmu.h> #include <asm/mach-imx/boot_mode.h> +#include <efi_loader.h> +#include <spl.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -292,3 +294,35 @@ int arch_cpu_init(void)return 0 ; } + +#if defined(CONFIG_SPL_BUILD ) +__weak void __noreturn jump_to_image_no_args (struct spl_image_info *spl_image) +{ +debug ("image entry point: 0x%lx\n" , spl_image->entry_point); + +/* Update SIM1 DGO8 for reset vector base */ +writel ((u32 )spl_image->entry_point,SIM1_BASE_ADDR +0x5c ); + +/* set update bit */ +setbits_le32 (SIM1_BASE_ADDR +0x8 ,0x1 <<24 ); + +/* polling the ack */ +while ((readl (SIM1_BASE_ADDR +0x8 ) & (0x1 <<26 )) ==0 ) + ; + +/* clear the update */ +clrbits_le32 (SIM1_BASE_ADDR +0x8 , (0x1 <<24 )); + +/* clear the ack by set 1 */ +setbits_le32 (SIM1_BASE_ADDR +0x8 , (0x1 <<26 )); + +/* Enable the 512KB cache */ +setbits_le32 (SIM1_BASE_ADDR +0x30 , (0x1 <<4 )); + +/* reset core */ +setbits_le32 (SIM1_BASE_ADDR +0x30 , (0x1 <<16 )); + +while (1 ) + ; +} +#endif
Signature · 1 line
2.30.0
PATCH v3 19/44 arm: imx8ulp: Enable full L2 cache in SPL
Quoted 11 lines
From: Ye Li <[email protected]>
SRAM2 is half L2 cache and default to SRAM after system boot. To enable the full l2 cache (512KB), it needs to reset A35 to make the change happen.
So re-implement the jump entry function in SPL:
1. configure the core0 reset vector to entry (ATF)
2. enable the L2 full cache
3. reset A35
So when core0 up, it runs into ATF. And we have 512KB L2 cache working.Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 20/44 arm: imx8ulp: disable wdog3
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Disable wdog3 which is configured by ROM
--- arch/arm/mach-imx/imx8ulp/soc.c | 36 ++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-)
arch/arm/mach-imx/imx8ulp/soc.c +35 -1
@@ -144,9 +144,43 @@ int print_cpuinfo(void) }#endif +#define UNLOCK_WORD0 0xC520/* 1st unlock word */ +#define UNLOCK_WORD1 0xD928/* 2nd unlock word */ +#define REFRESH_WORD0 0xA602/* 1st refresh word */ +#define REFRESH_WORD1 0xB480/* 2nd refresh word */ + +static void disable_wdog (void __iomem *wdog_base) +{ +u32 val_cs =readl (wdog_base +0x00 ); + +if (!(val_cs &0x80 )) +return ; + +dmb (); +__raw_writel (REFRESH_WORD0 , (wdog_base +0x04 ));/* Refresh the CNT */ +__raw_writel (REFRESH_WORD1 , (wdog_base +0x04 )); +dmb (); + +if (!(val_cs &800 )) { +dmb (); +__raw_writel (UNLOCK_WORD0 , (wdog_base +0x04 )); +__raw_writel (UNLOCK_WORD1 , (wdog_base +0x04 )); +dmb (); + +while (!(readl (wdog_base +0x00 ) &0x800 )) + ; + } +writel (0x0 , (wdog_base +0x0C ));/* Set WIN to 0 */ +writel (0x400 , (wdog_base +0x08 ));/* Set timeout to default 0x400 */ +writel (0x120 , (wdog_base +0x00 ));/* Disable it and set update */ + +while (!(readl (wdog_base +0x00 ) &0x400 )) + ; +} +void init_wdog (void ) { -/* TODO */ +disable_wdog ((void __iomem *)WDG3_RBASE ); }static struct mm_region imx8ulp_arm64_mem_map[] = {
Signature · 1 line
2.30.0
PATCH v3 20/44 arm: imx8ulp: disable wdog3
Quoted 3 lines
From: Peng Fan <[email protected]>
Disable wdog3 which is configured by ROMSigned-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 21/44 arm: imx8ulp: Update the reset vector in u-boot
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Because we have set reset vector to ATF in SPL, have to set it back to ROM for any reset in u-boot
--- arch/arm/mach-imx/imx8ulp/soc.c | 35 +++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 13 deletions(-)
arch/arm/mach-imx/imx8ulp/soc.c +22 -13
@@ -321,21 +321,10 @@ void get_board_serial(struct tag_serialnr *serialnr) }#endif -int arch_cpu_init (void ) +static void set_core0_reset_vector (u32 entry) { -if (IS_ENABLED (CONFIG_SPL_BUILD )) -clock_init (); - -return 0 ; -} - -#if defined(CONFIG_SPL_BUILD ) -__weak void __noreturn jump_to_image_no_args (struct spl_image_info *spl_image) -{ -debug ("image entry point: 0x%lx\n" , spl_image->entry_point); -/* Update SIM1 DGO8 for reset vector base */ -writel ((u32 )spl_image->entry_point,SIM1_BASE_ADDR +0x5c ); +writel (entry,SIM1_BASE_ADDR +0x5c );/* set update bit */ setbits_le32 (SIM1_BASE_ADDR +0x8 ,0x1 <<24 );
@@ -349,6 +338,26 @@ __weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)/* clear the ack by set 1 */ setbits_le32 (SIM1_BASE_ADDR +0x8 , (0x1 <<26 )); +} + +int arch_cpu_init (void ) +{ +if (IS_ENABLED (CONFIG_SPL_BUILD )) { +clock_init (); + }else { +/* reconfigure core0 reset vector to ROM */ +set_core0_reset_vector (0x1000 ); + } + +return 0 ; +} + +#if defined(CONFIG_SPL_BUILD ) +__weak void __noreturn jump_to_image_no_args (struct spl_image_info *spl_image) +{ +debug ("image entry point: 0x%lx\n" , spl_image->entry_point); + +set_core0_reset_vector ((u32 )spl_image->entry_point);/* Enable the 512KB cache */ setbits_le32 (SIM1_BASE_ADDR +0x30 , (0x1 <<4 ));
Signature · 1 line
2.30.0
PATCH v3 21/44 arm: imx8ulp: Update the reset vector in u-boot
Quoted 5 lines
From: Ye Li <[email protected]>
Because we have set reset vector to ATF in SPL, have to set it back to ROM for any reset in u-bootSigned-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 22/44 drivers: misc: s400_api: Update S400_SUCCESS_IND to 0xd6
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
According to latest S400 API doc, the the success indicate value is changed to 0xd6. So update the driver codes.
--- drivers/misc/imx8ulp/imx8ulp_mu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/imx8ulp/imx8ulp_mu.c +1 -1
@@ -185,7 +185,7 @@ static int imx8ulp_mu_call(struct udevice *dev, int no_resp, void *tx_msg, } result = ((struct imx8ulp_s400_msg *)rx_msg)->data[0 ]; -if ((result &0xff ) ==0 ) +if ((result &0xff ) ==0xd6 )return 0 ;return -EIO ;
Signature · 1 line
2.30.0
PATCH v3 22/44 drivers: misc: s400_api: Update S400_SUCCESS_IND to 0xd6
Quoted 5 lines
From: Ye Li <[email protected]>
According to latest S400 API doc, the the success indicate value is changed to0xd6. So update the driver codes.Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 23/44 drivers: misc: imx8ulp: Add S400 API for image authentication
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Add S400 API for image authentication
--- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 8 +- drivers/misc/imx8ulp/s400_api.c | 121 ++++++++++++++++++- 2 files changed, 127 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-imx8ulp/s400_api.h +7 -1
@@ -15,6 +15,7 @@#define AHAB_VERIFY_IMG_CID 0x88#define AHAB_RELEASE_CTNR_CID 0x89#define AHAB_RELEASE_RDC_REQ_CID 0xC4 +#define AHAB_FWD_LIFECYCLE_UP_REQ_CID 0x95#define S400_MAX_MSG 8U
@@ -26,5 +27,10 @@ struct imx8ulp_s400_msg { u32 data[(S400_MAX_MSG - 1U)]; }; -int ahab_release_rdc (u8 core_id); +int ahab_release_rdc (u8 core_id,u32 *response); +int ahab_auth_oem_ctnr (ulong ctnr_addr,u32 *response); +int ahab_release_container (u32 *response); +int ahab_verify_image (u32 img_id,u32 *response); +int ahab_forward_lifecycle (u16 life_cycle,u32 *response); +#endif
drivers/misc/imx8ulp/s400_api.c +120 -1
132 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 23/44 drivers: misc: imx8ulp: Add S400 API for image authentication
Quoted 4 lines
From: Ye Li <[email protected]>
Add S400 API for image authenticationSigned-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 24/44 drivers: misc: imx8ulp: Update S400 API for release RDC
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
The RDC API is updated to add a field for XRDC or TRDC
--- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 2 +- drivers/misc/imx8ulp/s400_api.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-)
arch/arm/include/asm/arch-imx8ulp/s400_api.h +1 -1
@@ -27,7 +27,7 @@ struct imx8ulp_s400_msg {u32 data[(S400_MAX_MSG -1U )]; }; -int ahab_release_rdc (u8 core_id,u32 *response); +int ahab_release_rdc (u8 core_id,bool xrdc,u32 *response);int ahab_auth_oem_ctnr (ulong ctnr_addr,u32 *response);int ahab_release_container (u32 *response);int ahab_verify_image (u32 img_id,u32 *response);
drivers/misc/imx8ulp/s400_api.c +5 -2
@@ -14,7 +14,7 @@DECLARE_GLOBAL_DATA_PTR ; -int ahab_release_rdc (u8 core_id,u32 *response) +int ahab_release_rdc (u8 core_id,bool xrdc,u32 *response) {struct udevice *dev = gd->arch.s400_dev;int size =sizeof (struct imx8ulp_s400_msg );
@@ -30,7 +30,10 @@ int ahab_release_rdc(u8 core_id, u32 *response) msg.tag =AHAB_CMD_TAG ; msg.size =2 ; msg.command =AHAB_RELEASE_RDC_REQ_CID ; - msg.data[0 ] = core_id; +if (xrdc) + msg.data[0 ] = (0x78 <<8 ) | core_id; +else + msg.data[0 ] = (0x74 <<8 ) | core_id; ret =misc_call (dev, false, &msg, size, &msg, size);if (ret)
Signature · 1 line
2.30.0
PATCH v3 24/44 drivers: misc: imx8ulp: Update S400 API for release RDC
Quoted 3 lines
From: Ye Li <[email protected]>
The RDC API is updated to add a field for XRDC or TRDCSigned-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 25/44 drivers: misc: s400_api: Update API for fuse read and write
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Add API to support fuse read and write
--- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 7 +- drivers/misc/imx8ulp/s400_api.c | 81 ++++++++++++++++++++ 2 files changed, 87 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-imx8ulp/s400_api.h +6 -1
@@ -14,8 +14,11 @@#define AHAB_AUTH_OEM_CTNR_CID 0x87#define AHAB_VERIFY_IMG_CID 0x88#define AHAB_RELEASE_CTNR_CID 0x89 -#define AHAB_RELEASE_RDC_REQ_CID 0xC4 +#define AHAB_WRITE_SECURE_FUSE_REQ_CID 0x91#define AHAB_FWD_LIFECYCLE_UP_REQ_CID 0x95 +#define AHAB_READ_FUSE_REQ_CID 0x97 +#define AHAB_RELEASE_RDC_REQ_CID 0xC4 +#define AHAB_WRITE_FUSE_REQ_CID 0xD6#define S400_MAX_MSG 8U
@@ -32,5 +35,7 @@ int ahab_auth_oem_ctnr(ulong ctnr_addr, u32 *response);int ahab_release_container (u32 *response);int ahab_verify_image (u32 img_id,u32 *response);int ahab_forward_lifecycle (u16 life_cycle,u32 *response); +int ahab_write_fuse (u16 fuse_id,u32 fuse_val,bool lock,u32 *response); +int ahab_read_common_fuse (u16 fuse_id,u32 *fuse_words,u32 fuse_num,u32 *response);#endif
drivers/misc/imx8ulp/s400_api.c +81 -0
84 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 25/44 drivers: misc: s400_api: Update API for fuse read and write
Quoted 3 lines
From: Ye Li <[email protected]>
Add API to support fuse read and writeSigned-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 26/44 arm: imx8ulp: release and configure XRDC at early phase
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Since S400 will set the memory of SPL image to R/X. We can't write to any data in SPL image.
1. Set the parameters save/restore only for u-boot, not for SPL. to avoid write data.
2. Not use MU DM driver but directly call MU API to send release XRDC to S400 at early phase.
3. Configure the SPL image memory of SRAM2 to writable (R/W/X)
--- arch/arm/include/asm/arch-imx8ulp/mu_hal.h | 12 ++++ arch/arm/mach-imx/imx8ulp/lowlevel_init.S | 10 +-- arch/arm/mach-imx/imx8ulp/soc.c | 84 ++++++++++++++++++++++ drivers/misc/imx8ulp/imx8ulp_mu.c | 36 +++++----- 4 files changed, 118 insertions(+), 24 deletions(-) create mode 100644 arch/arm/include/asm/arch-imx8ulp/mu_hal.h
arch/arm/include/asm/arch-imx8ulp/mu_hal.h new file +12 -0
@@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2021 NXP +*/ + +#ifndef __IMX8ULP_MU_HAL_H__ +#define __IMX8ULP_MU_HAL_H__ + +void mu_hal_init (ulong base); +int mu_hal_sendmsg (ulong base,u32 reg_index,u32 msg); +int mu_hal_receivemsg (ulong base,u32 reg_index,u32 *msg); +#endif
arch/arm/mach-imx/imx8ulp/lowlevel_init.S +2 -8
@@ -16,17 +16,11 @@ rom_pointer: .global save_boot_params save_boot_params: +#ifndef CONFIG_SPL_BUILD /* The firmware provided ATAG/FDT address can be found in r2/x0 */ adr x0, rom_pointer stp x1, x2, [x0], #16 stp x3, x4, [x0], #16 - +#endif /* Returns */ b save_boot_params_ret - -.global restore_boot_params -restore_boot_params: - adr x0, rom_pointer - ldp x1, x2, [x0], #16 - ldp x3, x4, [x0], #16 - ret
arch/arm/mach-imx/imx8ulp/soc.c +84 -0
99 lines not on this page · raw message
drivers/misc/imx8ulp/imx8ulp_mu.c +20 -16
@@ -42,24 +42,27 @@ struct imx8ulp_mu {#define MU_TR_COUNT 4#define MU_RR_COUNT 4 -static inline void mu_hal_init (struct mu_type *base) +void mu_hal_init (ulong base) { -writel (0 , &base->tcr); -writel (0 , &base->rcr); +struct mu_type *mu_base = (struct mu_type *)base; + +writel (0 , &mu_base->tcr); +writel (0 , &mu_base->rcr); } -static int mu_hal_sendmsg (struct mu_type *base,u32 reg_index,u32 msg) +int mu_hal_sendmsg (ulong base,u32 reg_index,u32 msg) { +struct mu_type *mu_base = (struct mu_type *)base;u32 mask =MU_SR_TE0_MASK << reg_index;u32 val;int ret;assert (reg_index <MU_TR_COUNT ); -debug ("sendmsg sr 0x%x\n" ,readl (&base->sr)); +debug ("sendmsg sr 0x%x\n" ,readl (&mu_base->sr));/* Wait TX register to be empty. */ - ret =readl_poll_timeout (&base->tsr, val, val & mask,10000 ); + ret =readl_poll_timeout (&mu_base->tsr, val, val & mask,10000 );if (ret <0 ) {debug ("%s timeout\n" , __func__);return -ETIMEDOUT ;
@@ -67,29 +70,30 @@ static int mu_hal_sendmsg(struct mu_type *base, u32 reg_index, u32 msg)debug ("tr[%d] 0x%x\n" , reg_index, msg); -writel (msg, &base->tr[reg_index]); +writel (msg, &mu_base->tr[reg_index]);return 0 ; } -static int mu_hal_receivemsg (struct mu_type *base,u32 reg_index,u32 *msg) +int mu_hal_receivemsg (ulong base,u32 reg_index,u32 *msg) { +struct mu_type *mu_base = (struct mu_type *)base;u32 mask =MU_SR_RF0_MASK << reg_index;u32 val;int ret;assert (reg_index <MU_TR_COUNT ); -debug ("receivemsg sr 0x%x\n" ,readl (&base->sr)); +debug ("receivemsg sr 0x%x\n" ,readl (&mu_base->sr));/* Wait RX register to be full. */ - ret =readl_poll_timeout (&base->rsr, val, val & mask,10000 ); + ret =readl_poll_timeout (&mu_base->rsr, val, val & mask,10000 );if (ret <0 ) {debug ("%s timeout\n" , __func__);return -ETIMEDOUT ; } - *msg =readl (&base->rr[reg_index]); + *msg =readl (&mu_base->rr[reg_index]);debug ("rr[%d] 0x%x\n" , reg_index, *msg);
@@ -106,7 +110,7 @@ static int imx8ulp_mu_read(struct mu_type *base, void *data)return -EINVAL ;/* Read first word */ - ret =mu_hal_receivemsg (base,0 , (u32 *)msg); + ret =mu_hal_receivemsg ((ulong )base,0 , (u32 *)msg);if (ret)return ret; count++;
@@ -119,7 +123,7 @@ static int imx8ulp_mu_read(struct mu_type *base, void *data)/* Read remaining words */ while (count < msg->size) { - ret =mu_hal_receivemsg (base, count %MU_RR_COUNT , + ret =mu_hal_receivemsg ((ulong )base, count %MU_RR_COUNT , &msg->data[count -1 ]);if (ret)return ret;
@@ -143,14 +147,14 @@ static int imx8ulp_mu_write(struct mu_type *base, void *data)return -EINVAL ;/* Write first word */ - ret =mu_hal_sendmsg (base,0 , *((u32 *)msg)); + ret =mu_hal_sendmsg ((ulong )base,0 , *((u32 *)msg));if (ret)return ret; count++;/* Write remaining words */ while (count < msg->size) { - ret =mu_hal_sendmsg (base, count %MU_TR_COUNT , + ret =mu_hal_sendmsg ((ulong )base, count %MU_TR_COUNT , msg->data[count -1 ]);if (ret)return ret;
@@ -207,7 +211,7 @@ static int imx8ulp_mu_probe(struct udevice *dev)debug ("mu base 0x%lx\n" , (ulong )priv->base);/* U-Boot not enable interrupts, so need to enable RX interrupts */ -mu_hal_init (priv->base); +mu_hal_init ((ulong )priv->base); gd->arch.s400_dev = dev;
Signature · 1 line
2.30.0
PATCH v3 26/44 arm: imx8ulp: release and configure XRDC at early phase
Quoted 10 lines
From: Ye Li <[email protected]>
Since S400 will set the memory of SPL image to R/X. We can't write to any data in SPL image.
1. Set the parameters save/restore only for u-boot, not for SPL. to avoid write data.
2. Not use MU DM driver but directly call MU API to send release XRDC to S400 at early phase.
3. Configure the SPL image memory of SRAM2 to writable (R/W/X)Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 27/44 arm: imx8ulp: add rdc support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
There is xrdc inside i.MX8ULP, we need to configure permission to make sure AP non-secure world could access the resources.
--- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 2 + arch/arm/mach-imx/imx8ulp/Makefile | 2 +- arch/arm/mach-imx/imx8ulp/rdc.c | 144 ++++++++++++++++++ 3 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach-imx/imx8ulp/rdc.c
arch/arm/include/asm/arch-imx8ulp/sys_proto.h +2 -0
@@ -13,4 +13,6 @@ extern unsigned long rom_pointer[];ulong spl_romapi_raw_seekable_read (u32 offset,u32 size,void *buf);ulong spl_romapi_get_uboot_base (u32 image_offset,u32 rom_bt_dev);enum bt_mode get_boot_mode (void ); +int xrdc_config_pdac (u32 bridge,u32 index,u32 dom,u32 perm); +int xrdc_config_pdac_openacc (u32 bridge,u32 index);#endif
arch/arm/mach-imx/imx8ulp/Makefile +1 -1
@@ -4,4 +4,4 @@ # obj-y += lowlevel_init.o -obj-y += soc.o clock.o iomux.o pcc.o cgc.o +obj-y += soc.o clock.o iomux.o pcc.o cgc.o rdc.o
arch/arm/mach-imx/imx8ulp/rdc.c new file +144 -0
144 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 27/44 arm: imx8ulp: add rdc support
Quoted 4 lines
From: Peng Fan <[email protected]>
There is xrdc inside i.MX8ULP, we need to configure permission to make sure AP non-secure world could access the resources.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 28/44 arm: imx8ulp: add trdc release request
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add TRDC release request, then we could configure resources to be accessible by A35 Domain.
--- arch/arm/mach-imx/imx8ulp/soc.c | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-)
arch/arm/mach-imx/imx8ulp/soc.c +17 -9
@@ -344,17 +344,23 @@ static void set_core0_reset_vector(u32 entry)setbits_le32 (SIM1_BASE_ADDR +0x8 , (0x1 <<26 )); } -static int release_xrdc (void ) +enum rdc_type { +RDC_TRDC , +RDC_XRDC , +}; + +static int release_rdc (enum rdc_type type) {ulong s_mu_base =0x27020000UL ;struct imx8ulp_s400_msg msg;int ret; +u32 rdc_id = (type ==RDC_XRDC ) ?0x78 :0x74 ; msg.version =AHAB_VERSION ; msg.tag =AHAB_CMD_TAG ; msg.size =2 ; msg.command =AHAB_RELEASE_RDC_REQ_CID ; - msg.data[0 ] = (0x78 <<8 ) |0x2 ;/* A35 XRDC */ + msg.data[0 ] = (rdc_id <<8 ) |0x2 ;/* A35 XRDC */ mu_hal_init (s_mu_base);mu_hal_sendmsg (s_mu_base,0 , *((u32 *)&msg));
@@ -363,13 +369,12 @@ static int release_xrdc(void) ret =mu_hal_receivemsg (s_mu_base,0 , (u32 *)&msg);if (!ret) { ret =mu_hal_receivemsg (s_mu_base,1 , &msg.data[0 ]); -if (!ret) -return ret; +if (!ret) { +if ((msg.data[0 ] &0xff ) ==0xd6 ) +return 0 ; + } -if ((msg.data[0 ] &0xff ) ==0 ) -return 0 ; -else -return -EIO ; +return -EIO ; }return ret;
@@ -423,8 +428,11 @@ int arch_cpu_init(void)/* Disable wdog */ init_wdog (); +if (get_boot_mode () ==SINGLE_BOOT ) +release_rdc (RDC_TRDC ); +/* release xrdc, then allow A35 to write SRAM2 */ -release_xrdc (); +release_rdc (RDC_XRDC );xrdc_mrc_region_set_access (2 ,CONFIG_SPL_TEXT_BASE ,0xE00 );clock_init ();
Signature · 1 line
2.30.0
PATCH v3 28/44 arm: imx8ulp: add trdc release request
Quoted 4 lines
From: Peng Fan <[email protected]>
Add TRDC release request, then we could configure resources to be accessible by A35 Domain.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 29/44 arm: imx8ulp: release trdc and assign lpav from RTD to APD
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Rlease LPAV from RTD to APD
Release gpu2D/3D to APD
Set TRDC MBC2 MEM1 for iomuxc0 access
Since upower depends AP/M33 SW to configure IOMUX for its PMIC i2c and MODE pins. we have to open iomuxc0 access for A35 core (domain 7) in single boot.
--- arch/arm/mach-imx/imx8ulp/soc.c | 104 +++++++++++++++++++++++++++++++- 1 file changed, 103 insertions(+), 1 deletion(-)
arch/arm/mach-imx/imx8ulp/soc.c +103 -1
@@ -380,6 +380,102 @@ static int release_rdc(enum rdc_type type)return ret; } +struct mbc_mem_dom { +u32 mem_glbcfg[4 ]; +u32 nse_blk_index; +u32 nse_blk_set; +u32 nse_blk_clr; +u32 nsr_blk_clr_all; +u32 memn_glbac[8 ]; +/* The upper only existed in the beginning of each MBC */ +u32 mem0_blk_cfg_w[64 ]; +u32 mem0_blk_nse_w[16 ]; +u32 mem1_blk_cfg_w[8 ]; +u32 mem1_blk_nse_w[2 ]; +u32 mem2_blk_cfg_w[8 ]; +u32 mem2_blk_nse_w[2 ]; +u32 mem3_blk_cfg_w[8 ]; +u32 mem3_blk_nse_w[2 ];/*0x1F0, 0x1F4 */ +u32 reserved[2 ]; +}; + +struct trdc { +u8 res0[0x1000 ]; +struct mbc_mem_dom mem_dom[4 ][8 ]; +}; + +/* MBC[m]_[d]_MEM[s]_BLK_CFG_W[w] */ +int trdc_mbc_set_access (u32 mbc_x,u32 dom_x,u32 mem_x,u32 blk_x,u32 perm) +{ +struct trdc *trdc_base = (struct trdc *)0x28031000U ; +struct mbc_mem_dom *mbc_dom; +u32 *cfg_w, *nse_w; +u32 index, offset, val; + + mbc_dom = &trdc_base->mem_dom[mbc_x][dom_x]; + +switch (mem_x) { +case 0 : + cfg_w = &mbc_dom->mem0_blk_cfg_w[blk_x /8 ]; + nse_w = &mbc_dom->mem0_blk_nse_w[blk_x /32 ]; +break ; +case 1 : + cfg_w = &mbc_dom->mem1_blk_cfg_w[blk_x /8 ]; + nse_w = &mbc_dom->mem1_blk_nse_w[blk_x /32 ]; +break ; +case 2 : + cfg_w = &mbc_dom->mem2_blk_cfg_w[blk_x /8 ]; + nse_w = &mbc_dom->mem2_blk_nse_w[blk_x /32 ]; +break ; +case 3 : + cfg_w = &mbc_dom->mem3_blk_cfg_w[blk_x /8 ]; + nse_w = &mbc_dom->mem3_blk_nse_w[blk_x /32 ]; +break ; +default : +return -EINVAL ; + }; + + index = blk_x %8 ; + offset = index *4 ; + + val =readl ((void __iomem *)cfg_w); + + val &= ~(0xFU << offset); + +if (perm ==0x7700 ) { + val |= (0x0 << offset); +writel (perm, (void __iomem *)cfg_w); + }else if (perm ==0x0077 ) { + val |= (0x8 << offset);/* nse bit set */ +writel (val, (void __iomem *)cfg_w); + }else { +return -EINVAL ; + } + +return 0 ; +} + +int trdc_set_access (void ) +{ +/* +* CGC0: PBridge0 slot 47 +* trdc_mbc_set_access(2, 7, 0, 47, 0x7700); +* For secure access, default single boot already support, +* For non-secure access, need add in future per usecase. +*/ +trdc_mbc_set_access (2 ,7 ,0 ,49 ,0x7700 ); +trdc_mbc_set_access (2 ,7 ,0 ,50 ,0x7700 ); +trdc_mbc_set_access (2 ,7 ,0 ,51 ,0x7700 ); +trdc_mbc_set_access (2 ,7 ,0 ,52 ,0x7700 ); + +trdc_mbc_set_access (2 ,7 ,0 ,47 ,0x0077 ); + +/* iomuxc 0 */ +trdc_mbc_set_access (2 ,7 ,1 ,33 ,0x7700 ); + +return 0 ; +} +static void xrdc_mrc_region_set_access (int mrc_index,u32 addr,u32 access) {ulong xrdc_base =0x292f0000 , off;
@@ -428,8 +524,14 @@ int arch_cpu_init(void)/* Disable wdog */ init_wdog (); -if (get_boot_mode () ==SINGLE_BOOT ) +if (get_boot_mode () ==SINGLE_BOOT ) {release_rdc (RDC_TRDC ); +trdc_set_access (); +/* LPAV to APD */ +setbits_le32 (0x2802B044 ,BIT (7 )); +/* GPU 2D/3D to APD */ +setbits_le32 (0x2802B04C ,BIT (1 ) |BIT (2 )); + }/* release xrdc, then allow A35 to write SRAM2 */ release_rdc (RDC_XRDC );
Signature · 1 line
2.30.0
PATCH v3 29/44 arm: imx8ulp: release trdc and assign lpav from RTD to APD
Quoted 9 lines
From: Peng Fan <[email protected]>
Rlease LPAV from RTD to APD
Release gpu2D/3D to APD
Set TRDC MBC2 MEM1 for iomuxc0 access
Since upower depends AP/M33 SW to configure IOMUX for its PMIC i2c and MODE pins. we have to open iomuxc0 access for A35 core (domain 7) in single boot.Signed-off-by Peng Fan <[email protected]>Signed-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 30/44 imx8ulp: unify rdc functions
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Unify rdc function to rdc.c
Update soc.c to use new rdc function
--- arch/arm/include/asm/arch-imx8ulp/rdc.h | 27 +++ arch/arm/mach-imx/imx8ulp/rdc.c | 283 +++++++++++++++++++++++- arch/arm/mach-imx/imx8ulp/soc.c | 180 ++------------- 3 files changed, 317 insertions(+), 173 deletions(-) create mode 100644 arch/arm/include/asm/arch-imx8ulp/rdc.h
arch/arm/include/asm/arch-imx8ulp/rdc.h new file +27 -0
@@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2021 NXP +*/ + +#ifndef __ASM_ARCH_IMX8ULP_RDC_H +#define __ASM_ARCH_IMX8ULP_RDC_H + +enum rdc_type { +RDC_TRDC , +RDC_XRDC , +}; + +int release_rdc (enum rdc_type type); +void xrdc_mrc_region_set_access (int mrc_index,u32 addr,u32 access); +int xrdc_config_mrc_dx_perm (u32 mrc_con,u32 region,u32 dom,u32 dxsel); +int xrdc_config_mrc_w0_w1 (u32 mrc_con,u32 region,u32 w0,u32 size); +int xrdc_config_mrc_w3_w4 (u32 mrc_con,u32 region,u32 w3,u32 w4); +int xrdc_config_pdac (u32 bridge,u32 index,u32 dom,u32 perm); +int xrdc_config_pdac_openacc (u32 bridge,u32 index); +int trdc_mbc_set_access (u32 mbc_x,u32 dom_x,u32 mem_x,u32 blk_x,bool sec_access); +int trdc_mrc_region_set_access (u32 mrc_x,u32 dom_x,u32 addr_start,u32 addr_end,bool sec_access); + +void xrdc_init_mda (void ); +void xrdc_init_mrc (void ); + +#endif
arch/arm/mach-imx/imx8ulp/rdc.c +275 -8
302 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/soc.c +15 -165
201 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 30/44 imx8ulp: unify rdc functions
Quoted 4 lines
From: Peng Fan <[email protected]> Unify rdc function to
rdc.cUpdatesoc.cto use new rdc functionSigned-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 31/44 arm: imx8ulp: Probe the S400 MU device in arch init
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Need probe the S400 MU device in arch_cpu_init_dm, so we can use S400 API in u-boot
--- arch/arm/mach-imx/imx8ulp/soc.c | 35 ++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-)
arch/arm/mach-imx/imx8ulp/soc.c +34 -1
@@ -16,6 +16,12 @@#include <asm/arch/mu_hal.h> #include <cpu_func.h> #include <asm/setup.h> +#include <dm.h> +#include <dm/device-internal.h> +#include <dm/lists.h> +#include <dm/uclass.h> +#include <dm/device.h> +#include <dm/uclass-internal.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -322,7 +328,18 @@ int dram_init(void)#ifdef CONFIG_SERIAL_TAG void get_board_serial (struct tag_serialnr *serialnr) { -/* TODO */ +u32 uid[4 ]; +u32 res; +int ret; + + ret =ahab_read_common_fuse (1 , uid,4 , &res); +if (ret) +printf ("ahab read fuse failed %d, 0x%x\n" , ret, res); +else +printf ("UID 0x%x,0x%x,0x%x,0x%x\n" , uid[0 ], uid[1 ], uid[2 ], uid[3 ]); + + serialnr->low = uid[0 ]; + serialnr->high = uid[3 ]; }#endif
@@ -396,6 +413,22 @@ int arch_cpu_init(void)return 0 ; } +int arch_cpu_init_dm (void ) +{ +struct udevice *devp; +int node, ret; + + node =fdt_node_offset_by_compatible (gd->fdt_blob,-1 ,"fsl,imx8ulp-mu" ); + + ret =uclass_get_device_by_of_offset (UCLASS_MISC , node, &devp); +if (ret) { +printf ("could not get S400 mu %d\n" , ret); +return ret; + } + +return 0 ; +} +#if defined(CONFIG_SPL_BUILD )__weak void __noreturn jump_to_image_no_args (struct spl_image_info *spl_image) {
Signature · 1 line
2.30.0
PATCH v3 31/44 arm: imx8ulp: Probe the S400 MU device in arch init
Quoted 5 lines
From: Ye Li <[email protected]>
Need probe the S400 MU device inarch_cpu_init_dm, so we can use S400 API in u-bootSigned-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 32/44 arm: iMX8ULP: Add boot device relevant functions
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Read from ROM API to get current boot device.
--- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 1 + arch/arm/mach-imx/imx8ulp/soc.c | 83 +++++++++++++++++++ 2 files changed, 84 insertions(+)
arch/arm/include/asm/arch-imx8ulp/sys_proto.h +1 -0
@@ -15,4 +15,5 @@ ulong spl_romapi_get_uboot_base(u32 image_offset, u32 rom_bt_dev);enum bt_mode get_boot_mode (void );int xrdc_config_pdac (u32 bridge,u32 index,u32 dom,u32 perm);int xrdc_config_pdac_openacc (u32 bridge,u32 index); +enum boot_device get_boot_device (void );#endif
arch/arm/mach-imx/imx8ulp/soc.c +83 -0
89 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 32/44 arm: iMX8ULP: Add boot device relevant functions
Quoted 4 lines
From: Ye Li <[email protected]>
Read from ROM API to get current boot device.Signed-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 33/44 arm: imx8ulp: Allocate DCNANO and MIPI_DSI to AD domain
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Configure DCNANO and MIPI_DSI to be controlled by AD for single boot
--- arch/arm/mach-imx/imx8ulp/soc.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-imx/imx8ulp/soc.c +2 -0
@@ -481,6 +481,8 @@ int arch_cpu_init(void)setbits_le32 (0x2802B044 ,BIT (7 ));/* GPU 2D/3D to APD */ setbits_le32 (0x2802B04C ,BIT (1 ) |BIT (2 )); +/* DCNANO and MIPI_DSI to APD */ +setbits_le32 (0x2802B04C ,BIT (1 ) |BIT (2 ) |BIT (3 ) |BIT (4 )); }/* release xrdc, then allow A35 to write SRAM2 */
Signature · 1 line
2.30.0
PATCH v3 33/44 arm: imx8ulp: Allocate DCNANO and MIPI_DSI to AD domain
Quoted 4 lines
From: Ye Li <[email protected]>
Configure DCNANO andMIPI_DSIto be controlled by AD for single bootSigned-off-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 34/44 arm: imx8ulp: add dummy imx_get_mac_from_fuse
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add imx_get_mac_from_fuse for enet build pass
--- arch/arm/mach-imx/imx8ulp/soc.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/mach-imx/imx8ulp/soc.c +5 -0
@@ -531,3 +531,8 @@ __weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) ; }#endif + +void imx_get_mac_from_fuse (int dev_id,unsigned char *mac) +{ +memset (mac,0 ,6 ); +}
Signature · 1 line
2.30.0
PATCH v3 34/44 arm: imx8ulp: add dummy imx_get_mac_from_fuse
Quoted 3 lines
From: Peng Fan <[email protected]>
Addimx_get_mac_from_fusefor enet build passSigned-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 35/44 arm: imx8ulp: add iomuxc support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add i.MX8ULP iomuxc support
--- arch/arm/include/asm/arch-imx8ulp/iomux.h | 82 +++++++++++++++++++++++ arch/arm/mach-imx/imx8ulp/iomux.c | 56 +++++++++++++++- 2 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 arch/arm/include/asm/arch-imx8ulp/iomux.h
arch/arm/include/asm/arch-imx8ulp/iomux.h new file +82 -0
@@ -0,0 +1,82 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2020 NXP +*/ + +#ifndef __MACH_IMX8ULP_IOMUX_H__ +#define __MACH_IMX8ULP_IOMUX_H__ + +typedef u64 iomux_cfg_t ; + +#define MUX_CTRL_OFS_SHIFT 0 +#define MUX_CTRL_OFS_MASK ((iomux_cfg_t)0xffff << MUX_CTRL_OFS_SHIFT) +#define MUX_SEL_INPUT_OFS_SHIFT 16 +#define MUX_SEL_INPUT_OFS_MASK ((iomux_cfg_t)0xffff << MUX_SEL_INPUT_OFS_SHIFT) + +#define MUX_MODE_SHIFT 32 +#define MUX_MODE_MASK ((iomux_cfg_t)0x3f << MUX_MODE_SHIFT) +#define MUX_SEL_INPUT_SHIFT 38 +#define MUX_SEL_INPUT_MASK ((iomux_cfg_t)0xf << MUX_SEL_INPUT_SHIFT) +#define MUX_PAD_CTRL_SHIFT 42 +#define MUX_PAD_CTRL_MASK ((iomux_cfg_t)0x7ffff << MUX_PAD_CTRL_SHIFT) + +#define MUX_PAD_CTRL (x) ((iomux_cfg_t)(x) << MUX_PAD_CTRL_SHIFT) + +#define IOMUX_PAD (pad_ctrl_ofs, mux_ctrl_ofs, mux_mode, sel_input_ofs, sel_input, pad_ctrl) \ + (((iomux_cfg_t)(mux_ctrl_ofs) << MUX_CTRL_OFS_SHIFT) | \ + ((iomux_cfg_t)(mux_mode) << MUX_MODE_SHIFT) | \ + ((iomux_cfg_t)(pad_ctrl) << MUX_PAD_CTRL_SHIFT) | \ + ((iomux_cfg_t)(sel_input_ofs) << MUX_SEL_INPUT_OFS_SHIFT) | \ + ((iomux_cfg_t)(sel_input) << MUX_SEL_INPUT_SHIFT)) + +#define NEW_PAD_CTRL (cfg, pad) (((cfg) & ~MUX_PAD_CTRL_MASK) | MUX_PAD_CTRL(pad)) + +#define IOMUX_CONFIG_MPORTS 0x20 +#define MUX_MODE_MPORTS ((iomux_v3_cfg_t)IOMUX_CONFIG_MPORTS << \ MUX_MODE_SHIFT) + +/* Bit definition below needs to be fixed acccording to ulp rm */ + +#define NO_PAD_CTRL BIT(18) +#define PAD_CTL_OBE_ENABLE BIT(17) +#define PAD_CTL_IBE_ENABLE BIT(16) +#define PAD_CTL_DSE BIT(6) +#define PAD_CTL_ODE BIT(5) +#define PAD_CTL_SRE_FAST (0 << 2) +#define PAD_CTL_SRE_SLOW BIT(2) +#define PAD_CTL_PUE BIT(1) +#define PAD_CTL_PUS_UP (BIT(0) | PAD_CTL_PUE) +#define PAD_CTL_PUS_DOWN ((0 << 0) | PAD_CTL_PUE) + +#define IOMUXC_PCR_MUX_ALT0 (0 << 8) +#define IOMUXC_PCR_MUX_ALT1 (1 << 8) +#define IOMUXC_PCR_MUX_ALT2 (2 << 8) +#define IOMUXC_PCR_MUX_ALT3 (3 << 8) +#define IOMUXC_PCR_MUX_ALT4 (4 << 8) +#define IOMUXC_PCR_MUX_ALT5 (5 << 8) +#define IOMUXC_PCR_MUX_ALT6 (6 << 8) +#define IOMUXC_PCR_MUX_ALT7 (7 << 8) +#define IOMUXC_PCR_MUX_ALT8 (8 << 8) +#define IOMUXC_PCR_MUX_ALT9 (9 << 8) +#define IOMUXC_PCR_MUX_ALT10 (10 << 8) +#define IOMUXC_PCR_MUX_ALT11 (11 << 8) +#define IOMUXC_PCR_MUX_ALT12 (12 << 8) +#define IOMUXC_PCR_MUX_ALT13 (13 << 8) +#define IOMUXC_PCR_MUX_ALT14 (14 << 8) +#define IOMUXC_PCR_MUX_ALT15 (15 << 8) + +#define IOMUXC_PSMI_IMUX_ALT0 (0x0) +#define IOMUXC_PSMI_IMUX_ALT1 (0x1) +#define IOMUXC_PSMI_IMUX_ALT2 (0x2) +#define IOMUXC_PSMI_IMUX_ALT3 (0x3) +#define IOMUXC_PSMI_IMUX_ALT4 (0x4) +#define IOMUXC_PSMI_IMUX_ALT5 (0x5) +#define IOMUXC_PSMI_IMUX_ALT6 (0x6) +#define IOMUXC_PSMI_IMUX_ALT7 (0x7) + +#define IOMUXC_PCR_MUX_ALT_SHIFT (8) +#define IOMUXC_PCR_MUX_ALT_MASK (0xF00) +#define IOMUXC_PSMI_IMUX_ALT_SHIFT (0) + +void imx8ulp_iomux_setup_pad (iomux_cfg_t pad); +void imx8ulp_iomux_setup_multiple_pads (iomux_cfg_t const *pad_list,unsigned count); +#endif
arch/arm/mach-imx/imx8ulp/iomux.c +55 -1
59 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 35/44 arm: imx8ulp: add iomuxc support
Quoted 3 lines
From: Peng Fan <[email protected]>
Add i.MX8ULP iomuxc supportSigned-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 36/44 driver: misc: imx8ulp: Add fuse driver for imx8ulp
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
This driver uses FSB to read some fuses, but not support program fuse. It only works in SPL (secure mode), u-boot needs traps to ATF to read them.
Some fuses can read from S400 API and others are from FSB. Also support program some fuses via S400 API
--- drivers/misc/imx8ulp/Makefile | 1 + drivers/misc/imx8ulp/fuse.c | 198 ++++++++++++++++++++++++++++++++++ 2 files changed, 199 insertions(+) create mode 100644 drivers/misc/imx8ulp/fuse.c
drivers/misc/imx8ulp/Makefile +1 -0
@@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y += s400_api.o imx8ulp_mu.o +obj-$(CONFIG_CMD_FUSE) += fuse.o
drivers/misc/imx8ulp/fuse.c new file +198 -0
198 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 36/44 driver: misc: imx8ulp: Add fuse driver for imx8ulp
Quoted 7 lines
From: Ye Li <[email protected]>
This driver uses FSB to read some fuses, but not support program fuse. It only works in SPL (secure mode), u-boot needs traps to ATF to read them.
Some fuses can read from S400 API and others are from FSB. Also support program some fuses via S400 APISigned-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 37/44 imx8ulp: soc: correct reset cause
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
The CMC1 SRS reflects the current reset cause, not SSRS.
Then you could get "Reset cause: WARM-WDG" when issue reset in U-Boot.
--- arch/arm/mach-imx/imx8ulp/soc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
arch/arm/mach-imx/imx8ulp/soc.c +3 -7
@@ -148,8 +148,6 @@ enum bt_mode get_boot_mode(void)#define CMC_SRS_POR BIT(1)#define CMC_SRS_WUP BIT(0) -static u32 reset_cause =-1 ; -static char *get_reset_cause (char *ret) {u32 cause1, cause =0 , srs =0 ;
@@ -162,9 +160,7 @@ static char *get_reset_cause(char *ret) srs =readl (reg_srs); cause1 =readl (reg_ssrs); - reset_cause = cause1; - - cause = cause1 & (CMC_SRS_POR |CMC_SRS_WUP |CMC_SRS_WARM ); + cause = srs & (CMC_SRS_POR |CMC_SRS_WUP |CMC_SRS_WARM );switch (cause) {case CMC_SRS_POR :
@@ -174,7 +170,7 @@ static char *get_reset_cause(char *ret)sprintf (ret,"%s" ,"WUP" );break ;case CMC_SRS_WARM : - cause = cause1 & (CMC_SRS_WDG |CMC_SRS_SW | + cause = srs & (CMC_SRS_WDG |CMC_SRS_SW |CMC_SRS_JTAG_RST );switch (cause) {case CMC_SRS_WDG :
@@ -192,7 +188,7 @@ static char *get_reset_cause(char *ret) }break ;default : -sprintf (ret,"%s-%X" ,"UNKN" , cause1); +sprintf (ret,"%s-%X" ,"UNKN" , srs);break ; }
Signature · 1 line
2.30.0
PATCH v3 37/44 imx8ulp: soc: correct reset cause
Quoted 5 lines
From: Peng Fan <[email protected]>
The CMC1 SRS reflects the current reset cause, not SSRS. Then you could get "Reset cause: WARM-WDG" when issue reset in U-Boot.Reviewed-by Ye Li <[email protected]>Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 38/44 imx8ulp: Use DGO_GP5 to get boot config
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Since CMC1 MR0 only reflects high 16 bits boot cfg used for AP domian, it does not connect to low 16 bits for RTD. So we can't get the correct boot mode.
Change to use DGO_GP5 of SEC_SIM which is set by ROM.
--- arch/arm/mach-imx/imx8ulp/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx8ulp/soc.c +1 -1
@@ -119,7 +119,7 @@ enum bt_mode get_boot_mode(void) {u32 bt0_cfg =0 ; - bt0_cfg =readl (CMC1_BASE_ADDR +0xa0 ); + bt0_cfg =readl (SIM_SEC_BASE_ADDR +0x24 ); bt0_cfg &= (BT0CFG_LPBOOT_MASK |BT0CFG_DUALBOOT_MASK );if (!(bt0_cfg &BT0CFG_LPBOOT_MASK )) {
Signature · 1 line
2.30.0
PATCH v3 38/44 imx8ulp: Use DGO_GP5 to get boot config
Quoted 6 lines
From: Ye Li <[email protected]>
Since CMC1 MR0 only reflects high 16 bits boot cfg used for AP domian, it does not connect to low 16 bits for RTD. So we can't get the correct boot mode.
Change to useDGO_GP5ofSEC_SIMwhich is set by ROM.Signed-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 39/44 imx8ulp: Add workaround for eMMC boot
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
When booting from boot part1/2, the image offset should be 0, but ROM has a bug to return 0x8000. Has to workaround the issue before ROM fix it.
Use a ROM function to know boot from emmc boot part or user part So we can set the image offset accordingly.
--- arch/arm/mach-imx/image-container.c | 7 +++++++ arch/arm/mach-imx/imx8ulp/soc.c | 10 ++++++++++ 2 files changed, 17 insertions(+)
arch/arm/mach-imx/image-container.c +7 -0
@@ -265,10 +265,17 @@ unsigned long spl_nor_get_uboot_base(void)#endif #ifdef CONFIG_SPL_BOOTROM_SUPPORT +u32 __weak spl_arch_boot_image_offset (u32 image_offset,u32 rom_bt_dev) +{ +return image_offset; +} +ulong spl_romapi_get_uboot_base (u32 image_offset,u32 rom_bt_dev) {ulong end; + image_offset =spl_arch_boot_image_offset (image_offset, rom_bt_dev); + end =get_imageset_end ((void *)(ulong )image_offset,ROM_API_DEV ); end =ROUND (end,SZ_1K );
arch/arm/mach-imx/imx8ulp/soc.c +10 -0
@@ -532,3 +532,13 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac) {memset (mac,0 ,6 ); } + +int (*card_emmc_is_boot_part_en)(void ) = (void *)0x67cc ; +u32 spl_arch_boot_image_offset (u32 image_offset,u32 rom_bt_dev) +{ +/* Hard code for eMMC image_offset on 8ULP ROM, need fix by ROM, temp workaround */ +if (((rom_bt_dev >>16 ) &0xff ) ==BT_DEV_TYPE_MMC &&card_emmc_is_boot_part_en ()) + image_offset =0 ; + +return image_offset; +}
Signature · 1 line
2.30.0
PATCH v3 39/44 imx8ulp: Add workaround for eMMC boot
Quoted 7 lines
From: Ye Li <[email protected]>
When booting from boot part1/2, the image offset should be 0, but ROM has a bug to return0x8000. Has to workaround the issue before ROM fix it.
Use a ROM function to know boot from emmc boot part or user part So we can set the image offset accordingly.Signed-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 40/44 imx8ulp: move struct mu_type to common header
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Move struct mu_type to common header to make it reusable by upower and S400
--- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 25 ++++++++++++++++++++ drivers/misc/imx8ulp/imx8ulp_mu.c | 19 +-------------- 2 files changed, 26 insertions(+), 18 deletions(-)
arch/arm/include/asm/arch-imx8ulp/imx-regs.h +25 -0
@@ -63,6 +63,31 @@ #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) #include <asm/types.h> +struct mu_type { + u32 ver; + u32 par; + u32 cr; + u32 sr; + u32 reserved0[60]; + u32 fcr; + u32 fsr; + u32 reserved1[2]; + u32 gier; + u32 gcr; + u32 gsr; + u32 reserved2; + u32 tcr; + u32 tsr; + u32 rcr; + u32 rsr; + u32 reserved3[52]; + u32 tr[16]; + u32 reserved4[16]; + u32 rr[16]; + u32 reserved5[14]; + u32 mu_attr; +}; + struct usbphy_regs { u32 usbphy_pwd; /* 0x000 */ u32 usbphy_pwd_set; /* 0x004 */
drivers/misc/imx8ulp/imx8ulp_mu.c +1 -18
@@ -10,29 +10,12 @@#include <dm/root.h> #include <dm/device-internal.h> #include <asm/arch/s400_api.h> +#include <asm/arch/imx-regs.h> #include <linux/iopoll.h> #include <misc.h> DECLARE_GLOBAL_DATA_PTR ; -struct mu_type { -u32 ver; -u32 par; -u32 cr; -u32 sr; -u32 reserved0[68 ]; -u32 tcr; -u32 tsr; -u32 rcr; -u32 rsr; -u32 reserved1[52 ]; -u32 tr[16 ]; -u32 reserved2[16 ]; -u32 rr[16 ]; -u32 reserved4[14 ]; -u32 mu_attr; -}; -struct imx8ulp_mu {struct mu_type *base; };
Signature · 1 line
2.30.0
PATCH v3 40/44 imx8ulp: move struct mu_type to common header
Quoted 4 lines
From: Peng Fan <[email protected]>
Move structmu_typeto common header to make it reusable by upower and S400Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 41/44 imx8ulp: add upower api support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add upower api support, this is modified from upower firmware exported package.
--- arch/arm/include/asm/arch-imx8ulp/upower.h | 15 + arch/arm/mach-imx/imx8ulp/Makefile | 4 + arch/arm/mach-imx/imx8ulp/upower/Makefile | 6 + arch/arm/mach-imx/imx8ulp/upower/upower_api.c | 486 ++++++++++++++++++ arch/arm/mach-imx/imx8ulp/upower/upower_api.h | 258 ++++++++++ arch/arm/mach-imx/imx8ulp/upower/upower_hal.c | 179 +++++++ 6 files changed, 948 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8ulp/upower.h create mode 100644 arch/arm/mach-imx/imx8ulp/upower/Makefile create mode 100644 arch/arm/mach-imx/imx8ulp/upower/upower_api.c create mode 100644 arch/arm/mach-imx/imx8ulp/upower/upower_api.h create mode 100644 arch/arm/mach-imx/imx8ulp/upower/upower_hal.c
arch/arm/include/asm/arch-imx8ulp/upower.h new file +15 -0
@@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2021 NXP +*/ + +#ifndef __ASM_ARCH_IMX8ULP_UPOWER_H +#define __ASM_ARCH_IMX8ULP_UPOWER_H + +#include <asm/types.h> + +int upower_init (void ); +int upower_pmic_i2c_write (u32 reg_addr,u32 reg_val); +int upower_pmic_i2c_read (u32 reg_addr,u32 *reg_val); + +#endif
arch/arm/mach-imx/imx8ulp/Makefile +4 -0
@@ -5,3 +5,7 @@ obj-y += lowlevel_init.o obj-y += soc.o clock.o iomux.o pcc.o cgc.o rdc.o + +ifeq ($(CONFIG_SPL_BUILD),y) +obj-y += upower/ +endif
arch/arm/mach-imx/imx8ulp/upower/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright 2020 NXP +# + +obj-y += upower_api.o upower_hal.o
arch/arm/mach-imx/imx8ulp/upower/upower_api.c new file +486 -0
486 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/upower/upower_api.h new file +258 -0
258 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/upower/upower_hal.c new file +179 -0
179 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 41/44 imx8ulp: add upower api support
Quoted 4 lines
From: Peng Fan <[email protected]>
Add upower api support, this is modified from upower firmware exported package.Signed-off-by Peng Fan <[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: [email protected] =====================================================================
PATCH v3 42/44 ddr: Add DDR driver for iMX8ULP
In reply to Peng Fan (OSS)From: Ye Li <[email protected]>
Add iMX8ULP DDR initialization driver which loads the DDR timing parameters and executes the training procedure.
When enabling IMX8ULP_DRAM_PHY_PLL_BYPASS, using PHY PLL bypass mode to do DDR init
--- drivers/Makefile | 1 + drivers/ddr/imx/Kconfig | 1 + drivers/ddr/imx/imx8ulp/Kconfig | 11 ++ drivers/ddr/imx/imx8ulp/Makefile | 9 ++ drivers/ddr/imx/imx8ulp/ddr_init.c | 217 +++++++++++++++++++++++++++++ 5 files changed, 239 insertions(+) create mode 100644 drivers/ddr/imx/imx8ulp/Kconfig create mode 100644 drivers/ddr/imx/imx8ulp/Makefile create mode 100644 drivers/ddr/imx/imx8ulp/ddr_init.c
drivers/Makefile +1 -0
@@ -45,6 +45,7 @@ obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/ obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/ obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/ obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/ +obj-$(CONFIG_IMX8ULP_DRAM) += ddr/imx/imx8ulp/ obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/ obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/ obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
drivers/ddr/imx/Kconfig +1 -0
@@ -1 +1,2 @@ source "drivers/ddr/imx/imx8m/Kconfig" +source "drivers/ddr/imx/imx8ulp/Kconfig"
drivers/ddr/imx/imx8ulp/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +menu "i.MX8ULP DDR controllers" + depends on ARCH_IMX8ULP + +config IMX8ULP_DRAM + bool "imx8m dram" + +config IMX8ULP_DRAM_PHY_PLL_BYPASS + bool "Enable the DDR PHY PLL bypass mode, so PHY clock is from DDR_CLK " + depends on IMX8ULP_DRAM + +endmenu
drivers/ddr/imx/imx8ulp/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# +# Copyright 2021 NXP +# +# SPDX-License-Identifier: GPL-2.0+ +# + +ifdef CONFIG_SPL_BUILD +obj-$(CONFIG_IMX8ULP_DRAM) += ddr_init.o +endif
drivers/ddr/imx/imx8ulp/ddr_init.c new file +217 -0
217 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 42/44 ddr: Add DDR driver for iMX8ULP
Quoted 6 lines
From: Ye Li <[email protected]>
Add iMX8ULP DDR initialization driver which loads the DDR timing parameters and executes the training procedure.
When enablingIMX8ULP_DRAM_PHY_PLL_BYPASS, using PHY PLL bypass mode to do DDR initSigned-off-by Ye Li <[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: [email protected] =====================================================================
PATCH v3 43/44 arm: dts: add i.MX8ULP dtsi
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add i.MX8ULP dtsi
--- arch/arm/dts/imx8ulp-pinfunc.h | 978 ++++++++++++++++++++++ arch/arm/dts/imx8ulp.dtsi | 728 ++++++++++++++++ include/dt-bindings/clock/imx8ulp-clock.h | 247 ++++++ 3 files changed, 1953 insertions(+) create mode 100644 arch/arm/dts/imx8ulp-pinfunc.h create mode 100644 arch/arm/dts/imx8ulp.dtsi create mode 100644 include/dt-bindings/clock/imx8ulp-clock.h
arch/arm/dts/imx8ulp-pinfunc.h new file +978 -0
@@ -0,0 +1,978 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2020 NXP +*/ + +#ifndef __DTS_IMX8ULP_PINFUNC_H +#define __DTS_IMX8ULP_PINFUNC_H + +/* +* The pin function ID is a tuple of +* <mux_reg input_reg mux_mode input_val> +*/ +#define MX8ULP_PAD_PTD0__PTD0 0x0000 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD0__I2S6_RX_BCLK 0x0000 0x0B44 0x7 0x1 +#define MX8ULP_PAD_PTD0__SDHC0_RESET_B 0x0000 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD0__FLEXSPI2_B_DQS 0x0000 0x0974 0x9 0x1 +#define MX8ULP_PAD_PTD0__CLKOUT2 0x0000 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD0__EPDC0_SDCLK_B 0x0000 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD0__LP_APD_DBG_MUX_0 0x0000 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD0__CLKOUT1 0x0000 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD0__DEBUG_MUX0_0 0x0000 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD0__DEBUG_MUX1_0 0x0000 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD1__PTD1 0x0004 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD1__I2S6_RX_FS 0x0004 0x0B48 0x7 0x1 +#define MX8ULP_PAD_PTD1__SDHC0_CMD 0x0004 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD1__FLEXSPI2_B_DATA7 0x0004 0x0970 0x9 0x1 +#define MX8ULP_PAD_PTD1__EPDC0_SDCLK 0x0004 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD1__DPI0_PCLK 0x0004 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD1__LP_APD_DBG_MUX_1 0x0004 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD1__DEBUG_MUX0_1 0x0004 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD1__DEBUG_MUX1_1 0x0004 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD2__PTD2 0x0008 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD2__I2S6_RXD0 0x0008 0x0B34 0x7 0x1 +#define MX8ULP_PAD_PTD2__SDHC0_CLK 0x0008 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD2__FLEXSPI2_B_DATA6 0x0008 0x096C 0x9 0x1 +#define MX8ULP_PAD_PTD2__EPDC0_SDLE 0x0008 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD2__DPI0_HSYNC 0x0008 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD2__LP_APD_DBG_MUX_2 0x0008 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD2__DEBUG_MUX0_2 0x0008 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD2__DEBUG_MUX1_2 0x0008 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD3__PTD3 0x000C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD3__I2S6_RXD1 0x000C 0x0B38 0x7 0x1 +#define MX8ULP_PAD_PTD3__SDHC0_D7 0x000C 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD3__FLEXSPI2_B_DATA5 0x000C 0x0968 0x9 0x1 +#define MX8ULP_PAD_PTD3__EPDC0_GDSP 0x000C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD3__DPI0_VSYNC 0x000C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD3__LP_APD_DBG_MUX_3 0x000C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD3__DEBUG_MUX0_3 0x000C 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD3__DEBUG_MUX1_3 0x000C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD4__PTD4 0x0010 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD4__EXT_AUD_MCLK3 0x0010 0x0B14 0x4 0x1 +#define MX8ULP_PAD_PTD4__SDHC0_VS 0x0010 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTD4__TPM8_CH5 0x0010 0x0B2C 0x6 0x1 +#define MX8ULP_PAD_PTD4__I2S6_MCLK 0x0010 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD4__SDHC0_D6 0x0010 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD4__FLEXSPI2_B_DATA4 0x0010 0x0964 0x9 0x1 +#define MX8ULP_PAD_PTD4__EPDC0_SDCE0 0x0010 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD4__DPI0_DE 0x0010 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD4__LP_APD_DBG_MUX_4 0x0010 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD4__DEBUG_MUX0_4 0x0010 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD4__DEBUG_MUX1_4 0x0010 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD5__PTD5 0x0014 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD5__SDHC0_CD 0x0014 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTD5__TPM8_CH4 0x0014 0x0B28 0x6 0x1 +#define MX8ULP_PAD_PTD5__I2S6_TX_BCLK 0x0014 0x0B4C 0x7 0x1 +#define MX8ULP_PAD_PTD5__SDHC0_D5 0x0014 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD5__FLEXSPI2_B_SS0_B 0x0014 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD5__FLEXSPI2_B_SCLK_B 0x0014 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD5__EPDC0_D0 0x0014 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD5__DPI0_D0 0x0014 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD5__LP_APD_DBG_MUX_5 0x0014 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD5__DEBUG_MUX0_5 0x0014 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD5__DEBUG_MUX1_5 0x0014 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD6__PTD6 0x0018 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD6__SDHC0_WP 0x0018 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTD6__TPM8_CH3 0x0018 0x0B24 0x6 0x1 +#define MX8ULP_PAD_PTD6__I2S6_TX_FS 0x0018 0x0B50 0x7 0x1 +#define MX8ULP_PAD_PTD6__SDHC0_D4 0x0018 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD6__FLEXSPI2_B_SCLK 0x0018 0x0978 0x9 0x1 +#define MX8ULP_PAD_PTD6__EPDC0_D1 0x0018 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD6__DPI0_D1 0x0018 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD6__LP_APD_DBG_MUX_6 0x0018 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD6__DEBUG_MUX0_6 0x0018 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD6__DEBUG_MUX1_6 0x0018 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD7__PTD7 0x001C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD7__TPM8_CH2 0x001C 0x0B20 0x6 0x1 +#define MX8ULP_PAD_PTD7__I2S6_TXD0 0x001C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD7__SDHC0_D3 0x001C 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD7__FLEXSPI2_B_DATA3 0x001C 0x0960 0x9 0x1 +#define MX8ULP_PAD_PTD7__EPDC0_D2 0x001C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD7__DPI0_D2 0x001C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD7__LP_APD_DBG_MUX_7 0x001C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD7__DEBUG_MUX0_7 0x001C 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD7__DEBUG_MUX1_7 0x001C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD8__PTD8 0x0020 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD8__TPM8_CH1 0x0020 0x0B1C 0x6 0x1 +#define MX8ULP_PAD_PTD8__I2S6_TXD1 0x0020 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD8__SDHC0_D2 0x0020 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD8__FLEXSPI2_B_DATA2 0x0020 0x095C 0x9 0x1 +#define MX8ULP_PAD_PTD8__EPDC0_D3 0x0020 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD8__DPI0_D3 0x0020 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD8__LP_APD_DBG_MUX_8 0x0020 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD8__DEBUG_MUX1_8 0x0020 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD9__PTD9 0x0024 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD9__TPM8_CLKIN 0x0024 0x0B30 0x6 0x1 +#define MX8ULP_PAD_PTD9__I2S6_TXD2 0x0024 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD9__SDHC0_D1 0x0024 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD9__FLEXSPI2_B_DATA1 0x0024 0x0958 0x9 0x1 +#define MX8ULP_PAD_PTD9__EPDC0_D4 0x0024 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD9__DPI0_D4 0x0024 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD9__LP_APD_DBG_MUX_9 0x0024 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD9__DEBUG_MUX1_9 0x0024 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD10__PTD10 0x0028 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD10__TPM8_CH0 0x0028 0x0B18 0x6 0x1 +#define MX8ULP_PAD_PTD10__I2S6_TXD3 0x0028 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD10__SDHC0_D0 0x0028 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD10__FLEXSPI2_B_DATA0 0x0028 0x0954 0x9 0x1 +#define MX8ULP_PAD_PTD10__EPDC0_D5 0x0028 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD10__DPI0_D5 0x0028 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD10__LP_APD_DBG_MUX_10 0x0028 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTD10__DEBUG_MUX1_10 0x0028 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD11__PTD11 0x002C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD11__TPM8_CH5 0x002C 0x0B2C 0x6 0x2 +#define MX8ULP_PAD_PTD11__I2S6_RXD2 0x002C 0x0B3C 0x7 0x1 +#define MX8ULP_PAD_PTD11__SDHC0_DQS 0x002C 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD11__FLEXSPI2_B_SS0_B 0x002C 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD11__FLEXSPI2_A_SS1_B 0x002C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD11__EPDC0_D6 0x002C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD11__DPI0_D6 0x002C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD11__LP_APD_DBG_MUX_11 0x002C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD12__PTD12 0x0030 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD12__USB0_ID 0x0030 0x0AC8 0x5 0x1 +#define MX8ULP_PAD_PTD12__SDHC2_D3 0x0030 0x0AA4 0x6 0x1 +#define MX8ULP_PAD_PTD12__I2S7_RX_BCLK 0x0030 0x0B64 0x7 0x1 +#define MX8ULP_PAD_PTD12__SDHC1_DQS 0x0030 0x0A84 0x8 0x1 +#define MX8ULP_PAD_PTD12__FLEXSPI2_A_SS0_B 0x0030 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD12__FLEXSPI2_B_SS1_B 0x0030 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD12__EPDC0_D7 0x0030 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD12__DPI0_D7 0x0030 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD12__LP_APD_DBG_MUX_12 0x0030 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD13__PTD13 0x0034 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD13__SPDIF_IN3 0x0034 0x0B80 0x4 0x1 +#define MX8ULP_PAD_PTD13__USB0_PWR 0x0034 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTD13__SDHC2_D2 0x0034 0x0AA0 0x6 0x1 +#define MX8ULP_PAD_PTD13__I2S7_RX_FS 0x0034 0x0B68 0x7 0x1 +#define MX8ULP_PAD_PTD13__SDHC1_RESET_B 0x0034 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTD13__FLEXSPI2_A_SCLK 0x0034 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD13__CLKOUT2 0x0034 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD13__EPDC0_D8 0x0034 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD13__DPI0_D8 0x0034 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD13__CLKOUT1 0x0034 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD13__LP_APD_DBG_MUX_13 0x0034 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD14__PTD14 0x0038 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD14__SPDIF_OUT3 0x0038 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTD14__USB0_OC 0x0038 0x0AC0 0x5 0x1 +#define MX8ULP_PAD_PTD14__SDHC2_D1 0x0038 0x0A9C 0x6 0x1 +#define MX8ULP_PAD_PTD14__I2S7_RXD0 0x0038 0x0B54 0x7 0x1 +#define MX8ULP_PAD_PTD14__SDHC1_D7 0x0038 0x0A80 0x8 0x1 +#define MX8ULP_PAD_PTD14__FLEXSPI2_A_DATA3 0x0038 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD14__TRACE0_D7 0x0038 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD14__EPDC0_D9 0x0038 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD14__DPI0_D9 0x0038 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD14__LP_APD_DBG_MUX_14 0x0038 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD15__PTD15 0x003C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD15__SPDIF_IN2 0x003C 0x0B7C 0x4 0x1 +#define MX8ULP_PAD_PTD15__SDHC1_VS 0x003C 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTD15__SDHC2_D0 0x003C 0x0A98 0x6 0x1 +#define MX8ULP_PAD_PTD15__I2S7_TX_BCLK 0x003C 0x0B6C 0x7 0x1 +#define MX8ULP_PAD_PTD15__SDHC1_D6 0x003C 0x0A7C 0x8 0x1 +#define MX8ULP_PAD_PTD15__FLEXSPI2_A_DATA2 0x003C 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD15__TRACE0_D6 0x003C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD15__EPDC0_D10 0x003C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD15__DPI0_D10 0x003C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD15__LP_APD_DBG_MUX_15 0x003C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD16__PTD16 0x0040 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD16__FXIO1_D31 0x0040 0x08A0 0x2 0x1 +#define MX8ULP_PAD_PTD16__LPSPI4_PCS1 0x0040 0x08F8 0x3 0x1 +#define MX8ULP_PAD_PTD16__SPDIF_OUT2 0x0040 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTD16__SDHC1_CD 0x0040 0x0A58 0x5 0x1 +#define MX8ULP_PAD_PTD16__SDHC2_CLK 0x0040 0x0A90 0x6 0x1 +#define MX8ULP_PAD_PTD16__I2S7_TX_FS 0x0040 0x0B70 0x7 0x1 +#define MX8ULP_PAD_PTD16__SDHC1_D5 0x0040 0x0A78 0x8 0x1 +#define MX8ULP_PAD_PTD16__FLEXSPI2_A_DATA1 0x0040 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD16__TRACE0_D5 0x0040 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD16__EPDC0_D11 0x0040 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD16__DPI0_D11 0x0040 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD16__LP_APD_DBG_MUX_16 0x0040 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD17__PTD17 0x0044 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD17__FXIO1_D30 0x0044 0x089C 0x2 0x1 +#define MX8ULP_PAD_PTD17__LPSPI4_PCS2 0x0044 0x08FC 0x3 0x1 +#define MX8ULP_PAD_PTD17__EXT_AUD_MCLK3 0x0044 0x0B14 0x4 0x2 +#define MX8ULP_PAD_PTD17__SDHC1_WP 0x0044 0x0A88 0x5 0x1 +#define MX8ULP_PAD_PTD17__SDHC2_CMD 0x0044 0x0A94 0x6 0x1 +#define MX8ULP_PAD_PTD17__I2S7_TXD0 0x0044 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD17__SDHC1_D4 0x0044 0x0A74 0x8 0x1 +#define MX8ULP_PAD_PTD17__FLEXSPI2_A_DATA0 0x0044 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD17__TRACE0_D4 0x0044 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD17__EPDC0_D12 0x0044 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD17__DPI0_D12 0x0044 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD17__LP_APD_DBG_MUX_17 0x0044 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD18__PTD18 0x0048 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD18__FXIO1_D29 0x0048 0x0894 0x2 0x1 +#define MX8ULP_PAD_PTD18__LPSPI4_PCS3 0x0048 0x0900 0x3 0x1 +#define MX8ULP_PAD_PTD18__SPDIF_CLK 0x0048 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTD18__EXT_AUD_MCLK3 0x0048 0x0B14 0x5 0x3 +#define MX8ULP_PAD_PTD18__TPM8_CH0 0x0048 0x0B18 0x6 0x2 +#define MX8ULP_PAD_PTD18__I2S7_MCLK 0x0048 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD18__SDHC1_D3 0x0048 0x0A70 0x8 0x1 +#define MX8ULP_PAD_PTD18__FLEXSPI2_A_DQS 0x0048 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD18__TRACE0_D3 0x0048 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD18__EPDC0_D13 0x0048 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD18__DPI0_D13 0x0048 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD18__LP_APD_DBG_MUX_18 0x0048 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD19__PTD19 0x004C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD19__FXIO1_D28 0x004C 0x0890 0x2 0x1 +#define MX8ULP_PAD_PTD19__SPDIF_IN0 0x004C 0x0B74 0x4 0x1 +#define MX8ULP_PAD_PTD19__TPM8_CH1 0x004C 0x0B1C 0x6 0x2 +#define MX8ULP_PAD_PTD19__I2S6_RXD3 0x004C 0x0B40 0x7 0x1 +#define MX8ULP_PAD_PTD19__SDHC1_D2 0x004C 0x0A6C 0x8 0x1 +#define MX8ULP_PAD_PTD19__FLEXSPI2_A_DATA7 0x004C 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD19__TRACE0_D2 0x004C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD19__EPDC0_D14 0x004C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD19__DPI0_D14 0x004C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD19__LP_APD_DBG_MUX_19 0x004C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD20__PTD20 0x0050 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD20__FXIO1_D27 0x0050 0x088C 0x2 0x1 +#define MX8ULP_PAD_PTD20__LPSPI4_SIN 0x0050 0x0908 0x3 0x1 +#define MX8ULP_PAD_PTD20__SPDIF_OUT0 0x0050 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTD20__TPM8_CLKIN 0x0050 0x0B30 0x6 0x2 +#define MX8ULP_PAD_PTD20__I2S7_RXD1 0x0050 0x0B58 0x7 0x1 +#define MX8ULP_PAD_PTD20__SDHC1_D1 0x0050 0x0A68 0x8 0x1 +#define MX8ULP_PAD_PTD20__FLEXSPI2_A_DATA6 0x0050 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD20__TRACE0_D1 0x0050 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD20__EPDC0_D15 0x0050 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTD20__DPI0_D15 0x0050 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD20__LP_APD_DBG_MUX_20 0x0050 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD21__PTD21 0x0054 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD21__FXIO1_D26 0x0054 0x0888 0x2 0x1 +#define MX8ULP_PAD_PTD21__LPSPI4_SOUT 0x0054 0x090C 0x3 0x1 +#define MX8ULP_PAD_PTD21__SPDIF_IN1 0x0054 0x0B78 0x4 0x1 +#define MX8ULP_PAD_PTD21__USB1_PWR 0x0054 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTD21__TPM8_CH2 0x0054 0x0B20 0x6 0x2 +#define MX8ULP_PAD_PTD21__I2S7_TXD1 0x0054 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD21__SDHC1_D0 0x0054 0x0A64 0x8 0x1 +#define MX8ULP_PAD_PTD21__FLEXSPI2_A_DATA5 0x0054 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD21__TRACE0_D0 0x0054 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD21__DPI0_D16 0x0054 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD21__WDOG5_RST 0x0054 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTD21__LP_APD_DBG_MUX_21 0x0054 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD22__PTD22 0x0058 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD22__FXIO1_D25 0x0058 0x0884 0x2 0x1 +#define MX8ULP_PAD_PTD22__LPSPI4_SCK 0x0058 0x0904 0x3 0x1 +#define MX8ULP_PAD_PTD22__SPDIF_OUT1 0x0058 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTD22__USB1_OC 0x0058 0x0AC4 0x5 0x1 +#define MX8ULP_PAD_PTD22__TPM8_CH3 0x0058 0x0B24 0x6 0x2 +#define MX8ULP_PAD_PTD22__I2S7_TXD2 0x0058 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD22__SDHC1_CLK 0x0058 0x0A5C 0x8 0x1 +#define MX8ULP_PAD_PTD22__FLEXSPI2_A_DATA4 0x0058 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD22__TRACE0_CLKOUT 0x0058 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD22__DPI0_D17 0x0058 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD22__LP_APD_DBG_MUX_22 0x0058 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTD23__PTD23 0x005C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTD23__FXIO1_D24 0x005C 0x0880 0x2 0x1 +#define MX8ULP_PAD_PTD23__LPSPI4_PCS0 0x005C 0x08F4 0x3 0x1 +#define MX8ULP_PAD_PTD23__USB1_ID 0x005C 0x0ACC 0x5 0x1 +#define MX8ULP_PAD_PTD23__TPM8_CH4 0x005C 0x0B28 0x6 0x2 +#define MX8ULP_PAD_PTD23__I2S7_TXD3 0x005C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTD23__SDHC1_CMD 0x005C 0x0A60 0x8 0x1 +#define MX8ULP_PAD_PTD23__FLEXSPI2_A_SS0_B 0x005C 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTD23__FLEXSPI2_A_SCLK_B 0x005C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTD23__DPI0_D18 0x005C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTD23__LP_APD_DBG_MUX_23 0x005C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE0__PTE0 0x0080 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE0__FXIO1_D23 0x0080 0x087C 0x2 0x1 +#define MX8ULP_PAD_PTE0__SPDIF_IN3 0x0080 0x0B80 0x3 0x2 +#define MX8ULP_PAD_PTE0__LPUART4_CTS_B 0x0080 0x08DC 0x4 0x1 +#define MX8ULP_PAD_PTE0__LPI2C4_SCL 0x0080 0x08C8 0x5 0x1 +#define MX8ULP_PAD_PTE0__TPM8_CLKIN 0x0080 0x0B30 0x6 0x3 +#define MX8ULP_PAD_PTE0__I2S7_RXD2 0x0080 0x0B5C 0x7 0x1 +#define MX8ULP_PAD_PTE0__SDHC2_D1 0x0080 0x0A9C 0x8 0x2 +#define MX8ULP_PAD_PTE0__FLEXSPI2_B_DQS 0x0080 0x0974 0x9 0x2 +#define MX8ULP_PAD_PTE0__ENET0_CRS 0x0080 0x0AE8 0xa 0x1 +#define MX8ULP_PAD_PTE0__DBI0_WRX 0x0080 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE0__DPI0_D19 0x0080 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE0__WUU1_P0 0x0080 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE0__DEBUG_MUX0_8 0x0080 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE0__DEBUG_MUX1_11 0x0080 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE1__PTE1 0x0084 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE1__FXIO1_D22 0x0084 0x0878 0x2 0x1 +#define MX8ULP_PAD_PTE1__SPDIF_OUT3 0x0084 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTE1__LPUART4_RTS_B 0x0084 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTE1__LPI2C4_SDA 0x0084 0x08CC 0x5 0x1 +#define MX8ULP_PAD_PTE1__TPM8_CH0 0x0084 0x0B18 0x6 0x3 +#define MX8ULP_PAD_PTE1__I2S7_RXD3 0x0084 0x0B60 0x7 0x1 +#define MX8ULP_PAD_PTE1__SDHC2_D0 0x0084 0x0A98 0x8 0x2 +#define MX8ULP_PAD_PTE1__FLEXSPI2_B_DATA7 0x0084 0x0970 0x9 0x2 +#define MX8ULP_PAD_PTE1__ENET0_COL 0x0084 0x0AE4 0xa 0x1 +#define MX8ULP_PAD_PTE1__DBI0_CSX 0x0084 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE1__DPI0_D20 0x0084 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE1__WUU1_P1 0x0084 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE1__DEBUG_MUX0_9 0x0084 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE1__DEBUG_MUX1_12 0x0084 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE2__PTE2 0x0088 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE2__FXIO1_D21 0x0088 0x0874 0x2 0x1 +#define MX8ULP_PAD_PTE2__SPDIF_IN2 0x0088 0x0B7C 0x3 0x2 +#define MX8ULP_PAD_PTE2__LPUART4_TX 0x0088 0x08E4 0x4 0x1 +#define MX8ULP_PAD_PTE2__LPI2C4_HREQ 0x0088 0x08C4 0x5 0x1 +#define MX8ULP_PAD_PTE2__TPM8_CH1 0x0088 0x0B1C 0x6 0x3 +#define MX8ULP_PAD_PTE2__EXT_AUD_MCLK3 0x0088 0x0B14 0x7 0x4 +#define MX8ULP_PAD_PTE2__SDHC2_CLK 0x0088 0x0A90 0x8 0x2 +#define MX8ULP_PAD_PTE2__FLEXSPI2_B_DATA6 0x0088 0x096C 0x9 0x2 +#define MX8ULP_PAD_PTE2__ENET0_TXER 0x0088 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTE2__DBI0_DCX 0x0088 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE2__DPI0_D21 0x0088 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE2__LP_HV_DBG_MUX_0 0x0088 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE2__DEBUG_MUX0_10 0x0088 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE2__DEBUG_MUX1_13 0x0088 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE3__PTE3 0x008C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE3__FXIO1_D20 0x008C 0x0870 0x2 0x1 +#define MX8ULP_PAD_PTE3__SPDIF_OUT2 0x008C 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTE3__LPUART4_RX 0x008C 0x08E0 0x4 0x1 +#define MX8ULP_PAD_PTE3__TPM8_CH2 0x008C 0x0B20 0x6 0x3 +#define MX8ULP_PAD_PTE3__I2S6_MCLK 0x008C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE3__SDHC2_CMD 0x008C 0x0A94 0x8 0x2 +#define MX8ULP_PAD_PTE3__FLEXSPI2_B_DATA5 0x008C 0x0968 0x9 0x2 +#define MX8ULP_PAD_PTE3__ENET0_TXCLK 0x008C 0x0B10 0xa 0x1 +#define MX8ULP_PAD_PTE3__DBI0_RWX 0x008C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE3__DPI0_D22 0x008C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE3__WUU1_P2 0x008C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE3__DEBUG_MUX0_11 0x008C 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE3__DEBUG_MUX1_14 0x008C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE4__PTE4 0x0090 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE4__FXIO1_D19 0x0090 0x0868 0x2 0x1 +#define MX8ULP_PAD_PTE4__SPDIF_CLK 0x0090 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTE4__LPUART5_CTS_B 0x0090 0x08E8 0x4 0x1 +#define MX8ULP_PAD_PTE4__LPI2C5_SCL 0x0090 0x08D4 0x5 0x1 +#define MX8ULP_PAD_PTE4__TPM8_CH3 0x0090 0x0B24 0x6 0x3 +#define MX8ULP_PAD_PTE4__I2S6_RX_BCLK 0x0090 0x0B44 0x7 0x2 +#define MX8ULP_PAD_PTE4__SDHC2_D3 0x0090 0x0AA4 0x8 0x2 +#define MX8ULP_PAD_PTE4__FLEXSPI2_B_DATA4 0x0090 0x0964 0x9 0x2 +#define MX8ULP_PAD_PTE4__ENET0_TXD3 0x0090 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTE4__DBI0_E 0x0090 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE4__DPI0_D23 0x0090 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE4__WUU1_P3 0x0090 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE4__DEBUG_MUX0_12 0x0090 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE4__DEBUG_MUX1_15 0x0090 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE5__PTE5 0x0094 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE5__FXIO1_D18 0x0094 0x0864 0x2 0x1 +#define MX8ULP_PAD_PTE5__SPDIF_IN0 0x0094 0x0B74 0x3 0x2 +#define MX8ULP_PAD_PTE5__LPUART5_RTS_B 0x0094 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTE5__LPI2C5_SDA 0x0094 0x08D8 0x5 0x1 +#define MX8ULP_PAD_PTE5__TPM8_CH4 0x0094 0x0B28 0x6 0x3 +#define MX8ULP_PAD_PTE5__I2S6_RX_FS 0x0094 0x0B48 0x7 0x2 +#define MX8ULP_PAD_PTE5__SDHC2_D2 0x0094 0x0AA0 0x8 0x2 +#define MX8ULP_PAD_PTE5__FLEXSPI2_B_SS0_B 0x0094 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTE5__ENET0_TXD2 0x0094 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTE5__DBI0_D0 0x0094 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE5__LP_HV_DBG_MUX_1 0x0094 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE5__DEBUG_MUX0_13 0x0094 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE5__DEBUG_MUX1_16 0x0094 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE6__PTE6 0x0098 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE6__FXIO1_D17 0x0098 0x0860 0x2 0x1 +#define MX8ULP_PAD_PTE6__SPDIF_OUT0 0x0098 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTE6__LPUART5_TX 0x0098 0x08F0 0x4 0x1 +#define MX8ULP_PAD_PTE6__LPI2C5_HREQ 0x0098 0x08D0 0x5 0x1 +#define MX8ULP_PAD_PTE6__TPM8_CH5 0x0098 0x0B2C 0x6 0x3 +#define MX8ULP_PAD_PTE6__I2S6_RXD0 0x0098 0x0B34 0x7 0x2 +#define MX8ULP_PAD_PTE6__SDHC2_D4 0x0098 0x0AA8 0x8 0x1 +#define MX8ULP_PAD_PTE6__FLEXSPI2_B_SCLK 0x0098 0x0978 0x9 0x2 +#define MX8ULP_PAD_PTE6__ENET0_RXCLK 0x0098 0x0B0C 0xa 0x1 +#define MX8ULP_PAD_PTE6__DBI0_D1 0x0098 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE6__LP_HV_DBG_MUX_2 0x0098 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE6__WDOG5_RST 0x0098 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE6__DEBUG_MUX0_14 0x0098 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE6__DEBUG_MUX1_17 0x0098 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE7__PTE7 0x009C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE7__FXIO1_D16 0x009C 0x085C 0x2 0x1 +#define MX8ULP_PAD_PTE7__SPDIF_IN1 0x009C 0x0B78 0x3 0x2 +#define MX8ULP_PAD_PTE7__LPUART5_RX 0x009C 0x08EC 0x4 0x1 +#define MX8ULP_PAD_PTE7__LPI2C6_HREQ 0x009C 0x09B4 0x5 0x1 +#define MX8ULP_PAD_PTE7__TPM4_CLKIN 0x009C 0x081C 0x6 0x1 +#define MX8ULP_PAD_PTE7__I2S6_RXD1 0x009C 0x0B38 0x7 0x2 +#define MX8ULP_PAD_PTE7__SDHC2_D5 0x009C 0x0AAC 0x8 0x1 +#define MX8ULP_PAD_PTE7__FLEXSPI2_B_DATA3 0x009C 0x0960 0x9 0x2 +#define MX8ULP_PAD_PTE7__ENET0_RXD3 0x009C 0x0B04 0xa 0x1 +#define MX8ULP_PAD_PTE7__DBI0_D2 0x009C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE7__EPDC0_BDR1 0x009C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE7__WUU1_P4 0x009C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE7__DEBUG_MUX0_15 0x009C 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE7__DEBUG_MUX1_18 0x009C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE8__PTE8 0x00A0 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE8__FXIO1_D15 0x00A0 0x0858 0x2 0x1 +#define MX8ULP_PAD_PTE8__LPSPI4_PCS1 0x00A0 0x08F8 0x3 0x2 +#define MX8ULP_PAD_PTE8__LPUART6_CTS_B 0x00A0 0x09CC 0x4 0x1 +#define MX8ULP_PAD_PTE8__LPI2C6_SCL 0x00A0 0x09B8 0x5 0x1 +#define MX8ULP_PAD_PTE8__TPM4_CH0 0x00A0 0x0804 0x6 0x1 +#define MX8ULP_PAD_PTE8__I2S6_RXD2 0x00A0 0x0B3C 0x7 0x2 +#define MX8ULP_PAD_PTE8__SDHC2_D6 0x00A0 0x0AB0 0x8 0x1 +#define MX8ULP_PAD_PTE8__FLEXSPI2_B_DATA2 0x00A0 0x095C 0x9 0x2 +#define MX8ULP_PAD_PTE8__ENET0_RXD2 0x00A0 0x0B00 0xa 0x1 +#define MX8ULP_PAD_PTE8__DBI0_D3 0x00A0 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE8__EPDC0_BDR0 0x00A0 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE8__LP_HV_DBG_MUX_3 0x00A0 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE8__DEBUG_MUX1_19 0x00A0 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE9__PTE9 0x00A4 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE9__FXIO1_D14 0x00A4 0x0854 0x2 0x1 +#define MX8ULP_PAD_PTE9__LPSPI4_PCS2 0x00A4 0x08FC 0x3 0x2 +#define MX8ULP_PAD_PTE9__LPUART6_RTS_B 0x00A4 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTE9__LPI2C6_SDA 0x00A4 0x09BC 0x5 0x1 +#define MX8ULP_PAD_PTE9__TPM4_CH1 0x00A4 0x0808 0x6 0x1 +#define MX8ULP_PAD_PTE9__I2S6_RXD3 0x00A4 0x0B40 0x7 0x2 +#define MX8ULP_PAD_PTE9__SDHC2_D7 0x00A4 0x0AB4 0x8 0x1 +#define MX8ULP_PAD_PTE9__FLEXSPI2_B_DATA1 0x00A4 0x0958 0x9 0x2 +#define MX8ULP_PAD_PTE9__ENET0_1588_TMR3 0x00A4 0x0AE0 0xa 0x1 +#define MX8ULP_PAD_PTE9__DBI0_D4 0x00A4 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE9__EPDC0_VCOM1 0x00A4 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE9__LP_HV_DBG_MUX_4 0x00A4 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE9__DEBUG_MUX1_20 0x00A4 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE10__PTE10 0x00A8 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE10__FXIO1_D13 0x00A8 0x0850 0x2 0x1 +#define MX8ULP_PAD_PTE10__LPSPI4_PCS3 0x00A8 0x0900 0x3 0x2 +#define MX8ULP_PAD_PTE10__LPUART6_TX 0x00A8 0x09D4 0x4 0x1 +#define MX8ULP_PAD_PTE10__I3C2_SCL 0x00A8 0x08BC 0x5 0x1 +#define MX8ULP_PAD_PTE10__TPM4_CH2 0x00A8 0x080C 0x6 0x1 +#define MX8ULP_PAD_PTE10__I2S6_TX_BCLK 0x00A8 0x0B4C 0x7 0x2 +#define MX8ULP_PAD_PTE10__SDHC2_DQS 0x00A8 0x0AB8 0x8 0x1 +#define MX8ULP_PAD_PTE10__FLEXSPI2_B_DATA0 0x00A8 0x0954 0x9 0x2 +#define MX8ULP_PAD_PTE10__ENET0_1588_TMR2 0x00A8 0x0ADC 0xa 0x1 +#define MX8ULP_PAD_PTE10__DBI0_D5 0x00A8 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE10__EPDC0_VCOM0 0x00A8 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE10__LP_HV_DBG_MUX_5 0x00A8 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTE10__DEBUG_MUX1_21 0x00A8 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE11__PTE11 0x00AC 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE11__FXIO1_D12 0x00AC 0x084C 0x2 0x1 +#define MX8ULP_PAD_PTE11__SPDIF_OUT1 0x00AC 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTE11__LPUART6_RX 0x00AC 0x09D0 0x4 0x1 +#define MX8ULP_PAD_PTE11__I3C2_SDA 0x00AC 0x08C0 0x5 0x1 +#define MX8ULP_PAD_PTE11__TPM4_CH3 0x00AC 0x0810 0x6 0x1 +#define MX8ULP_PAD_PTE11__I2S6_TX_FS 0x00AC 0x0B50 0x7 0x2 +#define MX8ULP_PAD_PTE11__FLEXSPI2_B_SCLK_B 0x00AC 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTE11__FLEXSPI2_B_SS0_B 0x00AC 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTE11__ENET0_1588_TMR1 0x00AC 0x0AD8 0xa 0x1 +#define MX8ULP_PAD_PTE11__DBI0_D6 0x00AC 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE11__EPDC0_PWRCTRL0 0x00AC 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE11__LP_HV_DBG_MUX_6 0x00AC 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE12__PTE12 0x00B0 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE12__FXIO1_D11 0x00B0 0x0848 0x2 0x1 +#define MX8ULP_PAD_PTE12__LPSPI4_SIN 0x00B0 0x0908 0x3 0x2 +#define MX8ULP_PAD_PTE12__LPUART7_CTS_B 0x00B0 0x09D8 0x4 0x1 +#define MX8ULP_PAD_PTE12__LPI2C7_SCL 0x00B0 0x09C4 0x5 0x1 +#define MX8ULP_PAD_PTE12__TPM4_CH4 0x00B0 0x0814 0x6 0x1 +#define MX8ULP_PAD_PTE12__I2S6_TXD0 0x00B0 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE12__SDHC2_RESET_B 0x00B0 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTE12__FLEXSPI2_B_SS1_B 0x00B0 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTE12__ENET0_1588_TMR0 0x00B0 0x0AD4 0xa 0x1 +#define MX8ULP_PAD_PTE12__DBI0_D7 0x00B0 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE12__EPDC0_PWRCTRL1 0x00B0 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE12__WUU1_P5 0x00B0 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE13__PTE13 0x00B4 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE13__FXIO1_D10 0x00B4 0x0844 0x2 0x1 +#define MX8ULP_PAD_PTE13__LPSPI4_SOUT 0x00B4 0x090C 0x3 0x2 +#define MX8ULP_PAD_PTE13__LPUART7_RTS_B 0x00B4 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTE13__LPI2C7_SDA 0x00B4 0x09C8 0x5 0x1 +#define MX8ULP_PAD_PTE13__TPM4_CH5 0x00B4 0x0818 0x6 0x1 +#define MX8ULP_PAD_PTE13__I2S6_TXD1 0x00B4 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE13__SDHC1_WP 0x00B4 0x0A88 0x8 0x2 +#define MX8ULP_PAD_PTE13__ENET0_1588_CLKIN 0x00B4 0x0AD0 0xa 0x1 +#define MX8ULP_PAD_PTE13__DBI0_D8 0x00B4 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE13__EPDC0_PWRCTRL2 0x00B4 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE13__LP_HV_DBG_MUX_7 0x00B4 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE14__PTE14 0x00B8 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE14__FXIO1_D9 0x00B8 0x08B8 0x2 0x1 +#define MX8ULP_PAD_PTE14__LPSPI4_SCK 0x00B8 0x0904 0x3 0x2 +#define MX8ULP_PAD_PTE14__LPUART7_TX 0x00B8 0x09E0 0x4 0x1 +#define MX8ULP_PAD_PTE14__LPI2C7_HREQ 0x00B8 0x09C0 0x5 0x1 +#define MX8ULP_PAD_PTE14__TPM5_CLKIN 0x00B8 0x0838 0x6 0x1 +#define MX8ULP_PAD_PTE14__I2S6_TXD2 0x00B8 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE14__SDHC1_CD 0x00B8 0x0A58 0x8 0x2 +#define MX8ULP_PAD_PTE14__ENET0_MDIO 0x00B8 0x0AF0 0xa 0x1 +#define MX8ULP_PAD_PTE14__DBI0_D9 0x00B8 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE14__EPDC0_PWRCTRL3 0x00B8 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE14__LP_HV_DBG_MUX_8 0x00B8 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE15__PTE15 0x00BC 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE15__FXIO1_D8 0x00BC 0x08B4 0x2 0x1 +#define MX8ULP_PAD_PTE15__LPSPI4_PCS0 0x00BC 0x08F4 0x3 0x2 +#define MX8ULP_PAD_PTE15__LPUART7_RX 0x00BC 0x09DC 0x4 0x1 +#define MX8ULP_PAD_PTE15__I3C2_PUR 0x00BC 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTE15__TPM5_CH0 0x00BC 0x0820 0x6 0x1 +#define MX8ULP_PAD_PTE15__I2S6_TXD3 0x00BC 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE15__MQS1_LEFT 0x00BC 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTE15__ENET0_MDC 0x00BC 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTE15__DBI0_D10 0x00BC 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE15__EPDC0_PWRCOM 0x00BC 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE15__WUU1_P6 0x00BC 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE16__PTE16 0x00C0 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE16__FXIO1_D7 0x00C0 0x08B0 0x2 0x1 +#define MX8ULP_PAD_PTE16__LPSPI5_PCS1 0x00C0 0x0914 0x3 0x1 +#define MX8ULP_PAD_PTE16__LPUART4_CTS_B 0x00C0 0x08DC 0x4 0x2 +#define MX8ULP_PAD_PTE16__LPI2C4_SCL 0x00C0 0x08C8 0x5 0x2 +#define MX8ULP_PAD_PTE16__TPM5_CH1 0x00C0 0x0824 0x6 0x1 +#define MX8ULP_PAD_PTE16__MQS1_LEFT 0x00C0 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE16__MQS1_RIGHT 0x00C0 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTE16__USB0_ID 0x00C0 0x0AC8 0x9 0x2 +#define MX8ULP_PAD_PTE16__ENET0_TXEN 0x00C0 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTE16__DBI0_D11 0x00C0 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE16__EPDC0_PWRIRQ 0x00C0 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE16__WDOG3_RST 0x00C0 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE16__LP_HV_DBG_MUX_9 0x00C0 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE17__PTE17 0x00C4 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE17__FXIO1_D6 0x00C4 0x08AC 0x2 0x1 +#define MX8ULP_PAD_PTE17__LPSPI5_PCS2 0x00C4 0x0918 0x3 0x1 +#define MX8ULP_PAD_PTE17__LPUART4_RTS_B 0x00C4 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTE17__LPI2C4_SDA 0x00C4 0x08CC 0x5 0x2 +#define MX8ULP_PAD_PTE17__MQS1_RIGHT 0x00C4 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE17__SDHC1_VS 0x00C4 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTE17__USB0_PWR 0x00C4 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTE17__ENET0_RXER 0x00C4 0x0B08 0xa 0x1 +#define MX8ULP_PAD_PTE17__DBI0_D12 0x00C4 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE17__EPDC0_PWRSTAT 0x00C4 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE17__LP_HV_DBG_MUX_10 0x00C4 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE18__PTE18 0x00C8 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE18__FXIO1_D5 0x00C8 0x08A8 0x2 0x1 +#define MX8ULP_PAD_PTE18__LPSPI5_PCS3 0x00C8 0x091C 0x3 0x1 +#define MX8ULP_PAD_PTE18__LPUART4_TX 0x00C8 0x08E4 0x4 0x2 +#define MX8ULP_PAD_PTE18__LPI2C4_HREQ 0x00C8 0x08C4 0x5 0x2 +#define MX8ULP_PAD_PTE18__I2S7_TX_BCLK 0x00C8 0x0B6C 0x7 0x2 +#define MX8ULP_PAD_PTE18__USB0_OC 0x00C8 0x0AC0 0x9 0x2 +#define MX8ULP_PAD_PTE18__ENET0_CRS_DV 0x00C8 0x0AEC 0xa 0x1 +#define MX8ULP_PAD_PTE18__DBI0_D13 0x00C8 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE18__EPDC0_PWRWAKE 0x00C8 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE18__LP_HV_DBG_MUX_11 0x00C8 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE19__PTE19 0x00CC 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE19__FXIO1_D4 0x00CC 0x08A4 0x2 0x1 +#define MX8ULP_PAD_PTE19__LPUART4_RX 0x00CC 0x08E0 0x4 0x2 +#define MX8ULP_PAD_PTE19__LPI2C5_HREQ 0x00CC 0x08D0 0x5 0x2 +#define MX8ULP_PAD_PTE19__I3C2_PUR 0x00CC 0x0000 0x6 0x0 +#define MX8ULP_PAD_PTE19__I2S7_TX_FS 0x00CC 0x0B70 0x7 0x2 +#define MX8ULP_PAD_PTE19__USB1_PWR 0x00CC 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTE19__ENET0_REFCLK 0x00CC 0x0AF4 0xa 0x1 +#define MX8ULP_PAD_PTE19__DBI0_D14 0x00CC 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE19__EPDC0_GDCLK 0x00CC 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE19__WUU1_P7 0x00CC 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE20__PTE20 0x00D0 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE20__FXIO1_D3 0x00D0 0x0898 0x2 0x1 +#define MX8ULP_PAD_PTE20__LPSPI5_SIN 0x00D0 0x0924 0x3 0x1 +#define MX8ULP_PAD_PTE20__LPUART5_CTS_B 0x00D0 0x08E8 0x4 0x2 +#define MX8ULP_PAD_PTE20__LPI2C5_SCL 0x00D0 0x08D4 0x5 0x2 +#define MX8ULP_PAD_PTE20__I2S7_TXD0 0x00D0 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE20__USB1_OC 0x00D0 0x0AC4 0x9 0x2 +#define MX8ULP_PAD_PTE20__ENET0_RXD1 0x00D0 0x0AFC 0xa 0x1 +#define MX8ULP_PAD_PTE20__DBI0_D15 0x00D0 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTE20__EPDC0_GDOE 0x00D0 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE20__LP_HV_DBG_MUX_12 0x00D0 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE21__PTE21 0x00D4 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE21__FXIO1_D2 0x00D4 0x086C 0x2 0x1 +#define MX8ULP_PAD_PTE21__LPSPI5_SOUT 0x00D4 0x0928 0x3 0x1 +#define MX8ULP_PAD_PTE21__LPUART5_RTS_B 0x00D4 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTE21__LPI2C5_SDA 0x00D4 0x08D8 0x5 0x2 +#define MX8ULP_PAD_PTE21__TPM6_CLKIN 0x00D4 0x0994 0x6 0x1 +#define MX8ULP_PAD_PTE21__I2S7_TXD1 0x00D4 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE21__USB1_ID 0x00D4 0x0ACC 0x9 0x2 +#define MX8ULP_PAD_PTE21__ENET0_RXD0 0x00D4 0x0AF8 0xa 0x1 +#define MX8ULP_PAD_PTE21__EPDC0_GDRL 0x00D4 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE21__WDOG4_RST 0x00D4 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE21__LP_HV_DBG_MUX_13 0x00D4 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE22__PTE22 0x00D8 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE22__FXIO1_D1 0x00D8 0x0840 0x2 0x1 +#define MX8ULP_PAD_PTE22__LPSPI5_SCK 0x00D8 0x0920 0x3 0x1 +#define MX8ULP_PAD_PTE22__LPUART5_TX 0x00D8 0x08F0 0x4 0x2 +#define MX8ULP_PAD_PTE22__I3C2_SCL 0x00D8 0x08BC 0x5 0x2 +#define MX8ULP_PAD_PTE22__TPM6_CH0 0x00D8 0x097C 0x6 0x1 +#define MX8ULP_PAD_PTE22__I2S7_TXD2 0x00D8 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE22__EXT_AUD_MCLK3 0x00D8 0x0B14 0x9 0x5 +#define MX8ULP_PAD_PTE22__ENET0_TXD1 0x00D8 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTE22__EPDC0_SDOED 0x00D8 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE22__CLKOUT2 0x00D8 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE22__LP_HV_DBG_MUX_14 0x00D8 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTE23__PTE23 0x00DC 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTE23__FXIO1_D0 0x00DC 0x083C 0x2 0x1 +#define MX8ULP_PAD_PTE23__LPSPI5_PCS0 0x00DC 0x0910 0x3 0x1 +#define MX8ULP_PAD_PTE23__LPUART5_RX 0x00DC 0x08EC 0x4 0x2 +#define MX8ULP_PAD_PTE23__I3C2_SDA 0x00DC 0x08C0 0x5 0x2 +#define MX8ULP_PAD_PTE23__TPM6_CH1 0x00DC 0x0980 0x6 0x1 +#define MX8ULP_PAD_PTE23__I2S7_TXD3 0x00DC 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTE23__EXT_AUD_MCLK2 0x00DC 0x0800 0x9 0x1 +#define MX8ULP_PAD_PTE23__ENET0_TXD0 0x00DC 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTE23__EPDC0_SDOEZ 0x00DC 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTE23__CLKOUT1 0x00DC 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTE23__LP_HV_DBG_MUX_15 0x00DC 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF0__PTF0 0x0100 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF0__FXIO1_D0 0x0100 0x083C 0x2 0x2 +#define MX8ULP_PAD_PTF0__LPUART6_CTS_B 0x0100 0x09CC 0x4 0x2 +#define MX8ULP_PAD_PTF0__LPI2C6_SCL 0x0100 0x09B8 0x5 0x2 +#define MX8ULP_PAD_PTF0__I2S7_RX_BCLK 0x0100 0x0B64 0x7 0x2 +#define MX8ULP_PAD_PTF0__SDHC1_D1 0x0100 0x0A68 0x8 0x2 +#define MX8ULP_PAD_PTF0__ENET0_RXD1 0x0100 0x0AFC 0x9 0x2 +#define MX8ULP_PAD_PTF0__USB1_ID 0x0100 0x0ACC 0xa 0x3 +#define MX8ULP_PAD_PTF0__EPDC0_SDOE 0x0100 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF0__DPI0_D23 0x0100 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF0__WUU1_P8 0x0100 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF1__PTF1 0x0104 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF1__FXIO1_D1 0x0104 0x0840 0x2 0x2 +#define MX8ULP_PAD_PTF1__LPUART6_RTS_B 0x0104 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTF1__LPI2C6_SDA 0x0104 0x09BC 0x5 0x2 +#define MX8ULP_PAD_PTF1__I2S7_RX_FS 0x0104 0x0B68 0x7 0x2 +#define MX8ULP_PAD_PTF1__SDHC1_D0 0x0104 0x0A64 0x8 0x2 +#define MX8ULP_PAD_PTF1__ENET0_RXD0 0x0104 0x0AF8 0x9 0x2 +#define MX8ULP_PAD_PTF1__LP_HV_DBG_MUX_16 0x0104 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF1__EPDC0_SDSHR 0x0104 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF1__DPI0_D22 0x0104 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF1__WDOG3_RST 0x0104 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF1__DEBUG_MUX0_16 0x0104 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF1__DEBUG_MUX1_22 0x0104 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF2__PTF2 0x0108 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF2__FXIO1_D2 0x0108 0x086C 0x2 0x2 +#define MX8ULP_PAD_PTF2__LPUART6_TX 0x0108 0x09D4 0x4 0x2 +#define MX8ULP_PAD_PTF2__LPI2C6_HREQ 0x0108 0x09B4 0x5 0x2 +#define MX8ULP_PAD_PTF2__I2S7_RXD0 0x0108 0x0B54 0x7 0x2 +#define MX8ULP_PAD_PTF2__SDHC1_CLK 0x0108 0x0A5C 0x8 0x2 +#define MX8ULP_PAD_PTF2__ENET0_TXD1 0x0108 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTF2__USB0_ID 0x0108 0x0AC8 0xa 0x3 +#define MX8ULP_PAD_PTF2__EPDC0_SDCE9 0x0108 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF2__DPI0_D21 0x0108 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF2__LP_HV_DBG_MUX_17 0x0108 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF2__DEBUG_MUX0_17 0x0108 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF2__DEBUG_MUX1_23 0x0108 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF3__PTF3 0x010C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF3__FXIO1_D3 0x010C 0x0898 0x2 0x2 +#define MX8ULP_PAD_PTF3__LPUART6_RX 0x010C 0x09D0 0x4 0x2 +#define MX8ULP_PAD_PTF3__LPI2C7_HREQ 0x010C 0x09C0 0x5 0x2 +#define MX8ULP_PAD_PTF3__I2S7_RXD1 0x010C 0x0B58 0x7 0x2 +#define MX8ULP_PAD_PTF3__SDHC1_CMD 0x010C 0x0A60 0x8 0x2 +#define MX8ULP_PAD_PTF3__ENET0_TXD0 0x010C 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTF3__USB0_PWR 0x010C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF3__EPDC0_SDCE8 0x010C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF3__DPI0_D20 0x010C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF3__WUU1_P9 0x010C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF3__DEBUG_MUX1_24 0x010C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF4__PTF4 0x0110 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF4__FXIO1_D4 0x0110 0x08A4 0x2 0x2 +#define MX8ULP_PAD_PTF4__LPSPI4_PCS1 0x0110 0x08F8 0x3 0x3 +#define MX8ULP_PAD_PTF4__LPUART7_CTS_B 0x0110 0x09D8 0x4 0x2 +#define MX8ULP_PAD_PTF4__LPI2C7_SCL 0x0110 0x09C4 0x5 0x2 +#define MX8ULP_PAD_PTF4__TPM7_CLKIN 0x0110 0x09B0 0x6 0x1 +#define MX8ULP_PAD_PTF4__I2S7_RXD2 0x0110 0x0B5C 0x7 0x2 +#define MX8ULP_PAD_PTF4__SDHC1_D3 0x0110 0x0A70 0x8 0x2 +#define MX8ULP_PAD_PTF4__ENET0_TXEN 0x0110 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTF4__USB0_OC 0x0110 0x0AC0 0xa 0x3 +#define MX8ULP_PAD_PTF4__EPDC0_SDCE7 0x0110 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF4__DPI0_D19 0x0110 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF4__WUU1_P10 0x0110 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF4__DEBUG_MUX1_25 0x0110 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF5__PTF5 0x0114 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF5__FXIO1_D5 0x0114 0x08A8 0x2 0x2 +#define MX8ULP_PAD_PTF5__LPSPI4_PCS2 0x0114 0x08FC 0x3 0x3 +#define MX8ULP_PAD_PTF5__LPUART7_RTS_B 0x0114 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTF5__LPI2C7_SDA 0x0114 0x09C8 0x5 0x2 +#define MX8ULP_PAD_PTF5__TPM7_CH0 0x0114 0x0998 0x6 0x1 +#define MX8ULP_PAD_PTF5__I2S7_RXD3 0x0114 0x0B60 0x7 0x2 +#define MX8ULP_PAD_PTF5__SDHC1_D2 0x0114 0x0A6C 0x8 0x2 +#define MX8ULP_PAD_PTF5__ENET0_RXER 0x0114 0x0B08 0x9 0x2 +#define MX8ULP_PAD_PTF5__USB1_PWR 0x0114 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF5__EPDC0_SDCE6 0x0114 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF5__DPI0_D18 0x0114 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF5__LP_HV_DBG_MUX_18 0x0114 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF5__DEBUG_MUX0_18 0x0114 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF5__DEBUG_MUX1_26 0x0114 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF6__LP_HV_DBG_MUX_19 0x0118 0x0000 0x0 0x0 +#define MX8ULP_PAD_PTF6__PTF6 0x0118 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF6__FXIO1_D6 0x0118 0x08AC 0x2 0x2 +#define MX8ULP_PAD_PTF6__LPSPI4_PCS3 0x0118 0x0900 0x3 0x3 +#define MX8ULP_PAD_PTF6__LPUART7_TX 0x0118 0x09E0 0x4 0x2 +#define MX8ULP_PAD_PTF6__I3C2_SCL 0x0118 0x08BC 0x5 0x3 +#define MX8ULP_PAD_PTF6__TPM7_CH1 0x0118 0x099C 0x6 0x1 +#define MX8ULP_PAD_PTF6__I2S7_MCLK 0x0118 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF6__SDHC1_D4 0x0118 0x0A74 0x8 0x2 +#define MX8ULP_PAD_PTF6__ENET0_CRS_DV 0x0118 0x0AEC 0x9 0x2 +#define MX8ULP_PAD_PTF6__USB1_OC 0x0118 0x0AC4 0xa 0x3 +#define MX8ULP_PAD_PTF6__EPDC0_SDCE5 0x0118 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF6__DPI0_D17 0x0118 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF6__WDOG4_RST 0x0118 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF6__DEBUG_MUX0_19 0x0118 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF6__DEBUG_MUX1_27 0x0118 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF7__PTF7 0x011C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF7__FXIO1_D7 0x011C 0x08B0 0x2 0x2 +#define MX8ULP_PAD_PTF7__LPUART7_RX 0x011C 0x09DC 0x4 0x2 +#define MX8ULP_PAD_PTF7__I3C2_SDA 0x011C 0x08C0 0x5 0x3 +#define MX8ULP_PAD_PTF7__TPM7_CH2 0x011C 0x09A0 0x6 0x1 +#define MX8ULP_PAD_PTF7__MQS1_LEFT 0x011C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF7__SDHC1_D5 0x011C 0x0A78 0x8 0x2 +#define MX8ULP_PAD_PTF7__ENET0_REFCLK 0x011C 0x0AF4 0x9 0x2 +#define MX8ULP_PAD_PTF7__TRACE0_D15 0x011C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF7__EPDC0_SDCE4 0x011C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF7__DPI0_D16 0x011C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF7__WUU1_P11 0x011C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF7__DEBUG_MUX1_28 0x011C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF8__PTF8 0x0120 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF8__FXIO1_D8 0x0120 0x08B4 0x2 0x2 +#define MX8ULP_PAD_PTF8__LPSPI4_SIN 0x0120 0x0908 0x3 0x3 +#define MX8ULP_PAD_PTF8__LPUART4_CTS_B 0x0120 0x08DC 0x4 0x3 +#define MX8ULP_PAD_PTF8__LPI2C4_SCL 0x0120 0x08C8 0x5 0x3 +#define MX8ULP_PAD_PTF8__TPM7_CH3 0x0120 0x09A4 0x6 0x1 +#define MX8ULP_PAD_PTF8__MQS1_RIGHT 0x0120 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF8__SDHC1_D6 0x0120 0x0A7C 0x8 0x2 +#define MX8ULP_PAD_PTF8__ENET0_MDIO 0x0120 0x0AF0 0x9 0x2 +#define MX8ULP_PAD_PTF8__TRACE0_D14 0x0120 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF8__EPDC0_D15 0x0120 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF8__DPI0_D15 0x0120 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF8__LP_HV_DBG_MUX_24 0x0120 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF8__DEBUG_MUX1_29 0x0120 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF9__PTF9 0x0124 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF9__FXIO1_D9 0x0124 0x08B8 0x2 0x2 +#define MX8ULP_PAD_PTF9__LPSPI4_SOUT 0x0124 0x090C 0x3 0x3 +#define MX8ULP_PAD_PTF9__LPUART4_RTS_B 0x0124 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTF9__LPI2C4_SDA 0x0124 0x08CC 0x5 0x3 +#define MX8ULP_PAD_PTF9__TPM7_CH4 0x0124 0x09A8 0x6 0x1 +#define MX8ULP_PAD_PTF9__EXT_AUD_MCLK2 0x0124 0x0800 0x7 0x2 +#define MX8ULP_PAD_PTF9__SDHC1_D7 0x0124 0x0A80 0x8 0x2 +#define MX8ULP_PAD_PTF9__ENET0_MDC 0x0124 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTF9__TRACE0_D13 0x0124 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF9__EPDC0_D14 0x0124 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF9__DPI0_D14 0x0124 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF9__LP_HV_DBG_MUX_25 0x0124 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF9__DEBUG_MUX1_30 0x0124 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF10__LP_HV_DBG_MUX_26 0x0128 0x0000 0x0 0x0 +#define MX8ULP_PAD_PTF10__PTF10 0x0128 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF10__FXIO1_D10 0x0128 0x0844 0x2 0x2 +#define MX8ULP_PAD_PTF10__LPSPI4_SCK 0x0128 0x0904 0x3 0x3 +#define MX8ULP_PAD_PTF10__LPUART4_TX 0x0128 0x08E4 0x4 0x3 +#define MX8ULP_PAD_PTF10__LPI2C4_HREQ 0x0128 0x08C4 0x5 0x3 +#define MX8ULP_PAD_PTF10__TPM7_CH5 0x0128 0x09AC 0x6 0x1 +#define MX8ULP_PAD_PTF10__I2S4_RX_BCLK 0x0128 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF10__SDHC1_DQS 0x0128 0x0A84 0x8 0x2 +#define MX8ULP_PAD_PTF10__ENET0_1588_CLKIN 0x0128 0x0AD0 0x9 0x2 +#define MX8ULP_PAD_PTF10__TRACE0_D12 0x0128 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF10__EPDC0_D13 0x0128 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF10__DPI0_D13 0x0128 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF10__DEBUG_MUX0_20 0x0128 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF10__DEBUG_MUX1_31 0x0128 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF11__PTF11 0x012C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF11__FXIO1_D11 0x012C 0x0848 0x2 0x2 +#define MX8ULP_PAD_PTF11__LPSPI4_PCS0 0x012C 0x08F4 0x3 0x3 +#define MX8ULP_PAD_PTF11__LPUART4_RX 0x012C 0x08E0 0x4 0x3 +#define MX8ULP_PAD_PTF11__TPM4_CLKIN 0x012C 0x081C 0x6 0x2 +#define MX8ULP_PAD_PTF11__I2S4_RX_FS 0x012C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF11__SDHC1_RESET_B 0x012C 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTF11__ENET0_1588_TMR0 0x012C 0x0AD4 0x9 0x2 +#define MX8ULP_PAD_PTF11__TRACE0_D11 0x012C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF11__EPDC0_D12 0x012C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF11__DPI0_D12 0x012C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF11__LP_HV_DBG_MUX_27 0x012C 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF11__DEBUG_MUX1_32 0x012C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF12__PTF12 0x0130 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF12__FXIO1_D12 0x0130 0x084C 0x2 0x2 +#define MX8ULP_PAD_PTF12__LPSPI5_PCS1 0x0130 0x0914 0x3 0x2 +#define MX8ULP_PAD_PTF12__LPUART5_CTS_B 0x0130 0x08E8 0x4 0x3 +#define MX8ULP_PAD_PTF12__LPI2C5_SCL 0x0130 0x08D4 0x5 0x3 +#define MX8ULP_PAD_PTF12__TPM4_CH0 0x0130 0x0804 0x6 0x2 +#define MX8ULP_PAD_PTF12__I2S4_RXD0 0x0130 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF12__SDHC2_WP 0x0130 0x0ABC 0x8 0x1 +#define MX8ULP_PAD_PTF12__ENET0_1588_TMR1 0x0130 0x0AD8 0x9 0x2 +#define MX8ULP_PAD_PTF12__TRACE0_D10 0x0130 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF12__EPDC0_D11 0x0130 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF12__DPI0_D11 0x0130 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF12__LP_HV_DBG_MUX_28 0x0130 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF12__DEBUG_MUX1_33 0x0130 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF13__PTF13 0x0134 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF13__FXIO1_D13 0x0134 0x0850 0x2 0x2 +#define MX8ULP_PAD_PTF13__LPSPI5_PCS2 0x0134 0x0918 0x3 0x2 +#define MX8ULP_PAD_PTF13__LPUART5_RTS_B 0x0134 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTF13__LPI2C5_SDA 0x0134 0x08D8 0x5 0x3 +#define MX8ULP_PAD_PTF13__TPM4_CH1 0x0134 0x0808 0x6 0x2 +#define MX8ULP_PAD_PTF13__I2S4_RXD1 0x0134 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF13__SDHC2_CD 0x0134 0x0A8C 0x8 0x1 +#define MX8ULP_PAD_PTF13__ENET0_1588_TMR2 0x0134 0x0ADC 0x9 0x2 +#define MX8ULP_PAD_PTF13__TRACE0_D9 0x0134 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF13__EPDC0_D10 0x0134 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF13__DPI0_D10 0x0134 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF13__DEBUG_MUX0_21 0x0134 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF13__LP_HV_DBG_MUX_29 0x0134 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF14__PTF14 0x0138 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF14__FXIO1_D14 0x0138 0x0854 0x2 0x2 +#define MX8ULP_PAD_PTF14__LPSPI5_PCS3 0x0138 0x091C 0x3 0x2 +#define MX8ULP_PAD_PTF14__LPUART5_TX 0x0138 0x08F0 0x4 0x3 +#define MX8ULP_PAD_PTF14__LPI2C5_HREQ 0x0138 0x08D0 0x5 0x3 +#define MX8ULP_PAD_PTF14__TPM4_CH2 0x0138 0x080C 0x6 0x2 +#define MX8ULP_PAD_PTF14__I2S4_MCLK 0x0138 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF14__SDHC2_VS 0x0138 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTF14__ENET0_1588_TMR3 0x0138 0x0AE0 0x9 0x2 +#define MX8ULP_PAD_PTF14__TRACE0_D8 0x0138 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF14__EPDC0_D9 0x0138 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF14__DPI0_D9 0x0138 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF14__DEBUG_MUX0_22 0x0138 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF14__LP_HV_DBG_MUX_30 0x0138 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF15__PTF15 0x013C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF15__FXIO1_D15 0x013C 0x0858 0x2 0x2 +#define MX8ULP_PAD_PTF15__LPUART5_RX 0x013C 0x08EC 0x4 0x3 +#define MX8ULP_PAD_PTF15__TPM4_CH3 0x013C 0x0810 0x6 0x2 +#define MX8ULP_PAD_PTF15__I2S4_TX_BCLK 0x013C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF15__SDHC2_D1 0x013C 0x0A9C 0x8 0x3 +#define MX8ULP_PAD_PTF15__ENET0_RXD2 0x013C 0x0B00 0x9 0x2 +#define MX8ULP_PAD_PTF15__TRACE0_D7 0x013C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF15__EPDC0_D8 0x013C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF15__DPI0_D8 0x013C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF15__LP_HV_DBG_MUX_31 0x013C 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF16__PTF16 0x0140 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF16__FXIO1_D16 0x0140 0x085C 0x2 0x2 +#define MX8ULP_PAD_PTF16__LPSPI5_SIN 0x0140 0x0924 0x3 0x2 +#define MX8ULP_PAD_PTF16__LPUART6_CTS_B 0x0140 0x09CC 0x4 0x3 +#define MX8ULP_PAD_PTF16__LPI2C6_SCL 0x0140 0x09B8 0x5 0x3 +#define MX8ULP_PAD_PTF16__TPM4_CH4 0x0140 0x0814 0x6 0x2 +#define MX8ULP_PAD_PTF16__I2S4_TX_FS 0x0140 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF16__SDHC2_D0 0x0140 0x0A98 0x8 0x3 +#define MX8ULP_PAD_PTF16__ENET0_RXD3 0x0140 0x0B04 0x9 0x2 +#define MX8ULP_PAD_PTF16__TRACE0_D6 0x0140 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF16__EPDC0_D7 0x0140 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF16__DPI0_D7 0x0140 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF16__LP_HV_DBG_MUX_32 0x0140 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF17__PTF17 0x0144 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF17__FXIO1_D17 0x0144 0x0860 0x2 0x2 +#define MX8ULP_PAD_PTF17__LPSPI5_SOUT 0x0144 0x0928 0x3 0x2 +#define MX8ULP_PAD_PTF17__LPUART6_RTS_B 0x0144 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTF17__LPI2C6_SDA 0x0144 0x09BC 0x5 0x3 +#define MX8ULP_PAD_PTF17__TPM4_CH5 0x0144 0x0818 0x6 0x2 +#define MX8ULP_PAD_PTF17__I2S4_TXD0 0x0144 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF17__SDHC2_CLK 0x0144 0x0A90 0x8 0x3 +#define MX8ULP_PAD_PTF17__ENET0_RXCLK 0x0144 0x0B0C 0x9 0x2 +#define MX8ULP_PAD_PTF17__TRACE0_D5 0x0144 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF17__EPDC0_D6 0x0144 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF17__DPI0_D6 0x0144 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF17__DEBUG_MUX0_23 0x0144 0x0000 0xe 0x0 +#define MX8ULP_PAD_PTF17__LP_HV_DBG_MUX_33 0x0144 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF18__PTF18 0x0148 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF18__FXIO1_D18 0x0148 0x0864 0x2 0x2 +#define MX8ULP_PAD_PTF18__LPSPI5_SCK 0x0148 0x0920 0x3 0x2 +#define MX8ULP_PAD_PTF18__LPUART6_TX 0x0148 0x09D4 0x4 0x3 +#define MX8ULP_PAD_PTF18__LPI2C6_HREQ 0x0148 0x09B4 0x5 0x3 +#define MX8ULP_PAD_PTF18__TPM5_CLKIN 0x0148 0x0838 0x6 0x2 +#define MX8ULP_PAD_PTF18__I2S4_TXD1 0x0148 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF18__SDHC2_CMD 0x0148 0x0A94 0x8 0x3 +#define MX8ULP_PAD_PTF18__ENET0_TXD2 0x0148 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTF18__TRACE0_D4 0x0148 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF18__EPDC0_D5 0x0148 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF18__DPI0_D5 0x0148 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF19__PTF19 0x014C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF19__FXIO1_D19 0x014C 0x0868 0x2 0x2 +#define MX8ULP_PAD_PTF19__LPSPI5_PCS0 0x014C 0x0910 0x3 0x2 +#define MX8ULP_PAD_PTF19__LPUART6_RX 0x014C 0x09D0 0x4 0x3 +#define MX8ULP_PAD_PTF19__TPM5_CH0 0x014C 0x0820 0x6 0x2 +#define MX8ULP_PAD_PTF19__I2S5_RX_BCLK 0x014C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF19__SDHC2_D3 0x014C 0x0AA4 0x8 0x3 +#define MX8ULP_PAD_PTF19__ENET0_TXD3 0x014C 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTF19__TRACE0_D3 0x014C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF19__EPDC0_D4 0x014C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF19__DPI0_D4 0x014C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF20__PTF20 0x0150 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF20__FXIO1_D20 0x0150 0x0870 0x2 0x2 +#define MX8ULP_PAD_PTF20__LPUART7_CTS_B 0x0150 0x09D8 0x4 0x3 +#define MX8ULP_PAD_PTF20__LPI2C7_SCL 0x0150 0x09C4 0x5 0x3 +#define MX8ULP_PAD_PTF20__TPM5_CH1 0x0150 0x0824 0x6 0x2 +#define MX8ULP_PAD_PTF20__I2S5_RX_FS 0x0150 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF20__SDHC2_D2 0x0150 0x0AA0 0x8 0x3 +#define MX8ULP_PAD_PTF20__ENET0_TXCLK 0x0150 0x0B10 0x9 0x2 +#define MX8ULP_PAD_PTF20__TRACE0_D2 0x0150 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF20__EPDC0_D3 0x0150 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF20__DPI0_D3 0x0150 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF21__PTF21 0x0154 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF21__FXIO1_D21 0x0154 0x0874 0x2 0x2 +#define MX8ULP_PAD_PTF21__SPDIF_CLK 0x0154 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTF21__LPUART7_RTS_B 0x0154 0x0000 0x4 0x0 +#define MX8ULP_PAD_PTF21__LPI2C7_SDA 0x0154 0x09C8 0x5 0x3 +#define MX8ULP_PAD_PTF21__TPM6_CLKIN 0x0154 0x0994 0x6 0x2 +#define MX8ULP_PAD_PTF21__I2S5_RXD0 0x0154 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF21__SDHC2_D4 0x0154 0x0AA8 0x8 0x2 +#define MX8ULP_PAD_PTF21__ENET0_CRS 0x0154 0x0AE8 0x9 0x2 +#define MX8ULP_PAD_PTF21__TRACE0_D1 0x0154 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF21__EPDC0_D2 0x0154 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF21__DPI0_D2 0x0154 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF22__PTF22 0x0158 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF22__FXIO1_D22 0x0158 0x0878 0x2 0x2 +#define MX8ULP_PAD_PTF22__SPDIF_IN0 0x0158 0x0B74 0x3 0x3 +#define MX8ULP_PAD_PTF22__LPUART7_TX 0x0158 0x09E0 0x4 0x3 +#define MX8ULP_PAD_PTF22__LPI2C7_HREQ 0x0158 0x09C0 0x5 0x3 +#define MX8ULP_PAD_PTF22__TPM6_CH0 0x0158 0x097C 0x6 0x2 +#define MX8ULP_PAD_PTF22__I2S5_RXD1 0x0158 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF22__SDHC2_D5 0x0158 0x0AAC 0x8 0x2 +#define MX8ULP_PAD_PTF22__ENET0_COL 0x0158 0x0AE4 0x9 0x2 +#define MX8ULP_PAD_PTF22__TRACE0_D0 0x0158 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF22__EPDC0_D1 0x0158 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF22__DPI0_D1 0x0158 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF23__PTF23 0x015C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF23__FXIO1_D23 0x015C 0x087C 0x2 0x2 +#define MX8ULP_PAD_PTF23__SPDIF_OUT0 0x015C 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTF23__LPUART7_RX 0x015C 0x09DC 0x4 0x3 +#define MX8ULP_PAD_PTF23__I3C2_PUR 0x015C 0x0000 0x5 0x0 +#define MX8ULP_PAD_PTF23__TPM6_CH1 0x015C 0x0980 0x6 0x2 +#define MX8ULP_PAD_PTF23__I2S5_RXD2 0x015C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF23__SDHC2_D6 0x015C 0x0AB0 0x8 0x2 +#define MX8ULP_PAD_PTF23__ENET0_TXER 0x015C 0x0000 0x9 0x0 +#define MX8ULP_PAD_PTF23__TRACE0_CLKOUT 0x015C 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF23__EPDC0_D0 0x015C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF23__DPI0_D0 0x015C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF24__PTF24 0x0160 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF24__FXIO1_D24 0x0160 0x0880 0x2 0x2 +#define MX8ULP_PAD_PTF24__SPDIF_IN1 0x0160 0x0B78 0x3 0x3 +#define MX8ULP_PAD_PTF24__I3C2_SCL 0x0160 0x08BC 0x5 0x4 +#define MX8ULP_PAD_PTF24__I2S5_RXD3 0x0160 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF24__SDHC2_D7 0x0160 0x0AB4 0x8 0x2 +#define MX8ULP_PAD_PTF24__DBI0_WRX 0x0160 0x0000 0xa 0x0 +#define MX8ULP_PAD_PTF24__EPDC0_SDCLK 0x0160 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF24__DPI0_PCLK 0x0160 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF24__WUU1_P12 0x0160 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF25__PTF25 0x0164 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF25__FXIO1_D25 0x0164 0x0884 0x2 0x2 +#define MX8ULP_PAD_PTF25__SPDIF_OUT1 0x0164 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTF25__I3C2_SDA 0x0164 0x08C0 0x5 0x4 +#define MX8ULP_PAD_PTF25__TPM7_CH5 0x0164 0x09AC 0x6 0x2 +#define MX8ULP_PAD_PTF25__I2S5_MCLK 0x0164 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF25__SDHC2_DQS 0x0164 0x0AB8 0x8 0x2 +#define MX8ULP_PAD_PTF25__EXT_AUD_MCLK2 0x0164 0x0800 0x9 0x3 +#define MX8ULP_PAD_PTF25__EPDC0_GDSP 0x0164 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF25__DPI0_VSYNC 0x0164 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF25__WUU1_P13 0x0164 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF26__PTF26 0x0168 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF26__FXIO1_D26 0x0168 0x0888 0x2 0x2 +#define MX8ULP_PAD_PTF26__SPDIF_IN2 0x0168 0x0B7C 0x3 0x3 +#define MX8ULP_PAD_PTF26__TPM7_CLKIN 0x0168 0x09B0 0x6 0x2 +#define MX8ULP_PAD_PTF26__I2S5_TX_BCLK 0x0168 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF26__SDHC2_RESET_B 0x0168 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTF26__EPDC0_SDLE 0x0168 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF26__DPI0_HSYNC 0x0168 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF26__WUU1_P14 0x0168 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF27__PTF27 0x016C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF27__FXIO1_D27 0x016C 0x088C 0x2 0x2 +#define MX8ULP_PAD_PTF27__SPDIF_OUT2 0x016C 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTF27__TPM7_CH0 0x016C 0x0998 0x6 0x2 +#define MX8ULP_PAD_PTF27__I2S5_TX_FS 0x016C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF27__SDHC2_WP 0x016C 0x0ABC 0x8 0x2 +#define MX8ULP_PAD_PTF27__EPDC0_SDCE0 0x016C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF27__DPI0_DE 0x016C 0x0000 0xc 0x0 +#define MX8ULP_PAD_PTF27__WUU1_P15 0x016C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF28__PTF28 0x0170 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF28__FXIO1_D28 0x0170 0x0890 0x2 0x2 +#define MX8ULP_PAD_PTF28__SPDIF_IN3 0x0170 0x0B80 0x3 0x3 +#define MX8ULP_PAD_PTF28__TPM7_CH1 0x0170 0x099C 0x6 0x2 +#define MX8ULP_PAD_PTF28__I2S5_TXD0 0x0170 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF28__SDHC2_CD 0x0170 0x0A8C 0x8 0x2 +#define MX8ULP_PAD_PTF28__EPDC0_SDCLK_B 0x0170 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF28__LP_HV_DBG_MUX_20 0x0170 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF29__PTF29 0x0174 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF29__FXIO1_D29 0x0174 0x0894 0x2 0x2 +#define MX8ULP_PAD_PTF29__SPDIF_OUT3 0x0174 0x0000 0x3 0x0 +#define MX8ULP_PAD_PTF29__TPM7_CH2 0x0174 0x09A0 0x6 0x2 +#define MX8ULP_PAD_PTF29__I2S5_TXD1 0x0174 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF29__SDHC2_VS 0x0174 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTF29__EPDC0_SDCE1 0x0174 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF29__WDOG3_RST 0x0174 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF29__LP_HV_DBG_MUX_21 0x0174 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF30__PTF30 0x0178 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF30__FXIO1_D30 0x0178 0x089C 0x2 0x2 +#define MX8ULP_PAD_PTF30__TPM7_CH3 0x0178 0x09A4 0x6 0x2 +#define MX8ULP_PAD_PTF30__I2S5_TXD2 0x0178 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF30__MQS1_LEFT 0x0178 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTF30__EPDC0_SDCE2 0x0178 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF30__WDOG4_RST 0x0178 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF30__LP_HV_DBG_MUX_22 0x0178 0x0000 0xf 0x0 +#define MX8ULP_PAD_PTF31__PTF31 0x017C 0x0000 0x1 0x0 +#define MX8ULP_PAD_PTF31__FXIO1_D31 0x017C 0x08A0 0x2 0x2 +#define MX8ULP_PAD_PTF31__TPM7_CH4 0x017C 0x09A8 0x6 0x2 +#define MX8ULP_PAD_PTF31__I2S5_TXD3 0x017C 0x0000 0x7 0x0 +#define MX8ULP_PAD_PTF31__MQS1_RIGHT 0x017C 0x0000 0x8 0x0 +#define MX8ULP_PAD_PTF31__EPDC0_SDCE3 0x017C 0x0000 0xb 0x0 +#define MX8ULP_PAD_PTF31__WDOG5_RST 0x017C 0x0000 0xd 0x0 +#define MX8ULP_PAD_PTF31__LP_HV_DBG_MUX_23 0x017C 0x0000 0xf 0x0 +#define MX8ULP_PAD_BOOT_MODE0__BOOT_MODE0 0x0400 0x0000 0x0 0x0 +#define MX8ULP_PAD_BOOT_MODE1__BOOT_MODE1 0x0404 0x0000 0x0 0x0 + +#endif /* __DTS_IMX8ULP_PINFUNC_H */
arch/arm/dts/imx8ulp.dtsi new file +728 -0
728 lines not on this page · raw message
include/dt-bindings/clock/imx8ulp-clock.h new file +247 -0
247 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 43/44 arm: dts: add i.MX8ULP dtsi
Quoted 3 lines
From: Peng Fan <[email protected]>
Add i.MX8ULP dtsiSigned-off-by Peng Fan <[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: [email protected] =====================================================================
Quoted 9 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
V3:
Fix build error which break 8MN, pass buildman for i.MX.
SelectGPIO_EXTRA_HEADERfor 8ULP to fix build break which caused by upstream change. Rebased
Drop 7ULP, since already been picked up.
Stefano, I see you have a PR to Tom, do you plan to pick up this patchset for a following PR, or I send a PR to your?
No, I plan to pick up your series + two Frieder's boards after fixing the build, and I'll send a new PR to Tom. No need for a new PR.
Regards,
Stefano
Quoted 190 lines
Thanks, Peng
V2:
Rebased and test on new revision silicon with upower included.The i.MX 8ULP crossover applications processor family brings ultra-low power processing and advanced integrated security with EdgeLockTM secure enclave to the intelligent edge.
It includes an uPower core for handling power related functions.
This patchset is to add initial support for i.MX8ULP, with core soc functions, clock, dtsi, and evk board.
Peng Fan (24):
arm: imx: add i.MX8ULP basicKconfigoption
arm: imx: add i.MX8ULP cpu type and helper
arm: imx:sys_proto: move boot mode define to common header
arm: imx8ulp: support print cpu info
imx: imx8ulp: add get reset cause
arm: imx: basic i.MX8ULP support
arm: imx: parse-container: guard included header files
arm: imx: move containerKconfigunder mach-imx
net:fec_mxc: support i.MX8ULP
driver: serial:fsl_lpuart: support i.MX8ULP
arm: imx8ulp: add clock support
drivers: mmc:fsl_esdhc_imx: support i.MX8ULP
arm: imx8ulp: disable wdog3
arm: imx8ulp: add rdc support
arm: imx8ulp: add trdc release request
arm: imx8ulp: release trdc and assign lpav from RTD to APD
imx8ulp: unify rdc functions
arm: imx8ulp: add dummyimx_get_mac_from_fuse
arm: imx8ulp: add iomuxc support
imx8ulp: soc: correct reset cause
imx8ulp: move structmu_typeto common header
imx8ulp: add upower api support
arm: dts: add i.MX8ULP dtsi
arm: imx: add i.MX8ULP EVK supportYe Li (20):
arm: imx8: Move container parser and image to mach-imx common folder
arm: imx8: Move container image header file to mach-imx
arm: imx8ulp: add container support
driver: misc: Add MU and S400 API to communicate with Sentinel
pinctrl: Add pinctrl driver for imx8ulp
arm: imx8ulp: soc: Change to use CMC1 to get bootcfg
arm: imx8ulp: Enable full L2 cache in SPL
arm: imx8ulp: Update the reset vector in u-boot
drivers: misc:s400_api: UpdateS400_SUCCESS_INDto0xd6
drivers: misc: imx8ulp: Add S400 API for image authentication
drivers: misc: imx8ulp: Update S400 API for release RDC
drivers: misc:s400_api: Update API for fuse read and write
arm: imx8ulp: release and configure XRDC at early phase
arm: imx8ulp: Probe the S400 MU device in arch init
arm: iMX8ULP: Add boot device relevant functions
arm: imx8ulp: Allocate DCNANO andMIPI_DSIto AD domain
driver: misc: imx8ulp: Add fuse driver for imx8ulp
imx8ulp: UseDGO_GP5to get boot config
imx8ulp: Add workaround for eMMC boot
ddr: Add DDR driver for iMX8ULParch/arm/Kconfig | 11 + arch/arm/Makefile | 4 +- arch/arm/dts/Makefile | 3 + arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 40 + arch/arm/dts/imx8ulp-evk.dts | 223 ++++ arch/arm/dts/imx8ulp-pinfunc.h | 978 ++++++++++++++ arch/arm/dts/imx8ulp.dtsi | 728 +++++++++++ arch/arm/include/asm/arch-imx/cpu.h | 4 + arch/arm/include/asm/arch-imx8ulp/cgc.h | 130 ++ arch/arm/include/asm/arch-imx8ulp/clock.h | 41 + arch/arm/include/asm/arch-imx8ulp/ddr.h | 38 + arch/arm/include/asm/arch-imx8ulp/gpio.h | 20 + arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 162 +++ .../include/asm/arch-imx8ulp/imx8ulp-pins.h | 60 + arch/arm/include/asm/arch-imx8ulp/iomux.h | 82 ++ arch/arm/include/asm/arch-imx8ulp/mu_hal.h | 12 + arch/arm/include/asm/arch-imx8ulp/pcc.h | 139 ++ arch/arm/include/asm/arch-imx8ulp/rdc.h | 27 + arch/arm/include/asm/arch-imx8ulp/s400_api.h | 41 + arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 19 + arch/arm/include/asm/arch-imx8ulp/upower.h | 15 + arch/arm/include/asm/arch-mx7ulp/sys_proto.h | 9 - arch/arm/include/asm/global_data.h | 5 + .../asm/{arch-imx8 => mach-imx}/image.h | 2 + arch/arm/include/asm/mach-imx/sys_proto.h | 13 +- arch/arm/mach-imx/Kconfig | 15 +- arch/arm/mach-imx/Makefile | 5 + arch/arm/mach-imx/cmd_dek.c | 2 +- .../{imx8/image.c => image-container.c} | 51 +- arch/arm/mach-imx/imx8/Kconfig | 13 - arch/arm/mach-imx/imx8/Makefile | 3 - arch/arm/mach-imx/imx8/ahab.c | 2 +- arch/arm/mach-imx/imx8ulp/Kconfig | 23 + arch/arm/mach-imx/imx8ulp/Makefile | 11 + arch/arm/mach-imx/imx8ulp/cgc.c | 455 +++++++ arch/arm/mach-imx/imx8ulp/clock.c | 397 ++++++ arch/arm/mach-imx/imx8ulp/iomux.c | 58 + arch/arm/mach-imx/imx8ulp/lowlevel_init.S | 26 + arch/arm/mach-imx/imx8ulp/pcc.c | 449 +++++++ arch/arm/mach-imx/imx8ulp/rdc.c | 411 ++++++ arch/arm/mach-imx/imx8ulp/soc.c | 544 ++++++++ arch/arm/mach-imx/imx8ulp/upower/Makefile | 6 + arch/arm/mach-imx/imx8ulp/upower/upower_api.c | 486 +++++++ arch/arm/mach-imx/imx8ulp/upower/upower_api.h | 258 ++++ arch/arm/mach-imx/imx8ulp/upower/upower_hal.c | 179 +++ .../arm/mach-imx/{imx8 => }/parse-container.c | 4 +- arch/arm/mach-imx/spl_imx_romapi.c | 172 ++- board/freescale/imx8ulp_evk/Kconfig | 14 + board/freescale/imx8ulp_evk/MAINTAINERS | 6 + board/freescale/imx8ulp_evk/Makefile | 7 + board/freescale/imx8ulp_evk/ddr_init.c | 207 +++ board/freescale/imx8ulp_evk/imx8ulp_evk.c | 67 + board/freescale/imx8ulp_evk/lpddr4_timing.c | 1159 +++++++++++++++++ board/freescale/imx8ulp_evk/spl.c | 115 ++ configs/imx8ulp_evk_defconfig | 103 ++ drivers/Makefile | 1 + drivers/ddr/imx/Kconfig | 1 + drivers/ddr/imx/imx8ulp/Kconfig | 11 + drivers/ddr/imx/imx8ulp/Makefile | 9 + drivers/ddr/imx/imx8ulp/ddr_init.c | 217 +++ drivers/misc/Makefile | 1 + drivers/misc/imx8ulp/Makefile | 4 + drivers/misc/imx8ulp/fuse.c | 198 +++ drivers/misc/imx8ulp/imx8ulp_mu.c | 234 ++++ drivers/misc/imx8ulp/s400_api.c | 244 ++++ drivers/mmc/Kconfig | 2 +- drivers/mmc/fsl_esdhc_imx.c | 12 +- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 2 +- drivers/pinctrl/nxp/Kconfig | 14 + drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 44 + include/configs/imx8ulp_evk.h | 107 ++ include/dt-bindings/clock/imx8ulp-clock.h | 247 ++++ include/fsl_lpuart.h | 2 +- 75 files changed, 9321 insertions(+), 86 deletions(-)create mode 100644
arch/arm/dts/imx8ulp-evk-u-boot.dtsicreate mode 100644arch/arm/dts/imx8ulp-evk.dts
create mode 100644arch/arm/dts/imx8ulp-pinfunc.h
create mode 100644arch/arm/dts/imx8ulp.dtsi
create mode 100644arch/arm/include/asm/arch-imx8ulp/cgc.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/clock.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/ddr.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/gpio.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/imx-regs.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/imx8ulp-pins.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/iomux.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/mu_hal.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/pcc.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/rdc.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/s400_api.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/sys_proto.hcreate mode 100644arch/arm/include/asm/arch-imx8ulp/upower.hrenamearch/arm/include/asm/{arch-imx8=>mach-imx}/image.h(95%) renamearch/arm/mach-imx/{imx8/image.c=>image-container.c} (79%) create mode 100644arch/arm/mach-imx/imx8ulp/Kconfigcreate mode 100644arch/arm/mach-imx/imx8ulp/Makefilecreate mode 100644arch/arm/mach-imx/imx8ulp/cgc.ccreate mode 100644arch/arm/mach-imx/imx8ulp/clock.ccreate mode 100644arch/arm/mach-imx/imx8ulp/iomux.ccreate mode 100644arch/arm/mach-imx/imx8ulp/lowlevel_init.Screate mode 100644arch/arm/mach-imx/imx8ulp/pcc.ccreate mode 100644arch/arm/mach-imx/imx8ulp/rdc.ccreate mode 100644arch/arm/mach-imx/imx8ulp/soc.ccreate mode 100644arch/arm/mach-imx/imx8ulp/upower/Makefilecreate mode 100644arch/arm/mach-imx/imx8ulp/upower/upower_api.ccreate mode 100644arch/arm/mach-imx/imx8ulp/upower/upower_api.hcreate mode 100644arch/arm/mach-imx/imx8ulp/upower/upower_hal.crenamearch/arm/mach-imx/{imx8=>}/parse-container.c(98%) create mode 100644 board/freescale/imx8ulp_evk/Kconfig create mode 100644 board/freescale/imx8ulp_evk/MAINTAINERS create mode 100644 board/freescale/imx8ulp_evk/Makefile create mode 100644board/freescale/imx8ulp_evk/ddr_init.ccreate mode 100644board/freescale/imx8ulp_evk/imx8ulp_evk.ccreate mode 100644board/freescale/imx8ulp_evk/lpddr4_timing.ccreate mode 100644board/freescale/imx8ulp_evk/spl.ccreate mode 100644 configs/imx8ulp_evk_defconfig
create mode 100644drivers/ddr/imx/imx8ulp/Kconfigcreate mode 100644drivers/ddr/imx/imx8ulp/Makefilecreate mode 100644drivers/ddr/imx/imx8ulp/ddr_init.ccreate mode 100644drivers/misc/imx8ulp/Makefile
create mode 100644drivers/misc/imx8ulp/fuse.c
create mode 100644drivers/misc/imx8ulp/imx8ulp_mu.ccreate mode 100644drivers/misc/imx8ulp/s400_api.ccreate mode 100644drivers/pinctrl/nxp/pinctrl-imx8ulp.ccreate mode 100644include/configs/imx8ulp_evk.h
create mode 100644include/dt-bindings/clock/imx8ulp-clock.h
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: [email protected] =====================================================================
PATCH v3 44/44 arm: imx: add i.MX8ULP EVK support
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Add i.MX8ULP EVK basic support, support SD/I2C/ENET/LPUART
Log as below: I would keep some debug info for now, and after we move to be stable and production launch, we could drop that.
U-Boot SPL 2021.07-rc4-00164-gb800e19a6b (Jun 29 2021 - 10:23:30 +0800) Normal Bootupower_init: soc_id=48upower_init: version:11.11.6upower_init: start uPower RAM serviceuser_upwr_rdy_callb: soc=buser_upwr_rdy_callb: RAM version:12.6
Turn on switches ok
Turn on memories ok
Clear DDR retention ok
Poll for freq_chg_req on SIM register and change to F1 frequency. Poll for freq_chg_req on SIM register and change to F0 frequency. Poll for freq_chg_req on SIM register and change to F1 frequency. Poll for freq_chg_req on SIM register and change to F2 frequency. Poll for freq_chg_req on SIM register and change to F1 frequency. Poll for freq_chg_req on SIM register and change to F2 frequency. complete
De-Skew PLL is locked and ready
WDT: Not found!
Trying to boot from BOOTROM
image offset 0x8000, pagesize 0x200, ivt offset 0x0
Load image from 0x3a800 by ROM_API
NOTICE: BL31: v2.4(release):imx_5.10.35_2.0.0_imx8ulp_er-10-gf37e59b94-dirty NOTICE: BL31: Built : 01:56:58, Jun 29 2021 NOTICE: upower_init: start uPower RAM service NOTICE: user_upwr_rdy_callb: soc=b NOTICE: user_upwr_rdy_callb: RAM version:12.6
U-Boot 2021.07-rc4-00164-gb800e19a6b (Jun 29 2021 - 10:23:30 +0800)
CPU: Freescale i.MX8ULP rev1.0 at 744 MHz Reset cause: POR Boot mode: Single boot Model: FSL i.MX8ULP EVK DRAM: 2 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial@293a0000 Out: serial@293a0000 Err: serial@293a0000
Net:
Warning: ethernet@29950000 (eth0) using random MAC address - 96:35:88:62:e0:44
eth0: ethernet@29950000
Hit any key to stop autoboot: 0
--- arch/arm/dts/Makefile | 3 + arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 40 + arch/arm/dts/imx8ulp-evk.dts | 223 ++++ arch/arm/mach-imx/imx8ulp/Kconfig | 7 + board/freescale/imx8ulp_evk/Kconfig | 14 + board/freescale/imx8ulp_evk/MAINTAINERS | 6 + board/freescale/imx8ulp_evk/Makefile | 7 + board/freescale/imx8ulp_evk/ddr_init.c | 207 ++++ board/freescale/imx8ulp_evk/imx8ulp_evk.c | 67 ++ board/freescale/imx8ulp_evk/lpddr4_timing.c | 1159 +++++++++++++++++++ board/freescale/imx8ulp_evk/spl.c | 115 ++ configs/imx8ulp_evk_defconfig | 103 ++ include/configs/imx8ulp_evk.h | 107 ++ 13 files changed, 2058 insertions(+) create mode 100644 arch/arm/dts/imx8ulp-evk-u-boot.dtsi create mode 100644 arch/arm/dts/imx8ulp-evk.dts create mode 100644 board/freescale/imx8ulp_evk/Kconfig create mode 100644 board/freescale/imx8ulp_evk/MAINTAINERS create mode 100644 board/freescale/imx8ulp_evk/Makefile create mode 100644 board/freescale/imx8ulp_evk/ddr_init.c create mode 100644 board/freescale/imx8ulp_evk/imx8ulp_evk.c create mode 100644 board/freescale/imx8ulp_evk/lpddr4_timing.c create mode 100644 board/freescale/imx8ulp_evk/spl.c create mode 100644 configs/imx8ulp_evk_defconfig create mode 100644 include/configs/imx8ulp_evk.h
arch/arm/dts/Makefile +3 -0
@@ -859,6 +859,9 @@ dtb-$(CONFIG_ARCH_IMX8) += \ imx8-deneb.dtb \ imx8-giedi.dtb +dtb-$(CONFIG_ARCH_IMX8ULP) += \ + imx8ulp-evk.dtb + dtb-$(CONFIG_ARCH_IMX8M) += \ imx8mm-evk.dtb \ imx8mm-icore-mx8mm-ctouch2.dtb \
arch/arm/dts/imx8ulp-evk-u-boot.dtsi new file +40 -0
@@ -0,0 +1,40 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2021 NXP + */ + +&{/soc@0} { + u-boot,dm-spl; +}; + +&per_bridge3 { + u-boot,dm-spl; +}; + +&per_bridge4 { + u-boot,dm-spl; +}; + +&iomuxc1 { + u-boot,dm-spl; +}; + +&pinctrl_lpuart5 { + u-boot,dm-spl; +}; + +&s400_mu { + u-boot,dm-spl; +}; + +&lpuart5 { + u-boot,dm-spl; +}; + +&usdhc0 { + u-boot,dm-spl; +}; + +&pinctrl_usdhc0 { + u-boot,dm-spl; +};
arch/arm/dts/imx8ulp-evk.dts new file +223 -0
223 lines not on this page · raw message
arch/arm/mach-imx/imx8ulp/Kconfig +7 -0
@@ -11,6 +11,13 @@ choice prompt "i.MX8ULP board select" optional +config TARGET_IMX8ULP_EVK + bool "imx8ulp_evk" + select IMX8ULP + select SUPPORT_SPL + endchoice +source "board/freescale/imx8ulp_evk/Kconfig" + endif
board/freescale/imx8ulp_evk/Kconfig new file +14 -0
@@ -0,0 +1,14 @@ +if TARGET_IMX8ULP_EVK + +config SYS_BOARD + default "imx8ulp_evk" + +config SYS_VENDOR + default "freescale" + +config SYS_CONFIG_NAME + default "imx8ulp_evk" + +source "board/freescale/common/Kconfig" + +endif
board/freescale/imx8ulp_evk/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +i.MX8ULP EVK BOARD +M: Peng Fan <[email protected]> +S: Maintained +F: board/freescale/imx8ulp_evk/ +F: include/configs/imx8ulp_evk.h +F: configs/imx8ulp_evk_defconfig
board/freescale/imx8ulp_evk/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y += imx8ulp_evk.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o ddr_init.o lpddr4_timing.o +endif
board/freescale/imx8ulp_evk/ddr_init.c new file +207 -0
207 lines not on this page · raw message
board/freescale/imx8ulp_evk/imx8ulp_evk.c new file +67 -0
67 lines not on this page · raw message
board/freescale/imx8ulp_evk/lpddr4_timing.c new file +1159 -0
1,159 lines not on this page · raw message
board/freescale/imx8ulp_evk/spl.c new file +115 -0
115 lines not on this page · raw message
configs/imx8ulp_evk_defconfig new file +103 -0
103 lines not on this page · raw message
include/configs/imx8ulp_evk.h new file +107 -0
107 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH v3 44/44 arm: imx: add i.MX8ULP EVK support
Quoted 42 lines
From: Peng Fan <[email protected]>
Add i.MX8ULP EVK basic support, support SD/I2C/ENET/LPUART Log as below: I would keep some debug info for now, and after we move to be stable and production launch, we could drop that. U-Boot SPL 2021.07-rc4-00164-gb800e19a6b (Jun 29 2021 - 10:23:30 +0800) Normal Bootupower_init: soc_id=48upower_init: version:11.11.6upower_init: start uPower RAM serviceuser_upwr_rdy_callb: soc=buser_upwr_rdy_callb: RAM version:12.6
Turn on switches ok
Turn on memories ok
Clear DDR retention ok
Poll forfreq_chg_reqon SIM register and change to F1 frequency. Poll forfreq_chg_reqon SIM register and change to F0 frequency. Poll forfreq_chg_reqon SIM register and change to F1 frequency. Poll forfreq_chg_reqon SIM register and change to F2 frequency. Poll forfreq_chg_reqon SIM register and change to F1 frequency. Poll forfreq_chg_reqon SIM register and change to F2 frequency. complete
De-Skew PLL is locked and ready
WDT: Not found!
Trying to boot from BOOTROM
image offset0x8000, pagesize0x200, ivt offset0x0
Load image from0x3a800byROM_APINOTICE: BL31: v2.4(release):imx_5.10.35_2.0.0_imx8ulp_er-10-gf37e59b94-dirty NOTICE: BL31: Built : 01:56:58, Jun 29 2021 NOTICE: upower_init: start uPower RAM service NOTICE: user_upwr_rdy_callb: soc=b NOTICE: user_upwr_rdy_callb: RAM version:12.6 U-Boot 2021.07-rc4-00164-gb800e19a6b (Jun 29 2021 - 10:23:30 +0800) CPU: Freescale i.MX8ULP rev1.0 at 744 MHz Reset cause: POR Boot mode: Single boot Model: FSL i.MX8ULP EVK DRAM: 2 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 2 Loading Environment from MMC... *** Warning - bad CRC, using default environment In: serial@293a0000 Out: serial@293a0000 Err: serial@293a0000
Quoted 5 lines
Net:
Warning: ethernet@29950000 (eth0) using random MAC address - 96:35:88:62:e0:44
eth0: ethernet@29950000
Hit any key to stop autoboot: 0Signed-off-by Peng Fan <[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: [email protected] =====================================================================