| /Linux-v6.6/Documentation/devicetree/bindings/sound/ | 
| D | tlv320adcx140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)4 ---
 6 $schema: http://devicetree.org/meta-schemas/core.yaml#
 8 title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter
 11   - Andrew Davis <afd@ti.com>
 14   The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital
 15   PDM microphones recording), high-performance audio, analog-to-digital
 28       - ti,tlv320adc3140
 29       - ti,tlv320adc5140
 30       - ti,tlv320adc6140
 [all …]
 
 | 
| /Linux-v6.6/drivers/gpio/ | 
| D | gpio-bd71815.c | 1 // SPDX-License-Identifier: GPL-2.08  * Author: yanglsh@embest-tech.com
 18 #include <linux/mfd/rohm-bd71815.h>
 33 	ret = regmap_read(bd71815->regmap, BD71815_REG_GPO, &val);  in bd71815gpo_get()
 49 		ret = regmap_set_bits(bd71815->regmap, BD71815_REG_GPO, bit);  in bd71815gpo_set()
 51 		ret = regmap_clear_bits(bd71815->regmap, BD71815_REG_GPO, bit);  in bd71815gpo_set()
 54 		dev_warn(bd71815->dev, "failed to toggle GPO\n");  in bd71815gpo_set()
 58 				   unsigned long config)  in bd71815_gpio_set_config()  argument
 62 	switch (pinconf_to_config_param(config)) {  in bd71815_gpio_set_config()
 64 		return regmap_update_bits(bdgpio->regmap,  in bd71815_gpio_set_config()
 [all …]
 
 | 
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only17 config GPIOLIB_FASTPATH_LIMIT
 29 config OF_GPIO
 34 config GPIO_ACPI
 38 config GPIOLIB_IRQCHIP
 42 config OF_GPIO_MM_GPIOCHIP
 47 	  this symbol, but new drivers should use the generic gpio-regmap
 50 config DEBUG_GPIO
 57 	  non-sleeping contexts.  They can make bitbanged serial protocols
 61 config GPIO_SYSFS
 [all …]
 
 | 
| D | gpio-vx855.c | 1 // SPDX-License-Identifier: GPL-2.0+23  *	GPO 0...12	General Purpose Output
 24  *	GPIO 0...14	General Purpose I/O (Open-Drain)
 76  * 14..26	GPO 0..12
 91 	/* Real GPO bits cannot be put in output direction */  in vx855gpio_direction_input()
 93 		return -EINVAL;  in vx855gpio_direction_input()
 96 	spin_lock_irqsave(&vg->lock, flags);  in vx855gpio_direction_input()
 97 	reg_out = inl(vg->io_gpo);  in vx855gpio_direction_input()
 98 	reg_out |= gpio_o_bit(nr - NR_VX855_GPInO);  in vx855gpio_direction_input()
 99 	outl(reg_out, vg->io_gpo);  in vx855gpio_direction_input()
 [all …]
 
 | 
| D | gpio-tn48m.c | 1 // SPDX-License-Identifier: GPL-2.0-only44 	struct gpio_regmap_config config = {};  in tn48m_gpio_probe()  local
 49 	if (!pdev->dev.parent)  in tn48m_gpio_probe()
 50 		return -ENODEV;  in tn48m_gpio_probe()
 52 	gpio_config = device_get_match_data(&pdev->dev);  in tn48m_gpio_probe()
 54 		return -ENODEV;  in tn48m_gpio_probe()
 56 	ret = device_property_read_u32(&pdev->dev, "reg", &base);  in tn48m_gpio_probe()
 60 	regmap = dev_get_regmap(pdev->dev.parent, NULL);  in tn48m_gpio_probe()
 62 		return -ENODEV;  in tn48m_gpio_probe()
 64 	config.regmap = regmap;  in tn48m_gpio_probe()
 [all …]
 
 | 
| D | gpio-sl28cpld.c | 1 // SPDX-License-Identifier: GPL-2.0-only25 /* input-only flavor */
 28 /* output-only flavor */
 50 				  struct gpio_regmap_config *config)  in sl28cpld_gpio_irq_init()  argument
 54 	struct device *dev = &pdev->dev;  in sl28cpld_gpio_irq_init()
 57 	if (!device_property_read_bool(dev, "interrupt-controller"))  in sl28cpld_gpio_irq_init()
 66 		return -ENOMEM;  in sl28cpld_gpio_irq_init()
 68 	irq_chip->name = "sl28cpld-gpio-irq";  in sl28cpld_gpio_irq_init()
 69 	irq_chip->irqs = sl28cpld_gpio_irqs;  in sl28cpld_gpio_irq_init()
 70 	irq_chip->num_irqs = ARRAY_SIZE(sl28cpld_gpio_irqs);  in sl28cpld_gpio_irq_init()
 [all …]
 
 | 
| D | gpio-lp873x.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
 4  *	Keerthy <j-keerthy@ti.com>
 35 	return -EINVAL;  in lp873x_gpio_direction_input()
 44 	return regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL,  in lp873x_gpio_direction_output()
 54 	ret = regmap_read(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, &val);  in lp873x_gpio_get()
 66 	regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL,  in lp873x_gpio_set()
 78 		/* No MUX Set up Needed for GPO */  in lp873x_gpio_request()
 82 		ret = regmap_update_bits(gpio->lp873->regmap, LP873X_REG_CONFIG,  in lp873x_gpio_request()
 89 		return -EINVAL;  in lp873x_gpio_request()
 [all …]
 
 | 
| D | gpio-tps65218.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later7  * This driver is based on the gpio-tps65912 implementation.
 26 	struct tps65218 *tps65218 = tps65218_gpio->tps65218;  in tps65218_gpio_get()
 30 	ret = regmap_read(tps65218->regmap, TPS65218_REG_ENABLE2, &val);  in tps65218_gpio_get()
 41 	struct tps65218 *tps65218 = tps65218_gpio->tps65218;  in tps65218_gpio_set()
 64 	return -EPERM;  in tps65218_gpio_input()
 70 	struct tps65218 *tps65218 = tps65218_gpio->tps65218;  in tps65218_gpio_request()
 74 		dev_err(gc->parent, "can't work as open source\n");  in tps65218_gpio_request()
 75 		return -EINVAL;  in tps65218_gpio_request()
 81 			dev_err(gc->parent, "GPO1 works only as open drain\n");  in tps65218_gpio_request()
 [all …]
 
 | 
| /Linux-v6.6/drivers/pinctrl/mvebu/ | 
| D | pinctrl-mvebu.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */6  *          Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 13  * struct mvebu_mpp_ctrl_data - private data for the mpp ctrl operations
 29  * struct mvebu_mpp_ctrl - describe a mpp control
 53 		       unsigned long *config);
 55 		       unsigned long config);
 62  * struct mvebu_mpp_ctrl_setting - describe a mpp ctrl setting
 64  * @name: ctrl setting name, e.g. uart2, spi0 - unique per mpp_mode
 67  * @flags: (private) flags to store gpi/gpo/gpio capabilities
 77  * If name is one of "gpi", "gpo", "gpio" gpio capabilities are
 [all …]
 
 | 
| D | pinctrl-mvebu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later6  *          Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 24 #include "pinctrl-mvebu.h"
 59 			     unsigned int pid, unsigned long *config)  in mvebu_mmio_mpp_ctrl_get()  argument
 64 	*config = (readl(data->base + off) >> shift) & MVEBU_MPP_MASK;  in mvebu_mmio_mpp_ctrl_get()
 70 			     unsigned int pid, unsigned long config)  in mvebu_mmio_mpp_ctrl_set()  argument
 76 	reg = readl(data->base + off) & ~(MVEBU_MPP_MASK << shift);  in mvebu_mmio_mpp_ctrl_set()
 77 	writel(reg | (config << shift), data->base + off);  in mvebu_mmio_mpp_ctrl_set()
 86 	for (n = 0; n < pctl->num_groups; n++) {  in mvebu_pinctrl_find_group_by_pid()
 87 		if (pid >= pctl->groups[n].pins[0] &&  in mvebu_pinctrl_find_group_by_pid()
 [all …]
 
 | 
| /Linux-v6.6/sound/soc/codecs/ | 
| D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.03 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
 41 	"ti,gpo-config-1",
 42 	"ti,gpo-config-2",
 43 	"ti,gpo-config-3",
 44 	"ti,gpo-config-4",
 163 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */
 164 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0);
 169 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */
 170 static DECLARE_TLV_DB_SCALE(dre_thresh_tlv, -6600, 100, 0);
 [all …]
 
 | 
| /Linux-v6.6/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/ | 
| D | smu11_driver_if_sienna_cichlid.h | 53 #define MAX_GFXCLK_DPM_LEVEL  (NUM_GFXCLK_DPM_LEVELS  - 1)54 #define MAX_SMNCLK_DPM_LEVEL  (NUM_SMNCLK_DPM_LEVELS  - 1)
 55 #define MAX_SOCCLK_DPM_LEVEL  (NUM_SOCCLK_DPM_LEVELS  - 1)
 56 #define MAX_MP0CLK_DPM_LEVEL  (NUM_MP0CLK_DPM_LEVELS  - 1)
 57 #define MAX_DCLK_DPM_LEVEL    (NUM_DCLK_DPM_LEVELS    - 1)
 58 #define MAX_VCLK_DPM_LEVEL    (NUM_VCLK_DPM_LEVELS    - 1)
 59 #define MAX_DCEFCLK_DPM_LEVEL (NUM_DCEFCLK_DPM_LEVELS - 1)
 60 #define MAX_DISPCLK_DPM_LEVEL (NUM_DISPCLK_DPM_LEVELS - 1)
 61 #define MAX_PIXCLK_DPM_LEVEL  (NUM_PIXCLK_DPM_LEVELS  - 1)
 62 #define MAX_PHYCLK_DPM_LEVEL  (NUM_PHYCLK_DPM_LEVELS  - 1)
 [all …]
 
 | 
| /Linux-v6.6/arch/arm/boot/dts/marvell/ | 
| D | armada-370-c200-v2.dts | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)3  * Device Tree file for Ctera C200-V2
 8 /dts-v1/;
 10 #include "armada-370.dtsi"
 11 #include <dt-bindings/gpio/gpio.h>
 12 #include <dt-bindings/input/input.h>
 13 #include <dt-bindings/thermal/thermal.h>
 14 #include <dt-bindings/leds/common.h>
 18 	compatible = "ctera,c200-v2", "marvell,armada370", "marvell,armada-370-xp";
 22 		stdout-path = "serial0:115200n8";
 [all …]
 
 | 
| D | armada-370-dlink-dns327l.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3  * Device Tree file for D-Link DNS-327L
 12 /dts-v1/;
 14 #include <dt-bindings/input/input.h>
 15 #include <dt-bindings/gpio/gpio.h>
 16 #include "armada-370.dtsi"
 19 	model = "D-Link DNS-327L";
 22 		"marvell,armada-370-xp";
 25 		stdout-path = &uart0;
 38 		internal-regs {
 [all …]
 
 | 
| D | dove.dtsi | 1 // SPDX-License-Identifier: GPL-2.02 #include <dt-bindings/gpio/gpio.h>
 3 #include <dt-bindings/interrupt-controller/irq.h>
 8 	#address-cells = <1>;
 9 	#size-cells = <1>;
 12 	interrupt-parent = <&intc>;
 21 		#address-cells = <1>;
 22 		#size-cells = <0>;
 25 			compatible = "marvell,pj4a", "marvell,sheeva-v7";
 27 			next-level-cache = <&l2>;
 [all …]
 
 | 
| D | kirkwood-synology.dtsi | 1 // SPDX-License-Identifier: GPL-2.012 		pinctrl: pin-controller@10000 {
 13 			pmx_alarmled_12: pmx-alarmled-12 {
 18 			pmx_fanctrl_15: pmx-fanctrl-15 {
 23 			pmx_fanctrl_16: pmx-fanctrl-16 {
 28 			pmx_fanctrl_17: pmx-fanctrl-17 {
 33 			pmx_fanalarm_18: pmx-fanalarm-18 {
 35 				marvell,function = "gpo";
 38 			pmx_hddled_20: pmx-hddled-20 {
 43 			pmx_hddled_21: pmx-hddled-21 {
 [all …]
 
 | 
| /Linux-v6.6/drivers/pinctrl/nuvoton/ | 
| D | pinctrl-npcm7xx.c | 1 // SPDX-License-Identifier: GPL-2.02 // Copyright (c) 2016-2018 Nuvoton Technology corporation.
 21 #include <linux/pinctrl/pinconf-generic.h>
 51 #define NPCM7XX_GP_N_PU		0x1c /* Pull-up */
 52 #define NPCM7XX_GP_N_PD		0x20 /* Pull-down */
 110 	raw_spin_lock_irqsave(&gc->bgpio_lock, flags);  in npcm_gpio_set()
 115 	raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags);  in npcm_gpio_set()
 124 	raw_spin_lock_irqsave(&gc->bgpio_lock, flags);  in npcm_gpio_clr()
 129 	raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags);  in npcm_gpio_clr()
 136 	seq_printf(s, "-- module %d [gpio%d - %d]\n",  in npcmgpio_dbg_show()
 [all …]
 
 | 
| /Linux-v6.6/drivers/hid/ | 
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only15 config HID
 22 	  most commonly used to refer to the USB-HID specification, but other
 27 	  removed from the HID bus by the transport-layer drivers, such as
 36 config HID_BATTERY_STRENGTH
 45 config HIDRAW
 58 	to work on raw hid events when they want to, and avoid using transport-specific
 63 config UHID
 64 	tristate "User-space I/O driver support for HID subsystem"
 67 	Say Y here if you want to provide HID I/O Drivers from user-space.
 [all …]
 
 | 
| /Linux-v6.6/drivers/net/ethernet/chelsio/cxgb/ | 
| D | subr.c | 1 // SPDX-License-Identifier: GPL-2.0-only14  * Copyright (c) 2003 - 2005 Chelsio Communications, Inc.                    *
 40  *	t1_wait_op_done - wait until an operation is completed
 43  *	@mask: a single-bit field within @reg that indicates completion
 56 		u32 val = readl(adapter->regs + reg) & mask;  in t1_wait_op_done()
 60 		if (--attempts == 0)  in t1_wait_op_done()
 76 	writel(addr, adapter->regs + A_TPI_ADDR);  in __t1_tpi_write()
 77 	writel(value, adapter->regs + A_TPI_WR_DATA);  in __t1_tpi_write()
 78 	writel(F_TPIWR, adapter->regs + A_TPI_CSR);  in __t1_tpi_write()
 84 			 adapter->name, addr);  in __t1_tpi_write()
 [all …]
 
 | 
| /Linux-v6.6/drivers/media/usb/em28xx/ | 
| D | em28xx-reg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */4  * em28xx-reg.h - Register definitions for em28xx driver
 47 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_MASK	0x0c /* bits 3-2 */
 52 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK	0x03 /* bits 0-1 */
 58 /* GPIO/GPO registers */
 59 #define EM2880_R04_GPO		0x04    /* em2880-em2883 only */
 60 #define EM2820_R08_GPIO_CTRL	0x08	/* em2820-em2873/83 only */
 61 #define EM2820_R09_GPIO_STATE	0x09	/* em2820-em2873/83 only */
 71 #define EM28XX_I2C_FREQ_1_5_MHZ		0x03 /* bus frequency (bits [1-0]) */
 88 #define EM28XX_XCLK_FREQUENCY_30MHZ	0x00 /* Freq. select (bits [3-0]) */
 [all …]
 
 | 
| /Linux-v6.6/drivers/mfd/ | 
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only9 config MFD_CORE
 14 config MFD_CS5535
 23 config MFD_ALTERA_A10SR
 34 config MFD_ALTERA_SYSMGR
 44 config MFD_ACT8945A
 45 	tristate "Active-semi ACT8945A"
 50 	  Support for the ACT8945A PMIC from Active-semi. This device
 51 	  features three step-down DC/DC converters and four low-dropout
 55 config MFD_SUN4I_GPADC
 [all …]
 
 | 
| D | twl6040.c | 1 // SPDX-License-Identifier: GPL-2.0-only101 	ret = regmap_read(twl6040->regmap, reg, &val);  in twl6040_reg_read()
 113 	ret = regmap_write(twl6040->regmap, reg, val);  in twl6040_reg_write()
 121 	return regmap_update_bits(twl6040->regmap, reg, mask, mask);  in twl6040_set_bits()
 127 	return regmap_update_bits(twl6040->regmap, reg, mask, 0);  in twl6040_clear_bits()
 131 /* twl6040 codec manual power-up sequence */
 137 	/* enable high-side LDO, reference system and internal oscillator */  in twl6040_power_up_manual()
 151 	/* enable low-side LDO */  in twl6040_power_up_manual()
 158 	/* enable low-power PLL */  in twl6040_power_up_manual()
 186 	dev_err(twl6040->dev, "manual power-up failed\n");  in twl6040_power_up_manual()
 [all …]
 
 | 
| /Linux-v6.6/arch/arm/boot/dts/samsung/ | 
| D | s3c64xx-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.04  * - pin control-related definitions
 8  * Samsung's S3C64xx SoCs pin banks, pin-mux and pin-config options are
 12 #include "s3c64xx-pinctrl.h"
 19 	gpa: gpa-gpio-bank {
 20 		gpio-controller;
 21 		#gpio-cells = <2>;
 22 		interrupt-controller;
 23 		#interrupt-cells = <2>;
 26 	gpb: gpb-gpio-bank {
 [all …]
 
 | 
| /Linux-v6.6/arch/arm/mach-s3c/ | 
| D | gpio-samsung.c | 1 // SPDX-License-Identifier: GPL-2.03 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
 11 // Samsung - GPIOlib support
 31 #include "regs-gpio.h"
 32 #include "gpio-samsung.h"
 35 #include "gpio-core.h"
 36 #include "gpio-cfg.h"
 37 #include "gpio-cfg-helpers.h"
 43 	void __iomem *reg = chip->base + 0x08;  in samsung_gpio_setpull_updown()
 58 	void __iomem *reg = chip->base + 0x08;  in samsung_gpio_getpull_updown()
 [all …]
 
 | 
| /Linux-v6.6/drivers/spi/ | 
| D | spi-lantiq-ssc.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * Copyright (C) 2011-2015 Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
 4  * Copyright (C) 2016 Hauke Mehrtens <hauke@hauke-m.de>
 116 #define LTQ_SPI_WHBSTATE_CLREN	BIT(0)	/* Clear enable bit (config mode */
 142 #define LTQ_SPI_RXCNT_TODO_M	0xFFFF	/* Recevie to-do value */
 191 	return __raw_readl(spi->regbase + reg);  in lantiq_ssc_readl()
 197 	__raw_writel(val, spi->regbase + reg);  in lantiq_ssc_writel()
 203 	u32 val = __raw_readl(spi->regbase + reg);  in lantiq_ssc_maskl()
 207 	__raw_writel(val, spi->regbase + reg);  in lantiq_ssc_maskl()
 212 	const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg;  in tx_fifo_level()
 [all …]
 
 |