| /OK3568_Linux_fs/kernel/drivers/staging/iio/resolver/ |
| H A D | ad2s1210.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/cpm_uart/ |
| H A D | cpm_uart_core.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | stm32-usart.c | 1 // 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_usart_set_bits() 51 writel_relaxed(val, port->membase + reg); in stm32_usart_set_bits() 58 val = readl_relaxed(port->membase + reg); in stm32_usart_clr_bits() 60 writel_relaxed(val, port->membase + reg); in stm32_usart_clr_bits() 100 static int stm32_usart_config_rs485(struct uart_port *port, in stm32_usart_config_rs485() [all …]
|
| H A D | ar933x_uart.c | 1 // 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 …]
|
| H A D | mxs-auart.c | 1 // 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 …]
|
| H A D | atmel_serial.c | 1 // 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 …]
|
| H A D | imx.c | 1 // 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 …]
|
| H A D | pic32_uart.c | 1 // 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 …]
|
| H A D | stm32-usart.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #define DRIVER_NAME "stm32-usart" 30 int fifosize; 219 /* RX FIFO threashold set to half of its depth */ 252 #define RX_BUF_L 200 /* dma rx buffer length */ 253 #define RX_BUF_P RX_BUF_L /* dma rx buffer period */ 260 struct dma_chan *rx_ch; /* dma rx channel */ 261 dma_addr_t rx_dma_buf; /* dma rx buffer bus address */ 262 unsigned char *rx_buf; /* dma rx buffer cpu address */ 268 int last_res; [all …]
|
| H A D | sh-sci.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/can/ |
| H A D | microchip,mcp251xfd.yaml | 1 # 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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | sun7i-a20-pcduino3.dts | 5 * 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 …]
|
| H A D | sun4i-a10-pcduino.dts | 5 * 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 …]
|
| H A D | imx6qdl-udoo.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/gpio/gpio.h> 19 stdout-path = &uart2; 23 compatible = "gpio-backlight"; 24 gpios = <&gpio1 4 0>; 25 default-on; 29 gpio-poweroff { 30 compatible = "gpio-poweroff"; 31 gpios = <&gpio2 4 0>; 32 pinctrl-0 = <&pinctrl_power_off>; [all …]
|
| H A D | am335x-osd3358-sm-red.dts | 1 //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 …]
|
| H A D | r8a77470-iwg23s-sbc.dts | 1 // 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 …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | sun7i-a20-pcduino3.dts | 5 * 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> 51 #include <dt-bindings/pinctrl/sun4i-a10.h> 55 compatible = "linksprite,pcduino3", "allwinner,sun7i-a20"; 62 stdout-path = "serial0:115200n8"; [all …]
|
| H A D | sun4i-a10-pcduino.dts | 5 * 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> 50 #include <dt-bindings/pinctrl/sun4i-a10.h> 54 compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10"; 61 stdout-path = "serial0:115200n8"; 65 compatible = "gpio-leds"; [all …]
|
| H A D | armada-388-clearfog.dts | 11 * This file is dual-licensed: you can use it either under the terms 49 /dts-v1/; 50 #include <dt-bindings/input/input.h> 51 #include <dt-bindings/gpio/gpio.h> 52 #include "armada-388.dtsi" 56 compatible = "solidrun,clearfog-a1", "marvell,armada388", 60 /* So that mvebu u-boot can update the MAC addresses */ 67 stdout-path = "serial0:115200n8"; 75 reg_3p3v: regulator-3p3v { 76 compatible = "regulator-fixed"; [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/ |
| H A D | qcom,wcd9335.txt | 3 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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | pic32_spi.c | 7 * SPDX-License-Identifier: GPL-2.0+ 20 #include <dt-bindings/clock/microchip,clock.h> 38 #define PIC32_SPI_CTRL_SMP BIT(9) /* Rx at middle or end of tx */ 68 u32 speed_hz; /* spi-clk rate */ 69 int mode; 74 const void *rx; member 85 writel(PIC32_SPI_CTRL_ON, &priv->regs->ctrl.set); in pic32_spi_enable() 90 writel(PIC32_SPI_CTRL_ON, &priv->regs->ctrl.clr); in pic32_spi_disable() 95 u32 sr = readl(&priv->regs->status.raw); in pic32_spi_rx_fifo_level() 102 u32 sr = readl(&priv->regs->status.raw); in pic32_spi_tx_fifo_level() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/qcom/ |
| H A D | sc7180-trogdor.dtsi | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/boards/ |
| H A D | kbl_rt5660.c | 1 // 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 …]
|
| H A D | cht_bsw_max98090_ti.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-at91-usart.c | 1 // 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 …]
|