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!