Home
last modified time | relevance | path

Searched full:gpio_range (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/u-boot/drivers/gpio/
H A Dstm32f7_gpio.c34 if (priv->gpio_range & BIT(i)) { in stm32_offset_to_index()
181 priv->gpio_range = GENMASK(STM32_GPIOS_PER_BANK - 1, 0); in gpio_stm32_probe()
185 priv->gpio_range |= GENMASK(args.args[2] + args.args[0] - 1, in gpio_stm32_probe()
194 dev_dbg(dev, "addr = 0x%p bank_name = %s gpio_count = %d gpio_range = 0x%x\n", in gpio_stm32_probe()
196 priv->gpio_range); in gpio_stm32_probe()
/openbmc/linux/drivers/pinctrl/
H A Dpinmux.c110 * @gpio_range: the range matching the GPIO pin if this is a request for a
115 struct pinctrl_gpio_range *gpio_range) in pin_request() argument
133 if ((!gpio_range || ops->strict) && in pin_request()
141 if ((gpio_range || ops->strict) && desc->gpio_owner) { in pin_request()
148 if (gpio_range) { in pin_request()
172 if (gpio_range && ops->gpio_request_enable) in pin_request()
174 status = ops->gpio_request_enable(pctldev, gpio_range, pin); in pin_request()
188 if (gpio_range) { in pin_request()
209 * @gpio_range: the range matching the GPIO pin if this is a request for a
217 struct pinctrl_gpio_range *gpio_range) in pin_free() argument
[all …]
H A Dpinctrl-stmfx.c618 struct pinctrl_gpio_range *gpio_range; in stmfx_pinctrl_gpio_function_enable() local
624 gpio_range = pinctrl_find_gpio_range_from_pin(pctl_dev, 16); in stmfx_pinctrl_gpio_function_enable()
625 if (gpio_range) { in stmfx_pinctrl_gpio_function_enable()
630 gpio_range = pinctrl_find_gpio_range_from_pin(pctl_dev, 20); in stmfx_pinctrl_gpio_function_enable()
631 if (gpio_range) { in stmfx_pinctrl_gpio_function_enable()
H A Dpinctrl-mlxbf3.c31 struct pinctrl_gpio_range gpio_range; member
/openbmc/linux/drivers/pinctrl/renesas/
H A Dpinctrl-rza2.c49 struct pinctrl_gpio_range gpio_range; member
262 priv->gpio_range.id = 0; in rza2_gpio_register()
263 priv->gpio_range.pin_base = priv->gpio_range.base = 0; in rza2_gpio_register()
264 priv->gpio_range.npins = priv->npins; in rza2_gpio_register()
265 priv->gpio_range.name = chip.label; in rza2_gpio_register()
266 priv->gpio_range.gc = &chip; in rza2_gpio_register()
274 pinctrl_add_gpio_range(priv->pctl, &priv->gpio_range); in rza2_gpio_register()
H A Dpinctrl-rzv2m.c125 struct pinctrl_gpio_range gpio_range; member
967 pctrl->gpio_range.id = 0; in rzv2m_gpio_register()
968 pctrl->gpio_range.pin_base = 0; in rzv2m_gpio_register()
969 pctrl->gpio_range.base = 0; in rzv2m_gpio_register()
970 pctrl->gpio_range.npins = chip->ngpio; in rzv2m_gpio_register()
971 pctrl->gpio_range.name = chip->label; in rzv2m_gpio_register()
972 pctrl->gpio_range.gc = chip; in rzv2m_gpio_register()
H A Dpinctrl-rzg2l.c151 struct pinctrl_gpio_range gpio_range; member
1399 pctrl->gpio_range.id = 0; in rzg2l_gpio_register()
1400 pctrl->gpio_range.pin_base = 0; in rzg2l_gpio_register()
1401 pctrl->gpio_range.base = 0; in rzg2l_gpio_register()
1402 pctrl->gpio_range.npins = chip->ngpio; in rzg2l_gpio_register()
1403 pctrl->gpio_range.name = chip->label; in rzg2l_gpio_register()
1404 pctrl->gpio_range.gc = chip; in rzg2l_gpio_register()
/openbmc/linux/drivers/iio/adc/
H A Dad7606.c208 gpiod_set_value(st->gpio_range, val); in ad7606_write_scale_hw()
419 st->gpio_range = devm_gpiod_get_optional(dev, "adi,range", in ad7606_request_gpios()
421 if (IS_ERR(st->gpio_range)) in ad7606_request_gpios()
422 return PTR_ERR(st->gpio_range); in ad7606_request_gpios()
578 if (st->gpio_range) in ad7606_probe()
583 if (st->gpio_range) in ad7606_probe()
667 gpiod_set_value(st->gpio_range, 1); in ad7606_suspend()
680 gpiod_set_value(st->gpio_range, st->range[0]); in ad7606_resume()
H A Dad7606.h80 * @gpio_range GPIO descriptor for range selection
109 struct gpio_desc *gpio_range; member
/openbmc/linux/drivers/pinctrl/bcm/
H A Dpinctrl-bcm2835.c90 struct pinctrl_gpio_range gpio_range; member
1186 const struct pinctrl_gpio_range *gpio_range; member
1192 .gpio_range = &bcm2835_pinctrl_gpio_range,
1198 .gpio_range = &bcm2711_pinctrl_gpio_range,
1287 pc->gpio_range = *pdata->gpio_range; in bcm2835_pinctrl_probe()
1288 pc->gpio_range.base = pc->gpio_chip.base; in bcm2835_pinctrl_probe()
1289 pc->gpio_range.gc = &pc->gpio_chip; in bcm2835_pinctrl_probe()
1290 pinctrl_add_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe()
1367 pinctrl_remove_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe()
/openbmc/linux/drivers/pinctrl/vt8500/
H A Dpinctrl-wmt.h66 struct pinctrl_gpio_range gpio_range; member
/openbmc/linux/drivers/pinctrl/tegra/
H A Dpinctrl-tegra.c826 pmx->gpio_range.name = "Tegra GPIOs"; in tegra_pinctrl_probe()
827 pmx->gpio_range.id = 0; in tegra_pinctrl_probe()
828 pmx->gpio_range.base = 0; in tegra_pinctrl_probe()
829 pmx->gpio_range.npins = pmx->soc->ngpios; in tegra_pinctrl_probe()
872 pinctrl_add_gpio_range(pmx->pctl, &pmx->gpio_range); in tegra_pinctrl_probe()
H A Dpinctrl-tegra.h19 struct pinctrl_gpio_range gpio_range; member
/openbmc/u-boot/arch/arm/mach-stm32mp/include/mach/
H A Dgpio.h115 unsigned int gpio_range; member
/openbmc/u-boot/arch/arm/include/asm/arch-stm32/
H A Dgpio.h114 unsigned int gpio_range; member
/openbmc/linux/Documentation/devicetree/bindings/gpio/
H A Dsocionext,uniphier-gpio.yaml99 gpio-ranges-group-names = "gpio_range";
/openbmc/linux/arch/arm/boot/dts/socionext/
H A Duniphier-ld4.dtsi134 gpio-ranges-group-names = "gpio_range";
H A Duniphier-pro5.dtsi242 gpio-ranges-group-names = "gpio_range";
H A Duniphier-pro4.dtsi142 gpio-ranges-group-names = "gpio_range";
/openbmc/u-boot/arch/arm/dts/
H A Duniphier-ld4.dtsi130 gpio-ranges-group-names = "gpio_range";
H A Duniphier-pro5.dtsi234 gpio-ranges-group-names = "gpio_range";
H A Duniphier-pro4.dtsi138 gpio-ranges-group-names = "gpio_range";
/openbmc/linux/Documentation/driver-api/
H A Dpin-control.rst349 static struct pinctrl_gpio_range gpio_range = {
365 pinctrl_get_group_pins(pctl, "foo", &gpio_range.pins, &gpio_range.npins);
/openbmc/linux/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier-ld4.c655 UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range),
H A Dpinctrl-uniphier-pro5.c931 UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range),

12