提交 182cdcb8 编写于 作者: G Geert Uytterhoeven 提交者: Greg Kroah-Hartman

serial: mxs-auart: Use generic uart-has-rtscts DT property

Convert the Freescale MXS AUART driver from using the vendor-specific
"fsl,uart-has-rtscts" to the generic "uart-has-rtscts" DT property, as
documented by the Generic Serial DT Bindings.

The old vendor-specific property is still recognized by the driver for
backwards compatibility, but it is deprecated.
Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: NRob Herring <robh@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1006ed7e
...@@ -19,7 +19,7 @@ Required properties for "alphascale,asm9260-auart": ...@@ -19,7 +19,7 @@ Required properties for "alphascale,asm9260-auart":
"ahb" - ahb gate. "ahb" - ahb gate.
Optional properties: Optional properties:
- fsl,uart-has-rtscts : Indicate the UART has RTS and CTS lines - uart-has-rtscts : Indicate the UART has RTS and CTS lines
for hardware flow control, for hardware flow control,
it also means you enable the DMA support for this UART. it also means you enable the DMA support for this UART.
- {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD - {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD
......
...@@ -1570,7 +1570,8 @@ static int serial_mxs_probe_dt(struct mxs_auart_port *s, ...@@ -1570,7 +1570,8 @@ static int serial_mxs_probe_dt(struct mxs_auart_port *s,
} }
s->port.line = ret; s->port.line = ret;
if (of_get_property(np, "fsl,uart-has-rtscts", NULL)) if (of_get_property(np, "uart-has-rtscts", NULL) ||
of_get_property(np, "fsl,uart-has-rtscts", NULL) /* deprecated */)
set_bit(MXS_AUART_RTSCTS, &s->flags); set_bit(MXS_AUART_RTSCTS, &s->flags);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册