Searched refs:gpio (Results 451 - 475 of 2012) sorted by relevance

<<11121314151617181920>>

/linux-master/sound/aoa/
H A Daoa.h14 #include "aoa-gpio.h"
41 * to the fabric's gpio runtime record for the relevant
43 struct gpio_runtime *gpio; member in struct:aoa_codec
/linux-master/sound/pci/hda/
H A Dcirrus_scodec.c9 #include <linux/gpio/consumer.h>
/linux-master/drivers/pinctrl/mediatek/
H A Dpinctrl-paris.h61 unsigned int gpio, char *buf, unsigned int bufLen);
H A Dpinctrl-moore.c12 #include <linux/gpio/driver.h>
482 static int mtk_gpio_get(struct gpio_chip *chip, unsigned int gpio) argument
488 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio];
499 static void mtk_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) argument
504 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio];
506 dev_err(hw->dev, "Failed to set gpio %d\n", gpio);
513 static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio, argument
516 mtk_gpio_set(chip, gpio, value);
518 return pinctrl_gpio_direction_output(chip, gpio);
[all...]
/linux-master/drivers/pinctrl/renesas/
H A Dpinctrl-rza1.c9 * This pin controller/gpio combined driver supports Renesas devices of RZ/A1
17 #include <linux/gpio/driver.h>
737 * gpio operations
743 * Configure a pin as gpio (port mode).
747 * @chip: gpio chip where the gpio sits on
748 * @gpio: gpio offset
750 static int rza1_gpio_request(struct gpio_chip *chip, unsigned int gpio) argument
754 rza1_pin_reset(port, gpio);
769 rza1_gpio_free(struct gpio_chip *chip, unsigned int gpio) argument
776 rza1_gpio_get_direction(struct gpio_chip *chip, unsigned int gpio) argument
786 rza1_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio) argument
796 rza1_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio, int value) argument
819 rza1_gpio_get(struct gpio_chip *chip, unsigned int gpio) argument
826 rza1_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) argument
[all...]
/linux-master/tools/testing/selftests/gpio/
H A Dgpio-mockup.sh13 module="gpio-mockup"
106 $BASE/gpio-mockup-cdev $cdev_opts /dev/$chip $offset
150 $BASE/gpio-mockup-cdev $cdev_opts -s$val /dev/$chip $offset &
153 # allow for gpio-mockup-cdev to launch and request line
158 $BASE/gpio-mockup-cdev $cdev_opts /dev/$chip $offset || true
296 # e.g. /sys/kernel/debug/gpio-mockup/gpiochip1
343 source $BASE/gpio-mockup-sysfs.sh
344 echo "WARNING: gpio sysfs ABI is deprecated."
347 echo "WARNING: gpio cdev ABI v1 is deprecated."
359 # manual gpio allocatio
[all...]
/linux-master/arch/powerpc/platforms/52xx/
H A Dmpc52xx_common.c120 { .compatible = "fsl,mpc5200-gpio", },
124 { .compatible = "fsl,mpc5200-gpio-wkup", },
235 * mpc5200_psc_ac97_gpio_reset: Use gpio pins to reset the ac97 bus
242 u32 gpio; local
256 gpio = MPC52xx_GPIO_PSC1_MASK;
262 gpio = MPC52xx_GPIO_PSC2_MASK;
272 /* Reconfigure pin-muxing to gpio */
274 out_be32(&simple_gpio->port_config, mux & (~gpio));
276 /* enable gpio pins for output */
/linux-master/drivers/usb/host/
H A Dehci-exynos.c16 #include <linux/gpio/consumer.h>
123 struct gpio_desc *gpio; local
126 gpio = devm_gpiod_get_optional(dev, "samsung,vbus", GPIOD_OUT_HIGH);
127 err = PTR_ERR_OR_ZERO(gpio);
129 dev_err(dev, "can't request ehci vbus gpio: %d\n", err);
/linux-master/drivers/input/misc/
H A Dsoc_button_array.c16 #include <linux/gpio/consumer.h>
18 #include <linux/gpio.h>
59 * irq-type to IRQ_TYPE_LEVEL_LOW. Where as the gpio-keys driver programs the
61 * To work around this we don't set gpio_keys_button.gpio on these 2-in-1s,
163 int error, gpio, irq; local
191 error = soc_button_lookup_gpio(&pdev->dev, info->acpi_index, &gpio, &irq);
212 gpio_keys[n_buttons].gpio = -ENOENT;
214 gpio_keys[n_buttons].gpio = gpio;
236 pd = platform_device_register_resndata(&pdev->dev, "gpio
[all...]
/linux-master/drivers/iio/imu/
H A Dadis.c10 #include <linux/gpio/consumer.h>
398 struct gpio_desc *gpio; local
403 gpio = devm_gpiod_get_optional(&adis->spi->dev, "reset", GPIOD_OUT_HIGH);
404 if (IS_ERR(gpio))
405 return PTR_ERR(gpio);
407 if (gpio) {
410 gpiod_set_value_cansleep(gpio, 0);
/linux-master/drivers/iio/accel/
H A Dmma9551.c13 #include <linux/gpio/consumer.h>
405 struct gpio_desc *gpio; local
411 gpio = devm_gpiod_get_index(dev, NULL, i, GPIOD_IN);
412 if (IS_ERR(gpio)) {
413 dev_err(dev, "acpi gpio get index failed\n");
414 return PTR_ERR(gpio);
417 ret = gpiod_to_irq(gpio);
431 dev_dbg(dev, "gpio resource, no:%d irq:%d\n",
432 desc_to_gpio(gpio), data->irqs[i]);
/linux-master/drivers/net/can/dev/
H A Ddev.c16 #include <linux/gpio/consumer.h>
483 struct gpio_desc *gpio; local
490 gpio = devm_gpiod_get_optional(dev, "termination", GPIOD_OUT_LOW);
491 if (IS_ERR(gpio))
492 return dev_err_probe(dev, PTR_ERR(gpio),
495 if (!gpio)
513 priv->termination_gpio = gpio;
/linux-master/drivers/iio/dac/
H A Dad9739a.c14 #include <linux/gpio/consumer.h>
163 struct gpio_desc *gpio; local
166 gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
167 if (IS_ERR(gpio))
168 return PTR_ERR(gpio);
169 if (gpio) {
172 gpiod_set_value_cansleep(gpio, 0);
/linux-master/drivers/phy/motorola/
H A Dphy-cpcap-usb.c24 #include <linux/gpio/consumer.h>
122 struct gpio_desc *gpio[2]; member in struct:cpcap_phy_ddata
405 if (!ddata->gpio[0] || !ddata->gpio[1])
408 gpiod_set_value(ddata->gpio[0], mode & 1);
409 gpiod_set_value(ddata->gpio[1], mode >> 1);
551 ddata->gpio[i] = devm_gpiod_get_index(ddata->dev, "mode",
553 if (IS_ERR(ddata->gpio[i])) {
555 i, PTR_ERR(ddata->gpio[i]));
556 ddata->gpio[
[all...]
/linux-master/drivers/gpio/
H A Dgpio-nomadik.c10 * This driver also handles the mobileye,eyeq5-gpio compatible. It is an STA2X11
23 #include <linux/gpio/driver.h>
35 #include <linux/gpio/gpio-nomadik.h>
397 unsigned int gpio)
405 [NMK_GPIO_ALT_GPIO] = "gpio",
426 mode = nmk_prcm_gpiocr_get_mode(pctldev, gpio);
430 seq_printf(s, " gpio-%-3d (%-20.20s) out %s %s",
431 gpio,
444 seq_printf(s, " gpio
395 nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev, struct gpio_chip *chip, unsigned int offset, unsigned int gpio) argument
479 unsigned int i, gpio = chip->base; local
[all...]
H A Dgpio-omap.c25 #include <linux/gpio/driver.h>
27 #include <linux/platform_data/gpio-omap.h>
78 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable);
109 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, argument
113 BIT(gpio), is_input);
170 * omap2_set_gpio_debounce - low level gpio debounce time
171 * @bank: the gpio bank we're acting upon
172 * @offset: the gpio number on this @bank
224 * omap_clear_gpio_debounce - clear debounce settings for a gpio
225 * @bank: the gpio ban
273 omap_set_gpio_trigger(struct gpio_bank *bank, int gpio, unsigned trigger) argument
325 omap_toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio) argument
334 omap_set_gpio_triggering(struct gpio_bank *bank, int gpio, unsigned trigger) argument
1029 static int gpio; local
[all...]
H A Dgpio-lpc18xx.c11 #include <linux/gpio/driver.h>
48 struct gpio_chip gpio; member in struct:lpc18xx_gpio_chip
205 struct device *dev = gc->gpio.parent;
226 "gpio-pin-ic");
315 .label = "lpc18xx/43xx-gpio",
336 gc->gpio = lpc18xx_chip;
339 index = of_property_match_string(dev->of_node, "reg-names", "gpio");
369 gc->gpio.parent = dev;
371 ret = devm_gpiochip_add_data(dev, &gc->gpio, gc);
373 dev_err(dev, "failed to add gpio chi
[all...]
/linux-master/arch/arm/mach-sa1100/
H A Dgeneric.c9 #include <linux/gpio.h>
10 #include <linux/gpio/machine.h>
449 int sa11x0_gpio_set_wake(unsigned int gpio, unsigned int on) argument
452 PWER |= BIT(gpio);
454 PWER &= ~BIT(gpio);
H A Dcollie.c32 #include <linux/gpio.h>
33 #include <linux/gpio/machine.h>
34 #include <linux/power/gpio-charger.h>
106 GPIO_LOOKUP("gpio", COLLIE_GPIO_CO,
108 GPIO_LOOKUP("gpio", COLLIE_GPIO_MAIN_BAT_LOW,
112 * from common/scoop.c with this gpio chip label.
124 .dev_id = "gpio-charger",
126 GPIO_LOOKUP("gpio", COLLIE_GPIO_AC_IN,
145 .name = "gpio-charger",
235 .gpio
[all...]
H A Dassabet.c13 #include <linux/gpio/driver.h>
14 #include <linux/gpio/gpio-reg.h>
15 #include <linux/gpio/machine.h>
417 GPIO_LOOKUP("gpio", 21, "ready", GPIO_ACTIVE_HIGH),
418 GPIO_LOOKUP("gpio", 22, "detect", GPIO_ACTIVE_LOW),
419 GPIO_LOOKUP("gpio", 24, "bvd2", GPIO_ACTIVE_HIGH),
420 GPIO_LOOKUP("gpio", 25, "bvd1", GPIO_ACTIVE_HIGH),
445 .dev_id = "leds-gpio",
472 .gpio
[all...]
/linux-master/drivers/pinctrl/actions/
H A Dpinctrl-owl.c14 #include <linux/gpio/driver.h>
38 * @chip: gpio chip
572 /* disable gpio output */
575 /* disable gpio input */
663 static void irq_set_type(struct owl_pinctrl *pctrl, int gpio, unsigned int type) argument
678 if (owl_gpio_get(&pctrl->chip, gpio))
704 port = owl_gpio_get_port(pctrl, &gpio);
712 offset = (gpio < 16) ? 4 : 0;
714 value &= ~(OWL_GPIO_INT_MASK << ((gpio % 16) * 2));
715 value |= irq_type << ((gpio
727 unsigned int gpio = hwirq; local
759 unsigned int gpio = hwirq; local
791 unsigned int gpio = hwirq; local
[all...]
/linux-master/sound/soc/codecs/
H A Dpeb2466.c12 #include <linux/gpio/consumer.h>
13 #include <linux/gpio/driver.h>
65 } gpio; member in struct:peb2466
1582 * The mapping used for the relationship between the gpio offset and the
1673 cache = &peb2466->gpio.cache.xr0;
1676 cache = &peb2466->gpio.cache.xr1;
1679 cache = &peb2466->gpio.cache.xr2;
1682 cache = &peb2466->gpio.cache.xr3;
1705 mutex_lock(&peb2466->gpio.lock);
1725 mutex_unlock(&peb2466->gpio
[all...]
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_atombios.c48 ATOM_GPIO_I2C_ASSIGMENT *gpio,
55 if ((le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0018) ||
56 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0019) ||
57 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x001a)) {
58 gpio->ucClkMaskShift = 0x19;
59 gpio->ucDataMaskShift = 0x18;
66 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x1936) &&
67 (gpio->sucI2cId.ucAccess == 0)) {
68 gpio->sucI2cId.ucAccess = 0x97;
69 gpio
47 radeon_lookup_i2c_gpio_quirks(struct radeon_device *rdev, ATOM_GPIO_I2C_ASSIGMENT *gpio, u8 index) argument
85 radeon_get_bus_rec_for_i2c_gpio(ATOM_GPIO_I2C_ASSIGMENT *gpio) argument
132 ATOM_GPIO_I2C_ASSIGMENT *gpio; local
168 ATOM_GPIO_I2C_ASSIGMENT *gpio; local
202 struct radeon_gpio_rec gpio; local
236 radeon_atom_get_hpd_info_from_gpio(struct radeon_device *rdev, struct radeon_gpio_rec *gpio) argument
535 struct radeon_gpio_rec gpio; local
3784 ATOM_GPIO_VOLTAGE_OBJECT_V3 *gpio = local
[all...]
/linux-master/drivers/pinctrl/
H A Dpinctrl-mcp23s08.c11 #include <linux/gpio/driver.h>
12 #include <linux/gpio/consumer.h>
378 int intcap, intcon, intf, i, gpio, gpio_orig, intcap_mask, defval, gpinten; local
406 if (mcp_read(mcp, MCP_GPIO, &gpio))
410 mcp->cached_gpio = gpio;
414 "intcap 0x%04X intf 0x%04X gpio_orig 0x%04X gpio 0x%04X\n",
415 intcap, intf, gpio_orig, gpio);
450 gpio_set = BIT(i) & gpio;
452 (BIT(i) & gpio);
454 ((BIT(i) & gpio) !
[all...]
/linux-master/arch/arm/mach-orion5x/
H A Ddns323-setup.c16 #include <linux/gpio.h>
17 #include <linux/gpio/machine.h>
37 #include <plat/orion-gpio.h>
267 .dev_id = "leds-gpio",
281 .dev_id = "leds-gpio",
305 .dev_id = "leds-gpio",
330 .name = "leds-gpio",
344 .gpio = DNS323_GPIO_KEY_RESET,
349 .gpio = DNS323_GPIO_KEY_POWER,
363 .gpio
[all...]

Completed in 459 milliseconds

<<11121314151617181920>>