/linux-6.12.1/drivers/input/rmi4/ |
D | rmi_f3a.c | 1 // 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 …]
|
/linux-6.12.1/drivers/pinctrl/intel/ |
D | pinctrl-cherryview.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * This driver is based on the original Cherryview GPIO driver by 17 #include <linux/gpio/driver.h> 24 #include <linux/pinctrl/pinconf-generic.h> 29 #include "pinctrl-intel.h" 82 * struct intel_community_context - community context for Cherryview 83 * @intr_lines: Mapping between 16 HW interrupt wires and GPIO offset (in GPIO number space) 98 .size = (end) - (start) + 1, \ 271 * Southwest community can generate GPIO interrupts only for the first 8 272 * interrupts. The upper half (8-15) can only be used to trigger GPEs. [all …]
|
/linux-6.12.1/drivers/spi/ |
D | spi-mpc52xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/gpio/consumer.h> 31 MODULE_DESCRIPTION("MPC52xx SPI (non-PSC) Driver"); 104 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel() 105 cs = spi_get_chipselect(ms->message->spi, 0); in mpc52xx_spi_chipsel() 106 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel() 108 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel() 119 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer() 120 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 121 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer() [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
D | ssm2518.c | 1 // 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 …]
|
D | adau1977.c | 1 // 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 …]
|
D | wm5100-tables.c | 1 // 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 …]
|
/linux-6.12.1/drivers/leds/ |
D | leds-is31fl319x.c | 1 // 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 …]
|
/linux-6.12.1/Documentation/devicetree/bindings/sound/ |
D | cirrus,cs35l45.yaml | 1 # 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 31 '#sound-dai-cells': 34 reset-gpios: 37 vdd-a-supply: [all …]
|
/linux-6.12.1/drivers/media/i2c/ |
D | ov2659.c | 1 // 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 …]
|
D | ds90ub953.c | 1 // 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 …]
|
D | ov2640.c | 1 // 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 …]
|
/linux-6.12.1/drivers/mmc/host/ |
D | mxs-mmc.c | 1 // 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 …]
|
/linux-6.12.1/sound/pci/oxygen/ |
D | xonar_wm87x6.c | 1 // 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 …]
|
/linux-6.12.1/drivers/input/joystick/ |
D | as5011.c | 1 // 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/consumer.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 …]
|
/linux-6.12.1/drivers/video/fbdev/mmp/hw/ |
D | mmp_ctrl.h | 1 /* 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 …]
|
/linux-6.12.1/arch/arm64/boot/dts/freescale/ |
D | fsl-ls208xa.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-2080A family SoC. 6 * Copyright 2017-2020 NXP 12 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/interrupt-controller/arm-gic.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 32 #address-cells = <1>; [all …]
|
/linux-6.12.1/drivers/net/dsa/microchip/ |
D | ksz8.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * - KSZ8863, KSZ8873 aka KSZ88X3 7 * - KSZ8895, KSZ8864 aka KSZ8895 family 8 * - KSZ8794, KSZ8795, KSZ8765 aka KSZ87XX 10 * - KSZ8563, KSZ8567 - see KSZ9477 driver 19 #include <linux/gpio.h> 23 #include <linux/platform_data/microchip-ksz.h> 49 * ksz8_ind_write8 - EEE/ACL/PME indirect register write 56 * PME switch functionalities. Both 8-bit registers 110 and 111 are 68 regs = dev->info->regs; in ksz8_ind_write8() [all …]
|
/linux-6.12.1/drivers/mfd/ |
D | cs47l24-tables.c | 1 // 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 …]
|
D | cs47l35-tables.c | 1 // 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 …]
|
D | wm8998-tables.c | 1 // 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 …]
|
D | wm8997-tables.c | 1 // 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 …]
|
D | cs47l85-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2017 Cirrus Logic 318 switch (madera->rev) { in cs47l85_patch() 336 ret = regmap_register_patch(madera->regmap, patch16, num16); in cs47l85_patch() 338 dev_err(madera->dev, in cs47l85_patch() 339 "Error in applying 16-bit patch: %d\n", ret); in cs47l85_patch() 343 ret = regmap_register_patch(madera->regmap_32bit, patch32, num32); in cs47l85_patch() 345 dev_err(madera->dev, in cs47l85_patch() 346 "Error in applying 32-bit patch: %d\n", ret); in cs47l85_patch() 355 { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */ [all …]
|
D | wm5102-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5102-tables.c -- WM5102 data tables 83 switch (arizona->rev) { in wm5102_patch() 93 return regmap_multi_reg_write_bypassed(arizona->regmap, in wm5102_patch() 244 { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ 245 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ 246 { 0x00000020, 0x0000 }, /* R32 - Tone Generator 1 */ 247 { 0x00000021, 0x1000 }, /* R33 - Tone Generator 2 */ 248 { 0x00000022, 0x0000 }, /* R34 - Tone Generator 3 */ 249 { 0x00000023, 0x1000 }, /* R35 - Tone Generator 4 */ [all …]
|
/linux-6.12.1/drivers/tty/serial/ |
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> 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 …]
|
/linux-6.12.1/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 125 #include "xgbe-common.h" 149 /* Rate-change complete wait/retry count */ 276 ((_x)->extd[XGBE_SFP_EXTD_SFF_8472] && \ 277 !((_x)->extd[XGBE_SFP_EXTD_DIAG] & XGBE_SFP_EXTD_DIAG_ADDR_CHANGE)) 284 #define XGBE_BEL_FUSE_VENDOR "BEL-FUSE " 285 #define XGBE_BEL_FUSE_PARTNO "1GBT-SFP06 " 306 /* Re-driver related definitions */ 375 /* Re-driver support */ 387 /* I2C, MDIO and GPIO lines are muxed, so only one device at a time */ 399 return pdata->i2c_if.i2c_xfer(pdata, i2c_op); in xgbe_phy_i2c_xfer() [all …]
|