From: Frank Li <[email protected]>

Move the IMX8DXL_SPI3_CS0_ADMA_ACM_MCLK_OUT1 pin from the iomuxc hog
group to the ACM pinctrl state.

The pin is used as the ACM MCLK output and should be configured by its
actual consumer rather than unconditionally claimed by a pinctrl hog.
Prepare for LCDIF support, which uses the same pin.

Signed-off-by: Frank Li <[email protected]>
---
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts 
b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
index 33941645641f5..3b96bab6aec80 100644
--- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
@@ -347,6 +347,11 @@ sound-wm8960-3 {
        };
 };
 
+&acm {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mclk>;
+};
+
 &adc0 {
        vref-supply = <&reg_vref_1v8>;
        status = "okay";
@@ -942,7 +947,6 @@ pinctrl_hog: hoggrp {
                fsl,pins = <
                        IMX8DXL_COMP_CTL_GPIO_1V8_3V3_GPIORHB_PAD       
0x000514a0
                        IMX8DXL_COMP_CTL_GPIO_1V8_3V3_GPIORHK_PAD       
0x000014a0
-                       IMX8DXL_SPI3_CS0_ADMA_ACM_MCLK_OUT1             
0x0600004c
                        IMX8DXL_SNVS_TAMPER_OUT1_LSIO_GPIO2_IO05_IN     
0x0600004c
                >;
        };
@@ -1062,6 +1066,12 @@ IMX8DXL_SPI1_SDI_ADMA_I2C3_SCL           0x06000021
                >;
        };
 
+       pinctrl_mclk: mclkgrp {
+               fsl,pins = <
+                        IMX8DXL_SPI3_CS0_ADMA_ACM_MCLK_OUT1    0x0600004c
+               >;
+       };
+
        pinctrl_lpuart0: lpuart0grp {
                fsl,pins = <
                        IMX8DXL_UART0_RX_ADMA_UART0_RX          0x06000020

-- 
2.43.0

Reply via email to