Home
last modified time | relevance | path

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

12

/Linux-v5.15/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>
15 - st,stm32-uart
16 - st,stm32f7-uart
17 - st,stm32h7-uart
34 st,hw-flow-ctrl:
38 uart-has-rtscts: true
[all …]
D8250_omap.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Vignesh Raghavendra <vigneshr@ti.com>
13 - $ref: /schemas/serial/serial.yaml#
14 - $ref: /schemas/serial/rs485.yaml#
19 - enum:
20 - ti,am3352-uart
21 - ti,am4372-uart
22 - ti,am654-uart
[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 <festevam@gmail.com>
13 - $ref: "serial.yaml"
14 - $ref: "rs485.yaml"
19 - const: fsl,imx1-uart
20 - const: fsl,imx21-uart
21 - items:
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
Dam335x-pdu001.dts6 * Copyright (C) 2018 EETS GmbH - http://www.eets.ch/
8 * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
10 * SPDX-License-Identifier: GPL-2.0+
13 /dts-v1/;
16 #include <dt-bindings/interrupt-controller/irq.h>
17 #include <dt-bindings/leds/leds-pca9532.h>
24 stdout-path = &uart3;
29 cpu0-supply = <&vdd1_reg>;
39 compatible = "regulator-fixed";
40 regulator-name = "vbat";
[all …]
Dimx7-mba7.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR X11
6 * Author: Markus Niebel <Markus.Niebel@tq-group.com>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/net/ti-dp83867.h>
20 /delete-property/ mmc2;
24 compatible = "gpio-beeper";
29 stdout-path = &uart6;
32 gpio_buttons: gpio-keys {
33 compatible = "gpio-keys";
35 button-0 {
[all …]
Dimx6dl-plybas.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
17 stdout-path = &uart4;
21 compatible = "gpio-keys";
24 button-start {
30 button-clean {
38 compatible = "gpio-leds";
39 pinctrl-names = "default";
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
D8250_port.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Base port operations for 8250/16550-type serial ports
21 #include <linux/delay.h>
256 * tx_loadsz is set to 63-bytes instead of 64-bytes to implement
257 * workaround of errata A-008006 which states that tx_loadsz should
269 .name = "Palmchip BK-3103",
340 -1, /* UART_SCR (unmapped) */
349 -1, /* UART_LSR (unmapped) */
350 -1, /* UART_MSR (unmapped) */
351 -1, /* UART_SCR (unmapped) */
[all …]
/Linux-v5.15/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) */
/Linux-v5.15/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 …]
Damba-pl011.c1 // SPDX-License-Identifier: GPL-2.0+
9 * Copyright (C) 2010 ST-Ericsson SA
11 * This is a generic driver for ARM AMBA-type serial ports. They
12 * have a lot of 16550-like features, but are not register compatible.
14 * not have an RI input, nor do they have DTR or RTS outputs. If
34 #include <linux/dma-mapping.h>
36 #include <linux/delay.h>
45 #include "amba-pl011.h"
264 unsigned int fifosize; /* vendor-specific */
266 unsigned int fixed_baud; /* vendor-set fixed baud rate */
[all …]
Dimx.c1 // SPDX-License-Identifier: GPL-2.0+
22 #include <linux/delay.h>
30 #include <linux/dma-mapping.h>
33 #include <linux/platform_data/dma-imx.h>
74 #define UCR1_RTSDEN (1<<5) /* RTS delta interrupt enable */
82 #define UCR2_IRTS (1<<14) /* Ignore RTS pin */
124 #define UFCR_RFDIV_REG(x) (((x) < 7 ? 6 - (x) : 6) << 7)
127 #define USR1_RTSS (1<<14) /* RTS pin status */
129 #define USR1_RTSD (1<<12) /* RTS delta */
147 #define USR2_RTSF (1<<4) /* RTS edge interrupt flag */
[all …]
Dfsl_lpuart.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright 2012-2014 Freescale Semiconductor, Inc.
10 #include <linux/delay.h>
11 #include <linux/dma-mapping.h>
24 /* All registers are 8-bit width */
113 /* 32-bit global registers only for i.MX7ULP/i.MX8x
118 /* 32-bit register definition */
235 #define DRIVER_NAME "fsl-lpuart"
315 { .compatible = "fsl,vf610-lpuart", .data = &vf_data, },
316 { .compatible = "fsl,ls1021a-lpuart", .data = &ls1021a_data, },
[all …]
Dar933x_uart.c1 // SPDX-License-Identifier: GPL-2.0
3 * Atheros AR933X SoC built-in UART driver
15 #include <linux/delay.h>
31 #include <asm/mach-ath79/ar933x_uart.h>
35 #define DRIVER_NAME "ar933x-uart"
60 return readl(up->port.membase + offset); in ar933x_uart_read()
66 writel(value, up->port.membase + offset); in ar933x_uart_write()
98 up->ier |= AR933X_UART_INT_TX_EMPTY; in ar933x_uart_start_tx_interrupt()
99 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_start_tx_interrupt()
104 up->ier &= ~AR933X_UART_INT_TX_EMPTY; in ar933x_uart_stop_tx_interrupt()
[all …]
Datmel_serial.c1 // SPDX-License-Identifier: GPL-2.0+
23 #include <linux/dma-mapping.h>
45 * These two offsets are substracted from the RX FIFO size to define the RTS
61 /* Use device name ttyAT, major 204 and minor 154-169. This is necessary if we
70 /* Use device name ttyS, major 4, minor 64-68. This is the usual serial port
162 bool hd_start_rx; /* can start RX during half-duplex operation */
194 { .compatible = "atmel,at91rm9200-usart-serial" },
207 return __raw_readl(port->membase + reg); in atmel_uart_readl()
212 __raw_writel(value, port->membase + reg); in atmel_uart_writel()
217 return __raw_readb(port->membase + ATMEL_US_RHR); in atmel_uart_read_char()
[all …]
/Linux-v5.15/arch/x86/platform/ts5500/
Dts5500.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Technologic Systems TS-5500 Single Board Computer support
5 * Copyright (C) 2013-2014 Savoir-faire Linux Inc.
8 * This driver registers the Technologic Systems TS-5500 Single Board Computer
11 * Documentation/ABI/testing/sysfs-platform-ts5500.
13 * This code may be extended to support similar x86-based platforms.
14 * Actually, the TS-5500 and TS-5400 are supported.
17 #include <linux/delay.h>
28 #define TS5500_PRODUCT_CODE 0x60 /* TS-5500 product code */
29 #define TS5400_PRODUCT_CODE 0x40 /* TS-5400 product code */
[all …]
/Linux-v5.15/arch/arm64/boot/dts/freescale/
Dimx8mm-venice-gw7902.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/linux-event-codes.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/net/ti-dp83867.h>
17 compatible = "gw,imx8mm-gw7902", "fsl,imx8mm";
25 stdout-path = &uart2;
34 compatible = "fixed-clock";
35 #clock-cells = <0>;
[all …]
Dimx8mm-venice-gw7901.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/linux-event-codes.h>
10 #include <dt-bindings/leds/common.h>
16 compatible = "gw,imx8mm-gw7901", "fsl,imx8mm";
29 stdout-path = &uart2;
37 gpio-keys {
38 compatible = "gpio-keys";
40 user-pb {
[all …]

12