From: Frank.Li@oss.nxp.com
To: Marek Vasut <marex@denx.de>, Stefan Agner <stefan@agner.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>,
Simona Vetter <simona@ffwll.ch>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <jesszhan0024@gmail.com>,
Thierry Reding <thierry.reding@gmail.com>,
Sam Ravnborg <sam@ravnborg.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
Robert Chiras <robert.chiras@nxp.com>,
Liu Ying <victor.liu@nxp.com>, Frank Li <Frank.Li@nxp.com>
Subject: [PATCH v4 5/7] arm64: dts: imx8dxl-evk: Add onboard GPIO mux controller
Date: Fri, 23 Oct 2026 15:45:13 -0400 [thread overview]
Message-ID: <20261023-dxl_lcdif-v4-5-4ae8395a4b23@nxp.com> (raw)
In-Reply-To: <20261023-dxl_lcdif-v4-0-4ae8395a4b23@nxp.com>
From: Frank Li <Frank.Li@nxp.com>
Add a GPIO mux controller to describe the onboard signal multiplexer.
Previously, the device tree relied on the hardware reset defaults to
select the mux state. Now that the kernel supports the pinctrl-multiplexer
framework, describe the onboard mux explicitly and let the kernel configure
the required routing.
Prepare for additional device tree overlays that require different mux
configurations.
Remove the regulator-m2uart1sel node, which incorrectly modeled the board
mux as a regulator.
There are no backward compatibility concerns, as the affected functions
(lpuart1 for Bluetooth, spi3, and m4_lpuart) are not used by existing other
users such as U-Boot.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
change in v4
- add idle-state = <1> (sashiko AI)
- ref to spi0_fun for sai0
---
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 80 +++++++++++++++++++++++----
1 file changed, 68 insertions(+), 12 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
index 71eff3efa6d32..f21ac208bf00e 100644
--- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
@@ -97,14 +97,70 @@ vdev0buffer: vdev0buffer@90400000 {
};
};
- m2_uart1_sel: regulator-m2uart1sel {
- compatible = "regulator-fixed";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "m2_uart1_sel";
- gpio = <&pca6416_1 6 GPIO_ACTIVE_HIGH>;
- enable-active-high;
- regulator-always-on;
+ m4_debug_mux: mux-controller-0 {
+ compatible = "gpio-mux";
+ #mux-control-cells = <0>;
+ #mux-state-cells = <1>;
+ idle-state = <1>;
+ mux-gpios = <&pca6416_1 3 GPIO_ACTIVE_HIGH>;
+ };
+
+ spi3_mux: mux-controller-1 {
+ compatible = "gpio-mux";
+ #mux-control-cells = <0>;
+ #mux-state-cells = <1>;
+ idle-state = <1>;
+ mux-gpios = <&pca6416_1 4 GPIO_ACTIVE_HIGH>;
+ };
+
+ uart1_mux: mux-controller-2 {
+ compatible = "gpio-mux";
+ #mux-control-cells = <0>;
+ #mux-state-cells = <1>;
+ mux-gpios = <&pca6416_1 6 GPIO_ACTIVE_HIGH>;
+ };
+
+ spi0_mux: mux-controller-3 {
+ compatible = "gpio-mux";
+ #mux-control-cells = <0>;
+ #mux-state-cells = <1>;
+ mux-gpios = <&pca6416_1 7 GPIO_ACTIVE_HIGH>;
+ };
+
+ pinctrl-gpiomux {
+ compatible = "pinctrl-multiplexer";
+
+ m4_debug_fun: cm4-uart-grp {
+ mux-states = <&m4_debug_mux 1>;
+ };
+
+ spi0_fun: spi0-grp {
+ mux-states = <&spi0_mux 1>;
+ };
+
+ spi3_fun: spi3-grp {
+ mux-states = <&spi3_mux 1>;
+ };
+
+ uart1_fun: uart1-grp {
+ mux-states = <&uart1_mux 1>;
+ };
+
+ lcd_0_fun: lcd0-grp {
+ mux-states = <&spi0_mux 0>;
+ };
+
+ lcd_1_fun: lcd1-grp {
+ mux-states = <&spi3_mux 0>;
+ };
+
+ lcd_2_fun: lcd2-grp {
+ mux-states = <&uart1_mux 0>;
+ };
+
+ lcd_3_fun: lcd3-grp {
+ mux-states = <&m4_debug_mux 0>;
+ };
};
mux3_en: regulator-0 {
@@ -620,7 +676,7 @@ &lpuart0 {
&lpuart1 {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_lpuart1>;
+ pinctrl-0 = <&pinctrl_lpuart1>, <&uart1_fun>;
status = "okay";
bluetooth {
@@ -658,7 +714,7 @@ &cm40_intmux {
&cm40_lpuart {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_cm40_lpuart>;
+ pinctrl-0 = <&pinctrl_cm40_lpuart>, <&m4_debug_fun>;
status = "disabled";
};
@@ -699,7 +755,7 @@ &pcieb_port0 {
&sai0 {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_sai0>;
+ pinctrl-0 = <&pinctrl_sai0>, <&spi0_fun>;
#sound-dai-cells = <0>;
assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
<&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
@@ -879,7 +935,7 @@ &usdhc2 {
&lpspi3 {
fsl,spi-only-use-cs1-sel;
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_lpspi3>;
+ pinctrl-0 = <&pinctrl_lpspi3>, <&spi3_fun>;
status = "okay";
};
--
2.43.0
next prev parent reply other threads:[~2026-10-23 19:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 19:45 [PATCH v4 0/7] display: lcdif: imx: add display support for imx8dxl and imx8qxp Frank.Li
2026-10-23 19:45 ` [PATCH v4 1/7] dt-bindings: lcdif: add compatible string for i.MX8QXP and i.MX8DXL Frank.Li
2026-10-23 19:45 ` [PATCH v4 2/7] dt-bindings: display: simple: Add waiken,101wx001-wct Frank.Li
2026-10-23 19:45 ` [PATCH v4 3/7] drm/panel: simple: Add Waiken WKS101WX001-WCT panel support Frank.Li
2026-10-26 3:15 ` Liu Ying
2026-10-23 19:45 ` [PATCH v4 4/7] arm64: dts: imx8-ss-dma: Add lcdif support for i.MX8QXP and i.MX8DXL Frank.Li
2026-10-23 19:45 ` Frank.Li [this message]
2026-10-23 19:45 ` [PATCH v4 6/7] arm64: dts: imx8dxl-evk: Move ACM MCLK pin to ACM pinctrl Frank.Li
2026-10-23 19:45 ` [PATCH v4 7/7] arm64: dts: imx8dxl-evk: add lcdif overlay Frank.Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261023-dxl_lcdif-v4-5-4ae8395a4b23@nxp.com \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@nxp.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=jesszhan0024@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marex@denx.de \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robert.chiras@nxp.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sam@ravnborg.org \
--cc=simona@ffwll.ch \
--cc=stefan@agner.ch \
--cc=thierry.reding@gmail.com \
--cc=tzimmermann@suse.de \
--cc=victor.liu@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®