Merge branch 'for-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / serial / rs485.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/serial/rs485.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: RS485 serial communications Bindings
8
9 description: The RTS signal is capable of automatically controlling
10              line direction for the built-in half-duplex mode.
11              The properties described hereafter shall be given to a
12              half-duplex capable UART node.
13
14 maintainers:
15   -  Rob Herring <robh@kernel.org>
16
17 properties:
18   rs485-rts-delay:
19     description: prop-encoded-array <a b>
20     allOf:
21       - $ref: /schemas/types.yaml#/definitions/uint32-array
22       - items:
23           items:
24             - description:
25                 Delay between rts signal and beginning of data sent in milliseconds.
26                 It corresponds to the delay before sending data.
27               default: 0
28               maximum: 1000
29             - description:
30                 Delay between end of data sent and rts signal in milliseconds.
31                 It corresponds to the delay after sending data and actual release of the line.
32               default: 0
33               maximum: 1000
34
35   rs485-rts-active-low:
36     description: drive RTS low when sending (default is high).
37     $ref: /schemas/types.yaml#/definitions/flag
38
39   linux,rs485-enabled-at-boot-time:
40     description: enables the rs485 feature at boot time. It can be disabled later with proper ioctl.
41     $ref: /schemas/types.yaml#/definitions/flag
42
43   rs485-rx-during-tx:
44    description: enables the receiving of data even while sending data.
45    $ref: /schemas/types.yaml#/definitions/flag