Home
last modified time | relevance | path

Searched refs:gpio_request (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v6.6/arch/sh/boards/
Dboard-sh7757lcr.c336 gpio_request(GPIO_FN_ET0_MDC, NULL); in sh7757lcr_devices_setup()
337 gpio_request(GPIO_FN_ET0_MDIO, NULL); in sh7757lcr_devices_setup()
338 gpio_request(GPIO_FN_ET1_MDC, NULL); in sh7757lcr_devices_setup()
339 gpio_request(GPIO_FN_ET1_MDIO, NULL); in sh7757lcr_devices_setup()
342 gpio_request(GPIO_FN_ON_NRE, NULL); in sh7757lcr_devices_setup()
343 gpio_request(GPIO_FN_ON_NWE, NULL); in sh7757lcr_devices_setup()
344 gpio_request(GPIO_FN_ON_NWP, NULL); in sh7757lcr_devices_setup()
345 gpio_request(GPIO_FN_ON_NCE0, NULL); in sh7757lcr_devices_setup()
346 gpio_request(GPIO_FN_ON_R_B0, NULL); in sh7757lcr_devices_setup()
347 gpio_request(GPIO_FN_ON_ALE, NULL); in sh7757lcr_devices_setup()
[all …]
Dboard-magicpanelr2.c180 gpio_request(GPIO_FN_A25, NULL); in setup_port_multiplexing()
181 gpio_request(GPIO_FN_A24, NULL); in setup_port_multiplexing()
182 gpio_request(GPIO_FN_A23, NULL); in setup_port_multiplexing()
183 gpio_request(GPIO_FN_A22, NULL); in setup_port_multiplexing()
184 gpio_request(GPIO_FN_A21, NULL); in setup_port_multiplexing()
185 gpio_request(GPIO_FN_A20, NULL); in setup_port_multiplexing()
186 gpio_request(GPIO_FN_A19, NULL); in setup_port_multiplexing()
187 gpio_request(GPIO_FN_A0, NULL); in setup_port_multiplexing()
Dboard-urquell.c151 gpio_request(GPIO_FN_USB_OVC0, NULL); in urquell_devices_setup()
152 gpio_request(GPIO_FN_USB_PENC0, NULL); in urquell_devices_setup()
/Linux-v6.6/arch/sh/boards/mach-se/7724/
Dsetup.c721 gpio_request(GPIO_FN_STATUS2, NULL); in devices_setup()
724 gpio_request(GPIO_FN_STATUS0, NULL); in devices_setup()
727 gpio_request(GPIO_FN_PDSTATUS, NULL); in devices_setup()
736 gpio_request(GPIO_FN_INTC_IRQ0, NULL); in devices_setup()
737 gpio_request(GPIO_FN_INTC_IRQ1, NULL); in devices_setup()
738 gpio_request(GPIO_FN_INTC_IRQ2, NULL); in devices_setup()
741 gpio_request(GPIO_FN_SCIF3_I_SCK, NULL); in devices_setup()
742 gpio_request(GPIO_FN_SCIF3_I_RXD, NULL); in devices_setup()
743 gpio_request(GPIO_FN_SCIF3_I_TXD, NULL); in devices_setup()
744 gpio_request(GPIO_FN_SCIF3_I_CTS, NULL); in devices_setup()
[all …]
/Linux-v6.6/arch/sh/boards/mach-migor/
Dsetup.c460 gpio_request(GPIO_FN_STATUS0, NULL); in migor_devices_setup()
463 gpio_request(GPIO_FN_PDSTATUS, NULL); in migor_devices_setup()
466 gpio_request(GPIO_FN_IRQ0, NULL); in migor_devices_setup()
471 gpio_request(GPIO_FN_KEYOUT0, NULL); in migor_devices_setup()
472 gpio_request(GPIO_FN_KEYOUT1, NULL); in migor_devices_setup()
473 gpio_request(GPIO_FN_KEYOUT2, NULL); in migor_devices_setup()
474 gpio_request(GPIO_FN_KEYOUT3, NULL); in migor_devices_setup()
475 gpio_request(GPIO_FN_KEYOUT4_IN6, NULL); in migor_devices_setup()
476 gpio_request(GPIO_FN_KEYIN1, NULL); in migor_devices_setup()
477 gpio_request(GPIO_FN_KEYIN2, NULL); in migor_devices_setup()
[all …]
/Linux-v6.6/arch/sh/boards/mach-ecovec24/
Dsetup.c596 gpio_request(GPIO_PTZ0, NULL); in ts_get_pendown_state()
602 gpio_request(GPIO_FN_INTC_IRQ0, NULL); in ts_get_pendown_state()
609 gpio_request(GPIO_FN_INTC_IRQ0, NULL); in ts_init()
1116 gpio_request(GPIO_FN_STATUS0, NULL); in arch_setup()
1117 gpio_request(GPIO_FN_STATUS2, NULL); in arch_setup()
1118 gpio_request(GPIO_FN_PDSTATUS, NULL); in arch_setup()
1121 gpio_request(GPIO_FN_SCIF0_TXD, NULL); in arch_setup()
1122 gpio_request(GPIO_FN_SCIF0_RXD, NULL); in arch_setup()
1125 gpio_request(GPIO_PTG0, NULL); in arch_setup()
1126 gpio_request(GPIO_PTG1, NULL); in arch_setup()
[all …]
/Linux-v6.6/arch/sh/boards/mach-ap325rxa/
Dsetup.c413 gpio_request(GPIO_PTX5, NULL); /* RUN */ in ap325rxa_devices_setup()
417 gpio_request(GPIO_PTX4, NULL); /* INDICATOR */ in ap325rxa_devices_setup()
422 gpio_request(GPIO_PTF7, NULL); /* MODE */ in ap325rxa_devices_setup()
427 gpio_request(GPIO_FN_LCDD15, NULL); in ap325rxa_devices_setup()
428 gpio_request(GPIO_FN_LCDD14, NULL); in ap325rxa_devices_setup()
429 gpio_request(GPIO_FN_LCDD13, NULL); in ap325rxa_devices_setup()
430 gpio_request(GPIO_FN_LCDD12, NULL); in ap325rxa_devices_setup()
431 gpio_request(GPIO_FN_LCDD11, NULL); in ap325rxa_devices_setup()
432 gpio_request(GPIO_FN_LCDD10, NULL); in ap325rxa_devices_setup()
433 gpio_request(GPIO_FN_LCDD9, NULL); in ap325rxa_devices_setup()
[all …]
/Linux-v6.6/arch/sh/boards/mach-kfr2r09/
Dsetup.c453 gpio_request(GPIO_PTN4, NULL); /* USB_DET */ in kfr2r09_usb0_gadget_setup()
463 gpio_request(GPIO_FN_PDSTATUS, NULL); /* R-standby disables USB clock */ in kfr2r09_usb0_gadget_setup()
464 gpio_request(GPIO_PTV6, NULL); /* USBCLK_ON */ in kfr2r09_usb0_gadget_setup()
494 gpio_request(GPIO_FN_SCIF1_RXD, NULL); in kfr2r09_devices_setup()
495 gpio_request(GPIO_FN_SCIF1_TXD, NULL); in kfr2r09_devices_setup()
497 gpio_request(GPIO_PTG3, NULL); /* HPON_ON */ in kfr2r09_devices_setup()
509 gpio_request(GPIO_FN_KEYOUT0, NULL); in kfr2r09_devices_setup()
510 gpio_request(GPIO_FN_KEYOUT1, NULL); in kfr2r09_devices_setup()
511 gpio_request(GPIO_FN_KEYOUT2, NULL); in kfr2r09_devices_setup()
512 gpio_request(GPIO_FN_KEYOUT3, NULL); in kfr2r09_devices_setup()
[all …]
/Linux-v6.6/arch/sh/boards/mach-highlander/
Dpinmux-r7785rp.c12 gpio_request(GPIO_FN_SCIF0_CTS, NULL); in highlander_plat_pinmux_setup()
13 gpio_request(GPIO_FN_SCIF0_RTS, NULL); in highlander_plat_pinmux_setup()
14 gpio_request(GPIO_FN_SCIF0_SCK, NULL); in highlander_plat_pinmux_setup()
15 gpio_request(GPIO_FN_SCIF0_RXD, NULL); in highlander_plat_pinmux_setup()
16 gpio_request(GPIO_FN_SCIF0_TXD, NULL); in highlander_plat_pinmux_setup()
/Linux-v6.6/arch/arm/mach-orion5x/
Dnet2big-setup.c125 err = gpio_request(NET2BIG_GPIO_SATA0_POWER, "SATA0 power status"); in net2big_sata_power_init()
136 err = gpio_request(NET2BIG_GPIO_SATA1_POWER, "SATA1 power status"); in net2big_sata_power_init()
147 err = gpio_request(NET2BIG_GPIO_SATA_POWER_REQ, "SATA power request"); in net2big_sata_power_init()
251 err = gpio_request(NET2BIG_GPIO_PWR_LED_BLINK_STOP, in net2big_gpio_leds_init()
265 err = gpio_request(NET2BIG_GPIO_SATA0_BLUE_LED, in net2big_gpio_leds_init()
275 err = gpio_request(NET2BIG_GPIO_SATA1_BLUE_LED, in net2big_gpio_leds_init()
411 if (gpio_request(NET2BIG_GPIO_POWER_OFF, "power-off") == 0 && in net2big_init()
Ddns323-setup.c625 gpio_request(DNS323_GPIO_LED_POWER1, "Power Led Enable"); in dns323_init()
667 if (gpio_request(DNS323_GPIO_POWER_OFF, "POWEROFF") != 0 || in dns323_init()
680 if (gpio_request(DNS323_GPIO_SYSTEM_UP, "SYS_READY") == 0) in dns323_init()
684 if (gpio_request(DNS323_GPIO_POWER_OFF, "POWEROFF") != 0 || in dns323_init()
694 if (gpio_request(DNS323C_GPIO_POWER_OFF, "POWEROFF") != 0 || in dns323_init()
Dboard-rd88f5182.c46 if (gpio_request(pin, "PCI IntA") == 0) { in rd88f5182_pci_preinit()
59 if (gpio_request(pin, "PCI IntB") == 0) { in rd88f5182_pci_preinit()
Dts209-setup.c113 if (gpio_request(pin, "PCI Int1") == 0) { in qnap_ts209_pci_preinit()
127 if (gpio_request(pin, "PCI Int2") == 0) { in qnap_ts209_pci_preinit()
306 if (gpio_request(TS209_RTC_GPIO, "rtc") == 0) { in qnap_ts209_init()
Dmv2120-setup.c215 if (gpio_request(MV2120_GPIO_RTC_IRQ, "rtc") == 0) { in mv2120_init()
225 if (gpio_request(MV2120_GPIO_POWER_OFF, "POWEROFF") != 0 || in mv2120_init()
/Linux-v6.6/drivers/pcmcia/
Dsa1100_h3600.c36 err = gpio_request(H3XXX_EGPIO_OPT_NVRAM_ON, "OPT NVRAM ON"); in h3600_pcmcia_hw_init()
42 err = gpio_request(H3XXX_EGPIO_OPT_ON, "OPT ON"); in h3600_pcmcia_hw_init()
48 err = gpio_request(H3XXX_EGPIO_OPT_RESET, "OPT RESET"); in h3600_pcmcia_hw_init()
54 err = gpio_request(H3XXX_EGPIO_CARD_RESET, "PCMCIA CARD RESET"); in h3600_pcmcia_hw_init()
/Linux-v6.6/arch/sh/boards/mach-rsk/
Ddevices-rsk7203.c127 gpio_request(GPIO_FN_TXD0, NULL); in rsk7203_devices_setup()
128 gpio_request(GPIO_FN_RXD0, NULL); in rsk7203_devices_setup()
132 gpio_request(GPIO_FN_IRQ0_PB, NULL); in rsk7203_devices_setup()
/Linux-v6.6/Documentation/translations/zh_CN/driver-api/gpio/
Dlegacy.rst122 对于一个 GPIO,系统应该做的第一件事情就是通过 gpio_request()
208 gpio_request()
226 int gpio_request(unsigned gpio, const char *label);
231 将无效的 GPIO 编码传递给 gpio_request()会导致失败,申请一个已使用这个
232 函数声明过的 GPIO 也会失败。gpio_request()的返回值必须检查。你应该在
259 gpio_request()前将这类细节配置好,例如使用引脚控制子系统的映射表,
270 * 其他和 gpio_request()的参数和返回值相同
/Linux-v6.6/arch/sh/kernel/cpu/sh4a/
Dsetup-shx3.c346 ret |= gpio_request(GPIO_FN_IRQ3, intc_desc_irq.name); in plat_irq_setup_pins()
347 ret |= gpio_request(GPIO_FN_IRQ2, intc_desc_irq.name); in plat_irq_setup_pins()
348 ret |= gpio_request(GPIO_FN_IRQ1, intc_desc_irq.name); in plat_irq_setup_pins()
349 ret |= gpio_request(GPIO_FN_IRQ0, intc_desc_irq.name); in plat_irq_setup_pins()
359 ret |= gpio_request(GPIO_FN_IRL3, intc_desc_irl.name); in plat_irq_setup_pins()
360 ret |= gpio_request(GPIO_FN_IRL2, intc_desc_irl.name); in plat_irq_setup_pins()
361 ret |= gpio_request(GPIO_FN_IRL1, intc_desc_irl.name); in plat_irq_setup_pins()
362 ret |= gpio_request(GPIO_FN_IRL0, intc_desc_irl.name); in plat_irq_setup_pins()
/Linux-v6.6/Documentation/translations/zh_TW/
Dgpio.txt131 對於一個 GPIO,系統應該做的第一件事情就是通過 gpio_request()
215 gpio_request()
232 int gpio_request(unsigned gpio, const char *label);
237 將無效的 GPIO 編碼傳遞給 gpio_request()會導致失敗,申請一個已使用這個
238 函數聲明過的 GPIO 也會失敗。gpio_request()的返回值必須檢查。你應該在
265 gpio_request()前將這類細節配置好,例如使用 pinctrl 子系統的映射表,
276 * 其他和 gpio_request()的參數和返回值相同
/Linux-v6.6/arch/arm/mach-ep93xx/
Dcore.c491 err = gpio_request(EP93XX_GPIO_LINE_EGPIO14, in ep93xx_pwm_acquire_gpio()
610 err = gpio_request(EP93XX_GPIO_LINE_C(i), dev_name(&pdev->dev)); in ep93xx_keypad_acquire_gpio()
613 err = gpio_request(EP93XX_GPIO_LINE_D(i), dev_name(&pdev->dev)); in ep93xx_keypad_acquire_gpio()
779 err = gpio_request(EP93XX_GPIO_LINE_EGPIO2, dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
782 err = gpio_request(EP93XX_GPIO_LINE_EGPIO15, dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
786 err = gpio_request(EP93XX_GPIO_LINE_E(i), dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
791 err = gpio_request(EP93XX_GPIO_LINE_G(i), dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
796 err = gpio_request(EP93XX_GPIO_LINE_H(i), dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
/Linux-v6.6/drivers/gpio/
Dgpiolib-legacy.c56 int gpio_request(unsigned gpio, const char *label) in gpio_request() function
66 EXPORT_SYMBOL_GPL(gpio_request);
/Linux-v6.6/include/linux/
Dgpio.h81 int gpio_request(unsigned gpio, const char *label);
138 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request() function
/Linux-v6.6/arch/m68k/coldfire/
Ddevice.c209 status = gpio_request(MCFQSPI_CS0, "MCFQSPI_CS0"); in mcf_cs_setup()
220 status = gpio_request(MCFQSPI_CS1, "MCFQSPI_CS1"); in mcf_cs_setup()
231 status = gpio_request(MCFQSPI_CS2, "MCFQSPI_CS2"); in mcf_cs_setup()
243 status = gpio_request(MCFQSPI_CS3, "MCFQSPI_CS3"); in mcf_cs_setup()
/Linux-v6.6/arch/arm/mach-sa1100/
Dh3xxx.c52 int err = gpio_request(H3XXX_EGPIO_VPP_ON, "Flash Vpp"); in h3xxx_flash_init()
89 if (!gpio_request(H3XXX_EGPIO_RS232_ON, "RS232 transceiver")) { in h3xxx_uart_pm()
/Linux-v6.6/arch/arm/mach-s3c/
Dmach-crag6410.c843 gpio_request(S3C64XX_GPB(0), "LCD power"); in crag6410_machine_init()
846 gpio_request(S3C64XX_GPF(14), "LCD PWM"); in crag6410_machine_init()
849 gpio_request(S3C64XX_GPB(1), "SD power"); in crag6410_machine_init()
852 gpio_request(S3C64XX_GPF(10), "nRESETSEL"); in crag6410_machine_init()

123