diff options
author | Frieder Schrempf <frieder.schrempf@kontron.de> | 2022-08-24 15:59:20 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-10-20 17:35:51 +0200 |
commit | 5bc21d386993023690b8d65a05829fba55053f95 (patch) | |
tree | 338056344973eaa0fa3dbd658838113ad2e66c44 /arch | |
parent | ba30cc222748ac6686531acac490f06a2bdf9e5b (diff) | |
download | u-boot-5bc21d386993023690b8d65a05829fba55053f95.tar.gz u-boot-5bc21d386993023690b8d65a05829fba55053f95.tar.bz2 u-boot-5bc21d386993023690b8d65a05829fba55053f95.zip |
imx: kontron-sl-mx8mm: Prepare for I2C display detection in environment script
Enable the I2C bus and set a env variable for the reset GPIO of the touch
controller. This allows us to probe the panel in a script.
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi | 13 | ||||
-rw-r--r-- | arch/arm/dts/imx8mm-kontron-bl-osm-s-u-boot.dtsi | 8 | ||||
-rw-r--r-- | arch/arm/dts/imx8mm-kontron-bl-u-boot.dtsi | 8 |
3 files changed, 27 insertions, 2 deletions
diff --git a/arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi b/arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi index e7e900d4fa..5b8b472159 100644 --- a/arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi @@ -48,8 +48,17 @@ &i2c2 { status = "okay"; - u-boot,dm-spl; - u-boot,dm-pre-reloc; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; +}; + +&iomuxc { + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3 + MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3 + >; + }; }; &pinctrl_ecspi1 { diff --git a/arch/arm/dts/imx8mm-kontron-bl-osm-s-u-boot.dtsi b/arch/arm/dts/imx8mm-kontron-bl-osm-s-u-boot.dtsi index cd990b1672..fac24a21fb 100644 --- a/arch/arm/dts/imx8mm-kontron-bl-osm-s-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-kontron-bl-osm-s-u-boot.dtsi @@ -4,3 +4,11 @@ */ #include "imx8mm-kontron-bl-common-u-boot.dtsi" + +&iomuxc { + pinctrl_touch: touchgrp { + fsl,pins = < + MX8MM_IOMUXC_SAI5_RXD2_GPIO3_IO23 0x19 /* Touch Reset */ + >; + }; +}; diff --git a/arch/arm/dts/imx8mm-kontron-bl-u-boot.dtsi b/arch/arm/dts/imx8mm-kontron-bl-u-boot.dtsi index cd990b1672..e9fa8d7b2a 100644 --- a/arch/arm/dts/imx8mm-kontron-bl-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-kontron-bl-u-boot.dtsi @@ -4,3 +4,11 @@ */ #include "imx8mm-kontron-bl-common-u-boot.dtsi" + +&iomuxc { + pinctrl_touch: touchgrp { + fsl,pins = < + MX8MM_IOMUXC_SAI1_TXD3_GPIO4_IO15 0x19 /* Touch Reset */ + >; + }; +}; |