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