/linux/drivers/tty/serial/8250/ |
A D | 8250_lpc18xx.c | 36 struct serial_rs485 *rs485) in lpc18xx_rs485_config() argument 43 if (rs485->flags & SER_RS485_ENABLED) in lpc18xx_rs485_config() 44 memset(rs485->padding, 0, sizeof(rs485->padding)); in lpc18xx_rs485_config() 46 memset(rs485, 0, sizeof(*rs485)); in lpc18xx_rs485_config() 51 if (rs485->flags & SER_RS485_ENABLED) { in lpc18xx_rs485_config() 55 if (rs485->flags & SER_RS485_RTS_ON_SEND) { in lpc18xx_rs485_config() 57 rs485->flags &= ~SER_RS485_RTS_AFTER_SEND; in lpc18xx_rs485_config() 59 rs485->flags |= SER_RS485_RTS_AFTER_SEND; in lpc18xx_rs485_config() 63 if (rs485->delay_rts_after_send) { in lpc18xx_rs485_config() 77 rs485->delay_rts_before_send = 0; in lpc18xx_rs485_config() [all …]
|
A D | 8250_fintek.c | 195 struct serial_rs485 *rs485) in fintek_8250_rs485_config() argument 208 if (rs485->flags & SER_RS485_ENABLED) { in fintek_8250_rs485_config() 209 memset(rs485->padding, 0, sizeof(rs485->padding)); in fintek_8250_rs485_config() 212 memset(rs485, 0, sizeof(*rs485)); in fintek_8250_rs485_config() 220 rs485->delay_rts_before_send = 0; in fintek_8250_rs485_config() 221 rs485->delay_rts_after_send = 0; in fintek_8250_rs485_config() 224 if (rs485->delay_rts_before_send) { in fintek_8250_rs485_config() 225 rs485->delay_rts_before_send = 1; in fintek_8250_rs485_config() 229 if (rs485->delay_rts_after_send) { in fintek_8250_rs485_config() 230 rs485->delay_rts_after_send = 1; in fintek_8250_rs485_config() [all …]
|
A D | 8250_bcm2835aux.c | 49 if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) { in bcm2835aux_rs485_start_tx() 60 if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND) in bcm2835aux_rs485_start_tx() 68 if (up->port.rs485.flags & SER_RS485_RTS_AFTER_SEND) in bcm2835aux_rs485_stop_tx() 73 if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) { in bcm2835aux_rs485_stop_tx()
|
A D | 8250_exar.c | 412 struct serial_rs485 *rs485) in generic_rs485_config() argument 414 bool is_rs485 = !!(rs485->flags & SER_RS485_ENABLED); in generic_rs485_config() 429 port->rs485 = *rs485; in generic_rs485_config() 441 struct serial_rs485 *rs485) in iot2040_rs485_config() argument 443 bool is_rs485 = !!(rs485->flags & SER_RS485_ENABLED); in iot2040_rs485_config() 449 if (rs485->flags & SER_RS485_RX_DURING_TX) in iot2040_rs485_config() 454 if (rs485->flags & SER_RS485_TERMINATE_BUS) in iot2040_rs485_config() 470 return generic_rs485_config(port, rs485); in iot2040_rs485_config()
|
A D | 8250_port.c | 679 rs485->flags |= SER_RS485_RTS_ON_SEND; in serial8250_em485_config() 680 rs485->flags &= ~SER_RS485_RTS_AFTER_SEND; in serial8250_em485_config() 684 rs485->delay_rts_before_send = min(rs485->delay_rts_before_send, 100U); in serial8250_em485_config() 685 rs485->delay_rts_after_send = min(rs485->delay_rts_after_send, 100U); in serial8250_em485_config() 687 memset(rs485->padding, 0, sizeof(rs485->padding)); in serial8250_em485_config() 688 port->rs485 = *rs485; in serial8250_em485_config() 691 rs485->flags & SER_RS485_TERMINATE_BUS); in serial8250_em485_config() 697 if (rs485->flags & SER_RS485_ENABLED) { in serial8250_em485_config() 701 rs485->flags &= ~SER_RS485_ENABLED; in serial8250_em485_config() 702 port->rs485.flags &= ~SER_RS485_ENABLED; in serial8250_em485_config() [all …]
|
/linux/Documentation/devicetree/bindings/serial/ |
A D | rs485.yaml | 4 $id: http://devicetree.org/schemas/serial/rs485.yaml# 17 rs485-rts-delay: 32 rs485-rts-active-low: 36 linux,rs485-enabled-at-boot-time: 37 description: enables the rs485 feature at boot time. It can be disabled 41 rs485-rx-during-tx: 45 rs485-term-gpios:
|
A D | 8250_omap.yaml | 14 - $ref: /schemas/serial/rs485.yaml# 73 rs485-rts-delay: true 74 rs485-rts-active-low: true 75 rs485-rx-during-tx: true 76 rs485-rts-active-high: true 77 linux,rs485-enabled-at-boot-time: true
|
A D | st,stm32-uart.yaml | 63 rs485-rts-delay: true 64 rs485-rts-active-low: true 65 linux,rs485-enabled-at-boot-time: true 66 rs485-rx-during-tx: true 81 - $ref: rs485.yaml# 130 rs485-rts-active-low;
|
A D | fsl-imx-uart.yaml | 14 - $ref: "rs485.yaml" 88 rs485-rts-delay: true 89 rs485-rts-active-low: true 90 rs485-rx-during-tx: true 91 linux,rs485-enabled-at-boot-time: true
|
A D | fsl-lpuart.yaml | 13 - $ref: "rs485.yaml" 56 rs485-rts-active-low: true 57 linux,rs485-enabled-at-boot-time: true
|
/linux/arch/arm/boot/dts/ |
A D | aks-cdu.dts | 32 linux,rs485-enabled-at-boot-time; 33 rs485-rts-delay = <0 0>; 38 linux,rs485-enabled-at-boot-time; 39 rs485-rts-delay = <0 0>; 44 linux,rs485-enabled-at-boot-time; 45 rs485-rts-delay = <0 0>;
|
A D | imx6qdl-dhcom-drc02.dtsi | 30 rs485-rx-en-hog { 33 line-name = "rs485-rx-en"; 92 linux,rs485-enabled-at-boot-time; 118 * P: uart5 rs485-tx-en 119 * Q: uart5 rs485-rx-en
|
A D | imx28-duckbill-2-485.dts | 174 rs485-red { 175 label = "duckbill:red:rs485"; 179 rs485-green { 180 label = "duckbill:green:rs485";
|
A D | am335x-nano.dts | 171 rs485-rts-active-high; 172 rs485-rx-during-tx; 173 rs485-rts-delay = <1 1>; 174 linux,rs485-enabled-at-boot-time; 182 rs485-rts-active-high; 183 rs485-rts-delay = <1 1>; 184 linux,rs485-enabled-at-boot-time;
|
A D | stm32mp15xx-dhcom-drc02.dtsi | 36 rs485-rx-en-hog { 40 line-name = "rs485-rx-en"; 143 linux,rs485-enabled-at-boot-time;
|
A D | animeo_ip.dts | 59 linux,rs485-enabled-at-boot-time; 65 linux,rs485-enabled-at-boot-time;
|
/linux/drivers/tty/serial/ |
A D | omap-serial.c | 289 if (port->rs485.flags & SER_RS485_ENABLED) { in serial_omap_stop_tx() 304 if (port->rs485.delay_rts_after_send > 0) in serial_omap_stop_tx() 306 port->rs485.delay_rts_after_send); in serial_omap_stop_tx() 392 if (port->rs485.flags & SER_RS485_ENABLED) { in serial_omap_start_tx() 401 if (port->rs485.delay_rts_before_send > 0) in serial_omap_start_tx() 402 mdelay(port->rs485.delay_rts_before_send); in serial_omap_start_tx() 406 if ((port->rs485.flags & SER_RS485_ENABLED) && in serial_omap_start_tx() 1354 rs485->delay_rts_before_send = min(rs485->delay_rts_before_send, 100U); in serial_omap_config_rs485() 1355 rs485->delay_rts_after_send = min(rs485->delay_rts_after_send, 100U); in serial_omap_config_rs485() 1358 port->rs485 = *rs485; in serial_omap_config_rs485() [all …]
|
A D | amba-pl011.c | 1307 if (port->rs485.delay_rts_after_send) in pl011_rs485_tx_stop() 1446 if (port->rs485.delay_rts_before_send) in pl011_rs485_tx_start() 2230 struct serial_rs485 *rs485) in pl011_rs485_config() argument 2238 rs485->flags |= SER_RS485_RTS_ON_SEND; in pl011_rs485_config() 2242 rs485->delay_rts_before_send = min(rs485->delay_rts_before_send, 100U); in pl011_rs485_config() 2243 rs485->delay_rts_after_send = min(rs485->delay_rts_after_send, 100U); in pl011_rs485_config() 2244 memset(rs485->padding, 0, sizeof(rs485->padding)); in pl011_rs485_config() 2250 port->rs485 = *rs485; in pl011_rs485_config() 2731 struct serial_rs485 *rs485 = &port->rs485; in pl011_get_rs485_mode() local 2739 rs485->delay_rts_before_send = min(rs485->delay_rts_before_send, 100U); in pl011_get_rs485_mode() [all …]
|
A D | fsl_lpuart.c | 1349 struct serial_rs485 *rs485) in lpuart_config_rs485() argument 1359 rs485->delay_rts_before_send = 0; in lpuart_config_rs485() 1360 rs485->delay_rts_after_send = 0; in lpuart_config_rs485() 1361 rs485->flags &= ~SER_RS485_RX_DURING_TX; in lpuart_config_rs485() 1363 if (rs485->flags & SER_RS485_ENABLED) { in lpuart_config_rs485() 1393 sport->port.rs485 = *rs485; in lpuart_config_rs485() 1400 struct serial_rs485 *rs485) in lpuart32_config_rs485() argument 1410 rs485->delay_rts_before_send = 0; in lpuart32_config_rs485() 1411 rs485->delay_rts_after_send = 0; in lpuart32_config_rs485() 1414 if (rs485->flags & SER_RS485_ENABLED) { in lpuart32_config_rs485() [all …]
|
A D | max310x.c | 1012 delay = (one->port.rs485.delay_rts_before_send << 4) | in max310x_rs_proc() 1013 one->port.rs485.delay_rts_after_send; in max310x_rs_proc() 1016 if (one->port.rs485.flags & SER_RS485_ENABLED) { in max310x_rs_proc() 1030 struct serial_rs485 *rs485) in max310x_rs485_config() argument 1034 if ((rs485->delay_rts_before_send > 0x0f) || in max310x_rs485_config() 1035 (rs485->delay_rts_after_send > 0x0f)) in max310x_rs485_config() 1040 memset(rs485->padding, 0, sizeof(rs485->padding)); in max310x_rs485_config() 1041 port->rs485 = *rs485; in max310x_rs485_config() 1067 clamp(port->rs485.delay_rts_after_send, 0U, 15U); in max310x_startup() 1070 if (port->rs485.flags & SER_RS485_ENABLED) { in max310x_startup() [all …]
|
A D | sc16is7xx.c | 738 if ((port->rs485.flags & SER_RS485_ENABLED) && in sc16is7xx_tx_proc() 739 (port->rs485.delay_rts_before_send > 0)) in sc16is7xx_tx_proc() 740 msleep(port->rs485.delay_rts_before_send); in sc16is7xx_tx_proc() 750 struct serial_rs485 *rs485 = &port->rs485; in sc16is7xx_reconf_rs485() local 754 if (rs485->flags & SER_RS485_ENABLED) { in sc16is7xx_reconf_rs485() 757 if (rs485->flags & SER_RS485_RTS_AFTER_SEND) in sc16is7xx_reconf_rs485() 956 struct serial_rs485 *rs485) in sc16is7xx_config_rs485() argument 961 if (rs485->flags & SER_RS485_ENABLED) { in sc16is7xx_config_rs485() 965 rts_during_tx = rs485->flags & SER_RS485_RTS_ON_SEND; in sc16is7xx_config_rs485() 977 if (rs485->delay_rts_after_send) in sc16is7xx_config_rs485() [all …]
|
A D | mcf.c | 102 if (port->rs485.flags & SER_RS485_ENABLED) { in mcf_start_tx() 256 if (port->rs485.flags & SER_RS485_ENABLED) { in mcf_set_termios() 355 if (port->rs485.flags & SER_RS485_ENABLED) in mcf_tx_chars() 435 static int mcf_config_rs485(struct uart_port *port, struct serial_rs485 *rs485) in mcf_config_rs485() argument 442 if (rs485->flags & SER_RS485_ENABLED) { in mcf_config_rs485() 452 port->rs485 = *rs485; in mcf_config_rs485()
|
A D | imx.c | 455 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_uart_stop_tx() 459 port->rs485.delay_rts_after_send); in imx_uart_stop_tx() 470 if (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_stop_tx() 685 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_uart_start_tx() 688 if (port->rs485.flags & SER_RS485_RTS_ON_SEND) in imx_uart_start_tx() 699 port->rs485.delay_rts_before_send); in imx_uart_start_tx() 1033 if (!(port->rs485.flags & SER_RS485_ENABLED)) { in imx_uart_set_mctrl() 1655 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_uart_set_termios() 1661 if (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_set_termios() 1927 port->rs485 = *rs485conf; in imx_uart_rs485_config() [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
A D | atmel-usart.txt | 43 - rs485-rts-delay, rs485-rx-during-tx, linux,rs485-enabled-at-boot-time: see rs485.txt
|
/linux/arch/x86/platform/ts5500/ |
A D | ts5500.c | 77 bool rs485; member 135 sbc->rs485 = tmp & TS5500_RS485; in ts5500_detect_config() 188 TS5500_ATTR_BOOL(rs485);
|