Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/leds/
Dleds-is31fl319x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2015-16 Golden Delicious Computers
20 #include <linux/gpio/consumer.h>
105 { .compatible = "si-en,sn3199", .data = &is31fl3199_cdef, },
115 struct is31fl319x_chip *is31 = led->chip; in is31fl319x_brightness_set()
116 int chan = led - is31->leds; in is31fl319x_brightness_set()
119 u8 ctrl1 = 0, ctrl2 = 0; in is31fl319x_brightness_set() local
121 dev_dbg(&is31->client->dev, "%s %d: %d\n", __func__, chan, brightness); in is31fl319x_brightness_set()
123 mutex_lock(&is31->lock); in is31fl319x_brightness_set()
126 ret = regmap_write(is31->regmap, IS31FL319X_PWM(chan), brightness); in is31fl319x_brightness_set()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dssm2518.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
14 #include <linux/gpio.h>
142 static const DECLARE_TLV_DB_MINMAX_MUTE(ssm2518_vol_tlv, -7125, 2400);
143 static const DECLARE_TLV_DB_SCALE(ssm2518_compressor_tlv, -3400, 200, 0);
144 static const DECLARE_TLV_DB_SCALE(ssm2518_expander_tlv, -8100, 300, 0);
145 static const DECLARE_TLV_DB_SCALE(ssm2518_noise_gate_tlv, -9600, 300, 0);
146 static const DECLARE_TLV_DB_SCALE(ssm2518_post_drc_tlv, -2400, 300, 0);
149 0, 7, TLV_DB_SCALE_ITEM(-2200, 200, 0),
150 7, 15, TLV_DB_SCALE_ITEM(-800, 100, 0),
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
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 …]
/kernel/linux/linux-6.6/drivers/leds/
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 …]
/kernel/linux/linux-5.10/drivers/tty/serial/
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>
39 #include <linux/gpio/consumer.h>
140 * RW. Receive Timeout Counter Value: number of 8-bit-time to wait before
142 * input is idle, then the watchdog counter will decrement each bit-time. Note
143 * 7-bit-time is added to the programmed value, so a value of zero will set
144 * the counter to 7-bit-time, a value of 0x1 gives 15-bit-time and so on. Also
148 * value is 0x3 (31 bit-time).
[all …]
/kernel/linux/linux-6.6/drivers/tty/serial/
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 …]
/kernel/linux/linux-6.6/sound/pci/oxygen/
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 …]
/kernel/linux/linux-5.10/sound/pci/oxygen/
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 …]
/kernel/linux/linux-6.6/drivers/input/joystick/
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>
51 /* CTRL2 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 …]
/kernel/linux/linux-5.10/drivers/input/joystick/
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>
51 /* CTRL2 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 …]
/kernel/linux/linux-6.6/drivers/pci/controller/dwc/
Dpcie-designware.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <linux/gpio/consumer.h>
24 #include "pcie-designware.h"
46 [DW_PCIE_NON_STICKY_RST] = "non-sticky",
60 pci->app_clks[i].id = dw_pcie_app_clks[i]; in dw_pcie_get_clocks()
63 pci->core_clks[i].id = dw_pcie_core_clks[i]; in dw_pcie_get_clocks()
65 ret = devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_APP_CLKS, in dw_pcie_get_clocks()
66 pci->app_clks); in dw_pcie_get_clocks()
70 return devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_CORE_CLKS, in dw_pcie_get_clocks()
71 pci->core_clks); in dw_pcie_get_clocks()
[all …]
/kernel/linux/linux-6.6/drivers/net/dsa/microchip/
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()
81 u8 ctrl2 = 0; in ksz8863_change_mtu() local
84 ctrl2 |= KSZ8863_LEGAL_PACKET_ENABLE; in ksz8863_change_mtu()
86 ctrl2 |= KSZ8863_HUGE_PACKET_ENABLE; in ksz8863_change_mtu()
89 KSZ8863_HUGE_PACKET_ENABLE, ctrl2); in ksz8863_change_mtu()
[all …]
/kernel/linux/linux-6.6/drivers/input/rmi4/
Drmi_f30.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016 Synaptics Incorporated
89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters()
90 f30->ctrl_regs, f30->ctrl_regs_size); in rmi_f30_read_control_parameters()
92 dev_err(&fn->dev, in rmi_f30_read_control_parameters()
94 __func__, fn->fd.control_base_addr, error); in rmi_f30_read_control_parameters()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
107 bool key_down = !(f30->data_regs[reg_num] & BIT(bit_num)); in rmi_f30_report_button()
109 if (f30->trackstick_buttons && in rmi_f30_report_button()
112 rmi_f03_overwrite_button(f30->f03, key_code, key_down); in rmi_f30_report_button()
[all …]
/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_f30.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016 Synaptics Incorporated
89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters()
90 f30->ctrl_regs, f30->ctrl_regs_size); in rmi_f30_read_control_parameters()
92 dev_err(&fn->dev, in rmi_f30_read_control_parameters()
94 __func__, fn->fd.control_base_addr, error); in rmi_f30_read_control_parameters()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
107 bool key_down = !(f30->data_regs[reg_num] & BIT(bit_num)); in rmi_f30_report_button()
109 if (f30->trackstick_buttons && in rmi_f30_report_button()
112 rmi_f03_overwrite_button(f30->f03, key_code, key_down); in rmi_f30_report_button()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dimx7-colibri.dtsi1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
3 * Copyright 2016-2020 Toradex
8 compatible = "pwm-backlight";
9 pinctrl-names = "default";
10 pinctrl-0 = <&pinctrl_gpio_bl_on>;
12 enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
15 reg_module_3v3: regulator-module-3v3 {
16 compatible = "regulator-fixed";
17 regulator-name = "+V3.3";
18 regulator-min-microvolt = <3300000>;
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dmach-bast.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright 2003-2008 Simtec Electronics
14 #include <linux/gpio.h>
30 #include <linux/platform_data/asoc-s3c24xx_simtec.h>
31 #include <linux/platform_data/hwmon-s3c.h>
32 #include <linux/platform_data/i2c-s3c2410.h>
33 #include <linux/platform_data/mtd-nand-s3c2410.h>
41 #include <asm/mach-types.h>
43 #include <linux/platform_data/fb-s3c2410.h>
44 #include "regs-gpio.h"
[all …]
/kernel/linux/linux-6.6/drivers/mmc/host/
Dsdhci.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver
5 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
9 * - JMicron (hardware and technical support)
19 #include <linux/dma-mapping.h>
33 #include <linux/mmc/slot-gpio.h>
40 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
43 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
73 SDHCI_DUMP("Wake-up: 0x%08x | Clock: 0x%08x\n", in sdhci_dumpregs()
100 if (host->flags & SDHCI_USE_ADMA) { in sdhci_dumpregs()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver
5 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
9 * - JMicron (hardware and technical support)
19 #include <linux/dma-mapping.h>
34 #include <linux/mmc/slot-gpio.h>
41 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
44 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
74 SDHCI_DUMP("Wake-up: 0x%08x | Clock: 0x%08x\n", in sdhci_dumpregs()
101 if (host->flags & SDHCI_USE_ADMA) { in sdhci_dumpregs()
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/
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>
182 u8 ctrl2; member
833 msg.addr = client->addr; in ov2659_write()
834 msg.flags = client->flags; in ov2659_write()
[all …]
Dov2640.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Copyright 2005-2009 Freescale Semiconductor, Inc. All Rights Reserved.
19 #include <linux/gpio.h>
20 #include <linux/gpio/consumer.h>
22 #include <linux/v4l2-mediabus.h>
25 #include <media/v4l2-device.h>
26 #include <media/v4l2-event.h>
27 #include <media/v4l2-subdev.h>
28 #include <media/v4l2-ctrls.h>
29 #include <media/v4l2-image-sizes.h>
[all …]
/kernel/linux/linux-6.6/drivers/media/i2c/
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>
182 u8 ctrl2; member
833 msg.addr = client->addr; in ov2659_write()
834 msg.flags = client->flags; in ov2659_write()
[all …]
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>
70 #define CTRL2 0x86 /* DSP Module enable 2 */ macro
[all …]
Dov2680.c1 // SPDX-License-Identifier: GPL-2.0
8 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
9 * Copyright (C) 2014-2017 Mentor Graphics Inc.
16 #include <linux/gpio/consumer.h>
25 #include <media/v4l2-cci.h>
26 #include <media/v4l2-common.h>
27 #include <media/v4l2-ctrls.h>
28 #include <media/v4l2-fwnode.h>
29 #include <media/v4l2-subdev.h>
79 /* Fixed pre-div of 1/2 */
[all …]
/kernel/linux/linux-5.10/arch/mips/include/asm/txx9/
Dtx4939.h4 * Copyright (C) 2000-2001,2005-2006 Toshiba Corporation
5 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
80 } gpio[2]; member
172 __u32 ctrl2; member
188 #define TX4939_IR_SIO(n) ((n) ? 43 + (n) : 9) /* 9,44-46 */
190 #define TX4939_IR_DMA(ch, n) (((ch) ? 22 : 10) + (n)) /* 10-13,22-25 */
194 #define TX4939_IR_TMR(n) (((n) >= 3 ? 45 : 16) + (n)) /* 16-18,48-50 */
479 ((__u32)__raw_readq(&tx4939_ccfgptr->crir) & 0x00ff)
481 ((__u32)__raw_readq(&tx4939_ccfgptr->crir) >> 16)
483 ((__u32)((__raw_readq(&tx4939_ccfgptr->ccfg) & TX4939_CCFG_BCFG_MASK) \

123