/linux-6.1.9/drivers/tty/serial/8250/ |
D | 8250_dwlib.c | 138 static void dw8250_rs485_set_addr(struct uart_port *p, struct serial_rs485 *rs485, in dw8250_rs485_set_addr() argument 143 if (rs485->flags & SER_RS485_ADDRB) { in dw8250_rs485_set_addr() 148 if (rs485->flags & SER_RS485_ADDR_RECV) { in dw8250_rs485_set_addr() 149 u32 delta = p->rs485.flags ^ rs485->flags; in dw8250_rs485_set_addr() 155 if (unlikely(&p->rs485 == rs485)) in dw8250_rs485_set_addr() 156 delta = rs485->flags; in dw8250_rs485_set_addr() 159 (p->rs485.addr_recv != rs485->addr_recv)) in dw8250_rs485_set_addr() 160 dw8250_update_rar(p, rs485->addr_recv); in dw8250_rs485_set_addr() 165 if (rs485->flags & SER_RS485_ADDR_DEST) { in dw8250_rs485_set_addr() 171 dw8250_writel_ext(p, DW_UART_TAR, rs485->addr_dest); in dw8250_rs485_set_addr() [all …]
|
D | 8250_fintek.c | 195 struct serial_rs485 *rs485) in fintek_8250_rs485_config() argument 204 if (rs485->flags & SER_RS485_ENABLED) { in fintek_8250_rs485_config() 206 if (!(rs485->flags & SER_RS485_RTS_ON_SEND) == in fintek_8250_rs485_config() 207 !(rs485->flags & SER_RS485_RTS_AFTER_SEND)) in fintek_8250_rs485_config() 212 if (rs485->delay_rts_before_send) { in fintek_8250_rs485_config() 213 rs485->delay_rts_before_send = 1; in fintek_8250_rs485_config() 217 if (rs485->delay_rts_after_send) { in fintek_8250_rs485_config() 218 rs485->delay_rts_after_send = 1; in fintek_8250_rs485_config() 222 if (rs485->flags & SER_RS485_RTS_ON_SEND) in fintek_8250_rs485_config()
|
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() 47 if (rs485->flags & SER_RS485_RTS_ON_SEND) in lpc18xx_rs485_config() 51 if (rs485->delay_rts_after_send) { in lpc18xx_rs485_config() 53 rs485_dly_reg = DIV_ROUND_UP(rs485->delay_rts_after_send in lpc18xx_rs485_config() 60 rs485->delay_rts_after_send = (rs485_dly_reg * MSEC_PER_SEC) in lpc18xx_rs485_config()
|
D | 8250_bcm2835aux.c | 54 if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) { in bcm2835aux_rs485_start_tx() 65 if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND) in bcm2835aux_rs485_start_tx() 73 if (up->port.rs485.flags & SER_RS485_RTS_AFTER_SEND) in bcm2835aux_rs485_stop_tx() 78 if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) { in bcm2835aux_rs485_stop_tx()
|
D | 8250_exar.c | 122 struct serial_rs485 *rs485); 420 struct serial_rs485 *rs485) in generic_rs485_config() argument 422 bool is_rs485 = !!(rs485->flags & SER_RS485_ENABLED); in generic_rs485_config() 452 struct serial_rs485 *rs485) in iot2040_rs485_config() argument 454 bool is_rs485 = !!(rs485->flags & SER_RS485_ENABLED); in iot2040_rs485_config() 460 if (rs485->flags & SER_RS485_RX_DURING_TX) in iot2040_rs485_config() 465 if (rs485->flags & SER_RS485_TERMINATE_BUS) in iot2040_rs485_config() 481 return generic_rs485_config(port, termios, rs485); in iot2040_rs485_config()
|
/linux-6.1.9/Documentation/devicetree/bindings/serial/ |
D | rs485.yaml | 4 $id: http://devicetree.org/schemas/serial/rs485.yaml# 17 rs485-rts-delay: 32 rs485-rts-active-low: 36 rs485-rx-active-high: 41 linux,rs485-enabled-at-boot-time: 42 description: enables the rs485 feature at boot time. It can be disabled 46 rs485-rx-during-tx: 50 rs485-term-gpios:
|
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
|
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;
|
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
|
D | fsl-lpuart.yaml | 13 - $ref: "rs485.yaml" 64 rs485-rts-active-low: true 65 linux,rs485-enabled-at-boot-time: true
|
D | rs485.txt | 1 See rs485.yaml
|
/linux-6.1.9/arch/arm/boot/dts/ |
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>;
|
D | imx6qdl-dhcom-drc02.dtsi | 30 rs485-rx-en-hog { 33 line-name = "rs485-rx-en"; 92 linux,rs485-enabled-at-boot-time; 122 * P: uart5 rs485-tx-en 123 * Q: uart5 rs485-rx-en
|
D | imx28-duckbill-2-485.dts | 174 rs485-red { 175 label = "duckbill:red:rs485"; 179 rs485-green { 180 label = "duckbill:green:rs485";
|
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;
|
D | stm32mp15xx-dhcom-drc02.dtsi | 36 rs485-rx-en-hog { 40 line-name = "rs485-rx-en"; 145 linux,rs485-enabled-at-boot-time;
|
D | animeo_ip.dts | 59 linux,rs485-enabled-at-boot-time; 65 linux,rs485-enabled-at-boot-time;
|
/linux-6.1.9/drivers/tty/serial/ |
D | serial_core.c | 164 if (old != port->mctrl && !(port->rs485.flags & SER_RS485_ENABLED)) in uart_update_mctrl() 1289 static int uart_check_rs485_flags(struct uart_port *port, struct serial_rs485 *rs485) in uart_check_rs485_flags() argument 1291 u32 flags = rs485->flags; in uart_check_rs485_flags() 1304 if (!(rs485->flags & SER_RS485_ADDRB) && in uart_check_rs485_flags() 1305 (rs485->flags & (SER_RS485_ADDR_RECV|SER_RS485_ADDR_DEST))) in uart_check_rs485_flags() 1309 if (!(rs485->flags & SER_RS485_ADDR_RECV) && rs485->addr_recv) in uart_check_rs485_flags() 1311 if (!(rs485->flags & SER_RS485_ADDR_DEST) && rs485->addr_dest) in uart_check_rs485_flags() 1318 struct serial_rs485 *rs485) in uart_sanitize_serial_rs485_delays() argument 1321 if (rs485->delay_rts_before_send) { in uart_sanitize_serial_rs485_delays() 1326 rs485->delay_rts_before_send = 0; in uart_sanitize_serial_rs485_delays() [all …]
|
D | omap-serial.c | 290 if (port->rs485.flags & SER_RS485_ENABLED) { in serial_omap_stop_tx() 301 res = (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) ? 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() 343 if ((up->port.rs485.flags & SER_RS485_ENABLED) && in serial_omap_put_char() 344 !(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) in serial_omap_put_char() 394 if (port->rs485.flags & SER_RS485_ENABLED) { in serial_omap_start_tx() 400 res = (port->rs485.flags & SER_RS485_RTS_ON_SEND) ? 1 : 0; in serial_omap_start_tx() 403 if (port->rs485.delay_rts_before_send > 0) in serial_omap_start_tx() 404 mdelay(port->rs485.delay_rts_before_send); in serial_omap_start_tx() [all …]
|
D | max310x.c | 1022 delay = (one->port.rs485.delay_rts_before_send << 4) | in max310x_rs_proc() 1023 one->port.rs485.delay_rts_after_send; in max310x_rs_proc() 1026 if (one->port.rs485.flags & SER_RS485_ENABLED) { in max310x_rs_proc() 1029 if (!(one->port.rs485.flags & SER_RS485_RX_DURING_TX)) in max310x_rs_proc() 1040 struct serial_rs485 *rs485) in max310x_rs485_config() argument 1044 if ((rs485->delay_rts_before_send > 0x0f) || in max310x_rs485_config() 1045 (rs485->delay_rts_after_send > 0x0f)) in max310x_rs485_config() 1048 port->rs485 = *rs485; in max310x_rs485_config() 1073 val = (clamp(port->rs485.delay_rts_before_send, 0U, 15U) << 4) | in max310x_startup() 1074 clamp(port->rs485.delay_rts_after_send, 0U, 15U); in max310x_startup() [all …]
|
/linux-6.1.9/arch/arm64/boot/dts/freescale/ |
D | imx8mp-verdin-dev.dtsi | 38 linux,rs485-enabled-at-boot-time; 39 rs485-rts-active-low; 40 rs485-rx-during-tx;
|
D | imx8mm-verdin-dev.dtsi | 60 linux,rs485-enabled-at-boot-time; 61 rs485-rts-active-low; 62 rs485-rx-during-tx;
|
D | Makefile | 123 imx8mm-venice-gw72xx-0x-rs485-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-rs485.dtbo 127 imx8mm-venice-gw73xx-0x-rs485-dtbs := imx8mm-venice-gw73xx-0x.dtb imx8mm-venice-gw73xx-0x-rs485.dtbo 132 dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw72xx-0x-rs485.dtb 136 dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x-rs485.dtb
|
/linux-6.1.9/arch/x86/platform/ts5500/ |
D | ts5500.c | 77 bool rs485; member 135 sbc->rs485 = tmp & TS5500_RS485; in ts5500_detect_config() 188 TS5500_ATTR_BOOL(rs485);
|
/linux-6.1.9/Documentation/driver-api/serial/ |
D | index.rst | 20 serial-rs485
|