Home
last modified time | relevance | path

Searched +full:rx +full:- +full:int +full:- +full:gpios (Results 1 – 25 of 131) sorted by relevance

123456

/linux-5.10/drivers/staging/iio/resolver/
Dad2s1210.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2010-2010 Analog Devices Inc.
78 static const struct ad2s1210_gpio gpios[] = { variable
86 static const unsigned int ad2s1210_resolution_value[] = { 10, 12, 14, 16 };
91 struct gpio_desc *gpios[5]; member
92 unsigned int fclkin;
93 unsigned int fexcit;
97 u8 rx[2] ____cacheline_aligned; member
101 static const int ad2s1210_mode_vals[4][2] = {
110 gpiod_set_value(st->gpios[AD2S1210_A0], ad2s1210_mode_vals[mode][0]); in ad2s1210_set_mode()
[all …]
/linux-5.10/Documentation/devicetree/bindings/net/can/
Dmicrochip,mcp251xfd.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 Microchip MCP2517FD and MCP2518FD stand-alone CAN controller device tree
12 - Marc Kleine-Budde <mkl@pengutronix.de>
17 - const: microchip,mcp2517fd
19 - const: microchip,mcp2518fd
21 - const: microchip,mcp251xfd
33 vdd-supply:
36 xceiver-supply:
[all …]
/linux-5.10/arch/arm/boot/dts/
Dsun7i-a20-pcduino3.dts5 * This file is dual-licensed: you can use it either under the terms
44 /dts-v1/;
45 #include "sun7i-a20.dtsi"
46 #include "sunxi-common-regulators.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
49 #include <dt-bindings/input/input.h>
50 #include <dt-bindings/interrupt-controller/irq.h>
54 compatible = "linksprite,pcduino3", "allwinner,sun7i-a20";
61 stdout-path = "serial0:115200n8";
65 compatible = "gpio-leds";
[all …]
Dsun4i-a10-pcduino.dts5 * This file is dual-licensed: you can use it either under the terms
44 /dts-v1/;
45 #include "sun4i-a10.dtsi"
46 #include "sunxi-common-regulators.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
49 #include <dt-bindings/input/input.h>
53 compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10";
60 stdout-path = "serial0:115200n8";
64 compatible = "gpio-leds";
68 gpios = <&pio 7 15 GPIO_ACTIVE_LOW>;
[all …]
Dam335x-osd3358-sm-red.dts1 //SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2018 Octavo Systems LLC - https://www.octavosystems.com/
9 /dts-v1/;
12 #include "am335x-osd335x-common.dtsi"
13 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/display/tda998x.h>
18 model = "Octavo Systems OSD3358-SM-RED";
19 compatible = "oct,osd3358-sm-refdesign", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
23 regulator-min-microvolt = <1800000>;
24 regulator-max-microvolt = <1800000>;
[all …]
Dr8a77470-iwg23s-sbc.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the iWave-RZ/G1C single board computer
8 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
12 model = "iWave iW-RainboW-G23S single board computer based on RZ/G1C";
22 stdout-path = "serial1:115200n8";
25 hdmi-out {
26 compatible = "hdmi-connector";
31 remote-endpoint = <&bridge_out>;
41 reg_1p8v: reg-1p8v {
[all …]
Dimx6qdl-udoo.dtsi1 // SPDX-License-Identifier: GPL-2.0
17 stdout-path = &uart2;
21 compatible = "gpio-backlight";
22 gpios = <&gpio1 4 0>;
23 default-on;
27 gpio-poweroff {
28 compatible = "gpio-poweroff";
29 gpios = <&gpio2 4 0>;
30 pinctrl-0 = <&pinctrl_power_off>;
31 pinctrl-names = "default";
[all …]
Dam335x-boneblue.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
5 /dts-v1/;
8 #include "am335x-osd335x-common.dtsi"
9 #include <dt-bindings/interrupt-controller/irq.h>
13 compatible = "ti,am335x-bone-blue", "ti,am33xx";
16 stdout-path = &uart0;
20 pinctrl-names = "default";
21 pinctrl-0 = <&user_leds_s0>;
23 compatible = "gpio-leds";
[all …]
/linux-5.10/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c1 // SPDX-License-Identifier: GPL-2.0+
14 * (C) 2005-2006 MontaVista Software, Inc.
28 #include <linux/dma-mapping.h>
50 static int cpm_uart_tx_pump(struct uart_port *port);
62 static unsigned int cpm_uart_tx_empty(struct uart_port *port) in cpm_uart_tx_empty()
66 cbd_t __iomem *bdp = pinfo->tx_bd_base; in cpm_uart_tx_empty()
67 int ret = 0; in cpm_uart_tx_empty()
70 if (in_be16(&bdp->cbd_sc) & BD_SC_READY) in cpm_uart_tx_empty()
73 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) { in cpm_uart_tx_empty()
80 pr_debug("CPM uart[%d]:tx_empty: %d\n", port->line, ret); in cpm_uart_tx_empty()
[all …]
/linux-5.10/drivers/tty/serial/
Dstm32-usart.c1 // SPDX-License-Identifier: GPL-2.0
8 * Inspired by st-asc.c from STMicroelectronics (c)
14 #include <linux/dma-direction.h>
16 #include <linux/dma-mapping.h>
35 #include "stm32-usart.h"
49 val = readl_relaxed(port->membase + reg); in stm32_set_bits()
51 writel_relaxed(val, port->membase + reg); in stm32_set_bits()
58 val = readl_relaxed(port->membase + reg); in stm32_clr_bits()
60 writel_relaxed(val, port->membase + reg); in stm32_clr_bits()
98 static int stm32_config_rs485(struct uart_port *port, in stm32_config_rs485()
[all …]
Dar933x_uart.c1 // SPDX-License-Identifier: GPL-2.0
3 * Atheros AR933X SoC built-in UART driver
31 #include <asm/mach-ath79/ar933x_uart.h>
35 #define DRIVER_NAME "ar933x-uart"
49 unsigned int ier; /* shadow Interrupt Enable Register */
50 unsigned int min_baud;
51 unsigned int max_baud;
53 struct mctrl_gpios *gpios; member
57 static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, in ar933x_uart_read()
58 int offset) in ar933x_uart_read()
[all …]
Dmxs-auart.c1 // SPDX-License-Identifier: GPL-2.0+
9 * Copyright 2014 Oleksij Rempel <linux@rempel-privat.de>
11 * Copyright 2008-2010 Freescale Semiconductor, Inc.
34 #include <linux/dma-mapping.h>
126 * RW. Tell the UART to execute the RX DMA Command. The
133 * RW. RX TIMEOUT Enable. Valid for FIFO and DMA.
134 * Warning: If this bit is set to 0, the RX timeout will not affect receive DMA
140 * RW. Receive Timeout Counter Value: number of 8-bit-time to wait before
141 * asserting timeout on the RX input. If the RXFIFO is not empty and the RX
142 * input is idle, then the watchdog counter will decrement each bit-time. Note
[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
83 unsigned int dma_size;
84 unsigned int ofs;
112 int may_wakeup; /* cached value of device_may_wakeup for times we need to disable it */
114 int break_active; /* break being received */
118 short pdc_rx_idx; /* current PDC RX buffer */
[all …]
Dimx.c1 // SPDX-License-Identifier: GPL-2.0+
30 #include <linux/dma-mapping.h>
33 #include <linux/platform_data/serial-imx.h>
34 #include <linux/platform_data/dma-imx.h>
125 #define UFCR_RFDIV_REG(x) (((x) < 7 ? 6 - (x) : 6) << 7)
154 #define UTS_LOOP (1<<12) /* Loop tx and rx */
161 /* We've been assigned a range on the "Low-density serial ports" major */
174 #define DRIVER_NAME "IMX-uart"
202 unsigned int old_status;
203 unsigned int have_rtscts:1;
[all …]
Dstm32-usart.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 #define DRIVER_NAME "stm32-usart"
30 int fifosize;
222 /* RX FIFO threashold set to half of its depth */
255 #define RX_BUF_L 200 /* dma rx buffer length */
256 #define RX_BUF_P RX_BUF_L /* dma rx buffer period */
263 struct dma_chan *rx_ch; /* dma rx channel */
264 dma_addr_t rx_dma_buf; /* dma rx buffer bus address */
265 unsigned char *rx_buf; /* dma rx buffer cpu address */
271 int last_res;
[all …]
Dpic32_uart.c1 // SPDX-License-Identifier: GPL-2.0+
8 * Sorin-Andrei Pistirica <andrei.pistirica@microchip.com>
27 #include <asm/mach-pic32/pic32.h>
31 #define PIC32_DEV_NAME "pic32-uart"
45 static inline int pic32_enable_clock(struct pic32_sport *sport) in pic32_enable_clock()
47 int ret = clk_prepare_enable(sport->clk); in pic32_enable_clock()
52 sport->ref_clk++; in pic32_enable_clock()
58 sport->ref_clk--; in pic32_disable_clock()
59 clk_disable_unprepare(sport->clk); in pic32_disable_clock()
63 static unsigned int pic32_uart_tx_empty(struct uart_port *port) in pic32_uart_tx_empty()
[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:
26 #include <linux/dma-mapping.h>
57 #include "sh-sci.h"
59 /* Offsets into the sci_port->irqs array */
73 ((port)->irqs[SCIx_ERI_IRQ] == \
74 (port)->irqs[SCIx_RXI_IRQ]) || \
75 ((port)->irqs[SCIx_ERI_IRQ] && \
[all …]
/linux-5.10/Documentation/devicetree/bindings/sound/
Dqcom,wcd9335.txt3 Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC, supports
5 the MSM8996, MSM8976, and MSM8956 chipsets. It has in-built
11 - compatible:
21 - reg
26 - interrupts
28 Value type: <prop-encoded-array>
31 - interrupt-names:
37 - reset-gpios:
42 - slim-ifc-dev:
47 - clocks:
[all …]
/linux-5.10/arch/arm64/boot/dts/qcom/
Dsc7180-trogdor.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
23 /delete-node/ &hyp_mem;
24 /delete-node/ &xbl_mem;
25 /delete-node/ &aop_mem;
26 /delete-node/ &sec_apps_mem;
27 /delete-node/ &tz_mem;
35 reserved-memory {
[all …]
/linux-5.10/sound/soc/intel/boards/
Dkbl_rt5660.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2018-19 Canonical Corporation.
27 #define KBL_RT5660_CODEC_DAI "rt5660-aif1"
38 int device;
64 { "lineout-mute-gpios", &lineout_mute_gpio, 1 },
65 { "lineout-det-gpios", &lineout_det_gpio, 1 },
66 { "mic-det-gpios", &mic_det_gpio, 1 },
81 .name = "lineout-det",
87 .name = "mic-det",
92 static int kabylake_5660_event_lineout(struct snd_soc_dapm_widget *w, in kabylake_5660_event_lineout()
[all …]
Dcht_bsw_max98090_ti.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-max98090.c - ASoc Machine driver for Intel Cherryview-based
24 #include <sound/soc-acpi.h>
27 #include "../atom/sst-atom-controls.h"
39 int quirks;
42 static int platform_clock_control(struct snd_soc_dapm_widget *w, in platform_clock_control()
43 struct snd_kcontrol *k, int event) in platform_clock_control()
45 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
46 struct snd_soc_card *card = dapm->card; in platform_clock_control()
49 int ret; in platform_clock_control()
[all …]
/linux-5.10/arch/arm/mach-pxa/
Dpxa27x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-pxa/pxa27x.c
12 #include <linux/dma/pxa-dma.h>
14 #include <linux/gpio-pxa.h>
24 #include <linux/platform_data/i2c-pxa.h>
34 #include <linux/platform_data/usb-ohci-pxa27x.h>
41 #include <linux/clk-provider.h>
58 void pxa27x_configure_ac97reset(int reset_gpio, bool to_gpio) in pxa27x_configure_ac97reset()
86 static unsigned int pwrmode = PWRMODE_SLEEP;
88 int pxa27x_set_pwrmode(unsigned int mode) in pxa27x_set_pwrmode()
[all …]
/linux-5.10/drivers/spi/
Dspi-at91-usart.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/dma-direction.h>
70 readl_relaxed((port)->regs + US_##reg)
72 writel_relaxed((value), (port)->regs + US_##reg)
75 readb_relaxed((port)->regs + US_##reg)
77 writeb_relaxed((value), (port)->regs + US_##reg)
93 int irq;
94 unsigned int current_tx_remaining_bytes;
95 unsigned int current_rx_remaining_bytes;
110 aus->current_rx_remaining_bytes = 0; in dma_callback()
[all …]
Dspi-pxa2xx.h1 /* SPDX-License-Identifier: GPL-2.0-only */
52 void *rx; member
55 int (*write)(struct driver_data *drv_data);
56 int (*read)(struct driver_data *drv_data);
62 /* GPIOs for chip selects */
82 unsigned int frm;
84 int gpio_cs_inverted;
85 int (*write)(struct driver_data *drv_data);
86 int (*read)(struct driver_data *drv_data);
93 return __raw_readl(drv_data->ioaddr + reg); in pxa2xx_spi_read()
[all …]
/linux-5.10/include/linux/amba/
Dpl022.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (C) 2008-2009 ST-Ericsson AB
11 * linux-2.6.17-rc3-mm1/drivers/spi/pxa2xx_spi.c
30 * enum ssp_interface - interfaces allowed for this SSP Controller
47 * enum ssp_hierarchy - whether SSP is configured as Master or Slave
55 * enum ssp_clock_params - clock parameters, to set SSP clock at a
64 * enum ssp_rx_endian - endianess of Rx FIFO Data
73 * enum ssp_tx_endian - endianess of Tx FIFO Data
81 * enum ssp_data_size - number of bits in one data element
97 * enum ssp_mode - SSP mode of operation (Communication modes)
[all …]

123456