/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 | 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 …]
|
D | rt5651.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5651.c -- RT5651 ALSA SoC audio codec driver 13 #include <linux/gpio/consumer.h> 23 #include <sound/soc-dapm.h> 287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 288 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 290 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 369 * set_dmic_clk - Set parameter of dmic. 379 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() [all …]
|
D | rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver 15 #include <linux/gpio/consumer.h> 27 #include <sound/soc-dapm.h> 340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 451 * set_dmic_clk - Set parameter of dmic. 461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() [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/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/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/arch/arm64/boot/dts/qcom/ |
D | sm8550-sony-xperia-yodo-pdx234.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/firmware/qcom,scm.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 #include <dt-bindings/sound/cs35l45.h> 23 /delete-node/ &hwfence_shbuf; 24 /delete-node/ &mpss_mem; 25 /delete-node/ &rmtfs_mem; [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> 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 …]
|
/linux-6.12.1/drivers/pci/controller/dwc/ |
D | pcie-designware.c | 1 // 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 …]
|
/linux-6.12.1/drivers/input/rmi4/ |
D | rmi_f30.c | 1 // 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 …]
|
/linux-6.12.1/drivers/mmc/host/ |
D | sdhci.c | 1 // 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 …]
|
/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/media/i2c/ |
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> 70 #define CTRL2 0x86 /* DSP Module enable 2 */ macro [all …]
|
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> 182 u8 ctrl2; member 833 msg.addr = client->addr; in ov2659_write() 834 msg.flags = client->flags; in ov2659_write() [all …]
|
D | ov2680.c | 1 // 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> 81 /* Fixed pre-div of 1/2 */ [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/spi/ |
D | spi-pic32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/dma-mapping.h> 14 #include <linux/gpio/consumer.h> 39 u32 ctrl2; member 88 #define CTRL2_TX_UR_EN BIT(10) /* Enable int on Tx under-run */ 89 #define CTRL2_RX_OV_EN BIT(11) /* Enable int on Rx over-run */ 105 u32 speed_hz; /* spi-clk rate */ 125 writel(CTRL_ON | CTRL_SIDL, &pic32s->regs->ctrl_set); in pic32_spi_enable() 130 writel(CTRL_ON | CTRL_SIDL, &pic32s->regs->ctrl_clr); in pic32_spi_disable() 140 /* div = (clk_in / 2 * spi_ck) - 1 */ in pic32_spi_set_clk_rate() [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 | 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 …]
|
D | wm5110-tables.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm5110-tables.c -- WM5110 data tables 262 switch (arizona->rev) { in wm5110_patch() 264 return regmap_register_patch(arizona->regmap, in wm5110_patch() 268 return regmap_register_patch(arizona->regmap, in wm5110_patch() 272 return regmap_register_patch(arizona->regmap, in wm5110_patch() 276 return regmap_register_patch(arizona->regmap, in wm5110_patch() 673 { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ 674 { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ 675 { 0x0000000A, 0x0001 }, /* R10 - Ctrl IF I2C2 CFG 1 */ [all …]
|