Home
last modified time | relevance | path

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

12345678910>>...232

/openbmc/linux/Documentation/translations/zh_CN/driver-api/gpio/
H A Dlegacy.rst5 :Original: Documentation/driver-api/gpio/legacy.rst
26 "通用输入/输出口"(GPIO)是一个灵活的由软件控制的数字信号。他们可
29 “球珠”的一个位。电路板原理图显示了 GPIO 与外部硬件的连接关系。
32 片上系统 (SOC) 处理器对 GPIO 有很大的依赖。在某些情况下,每个
33 非专用引脚都可配置为 GPIO,且大多数芯片都最少有一些 GPIO
34 可编程逻辑器件(类似 FPGA) 可以方便地提供 GPIO。像电源管理和
37 芯片。大多数 PC 的南桥有一些拥有 GPIO 能力的引脚 (只有BIOS
40 GPIO 的实际功能因系统而异。通常用法有:
47 “线与”的情况(以支持双向信号)是非常有用的。GPIO 控制器可能有输入
53 - 通常一个 GPIO 根据不同产品电路板的需求,可以配置为输入或输出,也有仅
[all …]
/openbmc/linux/drivers/gpio/
H A DMakefile2 # generic gpio support: platform drivers, dedicated expander chips, etc
16 obj-$(CONFIG_GPIO_REGMAP) += gpio-regmap.o
17 obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
19 # directly supported by gpio-generic
20 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o
22 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o
23 obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o
24 obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o
25 obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o
26 obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o
[all …]
H A DKconfig3 # GPIO infrastructure and drivers
7 bool "GPIO Support"
9 This enables GPIO support through the generic GPIO library.
11 one or more of the GPIO drivers below.
47 this symbol, but new drivers should use the generic gpio-regmap
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)" if EXPERT
68 This ABI is deprecated. If you want to use GPIO from userspace,
81 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
17 #include <linux/gpio/driver.h>
18 #include <linux/gpio/regmap.h>
33 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base,
48 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() argument
52 unsigned int line = offset % gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
53 unsigned int stride = offset / gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
55 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate()
63 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local
68 if (gpio->reg_dat_base) in gpio_regmap_get()
[all …]
/openbmc/u-boot/arch/arm/dts/
H A Ds5pc110-pinctrl.dtsi3 * U-Boot additions to enable a generic Exynos GPIO driver
13 gpio-controller;
14 #gpio-cells = <2>;
18 gpio-controller;
19 #gpio-cells = <2>;
23 gpio-controller;
24 #gpio-cells = <2>;
28 gpio-controller;
29 #gpio-cells = <2>;
33 gpio-controller;
[all …]
H A Ds5pc100-pinctrl.dtsi3 * U-Boot additions to enable a generic Exynos GPIO driver
11 gpio-controller;
12 #gpio-cells = <2>;
16 gpio-controller;
17 #gpio-cells = <2>;
21 gpio-controller;
22 #gpio-cells = <2>;
26 gpio-controller;
27 #gpio-cells = <2>;
31 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 …]
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/
H A Dqcom,pmic-gpio.yaml4 $id: http://devicetree.org/schemas/pinctrl/qcom,pmic-gpio.yaml#
7 title: Qualcomm PMIC GPIO block
13 This binding describes the GPIO block(s) found in the 8xxx series of
20 - qcom,pm2250-gpio
21 - qcom,pm660-gpio
22 - qcom,pm660l-gpio
23 - qcom,pm6125-gpio
24 - qcom,pm6150-gpio
25 - qcom,pm6150l-gpio
26 - qcom,pm6350-gpio
[all …]
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 …]
H A Dmarvell,armada-xp-pinctrl.txt21 mpp0 0 gpio, ge0(txclkout), lcd(d0)
22 mpp1 1 gpio, ge0(txd0), lcd(d1)
23 mpp2 2 gpio, ge0(txd1), lcd(d2)
24 mpp3 3 gpio, ge0(txd2), lcd(d3)
25 mpp4 4 gpio, ge0(txd3), lcd(d4)
26 mpp5 5 gpio, ge0(txctl), lcd(d5)
27 mpp6 6 gpio, ge0(rxd0), lcd(d6)
28 mpp7 7 gpio, ge0(rxd1), lcd(d7)
29 mpp8 8 gpio, ge0(rxd2), lcd(d8)
30 mpp9 9 gpio, ge0(rxd3), lcd(d9)
[all …]
/openbmc/linux/Documentation/translations/zh_TW/
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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/gpio/
H A 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 // No action if allocation failed during gpio construct in dal_gpio_open_ex()
69 if (!gpio->hw_container.ddc) { in dal_gpio_open_ex()
73 gpio->mode = mode; in dal_gpio_open_ex()
75 return dal_gpio_service_open(gpio); in dal_gpio_open_ex()
79 const struct gpio *gpio, in dal_gpio_get_value() argument
82 if (!gpio->pin) { in dal_gpio_get_value()
[all …]
/openbmc/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 …]
/openbmc/u-boot/drivers/gpio/
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.c3 * NVIDIA Tegra20 GPIO handling.
21 #include <asm/gpio.h>
23 #include <dt-bindings/gpio/gpio.h>
42 /* Return config of pin 'gpio' as GPIO (1) or SFIO (0) */
43 static int get_config(unsigned gpio) in get_config() argument
46 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config()
50 u = readl(&bank->gpio_config[GPIO_PORT(gpio)]); in get_config()
51 type = (u >> GPIO_BIT(gpio)) & 1; in get_config()
54 GPIO_FULLPORT(gpio), GPIO_BIT(gpio), type ? "GPIO" : "SFPIO"); in get_config()
59 /* Config pin 'gpio' as GPIO or SFIO, based on 'type' */
[all …]
/openbmc/linux/arch/arm/boot/dts/samsung/
H A Dexynos5410-pinctrl.dtsi12 gpa0: gpa0-gpio-bank {
13 gpio-controller;
14 #gpio-cells = <2>;
20 gpa1: gpa1-gpio-bank {
21 gpio-controller;
22 #gpio-cells = <2>;
28 gpa2: gpa2-gpio-bank {
29 gpio-controller;
30 #gpio-cells = <2>;
36 gpb0: gpb0-gpio-bank {
[all …]
/openbmc/linux/include/linux/
H A 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>
19 /* see Documentation/driver-api/gpio/legacy.rst */
21 /* make these flag values available regardless of GPIO kconfig options */
32 /* Gpio pin is active-low */
36 * struct gpio - a structure describing a GPIO with configuration
37 * @gpio: the GPIO number
[all …]
/openbmc/linux/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 …]
/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_gpio-test.c2 * QTest testcase for the Nuvoton NPCM7xx GPIO modules.
21 #define GPIO(x) (0xf0010000 + (x) * 0x1000) macro
24 /* GPIO registers */
58 if (readl(GPIO(n) + GP_N_TLOCK1) != 0) { in gpio_unlock()
59 writel(GPIO(n) + GP_N_TLOCK2, 0xc0de1248); in gpio_unlock()
60 writel(GPIO(n) + GP_N_TLOCK1, 0xc0defa73); in gpio_unlock()
64 /* Restore the GPIO controller to a sensible default state. */
69 writel(GPIO(n) + GP_N_EVEN, 0x00000000); in gpio_reset()
70 writel(GPIO(n) + GP_N_EVST, 0xffffffff); in gpio_reset()
71 writel(GPIO(n) + GP_N_POL, 0x00000000); in gpio_reset()
[all …]
/openbmc/linux/Documentation/admin-guide/gpio/
H A Dgpio-sim.rst3 Configfs GPIO Simulator
6 The configfs GPIO Simulator (gpio-sim) provides a way to create simulated GPIO
8 using the standard GPIO character device interface as well as manipulated
14 The gpio-sim module registers a configfs subsystem called ``'gpio-sim'``. For
21 **Group:** ``/config/gpio-sim``
23 This is the top directory of the gpio-sim configfs tree.
25 **Group:** ``/config/gpio-sim/gpio-device``
27 **Attribute:** ``/config/gpio-sim/gpio-device/dev_name``
29 **Attribute:** ``/config/gpio-sim/gpio-device/live``
31 This is a directory representing a GPIO platform device. The ``'dev_name'``
[all …]

12345678910>>...232