| /kernel/linux/linux-6.6/drivers/video/fbdev/via/ |
| D | via-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Support for viafb GPIO ports. 9 #include <linux/gpio/driver.h> 10 #include <linux/gpio/machine.h> 12 #include <linux/via-core.h> 14 #include "via-gpio.h" 17 * The ports we know about. Note that the port-25 gpios are not 30 .vg_name = "VGPIO0", /* Guess - not in datasheet */ 82 * GPIO access functions 87 struct viafb_gpio_cfg *cfg = gpiochip_get_data(chip); in via_gpio_set() local [all …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/via/ |
| D | via-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Support for viafb GPIO ports. 9 #include <linux/gpio/driver.h> 11 #include <linux/via-core.h> 12 #include <linux/via-gpio.h> 16 * The ports we know about. Note that the port-25 gpios are not 29 .vg_name = "VGPIO0", /* Guess - not in datasheet */ 81 * GPIO access functions 86 struct viafb_gpio_cfg *cfg = gpiochip_get_data(chip); in via_gpio_set() local 88 struct viafb_gpio *gpio; in via_gpio_set() local [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/pinctrl/ |
| D | semtech,sx1501q.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Semtech SX150x GPIO expander 11 - Neil Armstrong <neil.armstrong@linaro.org> 16 - semtech,sx1501q 17 - semtech,sx1502q 18 - semtech,sx1503q 19 - semtech,sx1504q 20 - semtech,sx1505q [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/hisilicon/ |
| D | hi3620-hi4511.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012-2013 Linaro Ltd. 7 /dts-v1/; 13 compatible = "hisilicon,hi3620-hi4511"; 17 stdout-path = "serial0:115200n8"; 25 amba-bus { 31 pinctrl-names = "default", "sleep"; 32 pinctrl-0 = <&uart0_pmx_func &uart0_cfg_func>; 33 pinctrl-1 = <&uart0_pmx_idle &uart0_cfg_idle>; 38 pinctrl-names = "default", "sleep"; [all …]
|
| /kernel/linux/linux-6.6/sound/soc/ |
| D | soc-ac97.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-ac97.c -- ALSA SoC Audio Layer AC97 support 11 // with code, comments and ideas from :- 17 #include <linux/gpio/consumer.h> 18 #include <linux/gpio/driver.h> 56 return gpio_priv->component; in gpio_to_component() 62 return -EINVAL; in snd_soc_ac97_gpio_request() 72 dev_dbg(component->dev, "set gpio %d to output\n", offset); in snd_soc_ac97_gpio_direction_in() 84 dev_dbg(component->dev, "get gpio %d : %d\n", offset, in snd_soc_ac97_gpio_get() 96 gpio_priv->gpios_set &= ~(1 << offset); in snd_soc_ac97_gpio_set() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/ |
| D | soc-ac97.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-ac97.c -- ALSA SoC Audio Layer AC97 support 11 // with code, comments and ideas from :- 17 #include <linux/gpio.h> 18 #include <linux/gpio/driver.h> 59 return gpio_priv->component; in gpio_to_component() 65 return -EINVAL; in snd_soc_ac97_gpio_request() 75 dev_dbg(component->dev, "set gpio %d to output\n", offset); in snd_soc_ac97_gpio_direction_in() 87 dev_dbg(component->dev, "get gpio %d : %d\n", offset, in snd_soc_ac97_gpio_get() 99 gpio_priv->gpios_set &= ~(1 << offset); in snd_soc_ac97_gpio_set() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| D | wlf,wm8960.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 22 clock-names: 24 - const: mclk 26 '#sound-dai-cells': 29 AVDD-supply: 32 DBVDD-supply: 35 DCVDD-supply: [all …]
|
| D | wlf,wm8903.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 30 - patches@opensource.cirrus.com 39 gpio-controller: true 40 '#gpio-cells': 46 micdet-cfg: 51 micdet-delay: 56 gpio-cfg: 57 $ref: /schemas/types.yaml#/definitions/uint32-array [all …]
|
| D | cs42l56.txt | 5 - compatible : "cirrus,cs42l56" 7 - reg : the I2C address of the device for I2C 9 - VA-supply, VCP-supply, VLDO-supply : power supplies for the device, 14 - cirrus,gpio-nreset : GPIO controller's phandle and the number 15 of the GPIO used to reset the codec. 17 - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency. 24 - cirrus,ain1a-ref-cfg, ain1b-ref-cfg : boolean, If present, AIN1A or AIN1B are configured 25 as a pseudo-differential input referenced to AIN1REF/AIN3A. 27 - cirrus,ain2a-ref-cfg, ain2b-ref-cfg : boolean, If present, AIN2A or AIN2B are configured 28 as a pseudo-differential input referenced to AIN2REF/AIN3B. [all …]
|
| D | cs42l52.txt | 5 - compatible : "cirrus,cs42l52" 7 - reg : the I2C address of the device for I2C 11 - cirrus,reset-gpio : GPIO controller's phandle and the number 12 of the GPIO used to reset the codec. 14 - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency. 21 - cirrus,mica-differential-cfg : boolean, If present, then the MICA input is configured 23 Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. 25 - cirrus,micb-differential-cfg : boolean, If present, then the MICB input is configured 27 Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. 29 - cirrus,micbias-lvl: Set the output voltage level on the MICBIAS Pin [all …]
|
| /kernel/linux/linux-6.6/drivers/pinctrl/renesas/ |
| D | sh_pfc.h | 1 /* SPDX-License-Identifier: GPL-2.0 12 #include <linux/pinctrl/pinconf-generic.h> 119 * - name: Register name (unused, for documentation purposes only) 120 * - r: Physical register address 121 * - r_width: Width of the register (in bits) 122 * - f_width: Width of the fixed-width register fields (in bits) 123 * - ids: For each register field (from left to right, i.e. MSB to LSB), 137 * - name: Register name (unused, for documentation purposes only) 138 * - r: Physical register address 139 * - r_width: Width of the register (in bits) [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
| D | gpio-samsung.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd. 11 // Samsung - GPIOlib support 16 #include <linux/gpio.h> 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() [all …]
|
| D | gpio-cfg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * S3C Platform - GPIO pin configuration 11 /* This file contains the necessary definitions to get the basic gpio 13 * changing the pull-{up,down} configurations. 27 /* forward declaration if gpio-core.h hasn't been included */ 31 * struct samsung_gpio_cfg GPIO configuration 33 * @get_pull: Read the current pull configuration for the GPIO 34 * @set_pull: Set the current pull configuration for the GPIO 35 * @set_config: Set the current configuration for the GPIO 36 * @get_config: Read the current configuration for the GPIO [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | wm8960.txt | 7 - compatible : "wlf,wm8960" 9 - reg : the I2C address of the device. 12 - wlf,shared-lrclk: This is a boolean property. If present, the LRCM bit of 18 DACLRC pin. If shared-lrclk is present, no need to enable DAC for captrue. 20 - wlf,capless: This is a boolean property. If present, OUT3 pin will be 24 - wlf,hp-cfg: A list of headphone jack detect configuration register values. 26 hp-cfg[0]: HPSEL[1:0] of R48 (Additional Control 4). 27 hp-cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2). 28 hp-cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1). 30 - wlf,gpio-cfg: A list of GPIO configuration register values. [all …]
|
| D | wm8903.txt | 7 - compatible : "wlf,wm8903" 9 - reg : the I2C address of the device. 11 - gpio-controller : Indicates this device is a GPIO controller. 13 - #gpio-cells : Should be two. The first cell is the pin number and the 18 - interrupts : The interrupt line the codec is connected to. 20 - micdet-cfg : Default register value for R6 (Mic Bias). If absent, the 23 - micdet-delay : The debounce delay for microphone detection in mS. If 26 - gpio-cfg : A list of GPIO configuration register values. The list must 28 performed. If any entry has the value 0xffffffff, that GPIO's 31 - AVDD-supply : Analog power supply regulator on the AVDD pin. [all …]
|
| D | cs42l56.txt | 5 - compatible : "cirrus,cs42l56" 7 - reg : the I2C address of the device for I2C 9 - VA-supply, VCP-supply, VLDO-supply : power supplies for the device, 14 - cirrus,gpio-nreset : GPIO controller's phandle and the number 15 of the GPIO used to reset the codec. 17 - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency. 24 - cirrus,ain1a-ref-cfg, ain1b-ref-cfg : boolean, If present, AIN1A or AIN1B are configured 25 as a pseudo-differential input referenced to AIN1REF/AIN3A. 27 - cirrus,ain2a-ref-cfg, ain2b-ref-cfg : boolean, If present, AIN2A or AIN2B are configured 28 as a pseudo-differential input referenced to AIN2REF/AIN3B. [all …]
|
| D | cs42l52.txt | 5 - compatible : "cirrus,cs42l52" 7 - reg : the I2C address of the device for I2C 11 - cirrus,reset-gpio : GPIO controller's phandle and the number 12 of the GPIO used to reset the codec. 14 - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency. 21 - cirrus,mica-differential-cfg : boolean, If present, then the MICA input is configured 23 Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. 25 - cirrus,micb-differential-cfg : boolean, If present, then the MICB input is configured 27 Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. 29 - cirrus,micbias-lvl: Set the output voltage level on the MICBIAS Pin [all …]
|
| D | wm8962.txt | 7 - compatible : "wlf,wm8962" 9 - reg : the I2C address of the device. 12 - spk-mono: This is a boolean property. If present, the SPK_MONO bit 16 - mic-cfg : Default register value for R48 (Additional Control 4). 19 - gpio-cfg : A list of GPIO configuration register values. The list must 22 Any other value is regarded as setting the GPIO register by its reset 31 gpio-cfg = <
|
| /kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
| D | sh_pfc.h | 1 /* SPDX-License-Identifier: GPL-2.0 12 #include <linux/pinctrl/pinconf-generic.h> 132 * - name: Register name (unused, for documentation purposes only) 133 * - r: Physical register address 134 * - r_width: Width of the register (in bits) 135 * - f_width: Width of the fixed-width register fields (in bits) 136 * - ids: For each register field (from left to right, i.e. MSB to LSB), 151 * - name: Register name (unused, for documentation purposes only) 152 * - r: Physical register address 153 * - r_width: Width of the register (in bits) [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mach-s3c/ |
| D | gpio-cfg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * S3C Platform - GPIO pin configuration 11 /* This file contains the necessary definitions to get the basic gpio 13 * changing the pull-{up,down} configurations. 27 /* forward declaration if gpio-core.h hasn't been included */ 31 * struct samsung_gpio_cfg GPIO configuration 33 * @get_pull: Read the current pull configuration for the GPIO 34 * @set_pull: Set the current pull configuration for the GPIO 35 * @set_config: Set the current configuration for the GPIO 36 * @get_config: Read the current configuration for the GPIO [all …]
|
| D | gpio-samsung.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd. 11 // Samsung - GPIOlib support 16 #include <linux/gpio.h> 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() [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/hisilicon/ |
| D | hikey970-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <dt-bindings/pinctrl/hisi.h> 10 range: gpio-range { 11 #pinctrl-single,gpio-range-cells = <3>; 15 compatible = "pinctrl-single"; 17 #pinctrl-cells = <1>; 18 #gpio-range-cells = <0x3>; 19 pinctrl-single,register-width = <0x20>; 20 pinctrl-single,function-mask = <0x7>; 21 /* pin base, nr pins & gpio function */ [all …]
|
| D | hikey960-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <dt-bindings/pinctrl/hisi.h> 12 range: gpio-range { 13 #pinctrl-single,gpio-range-cells = <3>; 17 compatible = "pinctrl-single"; 19 #pinctrl-cells = <1>; 20 #gpio-range-cells = <0x3>; 21 pinctrl-single,register-width = <0x20>; 22 pinctrl-single,function-mask = <0x7>; 23 /* pin base, nr pins & gpio function */ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-sta2x11.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * STMicroelectronics ConneXt (STA2X11) GPIO driver 6 * Based on gpio-ml-ioh.c, Copyright 2010 OKI Semiconductors Ltd. 13 #include <linux/gpio/driver.h> 19 #include <linux/mfd/sta2x11-mfd.h> 43 struct gpio_chip gpio; member 50 * gpio methods 53 static void gsta_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) in gsta_gpio_set() argument 55 struct gsta_gpio *chip = gpiochip_get_data(gpio); in gsta_gpio_set() 56 struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK]; in gsta_gpio_set() [all …]
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| D | gpio-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * gpio-regulator.c 14 * Roger Quadros <ext-roger.quadros@nokia.com> 17 * non-controllable regulators, as well as for allowing testing on 28 #include <linux/regulator/gpio-regulator.h> 29 #include <linux/gpio/consumer.h> 50 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value() 51 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value() 52 return data->states[ptr].value; in gpio_regulator_get_value() 54 return -EINVAL; in gpio_regulator_get_value() [all …]
|