Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:cfg (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/linux/drivers/video/fbdev/via/
H A Dvia-gpio.c1 // 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>
13 #include "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
85 struct viafb_gpio_cfg *cfg = gpiochip_get_data(chip); in via_gpio_set() local
[all …]
/linux/arch/arm/boot/dts/hisilicon/
H A Dhi3620-hi4511.dts1 // 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 …]
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dsemtech,sx1501q.yaml1 # 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 …]
/linux/sound/soc/
H A Dsoc-ac97.c1 // 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 …]
/linux/drivers/pinctrl/renesas/
H A Dsh_pfc.h1 /* 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 …]
/linux/arch/arm64/boot/dts/hisilicon/
H A Dhikey960-pinctrl.dtsi1 // 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 …]
H A Dhikey970-pinctrl.dtsi1 // 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 …]
/linux/arch/arm/mach-s3c/
H A Dgpio-samsung.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
11 // Samsung - GPIOlib support
14 #include <linux/gpio/driver.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 …]
H A Dgpio-cfg.h1 /* 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 …]
/linux/Documentation/devicetree/bindings/sound/
H A Dwlf,wm8903.yaml1 # 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 …]
H A Dcs42l56.txt5 - 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 …]
H A Dcs42l52.txt5 - 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 …]
H A Dwlf,wm8962.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Wolfson WM8962 Ultra-Low Power Stereo CODEC
10 - patches@opensource.cirrus.com
13 - $ref: dai-common.yaml#
28 "#sound-dai-cells":
31 AVDD-supply:
34 CPVDD-supply:
37 DBVDD-supply:
[all …]
/linux/drivers/regulator/
H A Dgpio-regulator.c1 // 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 …]
H A Dfixed.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Roger Quadros <ext-roger.quadros@nokia.com>
13 * non-controllable regulators, as well as for allowing testing on
26 #include <linux/gpio/consumer.h>
55 ret = clk_prepare_enable(priv->enable_clock); in reg_clock_enable()
59 priv->enable_counter++; in reg_clock_enable()
68 clk_disable_unprepare(priv->enable_clock); in reg_clock_disable()
69 priv->enable_counter--; in reg_clock_disable()
77 struct device *dev = rdev->dev.parent; in reg_domain_enable()
80 ret = dev_pm_genpd_set_performance_state(dev, priv->performance_state); in reg_domain_enable()
[all …]
H A Dmax20411-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/gpio/consumer.h>
43 ret = regmap_read(rdev->regmap, rdev->desc->vsel_reg, &val); in max20411_enable_time()
47 val &= rdev->desc->vsel_mask; in max20411_enable_time()
51 ret = regmap_read(rdev->regmap, MAX20411_SLEW_OFFSET, &val); in max20411_enable_time()
102 struct device *dev = &client->dev; in max20411_probe()
103 struct regulator_config cfg = {}; in max20411_probe() local
108 return -ENOMEM; in max20411_probe()
110 max20411->regmap = devm_regmap_init_i2c(client, &max20411_regmap_config); in max20411_probe()
111 if (IS_ERR(max20411->regmap)) { in max20411_probe()
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-pegatron-chagall.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/gpio-keys.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/thermal/thermal.h>
9 #include "tegra30-cpu-opp.dtsi"
10 #include "tegra30-cpu-opp-microvolt.dtsi"
11 #include "tegra30-asus-lvds-display.dtsi"
16 chassis-type = "tablet";
35 * pre-existing /chosen node to be available to insert the
[all …]
H A Dtegra30-asus-tf700t.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "tegra30-asus-transformer-common.dtsi"
20 remote-endpoint = <&bridge_input>;
21 bus-width = <24>;
36 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
44 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
52 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
60 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
68 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
[all …]
H A Dtegra30-asus-tf300t.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "tegra30-asus-transformer-common.dtsi"
5 #include "tegra30-asus-lvds-display.dtsi"
11 gpio@6000d000 {
12 tf300t-init-hog {
13 gpio-hog;
15 output-low;
27 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
35 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
[all …]
/linux/drivers/input/touchscreen/
H A Dgoodix.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * 2010 - 2012 Goodix Technology.
53 /* Our special handling for GPIO accesses through ACPI is x86 specific */
64 const u8 *cfg, int len);
66 const u8 *cfg, int len);
133 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"),
140 DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"),
153 .ident = "Cube I15-TC",
156 DMI_MATCH(DMI_PRODUCT_NAME, "I15-TC")
164 * goodix_i2c_read - read data from a register of the i2c slave device.
[all …]
/linux/drivers/platform/x86/intel/int3472/
H A Dclk_and_regulator.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/clk-provider.h>
8 #include <linux/gpio/consumer.h>
14 * 82c0d13a-78c5-4244-9bb1-eb8b539a8d11
16 * through a GPIO.
28 if (clk->ena_gpio) { in skl_int3472_enable_clk()
29 gpiod_set_value_cansleep(clk->ena_gpio, enable); in skl_int3472_enable_clk()
34 args[0].integer.value = clk->imgclk_index; in skl_int3472_enable_clk()
44 acpi_evaluate_dsm(acpi_device_handle(int3472->adev), &img_clk_guid, in skl_int3472_enable_clk()
69 * We're just turning a GPIO on to enable the clock, which operation in skl_int3472_clk_enable()
[all …]
/linux/sound/hda/codecs/side-codecs/
H A Dcs35l41_hda_property.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/gpio/consumer.h>
25 int reset_gpio_index; /* -1 if no reset gpio */
26 int spkid_gpio_index; /* -1 if no spkid gpio */
27 int cs_gpio_index; /* -1 if no cs gpio, or cs-gpios already exists, max num amps == 2 */
34 { "10251826", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 },
35 { "1025182C", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 },
36 { "10251844", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, -1, -1, 0, 0, 0 },
39 { "10280BEB", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, -1, 0, 0, 0, 0 },
40 …{ "10280C4D", 4, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, CS35L41_LEFT, CS35L41_RIGHT }, 0, 1, -1,…
[all …]
/linux/drivers/hid/
H A Dhid-cp2112.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * hid-cp2112.c - Silicon Labs HID USB to SMBus master bridge
10 * SMBus controller for talking to slave devices and 8 GPIO pins. The
16 …* https://www.silabs.com/documents/public/application-notes/an495-cp2112-interface-specification…
21 #include <linux/gpio/driver.h>
30 #include "hid-ids.h"
181 MODULE_PARM_DESC(gpio_push_pull, "GPIO push-pull configuration bitmask");
186 struct hid_device *hdev = dev->hdev; in cp2112_gpio_direction_input()
187 u8 *buf = dev->in_out_buffer; in cp2112_gpio_direction_input()
190 guard(mutex)(&dev->lock); in cp2112_gpio_direction_input()
[all …]
/linux/drivers/gpio/
H A Dgpio-usbio.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/gpio/driver.h>
32 { "INTC10D1" }, /* MTL-CVF */
41 struct usbio_gpio *gpio = gpiochip_get_data(gc); in usbio_gpio_get_bank_and_pin() local
42 struct device *dev = &gpio->adev->dev; in usbio_gpio_get_bank_and_pin()
46 bank = &gpio->banks[offset / USBIO_GPIOSPERBANK]; in usbio_gpio_get_bank_and_pin()
48 if (~bank->bitmap & BIT(pin)) { in usbio_gpio_get_bank_and_pin()
50 dev_warn_once(dev, FW_BUG "GPIO %u is not in FW pins bitmap\n", offset); in usbio_gpio_get_bank_and_pin()
61 u8 cfg; in usbio_gpio_get_direction() local
65 cfg = bank->config[pin] & USBIO_GPIO_PINMOD_MASK; in usbio_gpio_get_direction()
[all …]
/linux/arch/riscv/boot/dts/sophgo/
H A Dsg2042-milkv-pioneer.dts1 // SPDX-License-Identifier: GPL-2.0 OR MIT
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
12 model = "Milk-V Pioneer";
16 stdout-path = "serial0";
19 gpio-power {
20 compatible = "gpio-keys";
22 key-power {
26 linux,input-type = <EV_KEY>;
27 debounce-interval = <100>;
[all …]

12345678910>>...13