| /OK3568_Linux_fs/kernel/Documentation/translations/zh_CN/ |
| H A D | gpio.txt | 1 Chinese translated version of Documentation/admin-guide/gpio 12 --------------------------------------------------------------------- 13 Documentation/admin-guide/gpio 的中文翻译 26 --------------------------------------------------------------------- 27 GPIO 接口 37 "通用输入/输出口"(GPIO)是一个灵活的由软件控制的数字信号。他们可 40 “球珠”的一个位。电路板原理图显示了 GPIO 与外部硬件的连接关系。 43 片上系统 (SOC) 处理器对 GPIO 有很大的依赖。在某些情况下,每个 44 非专用引脚都可配置为 GPIO,且大多数芯片都最少有一些 GPIO。 45 可编程逻辑器件(类似 FPGA) 可以方便地提供 GPIO。像电源管理和 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 # generic gpio support: platform drivers, dedicated expander chips, etc 4 ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG 6 obj-$(CONFIG_GPIOLIB) += gpiolib.o 7 obj-$(CONFIG_GPIOLIB) += gpiolib-devres.o 8 obj-$(CONFIG_GPIOLIB) += gpiolib-legacy.o 9 obj-$(CONFIG_OF_GPIO) += gpiolib-of.o 10 obj-$(CONFIG_GPIO_CDEV) += gpiolib-cdev.o 11 obj-$(CONFIG_GPIO_SYSFS) += gpiolib-sysfs.o 12 obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o [all …]
|
| H A D | gpio-aw9110.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * 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() [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # 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. 57 non-sleeping contexts. They can make bitbanged serial protocols 62 bool "/sys/class/gpio/... (sysfs interface)" [all …]
|
| H A D | gpio-regmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * 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 [all …]
|
| H A D | gpio-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #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() [all …]
|
| H A D | gpio-zynq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Xilinx Zynq GPIO device driver 5 * Copyright (C) 2009 - 2014 Xilinx, Inc. 10 #include <linux/gpio/driver.h> 20 #define DRIVER_NAME "zynq-gpio" 46 ZYNQ##str##_GPIO_BANK0_NGPIO - 1) 49 ZYNQ##str##_GPIO_BANK1_NGPIO - 1) 52 ZYNQ##str##_GPIO_BANK2_NGPIO - 1) 55 ZYNQ##str##_GPIO_BANK3_NGPIO - 1) 58 ZYNQ##str##_GPIO_BANK4_NGPIO - 1) [all …]
|
| H A D | gpio-dwapb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/gpio/driver.h> 25 #include <linux/platform_data/gpio-dwapb.h> 29 #include "gpiolib-acpi.h" 51 #define DWAPB_DRIVER_NAME "gpio-dwapb" 71 /* Store GPIO context across system-wide suspend/resume transitions */ 94 struct dwapb_gpio *gpio; member 101 (container_of(_gc, struct dwapb_gpio_port, gc)->gpio) 131 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument 133 if (gpio->flags & GPIO_REG_OFFSET_V2) in gpio_reg_convert() [all …]
|
| H A D | gpio-tegra186.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2016-2017 NVIDIA Corporation 8 #include <linux/gpio/driver.h> 15 #include <dt-bindings/gpio/tegra186-gpio.h> 16 #include <dt-bindings/gpio/tegra194-gpio.h> 78 struct gpio_chip gpio; member 90 tegra186_gpio_get_port(struct tegra_gpio *gpio, unsigned int *pin) in tegra186_gpio_get_port() argument 94 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port() 95 const struct tegra_gpio_port *port = &gpio->soc->ports[i]; in tegra186_gpio_get_port() 97 if (*pin >= start && *pin < start + port->pins) { in tegra186_gpio_get_port() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | s5pc110-pinctrl.dtsi | 2 * U-Boot additions to enable a generic Exynos GPIO driver 6 * SPDX-License-Identifier: GPL-2.0+ 11 #address-cells = <1>; 12 #size-cells = <1>; 14 gpio-controller; 15 #gpio-cells = <2>; 19 gpio-controller; 20 #gpio-cells = <2>; 24 gpio-controller; 25 #gpio-cells = <2>; [all …]
|
| H A D | s5pc100-pinctrl.dtsi | 2 * U-Boot additions to enable a generic Exynos GPIO driver 6 * SPDX-License-Identifier: GPL-2.0+ 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>; [all …]
|
| H A D | exynos5250-pinctrl.dtsi | 2 * Samsung's Exynos5250 SoC pin-mux and pin-config device tree source 7 * Samsung's Exynos5250 SoC pin-mux and pin-config optiosn are listed as device 18 gpio-controller; 19 #gpio-cells = <2>; 21 interrupt-controller; 22 #interrupt-cells = <2>; 26 gpio-controller; 27 #gpio-cells = <2>; 29 interrupt-controller; 30 #interrupt-cells = <2>; [all …]
|
| H A D | exynos4x12-pinctrl.dtsi | 2 * Samsung's Exynos4x12 SoCs pin-mux and pin-config device tree source 7 * Samsung's Exynos4x12 SoCs pin-mux and pin-config optiosn are listed as device 18 gpio-controller; 19 #gpio-cells = <2>; 21 interrupt-controller; 22 #interrupt-cells = <2>; 26 gpio-controller; 27 #gpio-cells = <2>; 29 interrupt-controller; 30 #interrupt-cells = <2>; [all …]
|
| H A D | exynos4210-pinctrl.dtsi | 2 * Samsung's Exynos4210 SoC pin-mux and pin-config device tree source 4 * Copyright (c) 2011-2012 Samsung Electronics Co., Ltd. 6 * Copyright (c) 2011-2012 Linaro Ltd. 9 * Samsung's Exynos4210 SoC pin-mux and pin-config optiosn are listed as device 20 gpio-controller; 21 #gpio-cells = <2>; 23 interrupt-controller; 24 #interrupt-cells = <2>; 28 gpio-controller; 29 #gpio-cells = <2>; [all …]
|
| H A D | exynos54xx-pinctrl.dtsi | 2 * Samsung's Exynos5420 SoC pin-mux and pin-config device tree source 7 * Samsung's Exynos5420 SoC pin-mux and pin-config options are listed as device 15 #include "exynos54xx-pinctrl-uboot.dtsi" 20 gpio-controller; 21 #gpio-cells = <2>; 23 interrupt-controller; 24 #interrupt-cells = <2>; 28 gpio-controller; 29 #gpio-cells = <2>; 31 interrupt-controller; [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | gpio-uclass.su | |
| H A D | adi_gpio2.c | 5 * Copyright 2008-2013 Analog Devices Inc. 7 * Licensed under the GPL-2 or later 12 #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() 30 str_ident[ident].name[RESOURCE_LABEL_SIZE - 1] = 0; in set_label() 42 printf("adi_gpio2: please provide none-null label\n"); in cmp_label() 47 return -EINVAL; in cmp_label() 56 static DECLARE_RESERVED_MAP(gpio, GPIO_BANK_NUM); 59 inline int check_gpio(unsigned gpio) in check_gpio() argument [all …]
|
| H A D | tegra_gpio.c | 2 * NVIDIA Tegra20 GPIO handling. 3 * (C) Copyright 2010-2012,2015 6 * SPDX-License-Identifier: GPL-2.0+ 22 #include <asm/gpio.h> 23 #include <dm/device-internal.h> 24 #include <dt-bindings/gpio/gpio.h> 36 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ 39 /* Information about each port at run-time */ 42 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ 45 /* Return config of pin 'gpio' as GPIO (1) or SFIO (0) */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/gpio/ |
| H A D | gpio_base.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 27 * Pre-requisites: headers required by header of this unit 42 * Post-requisites: headers required by this unit 55 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() [all …]
|
| /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/gpio/ |
| H A D | gpio.txt | 1 Specifying GPIO information for devices 5 ----------------- 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 [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/ |
| H A D | marvell,kirkwood-pinctrl.txt | 3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding 7 - compatible: "marvell,88f6180-pinctrl", 8 "marvell,88f6190-pinctrl", "marvell,88f6192-pinctrl", 9 "marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl", 10 "marvell,98dx4122-pinctrl", "marvell,98dx1135-pinctrl" 11 - reg: register specifier of MPP registers 14 It also support the 88f6281-based variant in the 98dx412x Bobcat SoCs. 24 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), [all …]
|
| /OK3568_Linux_fs/kernel/arch/arc/boot/dts/ |
| H A D | abilis_tb101.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 15 bus-frequency = <166666666>; 18 clock-frequency = <1000000000>; 21 clock-mult = <1>; 22 clock-div = <2>; 25 clock-mult = <1>; 26 clock-div = <6>; 31 pctl_tsin_s0: pctl-tsin-s0 { /* Serial TS-in 0 */ 34 pctl_tsin_s1: pctl-tsin-s1 { /* Serial TS-in 1 */ 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ [all …]
|
| H A D | abilis_tb100.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 15 bus-frequency = <166666666>; 18 clock-frequency = <1000000000>; 21 clock-mult = <1>; 22 clock-div = <2>; 25 clock-mult = <1>; 26 clock-div = <6>; 31 pctl_tsin_s0: pctl-tsin-s0 { /* Serial TS-in 0 */ 34 pctl_tsin_s1: pctl-tsin-s1 { /* Serial TS-in 1 */ 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/ |
| H A D | gpio.txt | 1 Specifying GPIO information for devices 5 ----------------- 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 24 and bit-banged data signals: 27 gpio-controller; 28 #gpio-cells = <2>; [all …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/include/asm/ |
| H A D | mcfgpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * 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 [all …]
|