Home
last modified time | relevance | path

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

12345678910>>...225

/OK3568_Linux_fs/kernel/Documentation/translations/zh_CN/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpio/
H A 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 …]
H A Dgpio-aw9110.c3 * Driver for aw9110 I2C GPIO expanders
7 #include <linux/gpio/driver.h>
76 unsigned int direct; /* gpio direct */
100 struct aw9110 *gpio = gpiochip_get_data(chip); in aw9110_get() local
103 mutex_lock(&gpio->lock); in aw9110_get()
106 value = gpio->read(gpio->client, REG_INPUT_P1); in aw9110_get()
107 mutex_unlock(&gpio->lock); in aw9110_get()
111 value = gpio->read(gpio->client, REG_INPUT_P0); in aw9110_get()
112 mutex_unlock(&gpio->lock); in aw9110_get()
122 struct aw9110 *gpio = gpiochip_get_data(chip); in aw9110_get_direction() local
[all …]
H A 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 …]
H A 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 …]
H A Dgpio-aspeed.c10 #include <linux/gpio/driver.h>
11 #include <linux/gpio/aspeed.h>
23 * These two headers aren't meant to be used by GPIO drivers. We need
28 #include <linux/gpio/consumer.h>
48 * represents disabled debouncing for the GPIO. Any other value for an element
83 * line even when the GPIO is configured as an output. Since
208 static inline void __iomem *bank_reg(struct aspeed_gpio *gpio, in bank_reg() argument
214 return gpio->base + bank->val_regs + GPIO_VAL_VALUE; in bank_reg()
216 return gpio->base + bank->rdata_reg; in bank_reg()
218 return gpio->base + bank->val_regs + GPIO_VAL_DIR; in bank_reg()
[all …]
H A Dgpio-zynq.c3 * Xilinx Zynq GPIO device driver
10 #include <linux/gpio/driver.h>
20 #define DRIVER_NAME "zynq-gpio"
63 /* Register offsets for the GPIO device */
96 /* GPIO upper 16 bit mask */
117 * struct zynq_gpio - gpio device private data structure
119 * @base_addr: base address of the GPIO device
121 * @irq: interrupt for the GPIO device
137 * struct zynq_platform_data - zynq gpio platform data structure
138 * @label: string to store in gpio->label
[all …]
/OK3568_Linux_fs/u-boot/drivers/gpio/
H A Dgpio-uclass.su
H A Dadi_gpio2.c12 #include <asm/gpio.h>
20 static void gpio_error(unsigned gpio) in gpio_error() argument
22 printf("adi_gpio2: GPIO %d wasn't requested!\n", gpio); in gpio_error()
56 static DECLARE_RESERVED_MAP(gpio, GPIO_BANK_NUM);
59 inline int check_gpio(unsigned gpio) in check_gpio() argument
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()
67 if (gpio >= MAX_GPIOS) in check_gpio()
72 static void port_setup(unsigned gpio, unsigned short usage) in port_setup() argument
[all …]
H A Dtegra_gpio.c2 * NVIDIA Tegra20 GPIO handling.
22 #include <asm/gpio.h>
24 #include <dt-bindings/gpio/gpio.h>
45 /* Return config of pin 'gpio' as GPIO (1) or SFIO (0) */
46 static int get_config(unsigned gpio) in get_config() argument
49 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config()
53 u = readl(&bank->gpio_config[GPIO_PORT(gpio)]); in get_config()
54 type = (u >> GPIO_BIT(gpio)) & 1; in get_config()
57 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in get_config()
62 /* Config pin 'gpio' as GPIO or SFIO, based on 'type' */
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Ds5pc110-pinctrl.dtsi2 * U-Boot additions to enable a generic Exynos GPIO driver
14 gpio-controller;
15 #gpio-cells = <2>;
19 gpio-controller;
20 #gpio-cells = <2>;
24 gpio-controller;
25 #gpio-cells = <2>;
29 gpio-controller;
30 #gpio-cells = <2>;
34 gpio-controller;
[all …]
H A Ds5pc100-pinctrl.dtsi2 * U-Boot additions to enable a generic Exynos GPIO driver
12 gpio-controller;
13 #gpio-cells = <2>;
17 gpio-controller;
18 #gpio-cells = <2>;
22 gpio-controller;
23 #gpio-cells = <2>;
27 gpio-controller;
28 #gpio-cells = <2>;
32 gpio-controller;
[all …]
H A Dexynos5250-pinctrl.dtsi18 gpio-controller;
19 #gpio-cells = <2>;
26 gpio-controller;
27 #gpio-cells = <2>;
34 gpio-controller;
35 #gpio-cells = <2>;
42 gpio-controller;
43 #gpio-cells = <2>;
50 gpio-controller;
51 #gpio-cells = <2>;
[all …]
H A Dexynos4x12-pinctrl.dtsi18 gpio-controller;
19 #gpio-cells = <2>;
26 gpio-controller;
27 #gpio-cells = <2>;
34 gpio-controller;
35 #gpio-cells = <2>;
42 gpio-controller;
43 #gpio-cells = <2>;
50 gpio-controller;
51 #gpio-cells = <2>;
[all …]
H A Dexynos4210-pinctrl.dtsi20 gpio-controller;
21 #gpio-cells = <2>;
28 gpio-controller;
29 #gpio-cells = <2>;
36 gpio-controller;
37 #gpio-cells = <2>;
44 gpio-controller;
45 #gpio-cells = <2>;
52 gpio-controller;
53 #gpio-cells = <2>;
[all …]
H A Dexynos54xx-pinctrl.dtsi20 gpio-controller;
21 #gpio-cells = <2>;
28 gpio-controller;
29 #gpio-cells = <2>;
39 gpio-controller;
40 #gpio-cells = <2>;
50 gpio-controller;
51 #gpio-cells = <2>;
58 gpio-controller;
59 #gpio-cells = <2>;
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/gpio/
H A 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 …]
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/gpio/
H A 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
21 GPIO properties can contain one or more GPIO phandles, but only in exceptional
30 The following example could be used to describe GPIO pins used as device enable
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/arch/arc/boot/dts/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/
H A Dgpio.txt1 Specifying GPIO information for devices
7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose
8 of this GPIO for the device. While a non-existent <name> is considered valid
10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old
14 GPIO properties can contain one or more GPIO phandles, but only in exceptional
23 The following example could be used to describe GPIO pins used as device enable
27 gpio-controller;
28 #gpio-cells = <2>;
37 In the above example, &gpio1 uses 2 cells to specify a gpio. The first cell is
38 a local offset to the GPIO line and the second cell represent consumer flags,
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/pxaregs/pxaregs-1.14/
H A Dpxaregs.c92 { "PSSR_PH", 0x40F00004, 4, 0x00000001, 'd', "PM GPIO pins are held in their sleep state" },
93 { "PSSR_RDH", 0x40F00004, 5, 0x00000001, 'd', "PM receivers of all input GPIO are disabled" },
98 { "PWER_WE0", 0x40F0000C, 0, 0x00000001, 'd', "PM wake up due to GPIO 0 edge detect enabled" },
99 { "PWER_WE1", 0x40F0000C, 1, 0x00000001, 'd', "PM wake up due to GPIO 1 edge detect enabled" },
100 { "PWER_WE2", 0x40F0000C, 2, 0x00000001, 'd', "PM wake up due to GPIO 2 edge detect enabled" },
101 { "PWER_WE3", 0x40F0000C, 3, 0x00000001, 'd', "PM wake up due to GPIO 3 edge detect enabled" },
102 { "PWER_WE4", 0x40F0000C, 4, 0x00000001, 'd', "PM wake up due to GPIO 4 edge detect enabled" },
103 { "PWER_WE5", 0x40F0000C, 5, 0x00000001, 'd', "PM wake up due to GPIO 5 edge detect enabled" },
104 { "PWER_WE6", 0x40F0000C, 6, 0x00000001, 'd', "PM wake up due to GPIO 6 edge detect enabled" },
105 { "PWER_WE7", 0x40F0000C, 7, 0x00000001, 'd', "PM wake up due to GPIO 7 edge detect enabled" },
[all …]

12345678910>>...225