Home
last modified time | relevance | path

Searched +full:baud +full:- +full:rate (Results 1 – 25 of 232) sorted by relevance

12345678910

/linux-6.14.4/Documentation/devicetree/bindings/serial/
Dnvidia,tegra20-hsuart.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/serial/nvidia,tegra20-hsuart.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Thierry Reding <[email protected]>
11 - Jon Hunter <[email protected]>
16 - enum:
17 - nvidia,tegra20-hsuart
18 - nvidia,tegra30-hsuart
19 - nvidia,tegra186-hsuart
[all …]
Dserial-peripheral-props.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/serial/serial-peripheral-props.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Common Properties for Serial-attached Devices
10 - Rob Herring <[email protected]>
11 - Greg Kroah-Hartman <[email protected]>
15 controller, might need similar properties, e.g. for configuring the baud
16 rate.
19 max-speed:
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/w1/
Dw1-uart.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/w1/w1-uart.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: UART 1-Wire Bus
10 - Christoph Winklhofer <[email protected]>
13 UART 1-wire bus. Utilizes the UART interface via the Serial Device Bus
14 to create the 1-Wire timing patterns.
16 The UART peripheral must support full-duplex and operate in open-drain
18 baud-rate and transmitted byte, which corresponds to a 1-Wire read bit,
[all …]
/linux-6.14.4/Documentation/misc-devices/
Doxsemi-tornado.rst1 .. SPDX-License-Identifier: GPL-2.0
10 The baud rate produced by the baud generator is obtained from this input
12 value from 1 to 63.875 in increments of 0.125, and then the usual 16-bit
14 value from 1 to 65535. Finally a programmable oversampling rate is used
16 determine the actual baud rate used. Baud rates from 15625000bps down
19 By default the oversampling rate is set to 16 and the clock prescaler is
21 for the usual 16-bit divisor is 115313.653, which is close enough to the
23 used for the divisor to obtain the requested baud rates by software that
26 The oversampling rate is programmed with the TCR register and the clock
38 obtained, with either exact or highly-accurate actual bit rates for
[all …]
/linux-6.14.4/Documentation/w1/masters/
Dw1-uart.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
4 Kernel driver w1-uart
11 -----------
13 UART 1-Wire bus driver. The driver utilizes the UART interface via the
14 Serial Device Bus to create the 1-Wire timing patterns as described in
15 the document `"Using a UART to Implement a 1-Wire Bus Master"`_.
17 …g a UART to Implement a 1-Wire Bus Master": https://www.analog.com/en/technical-articles/using-a-u…
19 In short, the UART peripheral must support full-duplex and operate in
20 open-drain mode. The timing patterns are generated by a specific
21 combination of baud-rate and transmitted byte, which corresponds to a
[all …]
/linux-6.14.4/drivers/tty/serial/
Dsuncore.c1 // SPDX-License-Identifier: GPL-2.0
32 drv->minor = sunserial_current_minor; in sunserial_register_minors()
33 drv->nr += count; in sunserial_register_minors()
35 if (drv->nr == count) in sunserial_register_minors()
39 drv->tty_driver->name_base = drv->minor - 64; in sunserial_register_minors()
47 drv->nr -= count; in sunserial_unregister_minors()
48 sunserial_current_minor -= count; in sunserial_unregister_minors()
50 if (drv->nr == 0) in sunserial_unregister_minors()
61 drv->cons = con; in sunserial_console_match()
78 con->index = line; in sunserial_console_match()
[all …]
Dxilinx_uartps.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2011 - 2014 Xilinx, Inc.
7 * This driver has originally been pushed by Xilinx using a Zynq-branding. This
42 MODULE_PARM_DESC(rx_trigger_level, "Rx trigger level, 1-63 bytes");
47 MODULE_PARM_DESC(rx_timeout, "Rx timeout, 1-255");
56 #define CDNS_UART_BAUDGEN 0x18 /* Baud Rate Generator */
63 #define CDNS_UART_BAUDDIV 0x34 /* Baud Rate Divider */
90 #define CDNS_UART_MR_CLKSEL 0x00000001 /* Pre-scalar selection */
183 /* baud dividers min/max values */
190 * struct cdns_uart - device data
[all …]
Dserial-tegra.c1 // SPDX-License-Identifier: GPL-2.0
5 * High-speed serial driver for NVIDIA Tegra SoCs
7 * Copyright (c) 2012-2019, NVIDIA CORPORATION. All rights reserved.
16 #include <linux/dma-mapping.h>
159 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read()
165 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write()
178 * RI - Ring detector is active in tegra_uart_get_mctrl()
179 * CD/DCD/CAR - Carrier detect is always active. For some reason in tegra_uart_get_mctrl()
181 * DSR - Data Set ready is active as the hardware doesn't support it. in tegra_uart_get_mctrl()
183 * CTS - Clear to send. Always set to active, as the hardware handles in tegra_uart_get_mctrl()
[all …]
Dip22zilog.h1 /* SPDX-License-Identifier: GPL-2.0 */
32 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
126 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
136 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
138 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
181 /* Write Register 12 (lower byte of baud rate generator time constant) */
183 /* Write Register 13 (upper byte of baud rate generator time constant) */
186 #define BRENAB 1 /* Baud rate generator enable */
187 #define BRSRC 2 /* Baud rate generator source */
235 /* Read Register 2 (channel b only) - Interrupt vector */
[all …]
Dvt8500_serial.c1 // SPDX-License-Identifier: GPL-2.0
33 #define VT8500_URDIV 0x0008 /* Clock/Baud rate divisor */
74 #define VT8500_CS8 (1 << 2) /* 8-bit data length (vs. 7-bit) */
83 #define VT8500_SWRTSCTS (1 << 11) /* Software-controlled RTS/CTS */
86 * Capability flags (driver-internal)
106 * have been allocated as we can't use pdev->id in
114 writel(val, port->membase + off); in vt8500_write()
119 return readl(port->membase + off); in vt8500_read()
128 vt8500_port->ier &= ~TX_FIFO_INTS; in vt8500_stop_tx()
129 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_stop_tx()
[all …]
Dzs.h1 /* SPDX-License-Identifier: GPL-2.0 */
38 * Per-SCC state for locking and the interrupt handler.
53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
144 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
154 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
156 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
200 /* Write Register 12 (Lower Byte of Baud Rate Generator Time Constant) */
202 /* Write Register 13 (Upper Byte of Baud Rate Generator Time Constant) */
205 #define BRENABL 1 /* Baud rate generator enable */
206 #define BRSRC 2 /* Baud rate generator source */
[all …]
Dsunzilog.h1 /* SPDX-License-Identifier: GPL-2.0 */
24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
118 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
128 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
130 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
183 /* Write Register 12 (lower byte of baud rate generator time constant) */
185 /* Write Register 13 (upper byte of baud rate generator time constant) */
188 #define BRENAB 1 /* Baud rate generator enable */
189 #define BRSRC 2 /* Baud rate generator source */
239 /* Read Register 2 (channel b only) - Interrupt vector */
[all …]
/linux-6.14.4/drivers/tty/
Dtty_baudrate.c1 // SPDX-License-Identifier: GPL-2.0
15 * Routine which returns the baud rate of the tty
50 * Convert termios baud rate data into a speed. This should be called
53 * ->c_[io]speed directly as they are updated.
62 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate()
66 return termios->c_ospeed; in tty_termios_baud_rate()
80 * Convert termios baud rate data into a speed. This should be called
83 * ->c_[io]speed directly as they are updated.
90 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate()
97 return termios->c_ispeed; in tty_termios_input_baud_rate()
[all …]
/linux-6.14.4/include/soc/fsl/qe/
Dqe.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
35 QE_BRG1, /* Baud Rate Generator 1 */
36 QE_BRG2, /* Baud Rate Generator 2 */
37 QE_BRG3, /* Baud Rate Generator 3 */
38 QE_BRG4, /* Baud Rate Generator 4 */
39 QE_BRG5, /* Baud Rate Generator 5 */
40 QE_BRG6, /* Baud Rate Generator 6 */
41 QE_BRG7, /* Baud Rate Generator 7 */
42 QE_BRG8, /* Baud Rate Generator 8 */
43 QE_BRG9, /* Baud Rate Generator 9 */
[all …]
/linux-6.14.4/drivers/tty/serial/8250/
D8250_bcm7271.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * 8250-core based driver for Broadcom ns16550a UARTs
7 * optional features including the ability to use a baud rate clock
8 * mux for more accurate high speed baud rate selection and also
20 #include <linux/dma-mapping.h>
158 #define UDMA_RX_BUFS_REG_OFFSET (UDMA_RX_BUF1_PTR_LO - UDMA_RX_BUF0_PTR_LO)
170 #define UDMA_TX_BUFS_REG_OFFSET (UDMA_TX_BUF1_PTR_LO - UDMA_TX_BUF0_PTR_LO)
250 return readl(priv->regs[reg_type] + offset); in udma_readl()
256 writel(value, priv->regs[reg_type] + offset); in udma_writel()
262 void __iomem *reg = priv->regs[reg_type] + offset; in udma_set()
[all …]
D8250_mtk.c1 // SPDX-License-Identifier: GPL-2.0+
19 #include <linux/dma-mapping.h>
28 #define MTK_UART_RATE_FIX 0x0d /* UART Rate Fix Register */
94 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_rx_complete()
95 struct mtk8250_data *data = up->port.private_data; in mtk8250_dma_rx_complete()
96 struct tty_port *tty_port = &up->port.state->port; in mtk8250_dma_rx_complete()
102 if (data->rx_status == DMA_RX_SHUTDOWN) in mtk8250_dma_rx_complete()
105 uart_port_lock_irqsave(&up->port, &flags); in mtk8250_dma_rx_complete()
107 dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in mtk8250_dma_rx_complete()
108 total = dma->rx_size - state.residue; in mtk8250_dma_rx_complete()
[all …]
/linux-6.14.4/drivers/w1/masters/
Dw1-uart.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * w1-uart - UART 1-Wire bus driver
5 * Uses the UART interface (via Serial Device Bus) to create the 1-Wire
6 * timing patterns. Implements the following 1-Wire master interface:
8 * - reset_bus: requests baud-rate 9600
10 * - touch_bit: requests baud-rate 115200
27 /* Timeout to wait for completion of serdev-receive */
31 * struct w1_uart_config - configuration for 1-Wire operation
32 * @baudrate: baud-rate returned from serdev
33 * @delay_us: delay to complete a 1-Wire cycle (in us)
[all …]
/linux-6.14.4/drivers/media/rc/
Dite-cir.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
9 #define ITE_DRIVER_NAME "ite-cir"
34 /* hw-specific operation function pointers; most of these must be
98 /* duty cycle, 0-100 */
111 /* baud rate divisor default */
114 /* low-speed carrier frequency limits (Hz) */
118 /* high-speed carrier frequency limits (Hz) */
130 * n in RDCR produces a tolerance of +/- n * 6.25% around the center
135 * frequency A = (H - L) / (H + L). We can use this in order to honor the
136 * s_rx_carrier_range() call in ir-core. We'll suppose that any request
[all …]
/linux-6.14.4/drivers/usb/serial/
Dkeyspan.c1 // SPDX-License-Identifier: GPL-2.0+
5 (C) Copyright (C) 2000-2001 Hugh Blemings <[email protected]>
6 (C) Copyright (C) 2002 Greg Kroah-Hartman <[email protected]>
11 from Brian Warner's original Keyspan-PDA driver.
14 and Keyspan, Inc the manufacturers of the Keyspan USB-serial products.
79 /* Values used for baud rate calculation - device specific */
80 #define KEYSPAN_INVALID_BAUD_RATE (-1)
96 * usb-serial probe function.
100 /* Product IDs for the products supported, pre-renumeration */
115 * Product IDs post-renumeration. Note that the 28x and 28xb have the same
[all …]
Dpl2303.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2001-2007 Greg Kroah-Hartman ([email protected])
10 * See Documentation/usb/usb-serial.rst for more information on using this
248 struct device *dev = &serial->interface->dev; in pl2303_vendor_read()
252 if (spriv->type == &pl2303_type_data[TYPE_HXN]) in pl2303_vendor_read()
257 res = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in pl2303_vendor_read()
261 dev_err(dev, "%s - failed to read [%04x]: %d\n", __func__, in pl2303_vendor_read()
264 res = -EIO; in pl2303_vendor_read()
269 dev_dbg(dev, "%s - [%04x] = %02x\n", __func__, value, buf[0]); in pl2303_vendor_read()
277 struct device *dev = &serial->interface->dev; in pl2303_vendor_write()
[all …]
Dmct_u232.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Definitions for MCT (Magic Control Technology) USB-RS232 Converter Driver
7 * This driver is for the device MCT USB-RS232 Converter (25 pin, Model No.
8 * U232-P25) from Magic Control Technology Corp. (there is also a 9 pin
9 * Model No. U232-P9). See http://www.mct.com.tw/products/product_us232.html
11 * of this file. This device was used in the Dlink DSB-S25.
24 /* U232-P25, Sitecom */
27 /* DU-H3SP USB BAY hub */
28 #define MCT_U232_DU_H3SP_PID 0x0200 /* D-Link DU-H3SP USB BAY */
30 /* Belkin badge the MCT U232-P9 as the F5U109 */
[all …]
/linux-6.14.4/Documentation/ABI/testing/
Dsysfs-platform-kim11 firmware. The name exposed is read from the user-space
19 The maximum reliable baud-rate the host can support.
20 Different platforms tend to have different high-speed
21 UART configurations, so the baud-rate needs to be set
22 locally and also sent across to the WL128x via a HCI-VS
23 command. The entry is read and made use by the user-space
33 to have the capability of flow-control, or else this
43 transport driver, which will signal the user-space for opening,
44 configuring baud and install line discipline via this sysfs
45 entry. This entry would be polled upon by the user-space
/linux-6.14.4/drivers/net/hamradio/
Dz8530.h1 /* SPDX-License-Identifier: GPL-2.0 */
91 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
100 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
102 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
145 /* Write Register 12 (lower byte of baud rate generator time constant) */
147 /* Write Register 13 (upper byte of baud rate generator time constant) */
150 #define BRENABL 1 /* Baud rate generator enable */
151 #define BRSRC 2 /* Baud rate generator source */
199 /* Read Register 2 (channel b only) - Interrupt vector */
217 /* Read Register 12 (lower byte of baud rate generator constant) */
[all …]
Dbaycom_ser_fdx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * baycom_ser_fdx.c -- baycom ser12 fullduplex radio modem driver.
7 * Copyright (C) 1996-2000 Thomas Sailer ([email protected])
15 * ser12: This is a very simple 1200 baud AFSK modem. The modem consists only
24 * TXD pin of the serial port. Thus a contiguous stream of 0x00-bytes
27 * hsk: This is a 4800 baud FSK modem, designed for TNC use. It works fine
28 * in 'baycom-mode' :-) In contrast to the TCM3105 modem, power is
29 * externally supplied. So there's no need to provide the 0x00-byte-stream
37 * '#' denotes the baud rate / 100, eg. ser12* is '1200 baud, soft DCD'
39 * baud baud rate (between 300 and 4800)
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/sound/
Dserial-midi.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 ---
5 $id: http://devicetree.org/schemas/sound/serial-midi.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Daniel Kaehn <[email protected]>
19 Can only be set to use standard baud rates corresponding to supported rates of the
20 parent serial device. If the standard MIDI baud of 31.25 kBaud is needed
22 configure the clocks of the parent serial device so that a requested baud of 38.4 kBaud
23 results in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default)
26 - $ref: /schemas/serial/serial-peripheral-props.yaml#
[all …]

12345678910