Add support for Kontron i.MX8MP and i.MX93 OSM hardware
Subsystems (3)
cover Add support for Kontron i.MX8MP and i.MX93 OSM hardware
From: Frieder Schrempf <[email protected]>
This adds support for Kontron hardware based on i.MX8MP and i.MX93 OSM (Open Standard Module) SoMs.
Frieder Schrempf (4):
imx: Add support for Kontron i.MX8MP OSM-S SoM and BL carrier board
arm64: dts: imx8mp-kontron: Fix USB OTG role switching
arm: imx: imx9: Use arch override for env_get_location()
imx: Add support for Kontron i.MX93 OSM-S SoM and BL carrier board
.../dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi | 115 + .../dts/imx93-kontron-bl-osm-s-u-boot.dtsi | 153 + arch/arm/mach-imx/imx8m/Kconfig | 14 + arch/arm/mach-imx/imx9/Kconfig | 11 +- arch/arm/mach-imx/imx9/soc.c | 2 +- board/kontron/osm-s-mx8mp/Kconfig | 17 + board/kontron/osm-s-mx8mp/MAINTAINERS | 7 + board/kontron/osm-s-mx8mp/Makefile | 9 + board/kontron/osm-s-mx8mp/imximage.cfg | 8 + board/kontron/osm-s-mx8mp/lpddr4_timing.c | 2474 +++++++++++++++++ board/kontron/osm-s-mx8mp/osm-s-mx8mp.c | 175 ++ board/kontron/osm-s-mx8mp/osm-s-mx8mp.env | 6 + board/kontron/osm-s-mx8mp/spl.c | 358 +++ board/kontron/osm-s-mx93/Kconfig | 17 + board/kontron/osm-s-mx93/MAINTAINERS | 7 + board/kontron/osm-s-mx93/Makefile | 9 + board/kontron/osm-s-mx93/lpddr4x_timing.c | 1992 +++++++++++++ board/kontron/osm-s-mx93/osm-s-mx93.c | 168 ++ board/kontron/osm-s-mx93/osm-s-mx93.env | 6 + board/kontron/osm-s-mx93/spl.c | 169 ++ configs/kontron-osm-s-mx8mp.config | 203 ++ configs/kontron-osm-s-mx8mp_defconfig | 3 + configs/kontron-osm-s-mx93.config | 197 ++ configs/kontron-osm-s-mx93_defconfig | 3 + doc/board/kontron/index.rst | 2 + doc/board/kontron/osm-s-mx8mp.rst | 104 + doc/board/kontron/osm-s-mx93.rst | 95 + .../freescale/imx8mp-kontron-bl-osm-s.dts | 24 +- include/configs/kontron-osm-s-mx8mp.h | 30 + include/configs/kontron-osm-s-mx93.h | 30 + 30 files changed, 6401 insertions(+), 7 deletions(-) create mode 100644 arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi create mode 100644 arch/arm/dts/imx93-kontron-bl-osm-s-u-boot.dtsi create mode 100644 board/kontron/osm-s-mx8mp/Kconfig create mode 100644 board/kontron/osm-s-mx8mp/MAINTAINERS create mode 100644 board/kontron/osm-s-mx8mp/Makefile create mode 100644 board/kontron/osm-s-mx8mp/imximage.cfg create mode 100644 board/kontron/osm-s-mx8mp/lpddr4_timing.c create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.c create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.env create mode 100644 board/kontron/osm-s-mx8mp/spl.c create mode 100644 board/kontron/osm-s-mx93/Kconfig create mode 100644 board/kontron/osm-s-mx93/MAINTAINERS create mode 100644 board/kontron/osm-s-mx93/Makefile create mode 100644 board/kontron/osm-s-mx93/lpddr4x_timing.c create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.c create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.env create mode 100644 board/kontron/osm-s-mx93/spl.c create mode 100644 configs/kontron-osm-s-mx8mp.config create mode 100644 configs/kontron-osm-s-mx8mp_defconfig create mode 100644 configs/kontron-osm-s-mx93.config create mode 100644 configs/kontron-osm-s-mx93_defconfig create mode 100644 doc/board/kontron/osm-s-mx8mp.rst create mode 100644 doc/board/kontron/osm-s-mx93.rst create mode 100644 include/configs/kontron-osm-s-mx8mp.h create mode 100644 include/configs/kontron-osm-s-mx93.h
Signature · 1 line
2.51.0
PATCH 1/4 imx: Add support for Kontron i.MX8MP OSM-S SoM and BL carrier board
From: Frieder Schrempf <[email protected]>
This adds support for the Kontron Electronics OSM-S i.MX8MP SoM and the matching baseboard BL i.MX8MP.
The SoM hardware complies to the Open Standard Module (OSM) 1.1 specification, size S (https://sget.org/standards/osm).
--- .../dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi | 115 + arch/arm/mach-imx/imx8m/Kconfig | 14 + board/kontron/osm-s-mx8mp/Kconfig | 17 + board/kontron/osm-s-mx8mp/MAINTAINERS | 7 + board/kontron/osm-s-mx8mp/Makefile | 9 + board/kontron/osm-s-mx8mp/imximage.cfg | 8 + board/kontron/osm-s-mx8mp/lpddr4_timing.c | 2474 +++++++++++++++++ board/kontron/osm-s-mx8mp/osm-s-mx8mp.c | 175 ++ board/kontron/osm-s-mx8mp/osm-s-mx8mp.env | 6 + board/kontron/osm-s-mx8mp/spl.c | 358 +++ configs/kontron-osm-s-mx8mp.config | 203 ++ configs/kontron-osm-s-mx8mp_defconfig | 3 + doc/board/kontron/index.rst | 1 + doc/board/kontron/osm-s-mx8mp.rst | 104 + include/configs/kontron-osm-s-mx8mp.h | 30 + 15 files changed, 3524 insertions(+) create mode 100644 arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi create mode 100644 board/kontron/osm-s-mx8mp/Kconfig create mode 100644 board/kontron/osm-s-mx8mp/MAINTAINERS create mode 100644 board/kontron/osm-s-mx8mp/Makefile create mode 100644 board/kontron/osm-s-mx8mp/imximage.cfg create mode 100644 board/kontron/osm-s-mx8mp/lpddr4_timing.c create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.c create mode 100644 board/kontron/osm-s-mx8mp/osm-s-mx8mp.env create mode 100644 board/kontron/osm-s-mx8mp/spl.c create mode 100644 configs/kontron-osm-s-mx8mp.config create mode 100644 configs/kontron-osm-s-mx8mp_defconfig create mode 100644 doc/board/kontron/osm-s-mx8mp.rst create mode 100644 include/configs/kontron-osm-s-mx8mp.h
arch/arm/dts/imx8mp-kontron-bl-osm-s-u-boot.dtsi new file +115 -0
@@ -0,0 +1,115 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Copyright (C) 2022 Kontron Electronics GmbH + */ + +#include "imx8mp-u-boot.dtsi" + +/ { + wdt-reboot { + compatible = "wdt-reboot"; + wdt = <&wdog1>; + bootph-pre-ram; + }; +}; + +&gpio1 { + bootph-pre-ram; +}; + +&gpio2 { + bootph-pre-ram; +}; + +&gpio3 { + bootph-pre-ram; +}; + +&gpio4 { + bootph-pre-ram; +}; + +&gpio5 { + bootph-pre-ram; +}; + +/* Enable I2C1 to probe for a touch controller on LVDS connector */ +&i2c1 { + status = "okay"; +}; + +&i2c5 { + bootph-pre-ram; +}; + +&pinctrl_i2c5 { + bootph-pre-ram; +}; + +&pinctrl_i2c5_gpio { + bootph-pre-ram; +}; + +&pinctrl_pmic { + bootph-pre-ram; +}; + +&pinctrl_uart3 { + bootph-pre-ram; +}; + +&pinctrl_wdog { + bootph-pre-ram; +}; + +&pca9450 { + bootph-pre-ram; +}; + +®_vdd_soc { + bootph-pre-ram; +}; + +®_vdd_arm { + bootph-pre-ram; +}; + +®_vdd_3v3 { + bootph-pre-ram; +}; + +®_vdd_1v8 { + bootph-pre-ram; +}; + +®_nvcc_dram { + bootph-pre-ram; +}; + +®_nvcc_snvs { + bootph-pre-ram; +}; + +®_vdda { + bootph-pre-ram; +}; + +®_nvcc_sd { + bootph-pre-ram; +}; + +&uart3 { + bootph-pre-ram; +}; + +&usb_dwc3_0 { + /* + * OTG role switching is currently not supported in U-Boot, use peripheral + * as default. + */ + dr_mode = "peripheral"; +}; + +&wdog1 { + bootph-pre-ram; +};
arch/arm/mach-imx/imx8m/Kconfig +14 -0
@@ -158,6 +158,19 @@ config TARGET_KONTRON_MX8MM select ARCH_MISC_INIT select SPL_CRYPTO if SPL +config TARGET_KONTRON_MX8MP + bool "Kontron OSM-S/BL i.MX8MP" + select BINMAN + select IMX8MP + select SUPPORT_SPL + select IMX8M_LPDDR4 + select FSL_CAAM + select ARCH_MISC_INIT + select SPL_CRYPTO if SPL + help + Kontron Electronics BL i.MX8MP using SoM module conformant to OSM + standard 1.1 size S. + config TARGET_IMX8MN_BSH_SMM_S2 bool "imx8mn-bsh-smm-s2" select IMX8MN
@@ -434,6 +447,7 @@ source "board/freescale/imx8mn_evk/Kconfig" source "board/freescale/imx8mp_evk/Kconfig" source "board/gateworks/venice/Kconfig" source "board/google/imx8mq_phanbell/Kconfig" +source "board/kontron/osm-s-mx8mp/Kconfig" source "board/kontron/pitx_imx8m/Kconfig" source "board/kontron/sl-mx8mm/Kconfig" source "board/menlo/mx8menlo/Kconfig"
board/kontron/osm-s-mx8mp/Kconfig new file +17 -0
@@ -0,0 +1,17 @@ +if TARGET_KONTRON_MX8MP + +config SYS_BOARD + string + default "osm-s-mx8mp" + +config SYS_VENDOR + string + default "kontron" + +config SYS_CONFIG_NAME + string + default "kontron-osm-s-mx8mp" + +source "board/kontron/common/Kconfig" + +endif
board/kontron/osm-s-mx8mp/MAINTAINERS new file +7 -0
@@ -0,0 +1,7 @@ +Kontron OSM-S/BL i.MX8M Plus Boards +M: Frieder Schrempf <[email protected]> +S: Maintained +F: board/kontron/osm-s-mx8mp +F: configs/kontron-osm-s-mx8mp_defconfig +F: doc/board/kontron/osm-s-mx8mp.rst +F: include/configs/kontron-osm-s-mx8mp.h
board/kontron/osm-s-mx8mp/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0+ +# (C) Copyright 2023 Kontron Electronics GmbH + +obj-y := osm-s-mx8mp.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing.o +endif
board/kontron/osm-s-mx8mp/imximage.cfg new file +8 -0
@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2023 Kontron Electronics GmbH + */ + +ROM_VERSION v2 +BOOT_FROM sd +LOADER u-boot-spl-ddr.bin 0x920000
board/kontron/osm-s-mx8mp/lpddr4_timing.c new file +2474 -0
2,474 lines not on this page · raw message
board/kontron/osm-s-mx8mp/osm-s-mx8mp.c new file +175 -0
175 lines not on this page · raw message
board/kontron/osm-s-mx8mp/osm-s-mx8mp.env new file +6 -0
@@ -0,0 +1,6 @@ +kernel_addr_r=0x42000000 +fdt_addr_r=0x48000000 +fdtoverlay_addr_r=0x49000000 +ramdisk_addr_r=0x48080000 +scriptaddr=0x40000000 +pxefile_addr_r=0x40100000
board/kontron/osm-s-mx8mp/spl.c new file +358 -0
163 lines not on this page · raw message
configs/kontron-osm-s-mx8mp.config new file +203 -0
203 lines not on this page · raw message
configs/kontron-osm-s-mx8mp_defconfig new file +3 -0
Lines of this file are not shown. View the raw message.
doc/board/kontron/osm-s-mx8mp.rst new file +104 -0
104 lines not on this page · raw message
include/configs/kontron-osm-s-mx8mp.h new file +30 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.51.0
Part of the diff is not shown here. View the raw message.
PATCH 2/4 arm64: dts: imx8mp-kontron: Fix USB OTG role switching
In reply to Frieder SchrempfFrom: Frieder Schrempf <[email protected]>
The VBUS supply regulator is currently assigned to the PHY node. This causes the VBUS to be always on, even when the controller needs to be switched to peripheral mode.
Fix the OTG role switching by adding a connector node and moving the VBUS supply regulator to that node. This way the VBUS gets correctly switched according to the current role.
--- .../freescale/imx8mp-kontron-bl-osm-s.dts | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-)
dts/upstream/src/arm64/freescale/imx8mp-kontron-bl-osm-s.dts +19 -5
@@ -16,11 +16,20 @@ ethernet1 = &eqos; }; - extcon_usbc: usbc { - compatible = "linux,extcon-usb-gpio"; + connector { + compatible = "gpio-usb-b-connector", "usb-b-connector"; + id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; + label = "Type-C"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb1_id>; - id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; + type = "micro"; + vbus-supply = <®_usb1_vbus>; + + port { + usb_dr_connector: endpoint { + remote-endpoint = <&usb3_dwc>; + }; + }; }; leds {
@@ -230,9 +239,15 @@ hnp-disable; srp-disable; dr_mode = "otg"; - extcon = <&extcon_usbc>; usb-role-switch; + role-switch-default-mode = "peripheral"; status = "okay"; + + port { + usb3_dwc: endpoint { + remote-endpoint = <&usb_dr_connector>; + }; + }; }; &usb_dwc3_1 {
@@ -261,7 +276,6 @@ }; &usb3_phy0 { - vbus-supply = <®_usb1_vbus>; status = "okay"; };
Signature · 1 line
2.51.0
Fabio Estevam
reviewerRe: [PATCH 2/4] arm64: dts: imx8mp-kontron: Fix USB OTG role switching
Hi Frieder,
Quoted 7 lines · Frieder Schrempf
From: Frieder Schrempf <[email protected]>
The VBUS supply regulator is currently assigned to the PHY node. This causes the VBUS to be always on, even when the controller needs to be switched to peripheral mode.
Quoted 6 lines
Fix the OTG role switching by adding a connector node and moving the VBUS supply regulator to that node. This way the VBUS gets correctly switched according to the current role.
Signed-off-by Frieder Schrempf <[email protected]>Signed-off-by Shawn Guo <[email protected]>
Is this an upstream kernel commit? If so, please mention the commit ID.
Tom,
Should we patch dts/upstream/src or modify the -u-boot.dtsi until the fix lands upstream?
Re: [PATCH 2/4] arm64: dts: imx8mp-kontron: Fix USB OTG role switching
Am 11.11.25 um 13:20 schrieb Fabio Estevam:
Quoted 10 lines
Hi Frieder,
Quoted 7 lines · Frieder Schrempf
From: Frieder Schrempf <[email protected]>
The VBUS supply regulator is currently assigned to the PHY node. This causes the VBUS to be always on, even when the controller needs to be switched to peripheral mode.
Quoted 8 lines
Quoted 6 lines
Fix the OTG role switching by adding a connector node and moving the VBUS supply regulator to that node. This way the VBUS gets correctly switched according to the current role.
Signed-off-by Frieder Schrempf <[email protected]>Signed-off-by Shawn Guo <[email protected]>Is this an upstream kernel commit? If so, please mention the commit ID.
This is picked from current linux-next. I just removed the Fixes tag, because my checkpatch and get_maintainers were complaining as they couldn't find the commit hash in the U-Boot tree.
Quoted 5 lines
Tom,
Should we patch dts/upstream/src or modify the
-u-boot.dtsiuntil the fix lands upstream
Both would be fine for me. If applying to dts/upstream/src is not desired, even dropping this for now and waiting for the next sync would be okay, I think.
Fabio Estevam
reviewerRe: [PATCH 2/4] arm64: dts: imx8mp-kontron: Fix USB OTG role switching
Quoted 3 lines · Frieder Schrempf
Both would be fine for me. If applying to dts/upstream/src is not desired, even dropping this for now and waiting for the next sync would be okay, I think.
Please send a v2 that puts this change into -u-boot.dtsi and mention the linux-nex commit ID.
Thanks
Re: [PATCH 2/4] arm64: dts: imx8mp-kontron: Fix USB OTG role switching
Quoted 9 lines · Fabio Estevam
Quoted 3 lines · Frieder Schrempf
Both would be fine for me. If applying to dts/upstream/src is not desired, even dropping this for now and waiting for the next sync would be okay, I think.
Please send a v2 that puts this change into
-u-boot.dtsiand mention the linux-nex commit ID.
Yes, if we can't cherry-pick it from devicetree-rebasing it goes to -u-bot.dtsi.
https://docs.u-boot.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing
Signature · 1 line
Tom
PATCH 3/4 arm: imx: imx9: Use arch override for env_get_location()
In reply to Frieder SchrempfFrom: Frieder Schrempf <[email protected]>
The arch-level implementation should be used here so that env_get_location() can be used on board-level.
--- arch/arm/mach-imx/imx9/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx9/soc.c +1 -1
@@ -783,7 +783,7 @@ int timer_init(void)return 0 ; } -enum env_location env_get_location (enum env_operation op,int prio) +enum env_location arch_env_get_location (enum env_operation op,int prio) {enum boot_device dev =get_boot_device ();
Signature · 1 line
2.51.0
PATCH 4/4 imx: Add support for Kontron i.MX93 OSM-S SoM and BL carrier board
In reply to Frieder SchrempfFrom: Frieder Schrempf <[email protected]>
This adds support for the Kontron Electronics OSM-S i.MX93 SoM and the matching baseboard BL i.MX93.
The SoM hardware complies to the Open Standard Module (OSM) 1.1 specification, size S (https://sget.org/standards/osm).
--- .../dts/imx93-kontron-bl-osm-s-u-boot.dtsi | 153 ++ arch/arm/mach-imx/imx9/Kconfig | 11 +- board/kontron/osm-s-mx93/Kconfig | 17 + board/kontron/osm-s-mx93/MAINTAINERS | 7 + board/kontron/osm-s-mx93/Makefile | 9 + board/kontron/osm-s-mx93/lpddr4x_timing.c | 1992 +++++++++++++++++ board/kontron/osm-s-mx93/osm-s-mx93.c | 168 ++ board/kontron/osm-s-mx93/osm-s-mx93.env | 6 + board/kontron/osm-s-mx93/spl.c | 169 ++ configs/kontron-osm-s-mx93.config | 197 ++ configs/kontron-osm-s-mx93_defconfig | 3 + doc/board/kontron/index.rst | 1 + doc/board/kontron/osm-s-mx93.rst | 95 + include/configs/kontron-osm-s-mx93.h | 30 + 14 files changed, 2857 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx93-kontron-bl-osm-s-u-boot.dtsi create mode 100644 board/kontron/osm-s-mx93/Kconfig create mode 100644 board/kontron/osm-s-mx93/MAINTAINERS create mode 100644 board/kontron/osm-s-mx93/Makefile create mode 100644 board/kontron/osm-s-mx93/lpddr4x_timing.c create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.c create mode 100644 board/kontron/osm-s-mx93/osm-s-mx93.env create mode 100644 board/kontron/osm-s-mx93/spl.c create mode 100644 configs/kontron-osm-s-mx93.config create mode 100644 configs/kontron-osm-s-mx93_defconfig create mode 100644 doc/board/kontron/osm-s-mx93.rst create mode 100644 include/configs/kontron-osm-s-mx93.h
arch/arm/dts/imx93-kontron-bl-osm-s-u-boot.dtsi new file +153 -0
@@ -0,0 +1,153 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Copyright (C) 2024 Kontron Electronics GmbH + */ + +#include "imx93-u-boot.dtsi" + +/ { + wdt-reboot { + compatible = "wdt-reboot"; + wdt = <&wdog3>; + bootph-all; + }; + + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; +}; + +&A55_0 { + clocks = <&clk IMX93_CLK_ARM_PLL>; +}; + +&A55_1 { + clocks = <&clk IMX93_CLK_ARM_PLL>; +}; + +&{/soc@0} { + bootph-all; +}; + +®_vdd_carrier { + bootph-all; +}; + +&pinctrl_reg_vdd_carrier { + bootph-all; +}; + +&aips1 { + bootph-all; +}; + +&aips2 { + bootph-all; +}; + +&aips3 { + bootph-all; +}; + +&iomuxc { + bootph-all; +}; + +&pinctrl_usdhc2_gpio { + bootph-all; +}; + +&pinctrl_usdhc2 { + bootph-all; +}; + +&gpio1 { + bootph-all; +}; + +&gpio2 { + bootph-all; +}; + +&gpio3 { + bootph-all; +}; + +&gpio4 { + bootph-all; +}; + +&lpuart1 { + bootph-all; +}; + +&pinctrl_lpuart1 { + bootph-all; +}; + +&usdhc1 { + bootph-all; +}; + +&usdhc2 { + bootph-all; + fsl,signal-voltage-switch-extra-delay-ms = <8>; +}; + +&lpi2c1 { + bootph-all; +}; + +/* Enable I2C2 to probe for a touch controller on LVDS connector */ +&lpi2c2 { + bootph-all; + status = "okay"; +}; + +&pca9451 { + bootph-all; +}; + +&{/soc@0/bus@44000000/i2c@44340000/pmic@25/regulators} { + bootph-all; +}; + +&pinctrl_lpi2c1 { + bootph-all; +}; + +&s4muap { + bootph-all; + status = "okay"; +}; + +&clk { + bootph-all; +}; + +&osc_32k { + bootph-all; +}; + +&osc_24m { + bootph-all; +}; + +&clk_ext1 { + bootph-all; +}; + +&wdog3 { + bootph-all; +}; + +®_vdd_3v3 { + bootph-all; +}; + +®_nvcc_sd { + bootph-all; +};
arch/arm/mach-imx/imx9/Kconfig +10 -1
@@ -103,6 +103,15 @@ config TARGET_IMX93_VAR_SOM select IMX93 select IMX9_LPDDR4X +config TARGET_KONTRON_MX93 + bool "Kontron OSM-S/BL i.MX93" + select BINMAN + select IMX93 + select IMX9_LPDDR4X + help + Kontron Electronics BL i.MX93 using SoM module conformant to OSM + standard 1.1 size S. + config TARGET_PHYCORE_IMX93 bool "phycore_imx93" select IMX93
@@ -142,6 +151,7 @@ source "board/freescale/imx91_evk/Kconfig" source "board/freescale/imx93_evk/Kconfig" source "board/freescale/imx93_frdm/Kconfig" source "board/freescale/imx93_qsb/Kconfig" +source "board/kontron/osm-s-mx93/Kconfig" source "board/phytec/phycore_imx93/Kconfig" source "board/variscite/imx93_var_som/Kconfig" source "board/freescale/imx94_evk/Kconfig"
@@ -149,4 +159,3 @@ source "board/freescale/imx95_evk/Kconfig" source "board/toradex/smarc-imx95/Kconfig" endif -
board/kontron/osm-s-mx93/Kconfig new file +17 -0
@@ -0,0 +1,17 @@ +if TARGET_KONTRON_MX93 + +config SYS_BOARD + string + default "osm-s-mx93" + +config SYS_VENDOR + string + default "kontron" + +config SYS_CONFIG_NAME + string + default "kontron-osm-s-mx93" + +source "board/kontron/common/Kconfig" + +endif
board/kontron/osm-s-mx93/MAINTAINERS new file +7 -0
@@ -0,0 +1,7 @@ +Kontron OSM-S/BL i.MX93 Boards +M: Frieder Schrempf <[email protected]> +S: Maintained +F: board/kontron/osm-s-mx93 +F: configs/kontron-osm-s-mx93_defconfig +F: doc/board/kontron/osm-s-mx93.rst +F: include/configs/kontron-osm-s-mx93.h
board/kontron/osm-s-mx93/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0+ +# (C) Copyright 2023 Kontron Electronics GmbH + +obj-y := osm-s-mx93.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +obj-y += lpddr4x_timing.o +endif
board/kontron/osm-s-mx93/lpddr4x_timing.c new file +1992 -0
1,992 lines not on this page · raw message
board/kontron/osm-s-mx93/osm-s-mx93.c new file +168 -0
168 lines not on this page · raw message
board/kontron/osm-s-mx93/osm-s-mx93.env new file +6 -0
@@ -0,0 +1,6 @@ +kernel_addr_r=0x82000000 +fdt_addr_r=0x88000000 +fdtoverlay_addr_r=0x89000000 +ramdisk_addr_r=0x88080000 +scriptaddr=0x80000000 +pxefile_addr_r=0x80100000
board/kontron/osm-s-mx93/spl.c new file +169 -0
169 lines not on this page · raw message
configs/kontron-osm-s-mx93.config new file +197 -0
197 lines not on this page · raw message
configs/kontron-osm-s-mx93_defconfig new file +3 -0
@@ -0,0 +1,3 @@ +#include <configs/kontron-osm-s-mx93.config> + +CONFIG_SPL_BOOTROM_SUPPORT=y
doc/board/kontron/index.rst +1 -0
@@ -7,6 +7,7 @@ Kontron :maxdepth: 2 osm-s-mx8mp + osm-s-mx93 pitx-imx8m sl28 sl-mx6ul
doc/board/kontron/osm-s-mx93.rst new file +95 -0
95 lines not on this page · raw message
include/configs/kontron-osm-s-mx93.h new file +30 -0
@@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright (C) 2024 Kontron Electronics GmbH +* +* Configuration settings for the Kontron OSM-S/BL i.MX93 boards and modules. +*/ +#ifndef __KONTRON_MX93_CONFIG_H +#define __KONTRON_MX93_CONFIG_H + +#include <asm/arch/imx-regs.h> +#include <linux/sizes.h> + +/* RAM */ +#define PHYS_SDRAM 0x80000000 +#define PHYS_SDRAM_SIZE (SZ_2G) +#define CFG_SYS_SDRAM_BASE PHYS_SDRAM + +#define CFG_SYS_INIT_RAM_ADDR 0x80000000 +#define CFG_SYS_INIT_RAM_SIZE SZ_2M + +/* Board and environment settings */ + +#ifdef CONFIG_USB_EHCI_HCD +#define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) +#define CFG_MXC_USB_FLAGS 0 +#endif + +#define WDOG_BASE_ADDR WDG3_BASE_ADDR + +#endif /* __KONTRON_MX93_CONFIG_H */
Signature · 1 line
2.51.0