Searched +full:rs485 +full:- +full:rts +full:- +full:delay (Results 1 – 14 of 14) sorted by relevance
/linux/Documentation/devicetree/bindings/serial/ |
H A D | rs485.yaml | 1 # 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 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 …]
|
/linux/Documentation/driver-api/serial/ |
H A D | serial-rs485.rst | 2 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 32 The Linux kernel provides the struct serial_rs485 to handle RS485 [all …]
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | aks-cdu.dts | 1 // 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 …]
|
/linux/include/uapi/linux/ |
H A D | serial.h | 1 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */ 64 #define PORT_RSA 13 /* RSA-DV II/S card */ 83 * Multiport serial configuration structure --- external structure 100 * Serial input interrupt line counters -- external structure 112 * struct serial_rs485 - serial interface for controlling RS485 settings. 113 * @flags: RS485 feature flags. 114 * @delay_rts_before_send: Delay before send (milliseconds). 115 * @delay_rts_after_send: Delay after send (milliseconds). 116 * @addr_recv: Receive filter for RS485 addressing mode 118 * @addr_dest: Destination address for RS485 addressing mode [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_lpc18xx.c | 1 // 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() 47 if (rs485->flags & SER_RS485_RTS_ON_SEND) in lpc18xx_rs485_config() 51 if (rs485->delay_rts_after_send) { in lpc18xx_rs485_config() 52 baud_clk = port->uartclk / up->dl_read(up); in lpc18xx_rs485_config() 53 rs485_dly_reg = DIV_ROUND_UP(rs485->delay_rts_after_send in lpc18xx_rs485_config() 59 /* Calculate the resulting delay in ms */ in lpc18xx_rs485_config() 60 rs485->delay_rts_after_send = (rs485_dly_reg * MSEC_PER_SEC) in lpc18xx_rs485_config() 80 offset = offset << p->regshift; in lpc18xx_uart_serial_out() [all …]
|
/linux/drivers/tty/serial/ |
H A D | imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 23 #include <linux/delay.h> 31 #include <linux/dma-mapping.h> 34 #include <linux/dma/imx-dma.h> 75 #define UCR1_RTSDEN (1<<5) /* RTS delta interrupt enable */ 83 #define UCR2_IRTS (1<<14) /* Ignore RTS pin */ 126 #define UFCR_RFDIV_REG(x) (((x) < 7 ? 6 - (x) : 6) << 7) 129 #define USR1_RTSS (1<<14) /* RTS pin status */ 131 #define USR1_RTSD (1<<12) /* RTS delta */ 149 #define USR2_RTSF (1<<4) /* RTS edge interrupt flag */ [all …]
|
H A D | atmel_serial.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 #include <linux/clk-provider.h> 24 #include <linux/dma-mapping.h> 46 * These two offsets are substracted from the RX FIFO size to define the RTS 62 /* Use device name ttyAT, major 204 and minor 154-169. This is necessary if we 71 /* Use device name ttyS, major 4, minor 64-68. This is the usual serial port 167 bool hd_start_rx; /* can start RX during half-duplex operation */ 197 { .compatible = "atmel,at91rm9200-usart-serial" }, 210 return __raw_readl(port->membase + reg); in atmel_uart_readl() 215 __raw_writel(value, port->membase + reg); in atmel_uart_writel() [all …]
|
H A D | fsl_lpuart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright 2012-2014 Freescale Semiconductor, Inc. 13 #include <linux/delay.h> 14 #include <linux/dma-mapping.h> 30 /* All registers are 8-bit width */ 119 /* 32-bit global registers only for i.MX7ULP/i.MX8x 124 /* 32-bit register definition */ 245 #define DRIVER_NAME "fsl-lpuart" 348 { .compatible = "fsl,vf610-lpuart", .data = &vf_data, }, 349 { .compatible = "fsl,ls1021a-lpuart", .data = &ls1021a_data, }, [all …]
|
/linux/arch/x86/platform/ts5500/ |
H A D | ts5500.c | 1 // 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/arch/arm/boot/dts/ti/omap/ |
H A D | am335x-pdu001.dts | 6 * Copyright (C) 2018 EETS GmbH - https://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 …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6dl-plybas.dts | 1 // 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 …]
|
H A D | imx6q-bosch-acc.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Support for the i.MX6-based Bosch ACC board. 8 * Copyright (C) 2019-2021 Bosch Thermotechnik GmbH, Matthias Winker <matthias.winker@bosch.com> 12 /dts-v1/; 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/leds/common.h> 20 compatible = "bosch,imx6q-acc", "fsl,imx6q"; 37 backlight_lvds: backlight-lvds { 38 compatible = "pwm-backlight"; 40 brightness-levels = <0 61 499 1706 4079 8022 13938 22237 33328 47623 65535>; [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mm-venice-gw73xx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/phy/phy-imx8-pcie.h> 17 led-controller { 18 compatible = "gpio-leds"; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&pinctrl_gpio_leds>; 22 led-0 { 26 default-state = "on"; [all …]
|
/linux/drivers/tty/ |
H A D | amiserial.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * associated with the registers and bits of 16550 compatible UARTS - 39 #include <linux/delay.h> 126 * ------------------------------------------------------------ 129 * This routines are called before setting or resetting tty->flow.stopped. 131 * ------------------------------------------------------------ 135 struct serial_state *info = tty->driver_data; in rs_stop() 139 if (info->IER & UART_IER_THRI) { in rs_stop() 140 info->IER &= ~UART_IER_THRI; in rs_stop() 152 struct serial_state *info = tty->driver_data; in rs_start() [all …]
|