Skip to contentSkip to conversation

arm64: dts: freescale: imx8mp-toradex-smarc: remove gpio-hog on lvds_dsi_sel

PATCH Applied [email protected] 2 participants 4 messages Jul 8, 2025 – Jul 11, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: freescale: imx8mp-toradex-smarc: remove gpio-hog on lvds_dsi_sel

From: Max Krummenacher <[email protected]>

The LVDS_DSI_SEL does not leave the SoM, so do its pinmuxing on the SoM dtsi and don't leave that to a carrier board dts file.

Using a pull down on the LVDS_DSI_SEL signal is enough to have the signal not floating and have the SoM in a defined state.
Thus remove the gpio-hog used on the line and leave this to carrier board dts files or overlays to use the signal as needed.

Max Krummenacher (2):
arm64: dts: freescale: imx8mp-toradex-smarc: fix lvds dsi mux gpio
arm64: dts: freescale: imx8mp-toradex-smarc: remove gpio hog

 .../boot/dts/freescale/imx8mp-toradex-smarc-dev.dts    |  5 -----
 .../arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi | 10 ++--------
 2 files changed, 2 insertions(+), 13 deletions(-)
Signature · 1 line
2.42.0
#1 lore raw

PATCH 1/2 arm64: dts: freescale: imx8mp-toradex-smarc: fix lvds dsi mux gpio

From: Max Krummenacher <[email protected]>

The MUX which either outputs DSI or 2nd channel LVDS signals is part of the SoM. Move the pinmuxing of the GPIO used for controlling the MUX to the SoM dtsi file.

Fixes 97dc91c04558 ("arm64: dts: freescale: add Toradex SMARC iMX8MP")

---

 arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts | 5 -----
 arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi    | 2 ++
 2 files changed, 2 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts +0 -5
index 55b8c5c14fb4..d5fa9a8d414e 100644
@@ -102,11 +102,6 @@ &gpio1 {
 		    <&pinctrl_gpio13>;
 };
 
-&gpio3 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_lvds_dsi_sel>;
-};
-
 &gpio4 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_gpio4>, <&pinctrl_gpio6>;
arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi +2 -0
index 22f6daabdb90..11fd5360ab90 100644
@@ -320,6 +320,8 @@ &gpio2 {
 };
 
 &gpio3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_lvds_dsi_sel>;
 	gpio-line-names = "ETH_0_INT#", /* 0 */
 			  "SLEEP#",
 			  "",
Signature · 1 line
2.42.0
#2 lore raw

PATCH 2/2 arm64: dts: freescale: imx8mp-toradex-smarc: remove gpio hog

In reply to [email protected]

From: Max Krummenacher <[email protected]>

Remove the gpio hog node which forces using DSI signals rather than the second LVDS channels signals.
The dsi signals are not used in any of the current device trees. Leave that decision to the actual device tree which will also define the consumer of the signals.

---

 arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi | 8 --------
 1 file changed, 8 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi +0 -8
index 11fd5360ab90..bebe19eb360f 100644
@@ -351,14 +351,6 @@ &gpio3 {
 			  "",
 			  "",
 			  "SMARC_I2C_PM_CK";
-
-	lvds_dsi_mux_hog: lvds-dsi-mux-hog {
-		gpio-hog;
-		gpios = <7 GPIO_ACTIVE_HIGH>;
-		line-name = "LVDS_DSI_SEL";
-		/* LVDS_DSI_SEL as DSI */
-		output-low;
-	};
 };
 
 &gpio4 {
Signature · 1 line
2.42.0
Applied
#3 lore raw
In reply to [email protected]
Quoted 11 lines · On Tue, Jul 08, 2025 at 03:51:40PM +0200, [email protected] wrote:

From: Max Krummenacher <[email protected]>

The LVDS_DSI_SEL does not leave the SoM, so do its pinmuxing on the SoM dtsi and don't leave that to a carrier board dts file.

Using a pull down on the LVDS_DSI_SEL signal is enough to have the signal not floating and have the SoM in a defined state.
Thus remove the gpio-hog used on the line and leave this to carrier board dts files or overlays to use the signal as needed.

Quoted 3 lines

Max Krummenacher (2):
arm64: dts: freescale: imx8mp-toradex-smarc: fix lvds dsi mux gpio
arm64: dts: freescale: imx8mp-toradex-smarc: remove gpio hog

Applied both, thanks!