imx8: disable uart with external pin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8: disable uart with external pin

401 Views
dolrairom
Contributor II

Hello, I am working on an image for a custom board with processor iMX 8QXP and I would like to have an enable pin for the uart in kernel, as the pcie has:

&pcieb{
    compatible = "fsl,imx8qxp-pcie","snps,dw-pcie";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_pcieb>;
    disable-gpio = <&lsio_gpio3 7 GPIO_ACTIVE_LOW>;
    reset-gpio = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
    ext_osc = <1>;
    status = "okay";
};
 
Currently, I have my uart defined as:
&lpuart3 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_lpuart3>;
    status = "okay";
};
    pinctrl_lpuart3: lpuart3grp {
        fsl,pins = <
            IMX8QXP_USDHC1_CLK_ADMA_UART3_RX        0x06000020
            IMX8QXP_USDHC1_DATA1_ADMA_UART3_TX      0x06000020
        >;
    };
 
 
Is it possible to define an external gpio to enable/disable the uart depending on the gpio state?
 
Thanks in advance!

 

Tags (2)
0 Kudos
1 Reply

386 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

No, this does not seem possible, please note that disable-gpio is an optional property for the PCIe binding.
I cannot find such property in the LPUART bindings.

Best regards,
Aldo.

0 Kudos