rs485.txt 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. * RS485 serial communications
  2. The RTS signal is capable of automatically controlling line direction for
  3. the built-in half-duplex mode.
  4. The properties described hereafter shall be given to a half-duplex capable
  5. UART node.
  6. Required properties:
  7. - rs485-rts-delay: prop-encoded-array <a b> where:
  8. * a is the delay between rts signal and beginning of data sent in milliseconds.
  9. it corresponds to the delay before sending data.
  10. * b is the delay between end of data sent and rts signal in milliseconds
  11. it corresponds to the delay after sending data and actual release of the line.
  12. Optional properties:
  13. - linux,rs485-enabled-at-boot-time: empty property telling to enable the rs485
  14. feature at boot time. It can be disabled later with proper ioctl.
  15. - rs485-rx-during-tx: empty property that enables the receiving of data even
  16. whilst sending data.
  17. RS485 example for Atmel USART:
  18. usart0: serial@fff8c000 {
  19. compatible = "atmel,at91sam9260-usart";
  20. reg = <0xfff8c000 0x4000>;
  21. interrupts = <7>;
  22. atmel,use-dma-rx;
  23. atmel,use-dma-tx;
  24. linux,rs485-enabled-at-boot-time;
  25. rs485-rts-delay = <0 200>; // in milliseconds
  26. };