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