0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/serial/rs485.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: RS485 serial communications Bindings
0008
0009 description: The RTS signal is capable of automatically controlling line
0010 direction for the built-in half-duplex mode. The properties described
0011 hereafter shall be given to a half-duplex capable UART node.
0012
0013 maintainers:
0014 - Rob Herring <robh@kernel.org>
0015
0016 properties:
0017 rs485-rts-delay:
0018 description: prop-encoded-array <a b>
0019 $ref: /schemas/types.yaml#/definitions/uint32-array
0020 items:
0021 items:
0022 - description: Delay between rts signal and beginning of data sent in
0023 milliseconds. It corresponds to the delay before sending data.
0024 default: 0
0025 maximum: 100
0026 - description: Delay between end of data sent and rts signal in milliseconds.
0027 It corresponds to the delay after sending data and actual release
0028 of the line.
0029 default: 0
0030 maximum: 100
0031
0032 rs485-rts-active-low:
0033 description: drive RTS low when sending (default is high).
0034 $ref: /schemas/types.yaml#/definitions/flag
0035
0036 rs485-rx-active-high:
0037 description: Polarity of receiver enable signal (when separate from RTS).
0038 True indicates active high (default is low).
0039 $ref: /schemas/types.yaml#/definitions/flag
0040
0041 linux,rs485-enabled-at-boot-time:
0042 description: enables the rs485 feature at boot time. It can be disabled
0043 later with proper ioctl.
0044 $ref: /schemas/types.yaml#/definitions/flag
0045
0046 rs485-rx-during-tx:
0047 description: enables the receiving of data even while sending data.
0048 $ref: /schemas/types.yaml#/definitions/flag
0049
0050 rs485-term-gpios:
0051 description: GPIO pin to enable RS485 bus termination.
0052 maxItems: 1
0053
0054 additionalProperties: true
0055
0056 ...