Home
last modified time | relevance | path

Searched full:gpio (Results 1 – 25 of 6625) sorted by relevance

12345678910>>...265

/kernel/linux/linux-5.10/Documentation/translations/zh_CN/
Dgpio.txt1 Chinese translated version of Documentation/admin-guide/gpio
13 Documentation/admin-guide/gpio 的中文翻译
27 GPIO 接口
37 "通用输入/输出口"(GPIO)是一个灵活的由软件控制的数字信号。他们可
40 “球珠”的一个位。电路板原理图显示了 GPIO 与外部硬件的连接关系。
43 片上系统 (SOC) 处理器对 GPIO 有很大的依赖。在某些情况下,每个
44 非专用引脚都可配置为 GPIO,且大多数芯片都最少有一些 GPIO
45 可编程逻辑器件(类似 FPGA) 可以方便地提供 GPIO。像电源管理和
48 芯片。大多数 PC 的南桥有一些拥有 GPIO 能力的引脚 (只有BIOS
51 GPIO 的实际功能因系统而异。通常用法有:
[all …]
/kernel/linux/linux-4.19/Documentation/translations/zh_CN/
Dgpio.txt1 Chinese translated version of Documentation/gpio
13 Documentation/gpio 的中文翻译
27 GPIO 接口
37 "通用输入/输出口"(GPIO)是一个灵活的由软件控制的数字信号。他们可
40 “球珠”的一个位。电路板原理图显示了 GPIO 与外部硬件的连接关系。
43 片上系统 (SOC) 处理器对 GPIO 有很大的依赖。在某些情况下,每个
44 非专用引脚都可配置为 GPIO,且大多数芯片都最少有一些 GPIO
45 可编程逻辑器件(类似 FPGA) 可以方便地提供 GPIO。像电源管理和
48 芯片。大多数 PC 的南桥有一些拥有 GPIO 能力的引脚 (只有BIOS
51 GPIO 的实际功能因系统而异。通常用法有:
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
DMakefile2 # generic gpio support: platform drivers, dedicated expander chips, etc
15 obj-$(CONFIG_GPIO_REGMAP) += gpio-regmap.o
16 obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
18 # directly supported by gpio-generic
19 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o
21 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o
22 obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o
23 obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o
24 obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o
25 obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o
[all …]
DKconfig3 # GPIO infrastructure and drivers
10 the architecture to provide a custom asm/gpio.h implementation
15 bool "GPIO Support"
17 This enables GPIO support through the generic GPIO library.
19 one or more of the GPIO drivers below.
51 bool "Debug GPIO calls"
54 Say Y here to add some extra checks and diagnostics to GPIO calls.
62 bool "/sys/class/gpio/... (sysfs interface)"
67 This ABI is deprecated. If you want to use GPIO from userspace,
80 Only say N if you are sure that the GPIO character device is not
[all …]
Dgpio-regmap.c3 * regmap based generic GPIO driver
8 #include <linux/gpio/driver.h>
9 #include <linux/gpio/regmap.h>
27 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base,
42 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() argument
46 unsigned int line = offset % gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
47 unsigned int stride = offset / gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
49 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate()
57 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local
62 if (gpio->reg_dat_base) in gpio_regmap_get()
[all …]
/kernel/linux/linux-4.19/drivers/gpio/
DMakefile2 # generic gpio support: platform drivers, dedicated expander chips, etc
15 obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
17 # directly supported by gpio-generic
18 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o
20 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o
21 obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o
22 obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o
23 obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o
24 obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o
25 obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o
[all …]
DKconfig2 # GPIO infrastructure and drivers
9 the architecture to provide a custom asm/gpio.h implementation
14 bool "GPIO Support"
17 This enables GPIO support through the generic GPIO library.
19 one or more of the GPIO drivers below.
51 bool "Debug GPIO calls"
54 Say Y here to add some extra checks and diagnostics to GPIO calls.
62 bool "/sys/class/gpio/... (sysfs interface)"
71 a given GPIO from the kernel, if no kernel driver requested it.
73 Kernel drivers may also request that a particular GPIO be
[all …]
Dgpio-dwapb.c13 #include <linux/gpio/driver.h>
29 #include <linux/platform_data/gpio-dwapb.h>
54 #define DWAPB_DRIVER_NAME "gpio-dwapb"
72 /* Store GPIO context across system-wide suspend/resume transitions */
89 struct dwapb_gpio *gpio; member
125 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument
127 if (gpio->flags & GPIO_REG_OFFSET_V2) in gpio_reg_convert()
133 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) in dwapb_read() argument
135 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_read()
136 void __iomem *reg_base = gpio->regs; in dwapb_read()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/gpio/
Dgpio_base.c55 struct gpio *gpio, in dal_gpio_open() argument
58 return dal_gpio_open_ex(gpio, mode); in dal_gpio_open()
62 struct gpio *gpio, in dal_gpio_open_ex() argument
65 if (gpio->pin) { in dal_gpio_open_ex()
70 // No action if allocation failed during gpio construct in dal_gpio_open_ex()
71 if (!gpio->hw_container.ddc) { in dal_gpio_open_ex()
75 gpio->mode = mode; in dal_gpio_open_ex()
77 return dal_gpio_service_open(gpio); in dal_gpio_open_ex()
81 const struct gpio *gpio, in dal_gpio_get_value() argument
84 if (!gpio->pin) { in dal_gpio_get_value()
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/gpio/
Drenesas,gpio-rcar.txt1 * Renesas R-Car GPIO Controller
6 - "renesas,gpio-r8a7743": for R8A7743 (RZ/G1M) compatible GPIO controller.
7 - "renesas,gpio-r8a7745": for R8A7745 (RZ/G1E) compatible GPIO controller.
8 - "renesas,gpio-r8a77470": for R8A77470 (RZ/G1C) compatible GPIO controller.
9 - "renesas,gpio-r8a7778": for R8A7778 (R-Car M1) compatible GPIO controller.
10 - "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller.
11 - "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller.
12 - "renesas,gpio-r8a7791": for R8A7791 (R-Car M2-W) compatible GPIO controller.
13 - "renesas,gpio-r8a7792": for R8A7792 (R-Car V2H) compatible GPIO controller.
14 - "renesas,gpio-r8a7793": for R8A7793 (R-Car M2-N) compatible GPIO controller.
[all …]
Dgpio.txt1 Specifying GPIO information for devices
8 properties, each containing a 'gpio-list':
10 gpio-list ::= <single-gpio> [gpio-list]
11 single-gpio ::= <gpio-phandle> <gpio-specifier>
12 gpio-phandle : phandle to gpio controller node
13 gpio-specifier : Array of #gpio-cells specifying specific gpio
16 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose
17 of this GPIO for the device. While a non-existent <name> is considered valid
19 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old
23 GPIO properties can contain one or more GPIO phandles, but only in exceptional
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/gpio/
Dgpio_base.c53 struct gpio *gpio, in dal_gpio_open() argument
56 return dal_gpio_open_ex(gpio, mode); in dal_gpio_open()
60 struct gpio *gpio, in dal_gpio_open_ex() argument
63 if (gpio->pin) { in dal_gpio_open_ex()
68 gpio->mode = mode; in dal_gpio_open_ex()
71 gpio->service, gpio->id, gpio->en, mode, &gpio->pin); in dal_gpio_open_ex()
75 const struct gpio *gpio, in dal_gpio_get_value() argument
78 if (!gpio->pin) { in dal_gpio_get_value()
83 return gpio->pin->funcs->get_value(gpio->pin, value); in dal_gpio_get_value()
87 const struct gpio *gpio, in dal_gpio_set_value() argument
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/
Dmarvell,kirkwood-pinctrl.txt24 mpp0 0 gpio, nand(io2), spi(cs)
28 mpp4 4 gpio, nand(io6), uart0(rxd), ptp(clk)
32 mpp8 8 gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk),
34 mpp9 9 gpio, twsi(sck), uart0(cts), uart1(cts), ptp(evreq),
37 mpp11 11 gpio, spi(miso), uart0(rxd), ptp(clk), ptp-1(evreq),
40 mpp13 13 gpio, sdio(cmd), uart1(txd)
41 mpp14 14 gpio, sdio(d0), uart1(rxd), mii(col)
42 mpp15 15 gpio, sdio(d1), uart0(rts), uart1(txd)
43 mpp16 16 gpio, sdio(d2), uart0(cts), uart1(rxd), mii(crs)
44 mpp17 17 gpio, sdio(d3)
[all …]
Dmarvell,armada-375-pinctrl.txt16 mpp0 0 gpio, dev(ad2), spi0(cs1), spi1(cs1)
17 mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi)
18 mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi)
19 mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk)
20 mpp4 4 gpio, dev(ad6), spi0(miso), spi1(miso)
21 mpp5 5 gpio, dev(ad7), spi0(cs2), spi1(cs2)
22 mpp6 6 gpio, dev(ad0), led(p1), audio(lrclk)
23 mpp7 7 gpio, dev(ad1), ptp(clk), led(p2), audio(extclk)
24 mpp8 8 gpio, dev (bootcs), spi0(cs0), spi1(cs0)
25 mpp9 9 gpio, spi0(sck), spi1(sck), nand(we)
[all …]
/kernel/liteos_m/targets/riscv_nuclei_demo_soc_gcc/SoC/demosoc/Common/Source/Drivers/
Ddemosoc_gpio.c4 int32_t gpio_iof_config(GPIO_TypeDef* gpio, uint32_t mask, IOF_FUNC func) in gpio_iof_config() argument
6 if (__RARELY(gpio == NULL)) { in gpio_iof_config()
11 gpio->IOF_EN &= ~mask; in gpio_iof_config()
14 gpio->IOF_SEL &= ~mask; in gpio_iof_config()
15 gpio->IOF_EN |= mask; in gpio_iof_config()
18 gpio->IOF_SEL |= mask; in gpio_iof_config()
19 gpio->IOF_EN |= mask; in gpio_iof_config()
27 int32_t gpio_enable_output(GPIO_TypeDef* gpio, uint32_t mask) in gpio_enable_output() argument
29 if (__RARELY(gpio == NULL)) { in gpio_enable_output()
32 gpio->OUTPUT_EN |= mask; in gpio_enable_output()
[all …]
/kernel/linux/linux-4.19/arch/arc/boot/dts/
Dabilis_tb100.dtsi49 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */
62 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */
75 pctl_gpio_e: pctl-gpio-e { /* GPIO bank E */
88 pctl_gpio_g: pctl-gpio-g { /* GPIO bank G */
95 pctl_gpio_j: pctl-gpio-j { /* GPIO bank J */
98 pctl_gpio_k: pctl-gpio-k { /* GPIO bank K */
130 pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */
133 pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */
144 pctl_gpio_n: pctl-gpio-n {
148 pctl_gpio_b: pctl-gpio-b {
[all …]
Dabilis_tb101.dtsi49 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */
62 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */
75 pctl_gpio_e: pctl-gpio-e { /* GPIO bank E */
88 pctl_gpio_g: pctl-gpio-g { /* GPIO bank G */
95 pctl_gpio_j: pctl-gpio-j { /* GPIO bank J */
98 pctl_gpio_k: pctl-gpio-k { /* GPIO bank K */
136 pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */
139 pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */
153 pctl_gpio_n: pctl-gpio-n {
157 pctl_gpio_b: pctl-gpio-b {
[all …]
/kernel/linux/linux-5.10/arch/arc/boot/dts/
Dabilis_tb100.dtsi37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */
50 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */
63 pctl_gpio_e: pctl-gpio-e { /* GPIO bank E */
76 pctl_gpio_g: pctl-gpio-g { /* GPIO bank G */
83 pctl_gpio_j: pctl-gpio-j { /* GPIO bank J */
86 pctl_gpio_k: pctl-gpio-k { /* GPIO bank K */
118 pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */
121 pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */
132 pctl_gpio_n: pctl-gpio-n {
136 pctl_gpio_b: pctl-gpio-b {
[all …]
Dabilis_tb101.dtsi37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */
50 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */
63 pctl_gpio_e: pctl-gpio-e { /* GPIO bank E */
76 pctl_gpio_g: pctl-gpio-g { /* GPIO bank G */
83 pctl_gpio_j: pctl-gpio-j { /* GPIO bank J */
86 pctl_gpio_k: pctl-gpio-k { /* GPIO bank K */
124 pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */
127 pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */
141 pctl_gpio_n: pctl-gpio-n {
145 pctl_gpio_b: pctl-gpio-b {
[all …]
/kernel/linux/linux-4.19/arch/mips/include/asm/mach-pmcs-msp71xx/
Dmsp_gpio_macros.h4 * board GPIO pins
41 /* -- GPIO Enumerations -- */
52 MSP_GPIO_UART_INPUT = 0x2, /* Only GPIO 4 or 5 */
54 MSP_GPIO_UART_OUTPUT = 0x9, /* Only GPIO 2 or 3 */
55 MSP_GPIO_PERIF_TIMERA = 0x9, /* Only GPIO 0 or 1 */
56 MSP_GPIO_PERIF_TIMERB = 0xa, /* Only GPIO 0 or 1 */
57 MSP_GPIO_UNKNOWN = 0xb, /* No such GPIO or mode */
64 /* GPIO 0 and 1 on the first register */
66 /* GPIO 2, 3, 4, and 5 on the second register */
68 /* GPIO 6, 7, 8, and 9 on the third register */
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/pinctrl/
Dmarvell,armada-375-pinctrl.txt16 mpp0 0 gpio, dev(ad2), spi0(cs1), spi1(cs1)
17 mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi)
18 mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi)
19 mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk)
20 mpp4 4 gpio, dev(ad6), spi0(miso), spi1(miso)
21 mpp5 5 gpio, dev(ad7), spi0(cs2), spi1(cs2)
22 mpp6 6 gpio, dev(ad0), led(p1), audio(lrclk)
23 mpp7 7 gpio, dev(ad1), ptp(clk), led(p2), audio(extclk)
24 mpp8 8 gpio, dev (bootcs), spi0(cs0), spi1(cs0)
25 mpp9 9 gpio, spi0(sck), spi1(sck), nand(we)
[all …]
/kernel/linux/linux-4.19/include/linux/
Dgpio.h3 * <linux/gpio.h>
5 * This is the LEGACY GPIO bulk include file, including legacy APIs. It is
6 * used for GPIO drivers still referencing the global GPIO numberspace,
9 * If you're implementing a GPIO driver, only include <linux/gpio/driver.h>
10 * If you're implementing a GPIO consumer, only include <linux/gpio/consumer.h>
17 /* see Documentation/driver-api/gpio/legacy.rst */
19 /* make these flag values available regardless of GPIO kconfig options */
30 /* Gpio pin is active-low */
33 /* Gpio pin is open drain */
36 /* Gpio pin is open source */
[all …]
/kernel/linux/linux-5.10/include/linux/
Dgpio.h3 * <linux/gpio.h>
5 * This is the LEGACY GPIO bulk include file, including legacy APIs. It is
6 * used for GPIO drivers still referencing the global GPIO numberspace,
9 * If you're implementing a GPIO driver, only include <linux/gpio/driver.h>
10 * If you're implementing a GPIO consumer, only include <linux/gpio/consumer.h>
17 /* see Documentation/driver-api/gpio/legacy.rst */
19 /* make these flag values available regardless of GPIO kconfig options */
30 /* Gpio pin is active-low */
33 /* Gpio pin is open drain */
36 /* Gpio pin is open source */
[all …]
/kernel/linux/linux-4.19/arch/m68k/include/asm/
Dmcfgpio.h2 * Coldfire generic GPIO support.
20 #include <asm-generic/gpio.h>
23 int __mcfgpio_get_value(unsigned gpio);
24 void __mcfgpio_set_value(unsigned gpio, int value);
25 int __mcfgpio_direction_input(unsigned gpio);
26 int __mcfgpio_direction_output(unsigned gpio, int value);
27 int __mcfgpio_request(unsigned gpio);
28 void __mcfgpio_free(unsigned gpio);
31 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value() argument
33 if (gpio < MCFGPIO_PIN_MAX) in __gpio_get_value()
[all …]
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dmcfgpio.h3 * Coldfire generic GPIO support.
12 #include <asm-generic/gpio.h>
15 int __mcfgpio_get_value(unsigned gpio);
16 void __mcfgpio_set_value(unsigned gpio, int value);
17 int __mcfgpio_direction_input(unsigned gpio);
18 int __mcfgpio_direction_output(unsigned gpio, int value);
19 int __mcfgpio_request(unsigned gpio);
20 void __mcfgpio_free(unsigned gpio);
23 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value() argument
25 if (gpio < MCFGPIO_PIN_MAX) in __gpio_get_value()
[all …]

12345678910>>...265