| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/hwmon/ |
| D | adi,ltc2947.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nuno Sá <nuno.sa@analog.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf 20 - adi,ltc2947 33 adi,accumulator-ctl-pol: 41 $ref: /schemas/types.yaml#/definitions/uint32-array 48 adi,accumulation-deadband-microamp: 55 adi,gpio-out-pol: [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/ |
| D | adi,ltc2947.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nuno Sá <nuno.sa@analog.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf 20 - adi,ltc2947 33 adi,accumulator-ctl-pol: 41 $ref: /schemas/types.yaml#/definitions/uint32-array 48 adi,accumulation-deadband-microamp: 56 adi,gpio-out-pol: [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-grgpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * This driver supports the GRGPIO GPIO core available in the GRLIB VHDL 13 * See "Documentation/devicetree/bindings/gpio/gpio-grgpio.txt" for 26 #include <linux/gpio/driver.h> 45 /* Structure for an irq of the core - called an underlying irq */ 48 u8 uirq; /* Underlying irq of the gpio driver */ 52 * Structure for an irq of a gpio line handed out by this driver. The index is 56 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */ 57 u8 irq; /* irq for the gpio line */ 68 * The grgpio core can have multiple "underlying" irqs. The gpio lines [all …]
|
| D | gpio-dwapb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/gpio/driver.h> 25 #include <linux/platform_data/gpio-dwapb.h> 29 #include "gpiolib-acpi.h" 51 #define DWAPB_DRIVER_NAME "gpio-dwapb" 71 /* Store GPIO context across system-wide suspend/resume transitions */ 94 struct dwapb_gpio *gpio; member 101 (container_of(_gc, struct dwapb_gpio_port, gc)->gpio) 131 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument 133 if (gpio->flags & GPIO_REG_OFFSET_V2) in gpio_reg_convert() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpio/ |
| D | gpio-grgpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * This driver supports the GRGPIO GPIO core available in the GRLIB VHDL 13 * See "Documentation/devicetree/bindings/gpio/gpio-grgpio.txt" for 26 #include <linux/gpio/driver.h> 45 /* Structure for an irq of the core - called an underlying irq */ 48 u8 uirq; /* Underlying irq of the gpio driver */ 52 * Structure for an irq of a gpio line handed out by this driver. The index is 56 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */ 57 u8 irq; /* irq for the gpio line */ 68 * The grgpio core can have multiple "underlying" irqs. The gpio lines [all …]
|
| D | gpio-dwapb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/gpio/driver.h> 25 #include "gpiolib-acpi.h" 47 #define DWAPB_DRIVER_NAME "gpio-dwapb" 83 /* Store GPIO context across system-wide suspend/resume transitions */ 105 struct dwapb_gpio *gpio; member 112 (container_of(_gc, struct dwapb_gpio_port, gc)->gpio) 142 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument 144 if ((gpio->flags & GPIO_REG_OFFSET_MASK) == GPIO_REG_OFFSET_V2) in gpio_reg_convert() 150 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) in dwapb_read() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/input/touchscreen/ |
| D | wm97xx-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm97xx-core.c -- Touch screen driver core for Wolfson WM9705, WM9712 15 * - supports WM9705, WM9712, WM9713 16 * - polling mode 17 * - continuous mode (arch-dependent) 18 * - adjustable rpu/dpp settings 19 * - adjustable pressure current 20 * - adjustable sample settle delay 21 * - 4 and 5 wire touchscreens (5 wire is WM9712 only) 22 * - pen down detection [all …]
|
| /kernel/linux/linux-5.10/drivers/input/touchscreen/ |
| D | wm97xx-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm97xx-core.c -- Touch screen driver core for Wolfson WM9705, WM9712 15 * - supports WM9705, WM9712, WM9713 16 * - polling mode 17 * - continuous mode (arch-dependent) 18 * - adjustable rpu/dpp settings 19 * - adjustable pressure current 20 * - adjustable sample settle delay 21 * - 4 and 5 wire touchscreens (5 wire is WM9712 only) 22 * - pen down detection [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/ |
| D | wlf,arizona.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 17 - $ref: /schemas/spi/spi-peripheral-props.yaml 18 - $ref: /schemas/sound/wlf,arizona.yaml# 19 - $ref: /schemas/regulator/wlf,arizona.yaml# 20 - $ref: /schemas/extcon/wlf,arizona.yaml# 21 - if: 26 - cirrus,cs47l24 [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| D | wlf,arizona.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 17 - $ref: /schemas/sound/wlf,arizona.yaml# 18 - $ref: /schemas/regulator/wlf,arizona.yaml# 19 - $ref: /schemas/extcon/wlf,arizona.yaml# 20 - if: 25 - cirrus,cs47l24 26 - wlf,wm1831 [all …]
|
| /kernel/linux/linux-5.10/drivers/pinctrl/qcom/ |
| D | pinctrl-msm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <linux/pinctrl/pinconf-generic.h> 19 #include <linux/gpio/driver.h> 31 #include "pinctrl-msm.h" 32 #include "../pinctrl-utils.h" 39 * struct msm_pinctrl - state for a pinctrl-msm device 87 return readl(pctrl->regs[g->tile] + g->name##_reg); \ 92 writel(val, pctrl->regs[g->tile] + g->name##_reg); \ 104 u32 val = g->intr_ack_high ? BIT(g->intr_status_bit) : 0; in MSM_ACCESSOR() 113 return pctrl->soc->ngroups; in msm_get_groups_count() [all …]
|
| /kernel/linux/linux-5.10/drivers/hwmon/ |
| D | ltc2947-core.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/hwmon-sysfs.h> 65 #define VOLTAGE_MIN -300 76 #define CURRENT_MIN -30000 85 #define POWER_MIN -450000000 97 #define TEMP_MIN -40000 107 #define LTC2947_ALERTS_SIZE (LTC2947_REG_STATVDVCC - LTC2947_REG_STATUS) 125 * complete sequence select_page->read/write needs to be protected. 138 ret = regmap_bulk_read(st->map, reg, &__val, 2); in __ltc2947_val_read16() 153 ret = regmap_bulk_read(st->map, reg, &__val, 3); in __ltc2947_val_read24() [all …]
|
| /kernel/linux/linux-6.6/drivers/hwmon/ |
| D | ltc2947-core.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/hwmon-sysfs.h> 65 #define VOLTAGE_MIN -300 76 #define CURRENT_MIN -30000 85 #define POWER_MIN -450000000 97 #define TEMP_MIN -40000 107 #define LTC2947_ALERTS_SIZE (LTC2947_REG_STATVDVCC - LTC2947_REG_STATUS) 125 * complete sequence select_page->read/write needs to be protected. 138 ret = regmap_bulk_read(st->map, reg, &__val, 2); in __ltc2947_val_read16() 153 ret = regmap_bulk_read(st->map, reg, &__val, 3); in __ltc2947_val_read24() [all …]
|
| /kernel/linux/linux-6.6/drivers/pinctrl/qcom/ |
| D | pinctrl-msm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/gpio/driver.h> 24 #include <linux/pinctrl/pinconf-generic.h> 32 #include "../pinctrl-utils.h" 34 #include "pinctrl-msm.h" 41 * struct msm_pinctrl - state for a pinctrl-msm device 87 return readl(pctrl->regs[g->tile] + g->name##_reg); \ 92 writel(val, pctrl->regs[g->tile] + g->name##_reg); \ 104 u32 val = g->intr_ack_high ? BIT(g->intr_status_bit) : 0; in MSM_ACCESSOR() 113 return pctrl->soc->ngroups; in msm_get_groups_count() [all …]
|
| /kernel/linux/linux-6.6/drivers/mfd/ |
| D | arizona-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arizona-spi.c -- Arizona SPI bus interface 12 #include <linux/gpio/consumer.h> 13 #include <linux/gpio/machine.h> 21 #include <uapi/linux/input-event-codes.h> 32 { "reset-gpios", &reset_gpios, 1, }, 33 { "wlf,ldoena-gpios", &ldoena_gpios, 1 }, 38 * The ACPI resources for the device only describe external GPIO-s. They do 39 * not provide mappings for the GPIO-s coming from the Arizona codec itself. 42 { "arizona", 2, "wlf,spkvdd-ena", 0, GPIO_ACTIVE_HIGH }, [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/bridge/ |
| D | lontium-lt9611.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2019-2020. Linaro Limited. 7 #include <linux/gpio/consumer.h> 10 #include <linux/media-bus-format.h> 17 #include <sound/hdmi-codec.h> 102 { 0x811c, 0x03 }, /* PortA clk lane no-LP mode */ in lt9611_mipi_input_analog() 103 { 0x8120, 0x03 }, /* PortB clk lane with-LP mode */ in lt9611_mipi_input_analog() 106 return regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg)); in lt9611_mipi_input_analog() 121 if (lt9611->dsi1_node) in lt9611_mipi_input_digital() 124 return regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg)); in lt9611_mipi_input_digital() [all …]
|
| D | chipone-icn6211.c | 1 // SPDX-License-Identifier: GPL-2.0+ 16 #include <linux/gpio/consumer.h> 18 #include <linux/media-bus-format.h> 214 return ret == val_size ? 0 : -EINVAL; in chipone_dsi_read() 240 ret = regmap_read(icn->regmap, reg, &pval); in chipone_readb() 247 return regmap_write(icn->regmap, reg, val); in chipone_writeb() 254 unsigned int mode_clock = mode->clock * 1000; in chipone_configure_pll() 271 * P is pre-divider, register PLL_REF_DIV[3:0] is 1:n divider in chipone_configure_pll() 274 * S is post-divider, register PLL_REF_DIV[7:5] is 2^(n+1) divider in chipone_configure_pll() 276 * It seems the PLL input clock after applying P pre-divider have in chipone_configure_pll() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/bridge/analogix/ |
| D | analogix_dp_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/gpio/consumer.h> 83 * "force-hpd" would indicate whether driver need this. in analogix_dp_detect_hpd() 85 if (!dp->force_hpd) in analogix_dp_detect_hpd() 86 return -ETIMEDOUT; in analogix_dp_detect_hpd() 93 dev_dbg(dp->dev, "failed to get hpd plug status, try to force hpd\n"); in analogix_dp_detect_hpd() 98 dev_err(dp->dev, "failed to get hpd plug in status\n"); in analogix_dp_detect_hpd() 99 return -EINVAL; in analogix_dp_detect_hpd() 102 dev_dbg(dp->dev, "success to get plug in status after force hpd\n"); in analogix_dp_detect_hpd() 112 ret = drm_dp_dpcd_readb(&dp->aux, DP_PSR_SUPPORT, &psr_version); in analogix_dp_detect_sink_psr() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/ |
| D | analogix_dp_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/gpio/consumer.h> 82 * "force-hpd" would indicate whether driver need this. in analogix_dp_detect_hpd() 84 if (!dp->force_hpd) in analogix_dp_detect_hpd() 85 return -ETIMEDOUT; in analogix_dp_detect_hpd() 92 dev_dbg(dp->dev, "failed to get hpd plug status, try to force hpd\n"); in analogix_dp_detect_hpd() 97 dev_err(dp->dev, "failed to get hpd plug in status\n"); in analogix_dp_detect_hpd() 98 return -EINVAL; in analogix_dp_detect_hpd() 101 dev_dbg(dp->dev, "success to get plug in status after force hpd\n"); in analogix_dp_detect_hpd() 111 ret = drm_dp_dpcd_readb(&dp->aux, DP_PSR_SUPPORT, &psr_version); in analogix_dp_detect_sink_psr() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | es8326.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // es8326.c -- es8326 ALSA SoC audio driver 6 // Authors: David Yang <yangxiaohua@everest-semi.com> 17 #include <sound/soc-dapm.h> 48 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9550, 50, 0); 49 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9550, 50, 0); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_target_tlv, -3200, 200, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_recovery_tlv, -125, 250, 0); 117 SND_SOC_DAPM_AIF_OUT("I2S OUT", "I2S1 Capture", 0, SND_SOC_NOPM, 0, 0), 150 {"I2S OUT", NULL, "ADC L"}, [all …]
|
| D | arizona-jack.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices 5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc 13 #include <linux/gpio/consumer.h> 14 #include <linux/gpio.h> 26 #include <dt-bindings/mfd/arizona.h> 33 * The hardware supports 8 ranges / buttons, but the snd-jack interface 34 * only supports 6 buttons (button 0-5). 100 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp() 105 switch (arizona->type) { in arizona_extcon_hp_clamp() [all …]
|
| D | wm8903.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8903.c -- WM8903 ALSA SoC Audio driver 5 * Copyright 2008-12 Wolfson Microelectronics 6 * Copyright 2011-2012 NVIDIA, Inc. 11 * - TDM mode configuration. 19 #include <linux/gpio/driver.h> 41 { 4, 0x0018 }, /* R4 - Bias Control 0 */ 42 { 5, 0x0000 }, /* R5 - VMID Control 0 */ 43 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */ 44 { 8, 0x0001 }, /* R8 - Analogue DAC 0 */ [all …]
|
| D | cs35l45.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // cs35l45.c - CS35L45 ALSA SoC audio driver 5 // Copyright 2019-2022 Cirrus Logic, Inc. 9 #include <linux/gpio/consumer.h> 53 if (!cs35l45->dsp.cs_dsp.running) { in cs35l45_set_cspl_mbox_cmd() 54 dev_err(cs35l45->dev, "DSP not running\n"); in cs35l45_set_cspl_mbox_cmd() 55 return -EPERM; in cs35l45_set_cspl_mbox_cmd() 62 dev_err(cs35l45->dev, "Failed to write MBOX: %d\n", ret); in cs35l45_set_cspl_mbox_cmd() 72 dev_err(cs35l45->dev, "Failed to read MBOX STS: %d\n", ret); in cs35l45_set_cspl_mbox_cmd() 77 dev_dbg(cs35l45->dev, "[%u] cmd %u returned invalid sts %u", i, cmd, sts); in cs35l45_set_cspl_mbox_cmd() [all …]
|
| /kernel/linux/linux-5.10/drivers/extcon/ |
| D | extcon-arizona.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices 5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc 14 #include <linux/gpio/consumer.h> 15 #include <linux/gpio.h> 21 #include <linux/extcon-provider.h> 28 #include <dt-bindings/mfd/arizona.h> 143 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp() 148 switch (arizona->type) { in arizona_extcon_hp_clamp() 165 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | wm8903.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8903.c -- WM8903 ALSA SoC Audio driver 5 * Copyright 2008-12 Wolfson Microelectronics 6 * Copyright 2011-2012 NVIDIA, Inc. 11 * - TDM mode configuration. 12 * - Digital microphone support. 20 #include <linux/gpio/driver.h> 42 { 4, 0x0018 }, /* R4 - Bias Control 0 */ 43 { 5, 0x0000 }, /* R5 - VMID Control 0 */ 44 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */ [all …]
|