Home
last modified time | relevance | path

Searched +full:rs485 +full:- +full:rts +full:- +full:delay (Results 1 – 25 of 52) sorted by relevance

123

/kernel/linux/linux-4.19/Documentation/devicetree/bindings/serial/
Drs485.txt1 * RS485 serial communications
3 The RTS signal is capable of automatically controlling line direction for
4 the built-in half-duplex mode.
5 The properties described hereafter shall be given to a half-duplex capable
9 - rs485-rts-delay: prop-encoded-array <a b> where:
10 * a is the delay between rts signal and beginning of data sent in milliseconds.
11 it corresponds to the delay before sending data.
12 * b is the delay between end of data sent and rts signal in milliseconds
13 it corresponds to the delay after sending data and actual release of the line.
15 - rs485-rts-active-low: drive RTS low when sending (default is high).
[all …]
Dfsl-imx-uart.txt4 - compatible : Should be "fsl,<soc>-uart"
5 - reg : Address and length of the register set for the device
6 - interrupts : Should contain uart interrupt
9 - fsl,dte-mode : Indicate the uart works in DTE mode. The uart works
11 - rs485-rts-delay, rs485-rts-active-low, rs485-rx-during-tx,
12 linux,rs485-enabled-at-boot-time: see rs485.txt. Note that for RS485
13 you must enable either the "uart-has-rtscts" or the "rts-gpios"
14 properties. In case you use "uart-has-rtscts" the signal that controls
16 and RTS_B is input, regardless of dte-mode.
31 compatible = "fsl,imx51-uart", "fsl,imx21-uart";
[all …]
Domap_serial.txt4 - compatible : should be "ti,am654-uart" for AM654 controllers
5 - compatible : should be "ti,omap2-uart" for OMAP2 controllers
6 - compatible : should be "ti,omap3-uart" for OMAP3 controllers
7 - compatible : should be "ti,omap4-uart" for OMAP4 controllers
8 - compatible : should be "ti,am4372-uart" for AM437x controllers
9 - compatible : should be "ti,am3352-uart" for AM335x controllers
10 - compatible : should be "ti,dra742-uart" for DRA7x controllers
11 - reg : address and length of the register space
12 - interrupts or interrupts-extended : Should contain the uart interrupt
16 - ti,hwmods : Must be "uart<n>", n being the instance number (1-based)
[all …]
Dfsl-lpuart.txt4 - compatible :
5 - "fsl,vf610-lpuart" for lpuart compatible with the one integrated
6 on Vybrid vf610 SoC with 8-bit register organization
7 - "fsl,ls1021a-lpuart" for lpuart compatible with the one integrated
8 on LS1021A SoC with 32-bit big-endian register organization
9 - "fsl,imx7ulp-lpuart" for lpuart compatible with the one integrated
10 on i.MX7ULP SoC with 32-bit little-endian register organization
11 - reg : Address and length of the register set for the device
12 - interrupts : Should contain uart interrupt
13 - clocks : phandle + clock specifier pairs, one for each entry in clock-names
[all …]
Datmel-usart.txt4 - compatible: Should be "atmel,<chip>-usart" or "atmel,<chip>-dbgu"
7 For the dbgu UART, use "atmel,<chip>-dbgu", "atmel,<chip>-usart"
8 - reg: Should contain registers location and length
9 - interrupts: Should contain interrupt
10 - clock-names: tuple listing input clock names.
12 - clocks: phandles to input clocks.
15 - atmel,use-dma-rx: use of PDC or DMA for receiving data
16 - atmel,use-dma-tx: use of PDC or DMA for transmitting data
17 - {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD line respectively.
20 - add dma bindings for dma transfer:
[all …]
Dst,stm32-usart.txt4 - compatible: can be either:
5 - "st,stm32-uart",
6 - "st,stm32f7-uart",
7 - "st,stm32h7-uart".
9 - reg: The address and length of the peripheral registers space
10 - interrupts:
11 - The interrupt line for the USART instance,
12 - An optional wake-up interrupt.
13 - clocks: The input clock of the USART instance
16 - pinctrl: The reference on the pins configuration
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/serial/
Drs485.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/serial/rs485.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: RS485 serial communications Bindings
9 description: The RTS signal is capable of automatically controlling line
10 direction for the built-in half-duplex mode. The properties described
11 hereafter shall be given to a half-duplex capable UART node.
14 - Rob Herring <robh@kernel.org>
17 rs485-rts-delay:
[all …]
Dst,stm32-uart.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/serial/st,stm32-uart.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 - Erwan Le Ray <erwan.leray@st.com>
13 - $ref: rs485.yaml
18 - st,stm32-uart
19 - st,stm32f7-uart
20 - st,stm32h7-uart
37 st,hw-flow-ctrl:
[all …]
Domap_serial.txt4 - compatible : should be "ti,j721e-uart", "ti,am654-uart" for J721E controllers
5 - compatible : should be "ti,am654-uart" for AM654 controllers
6 - compatible : should be "ti,omap2-uart" for OMAP2 controllers
7 - compatible : should be "ti,omap3-uart" for OMAP3 controllers
8 - compatible : should be "ti,omap4-uart" for OMAP4 controllers
9 - compatible : should be "ti,am4372-uart" for AM437x controllers
10 - compatible : should be "ti,am3352-uart" for AM335x controllers
11 - compatible : should be "ti,dra742-uart" for DRA7x controllers
12 - reg : address and length of the register space
13 - interrupts or interrupts-extended : Should contain the uart interrupt
[all …]
Dfsl-imx-uart.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/serial/fsl-imx-uart.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Fabio Estevam <fabio.estevam@nxp.com>
13 - $ref: "serial.yaml"
14 - $ref: "rs485.yaml"
19 - const: fsl,imx1-uart
20 - const: fsl,imx21-uart
21 - items:
[all …]
/kernel/linux/linux-4.19/Documentation/serial/
Dserial-rs485.txt1 RS485 SERIAL COMMUNICATIONS
5 EIA-485, also known as TIA/EIA-485 or RS-485, is a standard defining the
12 2. HARDWARE-RELATED CONSIDERATIONS
14 Some CPUs/UARTs (e.g., Atmel AT91 or 16C950 UART) contain a built-in
15 half-duplex mode capable of automatically controlling line direction by
16 toggling RTS or DTR signals. That can be used to control external
17 half-duplex hardware like an RS485 transceiver or any RS232-connected
18 half-duplex devices like some modems.
22 available at user-level to allow switching from one mode to the other, and
28 RS485 communications. This data structure is used to set and configure RS485
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/serial/
Dserial-rs485.rst2 RS485 Serial Communications
8 EIA-485, also known as TIA/EIA-485 or RS-485, is a standard defining the
15 2. Hardware-related Considerations
18 Some CPUs/UARTs (e.g., Atmel AT91 or 16C950 UART) contain a built-in
19 half-duplex mode capable of automatically controlling line direction by
20 toggling RTS or DTR signals. That can be used to control external
21 half-duplex hardware like an RS485 transceiver or any RS232-connected
22 half-duplex devices like some modems.
26 available at user-level to allow switching from one mode to the other, and
33 RS485 communications. This data structure is used to set and configure RS485
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Daks-cdu.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * aks-cdu.dts - Device Tree file for AK signal CDU
9 /dts-v1/;
11 #include "ge863-pro3.dtsi"
20 clock-frequency = <32768>;
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;
[all …]
Dam335x-nano.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2013 Newflow Ltd - http://www.newflow.co.uk/
5 /dts-v1/;
15 cpu0-supply = <&dcdc2_reg>;
25 compatible = "gpio-leds";
30 default-state = "off";
36 pinctrl-names = "default";
37 pinctrl-0 = <&misc_pins>;
40 pinctrl-single,pins = <
46 pinctrl-single,pins = <
[all …]
/kernel/linux/linux-4.19/arch/arm/boot/dts/
Daks-cdu.dts2 * aks-cdu.dts - Device Tree file for AK signal CDU
10 /dts-v1/;
12 #include "ge863-pro3.dtsi"
21 clock-frequency = <32768>;
33 linux,rs485-enabled-at-boot-time;
34 rs485-rts-delay = <0 0>;
39 linux,rs485-enabled-at-boot-time;
40 rs485-rts-delay = <0 0>;
45 linux,rs485-enabled-at-boot-time;
46 rs485-rts-delay = <0 0>;
[all …]
Dam335x-nano.dts2 * Copyright (C) 2013 Newflow Ltd - http://www.newflow.co.uk/
8 /dts-v1/;
18 cpu0-supply = <&dcdc2_reg>;
28 compatible = "gpio-leds";
33 default-state = "off";
39 pinctrl-names = "default";
40 pinctrl-0 = <&misc_pins>;
43 pinctrl-single,pins = <
49 pinctrl-single,pins = <
93 pinctrl-single,pins = <
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Datmel-usart.txt4 - compatible: Should be one of the following:
5 - "atmel,at91rm9200-usart"
6 - "atmel,at91sam9260-usart"
7 - "microchip,sam9x60-usart"
8 - "atmel,at91rm9200-dbgu", "atmel,at91rm9200-usart"
9 - "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"
10 - "microchip,sam9x60-dbgu", "microchip,sam9x60-usart"
11 - reg: Should contain registers location and length
12 - interrupts: Should contain interrupt
13 - clock-names: tuple listing input clock names.
[all …]
/kernel/linux/linux-4.19/include/uapi/linux/
Dserial.h1 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */
63 #define PORT_RSA 13 /* RSA-DV II/S card */
82 * Multiport serial configuration structure --- external structure
99 * Serial input interrupt line counters -- external structure
111 * Serial interface for controlling RS485 settings on chips with suitable
118 __u32 flags; /* RS485 feature flags */
121 RTS pin when
124 RTS pin after sent*/
129 __u32 delay_rts_before_send; /* Delay before send (milliseconds) */
130 __u32 delay_rts_after_send; /* Delay after send (milliseconds) */
/kernel/linux/linux-4.19/drivers/tty/serial/8250/
D8250_lpc18xx.c1 // SPDX-License-Identifier: GPL-2.0
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()
48 rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | 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()
[all …]
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
D8250_lpc18xx.c1 // SPDX-License-Identifier: GPL-2.0
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()
48 rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | 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()
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dserial.h1 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */
63 #define PORT_RSA 13 /* RSA-DV II/S card */
82 * Multiport serial configuration structure --- external structure
99 * Serial input interrupt line counters -- external structure
111 * Serial interface for controlling RS485 settings on chips with suitable
118 __u32 flags; /* RS485 feature flags */
121 RTS pin when
124 RTS pin after sent*/
129 __u32 delay_rts_before_send; /* Delay before send (milliseconds) */
130 __u32 delay_rts_after_send; /* Delay after send (milliseconds) */
/kernel/linux/linux-5.10/drivers/tty/serial/
Dsc16is7xx.c1 // SPDX-License-Identifier: GPL-2.0+
3 * SC16IS7xx tty serial driver - Copyright (C) 2014 GridPoint
13 #include <linux/delay.h>
46 * - only on 75x/76x
49 * - only on 75x/76x
52 * - only on 75x/76x
55 * - only on 75x/76x
83 /* IER register bits - write only if (EFR[4] == 1) */
96 /* FCR register bits - write only if (EFR[4] == 1) */
106 #define SC16IS7XX_IIR_RTOI_SRC 0x0c /* RX time-out interrupt */
[all …]
Domap-serial.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for OMAP-UART controller.
16 * this driver as required for the omap-platform.
23 #include <linux/delay.h>
37 #include <linux/platform_data/serial-omap.h>
78 #define OMAP_UART_DMA_CH_FREE -1
175 offset <<= up->port.regshift; in serial_in()
176 return readw(up->port.membase + offset); in serial_in()
181 offset <<= up->port.regshift; in serial_out()
182 writew(value, up->port.membase + offset); in serial_out()
[all …]
Dmax310x.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2012-2016 Alexander Shiyan <shc_work@mail.ru>
14 #include <linux/delay.h>
102 #define MAX310X_SPCHR_MULTIDROP_BIT (1 << 5) /* 9-bit multidrop addr char */
115 #define MAX310X_MODE1_TXHIZ_BIT (1 << 2) /* TX pin three-state */
116 #define MAX310X_MODE1_RTSHIZ_BIT (1 << 3) /* RTS pin three-state */
129 #define MAX310X_MODE2_MULTIDROP_BIT (1 << 6) /* 9-bit multidrop enable */
137 * 00 -> 5 bit words
138 * 01 -> 6 bit words
139 * 10 -> 7 bit words
[all …]
/kernel/linux/linux-4.19/drivers/tty/serial/
Dsc16is7xx.c1 // SPDX-License-Identifier: GPL-2.0+
3 * SC16IS7xx tty serial driver - Copyright (C) 2014 GridPoint
13 #include <linux/delay.h>
46 * - only on 75x/76x
49 * - only on 75x/76x
52 * - only on 75x/76x
55 * - only on 75x/76x
83 /* IER register bits - write only if (EFR[4] == 1) */
96 /* FCR register bits - write only if (EFR[4] == 1) */
106 #define SC16IS7XX_IIR_RTOI_SRC 0x0c /* RX time-out interrupt */
[all …]

123