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