/openbmc/u-boot/arch/arm/dts/ |
H A D | s5pc110-pinctrl.dtsi | 13 gpio-controller; 14 #gpio-cells = <2>; 18 gpio-controller; 19 #gpio-cells = <2>; 23 gpio-controller; 28 gpio-controller; 33 gpio-controller; 38 gpio-controller; 43 gpio-controller; 48 gpio-controller; [all …]
|
H A D | s5pc100-pinctrl.dtsi | 11 gpio-controller; 12 #gpio-cells = <2>; 16 gpio-controller; 17 #gpio-cells = <2>; 21 gpio-controller; 26 gpio-controller; 31 gpio-controller; 36 gpio-controller; 41 gpio-controller; 46 gpio-controller; [all …]
|
H A D | exynos5250-pinctrl.dtsi | 18 gpio-controller; 19 #gpio-cells = <2>; 26 gpio-controller; 27 #gpio-cells = <2>; 34 gpio-controller; 42 gpio-controller; 50 gpio-controller; 58 gpio-controller; 66 gpio-controller; 74 gpio-controller; [all …]
|
H A D | exynos4x12-pinctrl.dtsi | 18 gpio-controller; 19 #gpio-cells = <2>; 26 gpio-controller; 27 #gpio-cells = <2>; 34 gpio-controller; 42 gpio-controller; 50 gpio-controller; 58 gpio-controller; 66 gpio-controller; 74 gpio-controller; [all …]
|
H A D | exynos4210-pinctrl.dtsi | 20 gpio-controller; 21 #gpio-cells = <2>; 28 gpio-controller; 36 gpio-controller; 44 gpio-controller; 52 gpio-controller; 60 gpio-controller; 68 gpio-controller; 76 gpio-controller; 84 gpio-controller; [all …]
|
H A D | exynos54xx-pinctrl.dtsi | 20 gpio-controller; 21 #gpio-cells = <2>; 28 gpio-controller; 29 #gpio-cells = <2>; 39 gpio-controller; 50 gpio-controller; 58 gpio-controller; 69 gpio-controller; 77 gpio-controller; 85 gpio-controller; [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/gpio/ |
H A D | gpio_base.c | 53 struct gpio *gpio, in dal_gpio_open() argument 60 struct gpio *gpio, in dal_gpio_open_ex() argument 79 const struct gpio *gpio, in dal_gpio_get_value() argument 91 const struct gpio *gpio, in dal_gpio_set_value() argument 103 const struct gpio *gpio) in dal_gpio_get_mode() argument 109 struct gpio *gpio) in dal_gpio_lock_pin() argument 115 struct gpio *gpio) in dal_gpio_unlock_pin() argument 121 struct gpio *gpio, in dal_gpio_change_mode() argument 145 struct gpio *gpio, in dal_gpio_set_config() argument 252 struct gpio *gpio) in dal_gpio_close() argument [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | Makefile | 16 obj-$(CONFIG_GPIO_REGMAP) += gpio-regmap.o 20 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o 27 obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o 34 obj-$(CONFIG_GPIO_AMDPT) += gpio-amdpt.o 38 obj-$(CONFIG_GPIO_ATH79) += gpio-ath79.o 59 obj-$(CONFIG_GPIO_EM) += gpio-em.o 67 obj-$(CONFIG_GPIO_GPIO_MM) += gpio-gpio-mm.o 74 obj-$(CONFIG_GPIO_ICH) += gpio-ich.o 117 obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o 118 obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o [all …]
|
H A D | gpio-pcf857x.c | 125 status = gpio->write(gpio->client, gpio->out); in pcf857x_input() 136 value = gpio->read(gpio->client); in pcf857x_get() 144 int value = gpio->read(gpio->client); in pcf857x_get_multiple() 166 status = gpio->write(gpio->client, gpio->out); in pcf857x_output() 185 gpio->write(gpio->client, gpio->out); in pcf857x_set_multiple() 196 status = gpio->read(gpio->client); in pcf857x_irq() 203 change = (gpio->status ^ status) & gpio->irq_enabled; in pcf857x_irq() 282 gpio = devm_kzalloc(&client->dev, sizeof(*gpio), GFP_KERNEL); in pcf857x_probe() 283 if (!gpio) in pcf857x_probe() 369 gpio->status = gpio->read(gpio->client); in pcf857x_probe() [all …]
|
H A D | gpio-regmap.c | 73 ret = gpio->reg_mask_xlate(gpio, base, offset, ®, &mask); in gpio_regmap_get() 91 gpio->reg_mask_xlate(gpio, base, offset, ®, &mask); in gpio_regmap_set() 109 gpio->reg_mask_xlate(gpio, base, offset, ®, &mask); in gpio_regmap_set_with_clear() 120 if (gpio->reg_dat_base && !gpio->reg_set_base) in gpio_regmap_get_direction() 122 if (gpio->reg_set_base && !gpio->reg_dat_base) in gpio_regmap_get_direction() 229 gpio = kzalloc(sizeof(*gpio), GFP_KERNEL); in gpio_regmap_register() 230 if (!gpio) in gpio_regmap_register() 266 if (gpio->reg_set_base && gpio->reg_clr_base) in gpio_regmap_register() 272 if (gpio->reg_dir_in_base || gpio->reg_dir_out_base) { in gpio_regmap_register() 287 return gpio; in gpio_regmap_register() [all …]
|
H A D | gpio-aspeed.c | 523 *gpio = internal; in irqd_to_aspeed_gpio_data() 813 if (WARN(gpio->timer_users[gpio->offset_timer[offset]] == 0, in unregister_allocated_timer() 818 gpio->timer_users[gpio->offset_timer[offset]]--; in unregister_allocated_timer() 861 if (!gpio->clk) in enable_debounce() 1180 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in aspeed_gpio_probe() 1181 if (!gpio) in aspeed_gpio_probe() 1200 gpio->clk = NULL; in aspeed_gpio_probe() 1209 gpio->chip.ngpio = gpio->config->nr_gpios; in aspeed_gpio_probe() 1225 if (!gpio->dcache) in aspeed_gpio_probe() 1246 gpio->irq = irq; in aspeed_gpio_probe() [all …]
|
H A D | gpio-npcm-sgpio.c | 174 *gpio = internal; in npcm_sgpio_irqd_to_data() 192 gpio->in_port = in_port; in npcm_sgpio_init_port() 313 bitmap_set(valid_mask, gpio->nout_sgpio, gpio->nin_sgpio); in npcm_sgpio_irq_init_valid_mask() 474 gpio->irq = rc; in npcm_sgpio_setup_irqs() 486 irq = &gpio->chip.irq; in npcm_sgpio_setup_irqs() 506 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in npcm_sgpio_probe() 507 if (!gpio) in npcm_sgpio_probe() 511 if (IS_ERR(gpio->base)) in npcm_sgpio_probe() 544 gpio->chip.ngpio = gpio->nin_sgpio + gpio->nout_sgpio; in npcm_sgpio_probe() 551 gpio->chip.base = -1; in npcm_sgpio_probe() [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | adi_gpio2.c | 62 if (gpio == GPIO_PB15 || gpio == GPIO_PC14 || gpio == GPIO_PC15 || in check_gpio() 63 gpio == GPIO_PH14 || gpio == GPIO_PH15 || in check_gpio() 64 gpio == GPIO_PJ14 || gpio == GPIO_PJ15) in check_gpio() 262 gpio, get_label(gpio)); in gpio_request() 267 "by %s!\n", gpio, get_label(gpio)); in gpio_request() 271 reserve(gpio, gpio); in gpio_request() 289 unreserve(gpio, gpio); in gpio_free() 312 gpio, get_label(gpio)); in special_gpio_request() 358 if (!is_reserved(gpio, gpio, 0)) { in gpio_direction_input() 384 if (!is_reserved(gpio, gpio, 0)) { in gpio_direction_output() [all …]
|
/openbmc/linux/arch/mips/include/asm/mach-au1x00/ |
H A D | gpio-au1000.h | 43 struct gpio; 65 gpio -= ALCHEMY_GPIO1_BASE; in au1500_gpio1_to_irq() 67 switch (gpio) { in au1500_gpio1_to_irq() 78 gpio -= ALCHEMY_GPIO2_BASE; in au1500_gpio2_to_irq() 80 switch (gpio) { in au1500_gpio2_to_irq() 118 if ((gpio >= 8) && (gpio <= 15)) in au1100_gpio2_to_irq() 140 switch (gpio) { in au1550_gpio1_to_irq() 153 switch (gpio) { in au1550_gpio2_to_irq() 189 switch (gpio) { in au1200_gpio2_to_irq() 249 return ((gpio >= ALCHEMY_GPIO1_BASE) && (gpio <= ALCHEMY_GPIO1_MAX)); in alchemy_gpio1_is_valid() [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | mcfgpio.h | 121 #define mcfgpio_bit(gpio) (1 << ((gpio) % MCFGPIO_PORTSIZE)) argument 122 #define mcfgpio_port(gpio) ((gpio) / MCFGPIO_PORTSIZE) argument 170 if (gpio < 16) in __mcfgpio_ppdr() 177 if (gpio < 32) in __mcfgpio_ppdr() 186 if (gpio < 8) in __mcfgpio_ppdr() 213 if (gpio < 16) in __mcfgpio_podr() 220 if (gpio < 32) in __mcfgpio_podr() 229 if (gpio < 8) in __mcfgpio_podr() 256 if (gpio < 16) in __mcfgpio_pddr() 263 if (gpio < 32) in __mcfgpio_pddr() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/include/ |
H A D | gpio_interface.h | 36 struct gpio *gpio, 40 struct gpio *gpio, 45 const struct gpio *gpio, 50 const struct gpio *gpio, 55 const struct gpio *gpio); 59 struct gpio *gpio, 64 struct gpio *gpio); 68 struct gpio *gpio); 80 struct gpio *gpio, 85 const struct gpio *gpio, [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | qcom,pmic-gpio.yaml | 20 - qcom,pm2250-gpio 21 - qcom,pm660-gpio 88 gpio-controller: true 90 gpio-ranges: 93 gpio-line-names: 97 gpio-reserved-ranges: 103 '#gpio-cells': 114 - gpio-controller 115 - '#gpio-cells' 116 - gpio-ranges [all …]
|
H A D | marvell,armada-375-pinctrl.txt | 32 mpp16 16 gpio, uart0(txd) 33 mpp17 17 gpio, uart0(rxd) 34 mpp18 18 gpio, tdm(int) 35 mpp19 19 gpio, tdm(rst) 36 mpp20 20 gpio, tdm(pclk) 37 mpp21 21 gpio, tdm(fsync) 38 mpp22 22 gpio, tdm(drx) 39 mpp23 23 gpio, tdm(dtx) 56 mpp40 40 gpio, uart1(txd) 74 mpp58 58 gpio, led(c0) [all …]
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos5410-pinctrl.dtsi | 13 gpio-controller; 14 #gpio-cells = <2>; 21 gpio-controller; 22 #gpio-cells = <2>; 29 gpio-controller; 30 #gpio-cells = <2>; 37 gpio-controller; 45 gpio-controller; 53 gpio-controller; 61 gpio-controller; [all …]
|
/openbmc/linux/include/linux/ |
H A D | gpio.h | 41 struct gpio { struct 42 unsigned gpio; argument 82 void gpio_free(unsigned gpio); 86 return gpiod_direction_input(gpio_to_desc(gpio)); in gpio_direction_input() 102 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() argument 104 return gpiod_get_raw_value(gpio_to_desc(gpio)); in gpio_get_value() 111 static inline int gpio_to_irq(unsigned gpio) in gpio_to_irq() argument 113 return gpiod_to_irq(gpio_to_desc(gpio)); in gpio_to_irq() 154 static inline void gpio_free(unsigned gpio) in gpio_free() argument 180 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() argument [all …]
|
/openbmc/u-boot/arch/m68k/cpu/mcf5445x/ |
H A D | cpu_init.c | 89 out_8(&gpio->par_fbctl, in cpu_init_f() 93 out_8(&gpio->par_be, in cpu_init_f() 200 out_8(&gpio->par_be, in cpu_init_f() 203 out_8(&gpio->par_fbctl, in cpu_init_f() 208 out_be16(&gpio->par_feci2c, in cpu_init_f() 338 clrbits_8(&gpio->par_uart, in uart_port_conf() 340 setbits_8(&gpio->par_uart, in uart_port_conf() 345 clrbits_8(&gpio->par_uart, in uart_port_conf() 347 setbits_8(&gpio->par_uart, in uart_port_conf() 442 out_8(&gpio->par_dspi, in cfspi_port_conf() [all …]
|
/openbmc/linux/arch/arc/boot/dts/ |
H A D | abilis_tb100.dtsi | 160 gpio-controller; 173 gpio-controller; 186 gpio-controller; 199 gpio-controller; 212 gpio-controller; 225 gpio-controller; 238 gpio-controller; 251 gpio-controller; 264 gpio-controller; 277 gpio-controller; [all …]
|
H A D | abilis_tb101.dtsi | 169 gpio-controller; 182 gpio-controller; 195 gpio-controller; 208 gpio-controller; 221 gpio-controller; 234 gpio-controller; 247 gpio-controller; 260 gpio-controller; 273 gpio-controller; 286 gpio-controller; [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | stm32l4x5_gpio-test.c | 294 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_gpio_output_mode() 308 gpio_writel(gpio, ODR, reset(gpio, ODR)); in test_gpio_output_mode() 309 gpio_writel(gpio, MODER, reset(gpio, MODER)); in test_gpio_output_mode() 339 gpio_writel(gpio, MODER, reset(gpio, MODER)); in test_gpio_input_mode() 368 gpio_writel(gpio, MODER, reset(gpio, MODER)); in test_pull_up_pull_down() 369 gpio_writel(gpio, PUPDR, reset(gpio, PUPDR)); in test_pull_up_pull_down() 412 gpio_writel(gpio, MODER, reset(gpio, MODER)); in test_push_pull() 470 gpio_writel(gpio, OTYPER, reset(gpio, OTYPER)); in test_open_drain() 471 gpio_writel(gpio, ODR, reset(gpio, ODR)); in test_open_drain() 472 gpio_writel(gpio, MODER, reset(gpio, MODER)); in test_open_drain() [all …]
|
/openbmc/linux/drivers/ssb/ |
H A D | driver_gpio.c | 129 int gpio; in ssb_gpio_irq_chipco_handler() local 134 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_chipco_handler() 157 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init() 177 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init() 191 int gpio; in ssb_gpio_irq_chipco_domain_exit() local 198 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_exit() 328 int gpio; in ssb_gpio_irq_extif_handler() local 333 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_extif_handler() 356 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init() 375 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init() [all …]
|