1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/serial/rs485.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: RS485 serial communications
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotdescription: The RTS signal is capable of automatically controlling line
10c66ec88fSEmmanuel Vadot  direction for the built-in half-duplex mode. The properties described
11c66ec88fSEmmanuel Vadot  hereafter shall be given to a half-duplex capable UART node.
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotmaintainers:
14c66ec88fSEmmanuel Vadot  - Rob Herring <robh@kernel.org>
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  rs485-rts-delay:
18c66ec88fSEmmanuel Vadot    description: prop-encoded-array <a b>
19c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
20c66ec88fSEmmanuel Vadot    items:
21c66ec88fSEmmanuel Vadot      items:
22c66ec88fSEmmanuel Vadot        - description: Delay between rts signal and beginning of data sent in
23c66ec88fSEmmanuel Vadot            milliseconds. It corresponds to the delay before sending data.
24c66ec88fSEmmanuel Vadot          default: 0
25b97ee269SEmmanuel Vadot          maximum: 100
26c66ec88fSEmmanuel Vadot        - description: Delay between end of data sent and rts signal in milliseconds.
27c66ec88fSEmmanuel Vadot            It corresponds to the delay after sending data and actual release
28c66ec88fSEmmanuel Vadot            of the line.
29c66ec88fSEmmanuel Vadot          default: 0
30b97ee269SEmmanuel Vadot          maximum: 100
31c66ec88fSEmmanuel Vadot
32*84943d6fSEmmanuel Vadot  rs485-rts-active-high:
33*84943d6fSEmmanuel Vadot    description: drive RTS high when sending (this is the default).
34*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
35*84943d6fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  rs485-rts-active-low:
37c66ec88fSEmmanuel Vadot    description: drive RTS low when sending (default is high).
38c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
39c66ec88fSEmmanuel Vadot
40d5b0e70fSEmmanuel Vadot  rs485-rx-active-high:
41d5b0e70fSEmmanuel Vadot    description: Polarity of receiver enable signal (when separate from RTS).
42d5b0e70fSEmmanuel Vadot      True indicates active high (default is low).
43d5b0e70fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
44d5b0e70fSEmmanuel Vadot
45c66ec88fSEmmanuel Vadot  linux,rs485-enabled-at-boot-time:
46c66ec88fSEmmanuel Vadot    description: enables the rs485 feature at boot time. It can be disabled
47c66ec88fSEmmanuel Vadot      later with proper ioctl.
48c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  rs485-rx-during-tx:
51c66ec88fSEmmanuel Vadot    description: enables the receiving of data even while sending data.
52c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
53c66ec88fSEmmanuel Vadot
54c66ec88fSEmmanuel Vadot  rs485-term-gpios:
55c66ec88fSEmmanuel Vadot    description: GPIO pin to enable RS485 bus termination.
56c66ec88fSEmmanuel Vadot    maxItems: 1
576be33864SEmmanuel Vadot
58cb7aa33aSEmmanuel Vadot  rs485-rx-during-tx-gpios:
59cb7aa33aSEmmanuel Vadot    description: Output GPIO pin that sets the state of rs485-rx-during-tx. This
60cb7aa33aSEmmanuel Vadot      signal can be used to control the RX part of an RS485 transceiver. Thereby
61cb7aa33aSEmmanuel Vadot      the active state enables RX during TX.
62cb7aa33aSEmmanuel Vadot    maxItems: 1
63cb7aa33aSEmmanuel Vadot
646be33864SEmmanuel VadotadditionalProperties: true
656be33864SEmmanuel Vadot
66c66ec88fSEmmanuel Vadot...
67