rs485.yaml 2.1 KB

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