diff options
Diffstat (limited to 'Documentation/serial/serial-rs485.txt')
-rw-r--r-- | Documentation/serial/serial-rs485.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/serial/serial-rs485.txt b/Documentation/serial/serial-rs485.txt index a4932387bbfb..079cb3df62cf 100644 --- a/Documentation/serial/serial-rs485.txt +++ b/Documentation/serial/serial-rs485.txt | |||
@@ -28,6 +28,10 @@ | |||
28 | RS485 communications. This data structure is used to set and configure RS485 | 28 | RS485 communications. This data structure is used to set and configure RS485 |
29 | parameters in the platform data and in ioctls. | 29 | parameters in the platform data and in ioctls. |
30 | 30 | ||
31 | The device tree can also provide RS485 boot time parameters (see [2] | ||
32 | for bindings). The driver is in charge of filling this data structure from | ||
33 | the values given by the device tree. | ||
34 | |||
31 | Any driver for devices capable of working both as RS232 and RS485 should | 35 | Any driver for devices capable of working both as RS232 and RS485 should |
32 | provide at least the following ioctls: | 36 | provide at least the following ioctls: |
33 | 37 | ||
@@ -104,6 +108,9 @@ | |||
104 | rs485conf.flags |= SER_RS485_RTS_AFTER_SEND; | 108 | rs485conf.flags |= SER_RS485_RTS_AFTER_SEND; |
105 | rs485conf.delay_rts_after_send = ...; | 109 | rs485conf.delay_rts_after_send = ...; |
106 | 110 | ||
111 | /* Set this flag if you want to receive data even whilst sending data */ | ||
112 | rs485conf.flags |= SER_RS485_RX_DURING_TX; | ||
113 | |||
107 | if (ioctl (fd, TIOCSRS485, &rs485conf) < 0) { | 114 | if (ioctl (fd, TIOCSRS485, &rs485conf) < 0) { |
108 | /* Error handling. See errno. */ | 115 | /* Error handling. See errno. */ |
109 | } | 116 | } |
@@ -118,3 +125,4 @@ | |||
118 | 5. REFERENCES | 125 | 5. REFERENCES |
119 | 126 | ||
120 | [1] include/linux/serial.h | 127 | [1] include/linux/serial.h |
128 | [2] Documentation/devicetree/bindings/serial/rs485.txt | ||