Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:ctrl1 (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/drivers/input/rmi4/
H A Drmi_f3a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2020 Synaptics Incorporated
41 u16 key_code = f3a->gpio_key_map[button]; in rmi_f3a_report_button()
42 bool key_down = !(f3a->data_regs[0] & BIT(button)); in rmi_f3a_report_button()
44 if (f3a->trackstick_buttons && in rmi_f3a_report_button()
47 rmi_f03_overwrite_button(f3a->f03, key_code, key_down); in rmi_f3a_report_button()
49 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f3a_report_button()
52 input_report_key(f3a->input, key_code, key_down); in rmi_f3a_report_button()
59 struct f3a_data *f3a = dev_get_drvdata(&fn->dev); in rmi_f3a_attention()
60 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f3a_attention()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-mpc52xx.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/gpio/consumer.h>
30 MODULE_DESCRIPTION("MPC52xx SPI (non-PSC) Driver");
103 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel()
104 cs = spi_get_chipselect(ms->message->spi, 0); in mpc52xx_spi_chipsel()
105 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel()
107 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel()
118 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer()
119 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer()
120 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer()
[all …]
/openbmc/linux/drivers/pinctrl/intel/
H A Dpinctrl-cherryview.c1 // SPDX-License-Identifier: GPL-2.0
8 * This driver is based on the original Cherryview GPIO driver by
15 #include <linux/gpio/driver.h>
23 #include <linux/pinctrl/pinconf-generic.h>
28 #include "pinctrl-intel.h"
81 * struct intel_community_context - community context for Cherryview
82 * @intr_lines: Mapping between 16 HW interrupt wires and GPIO offset (in GPIO number space)
97 .size = (end) - (start) + 1, \
270 * Southwest community can generate GPIO interrupts only for the first 8
271 * interrupts. The upper half (8-15) can only be used to trigger GPEs.
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dssm2518.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
15 #include <linux/gpio/consumer.h>
141 static const DECLARE_TLV_DB_MINMAX_MUTE(ssm2518_vol_tlv, -7125, 2400);
142 static const DECLARE_TLV_DB_SCALE(ssm2518_compressor_tlv, -3400, 200, 0);
143 static const DECLARE_TLV_DB_SCALE(ssm2518_expander_tlv, -8100, 300, 0);
144 static const DECLARE_TLV_DB_SCALE(ssm2518_noise_gate_tlv, -9600, 300, 0);
145 static const DECLARE_TLV_DB_SCALE(ssm2518_post_drc_tlv, -2400, 300, 0);
148 0, 7, TLV_DB_SCALE_ITEM(-2200, 200, 0),
149 7, 15, TLV_DB_SCALE_ITEM(-800, 100, 0),
[all …]
H A Dadau1977.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
11 #include <linux/gpio/consumer.h>
26 #include <dt-bindings/sound/adi,adau1977.h>
157 static const DECLARE_TLV_DB_MINMAX_MUTE(adau1977_adc_gain, -3562, 6000);
197 ADAU1977_REG_POST_ADC_GAIN((x) - 1), \
201 SOC_SINGLE("ADC" #x " Highpass-Filter Capture Switch", \
202 ADAU1977_REG_DC_HPF_CAL, (x) - 1, 1, 0)
235 regcache_cache_bypass(adau1977->regmap, true); in adau1977_reset()
236 ret = regmap_write(adau1977->regmap, ADAU1977_REG_POWER, in adau1977_reset()
[all …]
H A Dwm5100-tables.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm5100-tables.c -- WM5100 ALSA SoC Audio driver data
5 * Copyright 2011-2 Wolfson Microelectronics plc
815 { 0x0000, 0x0000 }, /* R0 - software reset */
816 { 0x0001, 0x0000 }, /* R1 - Device Revision */
817 { 0x0010, 0x0801 }, /* R16 - Ctrl IF 1 */
818 { 0x0020, 0x0000 }, /* R32 - Tone Generator 1 */
819 { 0x0030, 0x0000 }, /* R48 - PWM Drive 1 */
820 { 0x0031, 0x0100 }, /* R49 - PWM Drive 2 */
821 { 0x0032, 0x0100 }, /* R50 - PWM Drive 3 */
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-is31fl319x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2015-16 Golden Delicious Computers
20 #include <linux/gpio/consumer.h>
129 return true; /* always write-through */ in is31fl3190_volatile_reg()
161 return true; /* always write-through */ in is31fl3196_volatile_reg()
196 struct is31fl319x_chip *is31 = led->chip; in is31fl3190_brightness_set()
197 int chan = led - is31->leds; in is31fl3190_brightness_set()
202 dev_dbg(&is31->client->dev, "channel %d: %d\n", chan, brightness); in is31fl3190_brightness_set()
204 mutex_lock(&is31->lock); in is31fl3190_brightness_set()
207 ret = regmap_write(is31->regmap, IS31FL3190_PWM(chan), brightness); in is31fl3190_brightness_set()
[all …]
/openbmc/u-boot/arch/arm/dts/
H A Dimx7-colibri.dtsi1 // SPDX-License-Identifier: GPL-2.0+ OR X11
3 * Copyright 2016-2019 Toradex AG
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
11 pinctrl-names = "default", "gpio";
12 pinctrl-0 = <&pinctrl_i2c1>;
13 pinctrl-1 = <&pinctrl_i2c1_gpio>;
14 sda-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
15 scl-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
25 pinctrl-names = "default", "gpio";
[all …]
H A Dimx6ull-colibri.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
12 compatible = "toradex,imx6ull-colibri", "fsl,imx6ull";
15 stdout-path = &uart1;
18 reg_module_3v3: regulator-module-3v3 {
19 compatible = "regulator-fixed";
20 regulator-always-on;
21 regulator-name = "+V3.3";
22 regulator-min-microvolt = <3300000>;
[all …]
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dcirrus,cs35l45.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
11 - Richard Fitzgerald <rf@opensource.cirrus.com>
18 - $ref: dai-common.yaml#
23 - cirrus,cs35l45
28 '#sound-dai-cells':
31 reset-gpios:
34 vdd-a-supply:
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dov2659.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/gpio/consumer.h>
20 #include <media/v4l2-ctrls.h>
21 #include <media/v4l2-event.h>
22 #include <media/v4l2-fwnode.h>
23 #include <media/v4l2-image-sizes.h>
24 #include <media/v4l2-subdev.h>
181 u8 ctrl1; member
719 static const struct pll_ctrl_reg ctrl1[] = { variable
833 msg.addr = client->addr; in ov2659_write()
[all …]
H A Dds90ub953.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/clk-provider.h>
15 #include <linux/gpio/driver.h>
16 #include <linux/i2c-atr.h>
26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-event.h>
28 #include <media/v4l2-fwnode.h>
29 #include <media/v4l2-mediabus.h>
30 #include <media/v4l2-subdev.h>
121 /* FPD-Link III CSI-2 synchronous mode */
[all …]
H A Dov2640.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Copyright 2005-2009 Freescale Semiconductor, Inc. All Rights Reserved.
19 #include <linux/gpio/consumer.h>
20 #include <linux/v4l2-mediabus.h>
23 #include <media/v4l2-device.h>
24 #include <media/v4l2-event.h>
25 #include <media/v4l2-subdev.h>
26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-image-sizes.h>
96 #define CTRL1 0xC3 /* DSP Module enable 1 */ macro
[all …]
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/
H A Dtegra_i2c.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright 2010-2011 NVIDIA Corporation
20 I2C_IS_10_BIT_ADDRESS = 0x2, /* for 10-bit I2C slave address */
23 I2C_SOFTWARE_CONTROLLER = 0x10, /* for I2C transfer using GPIO */
54 u32 ctrl1; /* 00: DVC_CTRL_REG1 */ member
151 * @return number of bus, or -1 if there is no DVC active
/openbmc/linux/drivers/mmc/host/
H A Dmxs-mmc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Portions copyright (C) 2004-2005 Pierre Ossman, W83L51xD SD/MMC driver
7 * Copyright 2009-2011 Freescale Semiconductor, Inc.
17 #include <linux/dma-mapping.h>
19 #include <linux/dma/mxs-dma.h>
27 #include <linux/mmc/slot-gpio.h>
31 #include <linux/spi/mxs-spi.h>
33 #define DRIVER_NAME "mxs-mmc"
64 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_get_cd()
67 if (host->broken_cd) in mxs_mmc_get_cd()
[all …]
/openbmc/linux/sound/pci/oxygen/
H A Dxonar_wm87x6.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * --------
14 * SPI 0 -> WM8766 (surround, center/LFE, back)
15 * SPI 1 -> WM8776 (front, input)
17 * GPIO 4 <- headphone detect, 0 = plugged
18 * GPIO 6 -> route input jack to mic-in (0) or line-in (1)
19 * GPIO 7 -> enable output to front L/R speaker channels
20 * GPIO 8 -> enable output to other speaker channels and front panel headphone
24 * input 1 <- line
25 * input 2 <- mic
[all …]
/openbmc/linux/drivers/input/joystick/
H A Das5011.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * - Power on the chip when open() and power down when close()
10 * - Manage power mode
16 #include <linux/gpio.h>
41 /* CTRL1 bits */
57 #define AS5011_MIN_AXIS (-80)
75 .addr = client->addr, in as5011_i2c_write()
82 error = i2c_transfer(client->adapter, &msg, 1); in as5011_i2c_write()
92 .addr = client->addr, in as5011_i2c_read()
98 .addr = client->addr, in as5011_i2c_read()
[all …]
/openbmc/u-boot/drivers/net/
H A Dsunxi_emac.c1 // SPDX-License-Identifier: GPL-2.0+
3 * sunxi_emac.c -- Allwinner A10 ethernet driver
16 #include <asm/arch/gpio.h>
65 u32 ctrl1; member
183 } while (--cnt); in emac_inblk_32bit()
196 } while (--cnt); in emac_outblk_32bit()
203 struct emac_eth_dev *priv = bus->priv; in emac_mdio_read()
204 struct emac_regs *regs = priv->regs; in emac_mdio_read()
207 writel(addr << 8 | reg, &regs->mac_madr); in emac_mdio_read()
210 writel(0x1, &regs->mac_mcmd); in emac_mdio_read()
[all …]
/openbmc/linux/drivers/video/fbdev/mmp/hw/
H A Dmmp_ctrl.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 /* ------------< LCD register >------------ */
129 #define dma_ctrl(ctrl1, id) (ctrl1 ? dma_ctrl1(id) : dma_ctrl0(id)) argument
150 #define LCD_SCLK(path) ((PATH_PN == path->id) ? LCD_CFG_SCLK_DIV :\
151 ((PATH_TV == path->id) ? LCD_TCLK_DIV : LCD_PN2_SCLK_DIV))
386 #define CFG_RXBITS(rx) (((rx) - 1)<<16) /* 0x1F~0x1 */
388 #define CFG_TXBITS(tx) (((tx) - 1)<<8) /* 0x1F~0x1 */
411 1. Smart Pannel 8-bit Bus Control Register.
596 #define CFG_LCDGPIO_ENA(gpio) ((gpio)<<12) argument
685 /* FIXME - JUST GUESS */
[all …]
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz8795.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/gpio.h>
16 #include <linux/platform_data/microchip-ksz.h>
47 regs = dev->info->regs; in ksz8_ind_write8()
49 mutex_lock(&dev->alu_mutex); in ksz8_ind_write8()
56 mutex_unlock(&dev->alu_mutex); in ksz8_ind_write8()
94 u8 ctrl1 = 0, ctrl2 = 0; in ksz8795_change_mtu() local
100 ctrl1 |= SW_HUGE_PACKET; in ksz8795_change_mtu()
102 ret = ksz_rmw8(dev, REG_SW_CTRL_1, SW_HUGE_PACKET, ctrl1); in ksz8795_change_mtu()
113 if (!dsa_is_cpu_port(dev->ds, port)) in ksz8_change_mtu()
[all …]
/openbmc/linux/drivers/tty/serial/
H A 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>
37 #include <linux/gpio/consumer.h>
90 #define AUART_LINECTRL_WLEN(v) ((((v) - 5) & 0x3) << 5)
138 * RW. Receive Timeout Counter Value: number of 8-bit-time to wait before
140 * input is idle, then the watchdog counter will decrement each bit-time. Note
141 * 7-bit-time is added to the programmed value, so a value of zero will set
142 * the counter to 7-bit-time, a value of 0x1 gives 15-bit-time and so on. Also
[all …]
/openbmc/linux/drivers/mfd/
H A Dcs47l24-tables.c1 // SPDX-License-Identifier: GPL-2.0-only
29 return regmap_register_patch(arizona->regmap, in cs47l24_patch()
183 { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */
184 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */
185 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */
186 { 0x00000022, 0x0000 }, /* R34 - Tone Generator 3 */
187 { 0x00000023, 0x1000 }, /* R35 - Tone Generator 4 */
188 { 0x00000024, 0x0000 }, /* R36 - Tone Generator 5 */
189 { 0x00000030, 0x0000 }, /* R48 - PWM Drive 1 */
190 { 0x00000031, 0x0100 }, /* R49 - PWM Drive 2 */
[all …]
H A Dcs47l35-tables.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2015-2017 Cirrus Logic
55 ret = regmap_register_patch(madera->regmap, cs47l35_reva_16_patch, in cs47l35_patch()
58 dev_err(madera->dev, "Error applying patch: %d\n", ret); in cs47l35_patch()
65 { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */
66 { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */
67 { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */
68 { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */
69 { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */
70 { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */
[all …]
H A Dwm8998-tables.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8998-tables.c -- data tables for wm8998-class codecs
45 return regmap_register_patch(arizona->regmap, in wm8998_patch()
177 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */
178 { 0x0000000B, 0x001A }, /* R11 - Ctrl IF I2C1 CFG 2 */
179 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */
180 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */
181 { 0x00000022, 0x0000 }, /* R34 - Tone Generator 3 */
182 { 0x00000023, 0x1000 }, /* R35 - Tone Generator 4 */
183 { 0x00000024, 0x0000 }, /* R36 - Tone Generator 5 */
[all …]
H A Dwm8997-tables.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8997-tables.c -- WM8997 data tables
30 switch (arizona->rev) { in wm8997_patch()
32 return regmap_register_patch(arizona->regmap, in wm8997_patch()
156 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */
157 { 0x00000016, 0x0000 }, /* R22 - Write Sequencer Ctrl 0 */
158 { 0x00000017, 0x0000 }, /* R23 - Write Sequencer Ctrl 1 */
159 { 0x00000018, 0x0000 }, /* R24 - Write Sequencer Ctrl 2 */
160 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */
161 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */
[all …]

12