iMX6Q processor
linux kernel 4.9.88
I will use CTS_B pin as RS485 direction control pin,Could you also help about the dts configuration part?
Sorry that it’s the first time I configure UART.
uart1: serial@02020000 {
compatible = "fsl,imx6q-uart", "fsl,imx21-uart";
reg = <0x02020000 0x4000>;
interrupts = <0 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6QDL_CLK_UART_IPG>,
<&clks IMX6QDL_CLK_UART_SERIAL>;
clock-names = "ipg", "per";
dmas = <&sdma 25 4 0>, <&sdma 26 4 0>;
dma-names = "rx", "tx";
status = "disabled";
};
Hi qjwang
one can look at driver sources in linux/drivers/tty/serial/imx.c
imx.c\serial\tty\drivers - linux-imx - i.MX Linux kernel
and check codes with "of_get_property" which read dts entries and its usage.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------