···11-* RS485 serial communications22-33-The RTS signal is capable of automatically controlling line direction for44-the built-in half-duplex mode.55-The properties described hereafter shall be given to a half-duplex capable66-UART node.77-88-Optional properties:99-- rs485-rts-delay: prop-encoded-array <a b> where:1010- * a is the delay between rts signal and beginning of data sent in milliseconds.1111- it corresponds to the delay before sending data.1212- * b is the delay between end of data sent and rts signal in milliseconds1313- it corresponds to the delay after sending data and actual release of the line.1414- If this property is not specified, <0 0> is assumed.1515-- rs485-rts-active-low: drive RTS low when sending (default is high).1616-- linux,rs485-enabled-at-boot-time: empty property telling to enable the rs4851717- feature at boot time. It can be disabled later with proper ioctl.1818-- rs485-rx-during-tx: empty property that enables the receiving of data even1919- while sending data.2020-2121-RS485 example for Atmel USART:2222- usart0: serial@fff8c000 {2323- compatible = "atmel,at91sam9260-usart";2424- reg = <0xfff8c000 0x4000>;2525- interrupts = <7>;2626- atmel,use-dma-rx;2727- atmel,use-dma-tx;2828- linux,rs485-enabled-at-boot-time;2929- rs485-rts-delay = <0 200>; // in milliseconds3030- };3131-11+See rs485.yaml
···11+# SPDX-License-Identifier: GPL-2.022+%YAML 1.233+---44+$id: http://devicetree.org/schemas/serial/rs485.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: RS485 serial communications Bindings88+99+description: The RTS signal is capable of automatically controlling1010+ line direction for the built-in half-duplex mode.1111+ The properties described hereafter shall be given to a1212+ half-duplex capable UART node.1313+1414+maintainers:1515+ - Rob Herring <robh@kernel.org>1616+1717+properties:1818+ rs485-rts-delay:1919+ description: prop-encoded-array <a b>2020+ allOf:2121+ - $ref: /schemas/types.yaml#/definitions/uint32-array2222+ - items:2323+ items:2424+ - description:2525+ Delay between rts signal and beginning of data sent in milliseconds.2626+ It corresponds to the delay before sending data.2727+ default: 02828+ maximum: 10002929+ - description:3030+ Delay between end of data sent and rts signal in milliseconds.3131+ It corresponds to the delay after sending data and actual release of the line.3232+ default: 03333+ maximum: 10003434+3535+ rs485-rts-active-low:3636+ description: drive RTS low when sending (default is high).3737+ $ref: /schemas/types.yaml#/definitions/flag3838+3939+ linux,rs485-enabled-at-boot-time:4040+ description: enables the rs485 feature at boot time. It can be disabled later with proper ioctl.4141+ $ref: /schemas/types.yaml#/definitions/flag4242+4343+ rs485-rx-during-tx:4444+ description: enables the receiving of data even while sending data.4545+ $ref: /schemas/types.yaml#/definitions/flag