Home
last modified time | relevance | path

Searched +full:serial +full:- +full:clk +full:- +full:low (Results 1 – 25 of 106) sorted by relevance

12345

/Linux-v6.1/Documentation/devicetree/bindings/leds/
Dleds-bcm6358.txt4 In these SoCs there are Serial LEDs (LEDs connected to a 74x164 controller),
5 which can either be controlled by software (exporting the 74x164 as spi-gpio.
10 - compatible : should be "brcm,bcm6358-leds".
11 - #address-cells : must be 1.
12 - #size-cells : must be 0.
13 - reg : BCM6358 LED controller address and size.
16 - brcm,clk-div : SCK signal divider. Possible values are 1, 2, 4 and 8.
18 - brcm,clk-dat-low : Boolean, makes clock and data signals active low.
21 Each LED is represented as a sub-node of the brcm,bcm6358-leds device.
23 LED sub-node required properties:
[all …]
Dleds-bcm6328.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-bcm6328.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Álvaro Fernández Rojas <noltari@gmail.com>
15 However, on some devices there are Serial LEDs (LEDs connected to a 74x164
17 as spi-gpio. See
20 Some of these Serial LEDs are hardware controlled (e.g. ethernet LEDs) and
21 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware
29 explained later in brcm,link-signal-sources). Even if a LED is hardware
[all …]
/Linux-v6.1/drivers/atm/
Dnicstarmac.c1 // SPDX-License-Identifier: GPL-2.0
27 /* Write Data To EEProm from SI line on rising edge of CLK */
28 /* Read Data From EEProm on falling edge of CLK */
31 #define CS_LOW 0x0000 /* Chip select low (active low) */
33 #define CLK_LOW 0x0000 /* Clock low */
34 #define SI_HIGH 0x0001 /* Serial input data high */
35 #define SI_LOW 0x0000 /* Serial input data low */
132 /* Done sending instruction - now pull data off of bit 16, MSB first */
136 for (i = 7, j = 0; i >= 0; i--) {
173 for (i = 7; i >= 0; i--) { in read_eprom_byte()
[all …]
/Linux-v6.1/arch/arm64/boot/dts/mediatek/
Dmt7622-bananapi-bpi-r64.dts5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
17 model = "Bananapi BPI-R64";
18 compatible = "bananapi,bpi-r64", "mediatek,mt7622";
25 stdout-path = "serial0:115200n8";
31 proc-supply = <&mt6380_vcpu_reg>;
32 sram-supply = <&mt6380_vm_reg>;
[all …]
/Linux-v6.1/sound/soc/ti/
Ddavinci-i2s.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * based on davinci-mcasp.c DT support
21 #include <linux/clk.h>
31 #include "edma-pcm.h"
32 #include "davinci-i2s.h"
34 #define DRV_NAME "davinci-i2s"
39 * - This driver supports the "Audio Serial Port" (ASP),
42 * - But it labels it a "Multi-channel Buffered Serial Port"
44 * backward-compatible, possibly explaining that confusion.
46 * - OMAP chips have a controller called McBSP, which is
[all …]
/Linux-v6.1/include/uapi/linux/
Dtty_flags.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
29 #define ASYNCB_LOW_LATENCY 13 /* Request low latency behaviour */
33 #define ASYNCB_MAGIC_MULTIPLIER 16 /* Use special CLK or divisor */
37 * Internal flags used only by kernel (read-only)
40 * TTY_PORT_ flags in the iflags field (and not userspace-visible)
43 #define ASYNCB_INITIALIZED 31 /* Serial port was initialized */
44 #define ASYNCB_SUSPENDED 30 /* Serial port is suspended */
47 #define ASYNCB_CLOSING 27 /* Serial port is closing */
75 #define ASYNC_FLAGS ((1U << (ASYNCB_LAST_USER + 1)) - 1)
94 #define ASYNC_INTERNAL_FLAGS (~((1U << ASYNCB_FIRST_KERNEL) - 1))
/Linux-v6.1/drivers/leds/
Dleds-bcm6328.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for BCM6328 memory-mapped LEDs, based on leds-syscon.c
59 * struct bcm6328_led - state container for bcm6328 based LEDs
66 * @active_low: LED is active low
98 * bits [31:0] -> LEDs 8-23
99 * bits [47:32] -> LEDs 0-7
100 * bits [63:48] -> unused
105 return pin + 16; /* LEDs 0-7 (bits 47:32) */ in bcm6328_pin2shift()
107 return pin - 8; /* LEDs 8-23 (bits 31:0) */ in bcm6328_pin2shift()
115 shift = bcm6328_pin2shift(led->pin); in bcm6328_led_mode()
[all …]
/Linux-v6.1/arch/m68k/atari/
Ddebug.c4 * Atari debugging and serial console stuff
6 * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
31 .index = -1,
45 while (count--) { in atari_mfp_console_write()
64 while (count--) { in atari_scc_console_write()
81 while (count--) { in atari_midi_console_write()
91 /* This a some-seconds timeout in case no printer is connected */ in ata_par_out()
94 while ((st_mfp.par_dt_reg & 1) && --i) /* wait for BUSY == L */ in ata_par_out()
117 while (count--) { in atari_par_console_write()
158 * SCC serial ports. They're used by the debugging interface, kgdb, and the
[all …]
/Linux-v6.1/arch/arm/mach-davinci/
Dboard-dm355-leopard.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Based on board-dm355-evm.c
16 #include <linux/clk.h>
19 #include <linux/platform_data/i2c-davinci.h>
20 #include <linux/platform_data/mmc-davinci.h>
21 #include <linux/platform_data/mtd-davinci.h>
22 #include <linux/platform_data/usb-davinci.h>
24 #include <asm/mach-types.h>
28 #include "serial.h"
40 /* UBL (a few copies) plus U-Boot */
[all …]
/Linux-v6.1/arch/microblaze/boot/dts/
Dsystem.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * (C) Copyright 2007-2008 Xilinx, Inc.
6 * (C) Copyright 2007-2009 Michal Simek
13 * XPS project directory: Xilinx-ML505-ll_temac-sgdma-MMU-FDT-edk101
16 /dts-v1/;
18 #address-cells = <1>;
19 #size-cells = <1>;
32 stdout-path = "/plb@0/serial@84000000";
35 #address-cells = <1>;
37 #size-cells = <0>;
[all …]
/Linux-v6.1/drivers/bluetooth/
Dbtmtkuart.c1 // SPDX-License-Identifier: GPL-2.0
5 * Bluetooth support for MediaTek serial devices
13 #include <linux/clk.h>
59 struct clk *clk; member
60 struct clk *osc;
85 ((bdev)->data->flags & BTMTKUART_FLAG_STANDALONE_HW)
87 !((bdev)->data->flags & BTMTKUART_FLAG_STANDALONE_HW)
101 hlen = sizeof(*hdr) + wmt_params->dlen; in mtk_hci_wmt_sync()
103 err = -EINVAL; in mtk_hci_wmt_sync()
109 err = -ENOMEM; in mtk_hci_wmt_sync()
[all …]
/Linux-v6.1/drivers/tty/serial/
Datmel_serial.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for Atmel AT91 Serial ports
7 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
16 #include <linux/serial.h>
17 #include <linux/clk.h>
18 #include <linux/clk-provider.h>
25 #include <linux/dma-mapping.h>
48 * high and low thresholds
63 /* Use device name ttyAT, major 204 and minor 154-169. This is necessary if we
72 /* Use device name ttyS, major 4, minor 64-68. This is the usual serial port
[all …]
Dsh-sci.c1 // SPDX-License-Identifier: GPL-2.0
3 * SuperH on-chip serial module support. (SCI with no FIFO / with FIFO)
5 * Copyright (C) 2002 - 2011 Paul Mundt
9 * based off of the old drivers/char/sh-sci.c by:
13 * Modified to support multiple serial ports. Stuart Menefy (May 2000).
20 #include <linux/clk.h>
26 #include <linux/dma-mapping.h>
42 #include <linux/serial.h>
58 #include "sh-sci.h"
60 /* Offsets into the sci_port->irqs array */
[all …]
Dstm32-usart.c1 // SPDX-License-Identifier: GPL-2.0
9 * Inspired by st-asc.c from STMicroelectronics (c)
12 #include <linux/clk.h>
15 #include <linux/dma-direction.h>
17 #include <linux/dma-mapping.h>
29 #include <linux/serial.h>
36 #include "stm32-usart.h"
120 val = readl_relaxed(port->membase + reg); in stm32_usart_set_bits()
122 writel_relaxed(val, port->membase + reg); in stm32_usart_set_bits()
129 val = readl_relaxed(port->membase + reg); in stm32_usart_clr_bits()
[all …]
/Linux-v6.1/drivers/tty/serial/8250/
D8250_dw.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/clk.h>
72 struct dw8250_data *d = to_dw8250_data(p->private_data); in dw8250_modify_msr()
76 value |= d->msr_mask_on; in dw8250_modify_msr()
77 value &= ~d->msr_mask_off; in dw8250_modify_msr()
95 if (up->fcr & UART_FCR_ENABLE_FIFO) { in dw8250_force_idle()
96 lsr = p->serial_in(p, UART_LSR); in dw8250_force_idle()
101 (void)p->serial_in(p, UART_RX); in dw8250_force_idle()
106 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr()
110 while (tries--) { in dw8250_check_lcr()
[all …]
/Linux-v6.1/drivers/media/i2c/
Dtw9910.c1 // SPDX-License-Identifier: GPL-2.0
13 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net>
18 #include <linux/clk.h>
26 #include <linux/v4l2-mediabus.h>
30 #include <media/v4l2-subdev.h>
46 #define VDELAY_LO 0x08 /* Vertical Delay Register, Low */
47 #define VACTIVE_LO 0x09 /* Vertical Active Register, Low */
48 #define HDELAY_LO 0x0A /* Horizontal Delay Register, Low */
49 #define HACTIVE_LO 0x0B /* Horizontal Active Register, Low */
51 #define VSCALE_LO 0x0D /* Vertical Scaling Register, Low */
[all …]
/Linux-v6.1/drivers/media/pci/cx23885/
Dcx23885-cards.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <media/drv-intf/cx25840.h>
19 #include "netup-eeprom.h"
20 #include "netup-init.h"
21 #include "altera-ci.h"
24 #include "cx23888-ir.h"
29 "NetUP Dual DVB-T/C CI card revision");
35 "\t\t\tHVR-1250 (reported safe)\n"
41 /* ------------------------------------------------------------------ */
64 .name = "Hauppauge WinTV-HVR1800lp",
[all …]
/Linux-v6.1/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
14 i.e. a LED will turn on/off in response to a GPIO line going high or low
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with
29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
32 - extcon-gpio: drivers/extcon/extcon-gpio.c is used when you need to read an
[all …]
/Linux-v6.1/drivers/auxdisplay/
Dpanel.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
5 * Copyright (C) 2016-2017 Glider bvba
10 * The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit
11 * serial module compatible with Samsung's KS0074. The pins may be connected in
15 * data output pins or to the ground. The combinations have to be hard-coded
22 * - the initialization/deinitialization process is very dirty and should
26 * - document 24 keys keyboard (3 rows of 8 cols, 32 diodes + 2 inputs)
27 * - make the LCD a part of a virtual screen of Vx*Vy
28 * - make the inputs list smp-safe
[all …]
/Linux-v6.1/arch/mips/ar7/
Dplatform.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include <linux/dma-mapping.h>
13 #include <linux/serial.h>
24 #include <linux/clk.h>
27 #include <asm/mach-ar7/ar7.h>
28 #include <asm/mach-ar7/prom.h>
42 struct plat_vlynq_data *pdata = dev->dev.platform_data; in vlynq_on()
44 ret = gpio_request(pdata->gpio_bit, "vlynq"); in vlynq_on()
48 ar7_device_reset(pdata->reset_bit); in vlynq_on()
50 ret = ar7_gpio_disable(pdata->gpio_bit); in vlynq_on()
[all …]
/Linux-v6.1/drivers/pinctrl/
Dpinctrl-gemini.c6 * This is a group-only pin controller.
17 #include <linux/pinctrl/pinconf-generic.h>
22 #include "pinctrl-utils.h"
24 #define DRIVER_NAME "pinctrl-gemini"
27 * struct gemini_pin_conf - information about configuring a pin
39 * struct gemini_pmx - state holder for the gemini pin controller
62 * struct gemini_pin_group - describes a Gemini pin group
65 * from the driver-local pin enumeration space
83 /* Some straight-forward control registers */
96 * - For the bits named *_ENABLE, once you DISABLE something, it simply cannot
[all …]
/Linux-v6.1/arch/arm/mach-omap2/
Domap_hwmod_3xxx_data.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips
5 * Copyright (C) 2009-2011 Nokia Corporation
12 * XXX these should be marked initdata for multi-OMAP kernels
15 #include <linux/platform_data/i2c-omap.h>
17 #include <linux/platform_data/hsmmc-omap.h>
25 #include "prm-regbits-34xx.h"
26 #include "cm-regbits-34xx.h"
30 #include "serial.h"
37 * is driver-specific or driver-kernel integration-specific belongs
[all …]
/Linux-v6.1/drivers/usb/serial/
Dkeyspan.c1 // SPDX-License-Identifier: GPL-2.0+
3 Keyspan USB to Serial Converter driver
5 (C) Copyright (C) 2000-2001 Hugh Blemings <hugh@blemings.org>
6 (C) Copyright (C) 2002 Greg Kroah-Hartman <greg@kroah.com>
11 from Brian Warner's original Keyspan-PDA driver.
14 and Keyspan, Inc the manufacturers of the Keyspan USB-serial products.
38 #include <linux/usb/serial.h>
42 #define DRIVER_DESC "Keyspan USB to Serial Converter Driver"
63 static int keyspan_usa28_send_setup(struct usb_serial *serial,
66 static int keyspan_usa26_send_setup(struct usb_serial *serial,
[all …]
/Linux-v6.1/include/linux/ssb/
Dssb_driver_chipcommon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * gpio interface, extbus, and support for serial and parallel flashes.
30 #define SSB_CHIPCO_CAP_UARTGPIO 0x00000020 /* UARTs on GPIO 15-12 */
34 #define SSB_CHIPCO_FLASHT_STSER 0x00000100 /* ST serial flash */
35 #define SSB_CHIPCO_FLASHT_ATSER 0x00000200 /* Atmel serial flash */
52 #define SSB_CHIPCO_CAP_64BIT 0x08000000 /* 64-bit Backplane */
58 #define SSB_CHIPCO_CORECTL_SE 0x00000002 /* sync clk out enable (corerev >= 3) */
169 #define SSB_CHIPCO_SYSCLKCTL_IDLPEN 0x00000001 /* ILPen: Enable Idle Low Power */
170 #define SSB_CHIPCO_SYSCLKCTL_ALPEN 0x00000002 /* ALPen: Enable Active Low Power */
267 #define SSB_PMU0_PLLCTL1_WILD_IMSK 0xF0000000 /* Wild int mask (low nibble) */
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Drv1108.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/interrupt-controller/irq.h>
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/clock/rv1108-cru.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include <dt-bindings/thermal/thermal.h>
10 #address-cells = <1>;
11 #size-cells = <1>;
15 interrupt-parent = <&gic>;
[all …]

12345