xref: /linux/Documentation/devicetree/bindings/serial/rs485.yaml (revision 01c38ecff8b13947f7639cb7ca9998b21c2c0ae7)
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
9d50f974cSBenjamin Gaignarddescription: The RTS signal is capable of automatically controlling
10d50f974cSBenjamin Gaignard             line direction for the built-in half-duplex mode.
11d50f974cSBenjamin Gaignard             The properties described hereafter shall be given to a
12d50f974cSBenjamin Gaignard             half-duplex capable UART node.
13d50f974cSBenjamin Gaignard
14d50f974cSBenjamin Gaignardmaintainers:
15d50f974cSBenjamin Gaignard  -  Rob Herring <robh@kernel.org>
16d50f974cSBenjamin Gaignard
17d50f974cSBenjamin Gaignardproperties:
18d50f974cSBenjamin Gaignard  rs485-rts-delay:
19d50f974cSBenjamin Gaignard    description: prop-encoded-array <a b>
20d50f974cSBenjamin Gaignard    allOf:
21d50f974cSBenjamin Gaignard      - $ref: /schemas/types.yaml#/definitions/uint32-array
22d50f974cSBenjamin Gaignard      - items:
23d50f974cSBenjamin Gaignard          items:
24d50f974cSBenjamin Gaignard            - description:
25d50f974cSBenjamin Gaignard                Delay between rts signal and beginning of data sent in milliseconds.
26d50f974cSBenjamin Gaignard                It corresponds to the delay before sending data.
27d50f974cSBenjamin Gaignard              default: 0
28d50f974cSBenjamin Gaignard              maximum: 1000
29d50f974cSBenjamin Gaignard            - description:
30d50f974cSBenjamin Gaignard                Delay between end of data sent and rts signal in milliseconds.
31d50f974cSBenjamin Gaignard                It corresponds to the delay after sending data and actual release of the line.
32d50f974cSBenjamin Gaignard              default: 0
33d50f974cSBenjamin Gaignard              maximum: 1000
34d50f974cSBenjamin Gaignard
35d50f974cSBenjamin Gaignard  rs485-rts-active-low:
36d50f974cSBenjamin Gaignard    description: drive RTS low when sending (default is high).
37d50f974cSBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/flag
38d50f974cSBenjamin Gaignard
39d50f974cSBenjamin Gaignard  linux,rs485-enabled-at-boot-time:
40d50f974cSBenjamin Gaignard    description: enables the rs485 feature at boot time. It can be disabled 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*01c38ecfSLukas Wunner
47*01c38ecfSLukas Wunner  rs485-term-gpios:
48*01c38ecfSLukas Wunner    description: GPIO pin to enable RS485 bus termination.
49*01c38ecfSLukas Wunner    maxItems: 1
50