67 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/serial/rs485.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: RS485 serial communications8 9description: The RTS signal is capable of automatically controlling line10 direction for the built-in half-duplex mode. The properties described11 hereafter shall be given to a half-duplex capable UART node.12 13maintainers:14 - Rob Herring <robh@kernel.org>15 16properties:17 rs485-rts-delay:18 description: prop-encoded-array <a b>19 $ref: /schemas/types.yaml#/definitions/uint32-array20 items:21 items:22 - description: Delay between rts signal and beginning of data sent in23 milliseconds. It corresponds to the delay before sending data.24 default: 025 maximum: 10026 - description: Delay between end of data sent and rts signal in milliseconds.27 It corresponds to the delay after sending data and actual release28 of the line.29 default: 030 maximum: 10031 32 rs485-rts-active-high:33 description: drive RTS high when sending (this is the default).34 $ref: /schemas/types.yaml#/definitions/flag35 36 rs485-rts-active-low:37 description: drive RTS low when sending (default is high).38 $ref: /schemas/types.yaml#/definitions/flag39 40 rs485-rx-active-high:41 description: Polarity of receiver enable signal (when separate from RTS).42 True indicates active high (default is low).43 $ref: /schemas/types.yaml#/definitions/flag44 45 linux,rs485-enabled-at-boot-time:46 description: enables the rs485 feature at boot time. It can be disabled47 later with proper ioctl.48 $ref: /schemas/types.yaml#/definitions/flag49 50 rs485-rx-during-tx:51 description: enables the receiving of data even while sending data.52 $ref: /schemas/types.yaml#/definitions/flag53 54 rs485-term-gpios:55 description: GPIO pin to enable RS485 bus termination.56 maxItems: 157 58 rs485-rx-during-tx-gpios:59 description: Output GPIO pin that sets the state of rs485-rx-during-tx. This60 signal can be used to control the RX part of an RS485 transceiver. Thereby61 the active state enables RX during TX.62 maxItems: 163 64additionalProperties: true65 66...67