linux_dsm_epyc7002/Documentation/devicetree/bindings/serial
Lukas Wunner 6abe9ea8a5 dt-bindings: serial: Add common rs485 binding for RTS polarity
rs485 allows for robust half-duplex serial communication.  It is often
implemented by attaching an rs485 transceiver to a UART.  The UART's
RTS line is wired to the transceiver's Transmit Enable pin and
determines whether the transceiver is sending or receiving.

Examples for such transceivers are Maxim MAX13451E and TI SN65HVD1781A:
https://datasheets.maximintegrated.com/en/ds/MAX13450E-MAX13451E.pdf
http://www.ti.com/lit/ds/symlink/sn65hvd1781a-q1.pdf

In the devicetree, the transceiver itself is not represented, only the
UART is.  A few rs485-specific dt-bindings already exist and these go
into the UART's device node.

This commit adds a binding to set the RTS polarity.  Most (if not all)
transceivers require the Transmit Enable pin be driven high for sending,
but in some cases boards may negate the pin and RTS must then be driven
low.  Consequently the polarity defaults to active high but can be
inverted with the newly added "rs485-rts-active-low" binding.

Document this binding in rs485.txt and in the two drivers fsl-imx-uart
and fsl-lpuart that are about to be amended with support for it.

Curiously, the omap_serial driver defaults to active low and already
supports an "rs485-rts-active-high" binding to invert the polarity.
This is left unchanged to retain compatibility, but the binding is
herewith documented.

Cc: Mark Jackson <mpfj@newflow.co.uk>
Cc: Michał Oleszczyk <oleszczyk.m@gmail.com>
Cc: Rafael Gago Castano <rgc@hms.se>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-28 16:04:57 +01:00
..
8250.txt dt-bindings: serial: 8250: Add MediaTek BTIF controller bindings 2017-08-28 20:51:21 +02:00
actions,owl-uart.txt dt-bindings: serial: Document Actions Semi Owl UARTs 2017-06-20 10:24:15 +08:00
altera_jtaguart.txt
altera_uart.txt
amlogic,meson-uart.txt dt-bindings: serial: Add bindings for the Amlogic Meson UARTs 2017-06-20 10:46:27 +08:00
arc-uart.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
arm_sbsa_uart.txt
arm,mps2-uart.txt dt-bindings: document the MPS2 UART bindings 2016-04-30 09:26:55 -07:00
atmel-usart.txt dt-bindings: serial: document rs485 bindings for various devices 2017-10-04 10:18:20 +02:00
axis,etraxfs-uart.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
brcm,bcm2835-aux-uart.txt dt/bindings: serial: bcm2835: add binding documentation for bcm2835-aux-uart 2016-02-06 23:13:30 -08:00
brcm,bcm6345-uart.txt tty/bcm63xx_uart: allow naming clock in device tree 2017-11-07 18:33:18 +00:00
cavium-uart.txt
cdns,uart.txt devicetree: bindings: uart: Add new compatible string for ZynqMP 2016-10-27 16:00:32 +02:00
cirrus,clps711x-uart.txt serial: clps711x: Changing the compatibility string to match with the smallest supported chip 2016-07-06 17:38:16 +02:00
digicolor-usart.txt
efm32-uart.txt
fsl-imx-uart.txt dt-bindings: serial: Add common rs485 binding for RTS polarity 2017-11-28 16:04:57 +01:00
fsl-lpuart.txt dt-bindings: serial: Add common rs485 binding for RTS polarity 2017-11-28 16:04:57 +01:00
fsl-mxs-auart.txt serial: mxs-auart: Use generic uart-has-rtscts DT property 2016-04-30 09:26:55 -07:00
ingenic,uart.txt devicetree: Add JZ4760/JZ4775 to Ingenic SoC UART binding 2015-10-04 17:47:49 +01:00
lantiq_asc.txt
maxim,max310x.txt
microchip,pic32-uart.txt dt/bindings: Correct clk binding example for PIC32 serial. 2016-05-28 12:35:04 +02:00
mrvl-serial.txt
mrvl,pxa-ssp.txt DT: ARM: pxa: Remove incorrect binding from documentation 2015-10-13 13:31:21 -05:00
mtk-uart.txt dt-bindings: arm: Add bindings for Mediatek MT2712 SoC Platform 2017-08-17 15:33:44 +02:00
mvebu-uart.txt arm64: dts: marvell: Fix A37xx UART0 register size 2017-09-19 16:11:45 +02:00
nvidia,tegra20-hsuart.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
nxp-lpc32xx-hsuart.txt
nxp,lpc1850-uart.txt doc: dt: add documentation for nxp,lpc1850-uart 2015-06-01 06:56:33 +09:00
nxp,sc16is7xx.txt sc16is7xx: spi interface documentation 2015-06-01 06:45:28 +09:00
omap_serial.txt dt-bindings: serial: Add common rs485 binding for RTS polarity 2017-11-28 16:04:57 +01:00
pl011.txt serial: pl011: Spelling s/clocks-names/clock-names/ 2015-10-22 09:23:56 -05:00
qca,ar9330-uart.txt
qcom,msm-uart.txt
qcom,msm-uartdm.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
renesas,sci-serial.txt serial: sh-sci: document R8A77970 bindings 2017-09-18 18:19:20 +02:00
rs485.txt dt-bindings: serial: Add common rs485 binding for RTS polarity 2017-11-28 16:04:57 +01:00
samsung_uart.txt
serial.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
sirf-uart.txt serial: sirf: Use generic uart-has-rtscts DT property 2016-04-30 09:26:55 -07:00
slave-device.txt dt-bindings: slave-device: add current-speed property 2017-05-30 13:57:31 -04:00
snps-dw-apb-uart.txt serial: 8250_dw: proper support for UARTs without busy functionality 2015-10-04 18:38:45 +01:00
sprd-uart.txt dt-bindings: serial: add a new compatible string for SC9860 2017-04-08 18:42:46 +02:00
st-asc.txt
st,stm32-usart.txt Arm: dts: stm32: remove extra compatible string for uart 2017-10-04 10:15:47 +02:00
uniphier-uart.txt serial: 8250_uniphier: add bindings document for UniPhier UART 2015-06-12 17:34:39 -07:00
vt8500-uart.txt