/openbmc/linux/Documentation/translations/zh_CN/driver-api/gpio/ |
H A D | legacy.rst | 15 传统GPIO接口 18 本文档概述了Linux下的GPIO访问公约。 24 什么是GPIO? 26 "通用输入/输出口"(GPIO)是一个灵活的由软件控制的数字信号。他们可 28 比较熟悉。每个GPIO 都代表一个连接到特定引脚或球栅阵列(BGA)封装中 29 “球珠”的一个位。电路板原理图显示了 GPIO 与外部硬件的连接关系。 32 片上系统 (SOC) 处理器对 GPIO 有很大的依赖。在某些情况下,每个 33 非专用引脚都可配置为 GPIO,且大多数芯片都最少有一些 GPIO。 34 可编程逻辑器件(类似 FPGA) 可以方便地提供 GPIO。像电源管理和 36 匮乏的 SOC。同时还有通过 I2C 或 SPI 串行总线连接的“GPIO扩展器” [all …]
|
/openbmc/linux/Documentation/translations/zh_TW/ |
H A D | gpio.txt | 27 GPIO 接口 29 本文檔提供了一個在Linux下訪問GPIO的公約概述。 35 什麼是GPIO? 37 "通用輸入/輸出口"(GPIO)是一個靈活的由軟體控制的數位訊號。他們可 39 比較熟悉。每個GPIO 都代表一個連接到特定引腳或球柵陣列(BGA)封裝中 40 「球珠」的一個位。電路板原理圖顯示了 GPIO 與外部硬體的連接關係。 43 片上系統 (SOC) 處理器對 GPIO 有很大的依賴。在某些情況下,每個 44 非專用引腳都可配置爲 GPIO,且大多數晶片都最少有一些 GPIO。 45 可編程邏輯器件(類似 FPGA) 可以方便地提供 GPIO。像電源管理和 47 匱乏的 SOC。同時還有通過 I2C 或 SPI 串行總線連接的「GPIO擴展器」 [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | npcm7xx_gpio-test.c | 21 #define GPIO(x) (0xf0010000 + (x) * 0x1000) macro 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() 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() 72 writel(GPIO(n) + GP_N_DOUT, 0x00000000); in gpio_reset() 73 writel(GPIO(n) + GP_N_OE, 0x00000000); in gpio_reset() 74 writel(GPIO(n) + GP_N_OTYP, 0x00000000); in gpio_reset() [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-xway.c | 115 MFP_XWAY(GPIO0, GPIO, EXIN, MII, TDM), 116 MFP_XWAY(GPIO1, GPIO, STP, DFE, EBU), 117 MFP_XWAY(GPIO2, GPIO, STP, DFE, EPHY), 118 MFP_XWAY(GPIO3, GPIO, STP, EPHY, EBU), 119 MFP_XWAY(GPIO4, GPIO, GPT, EPHY, MII), 120 MFP_XWAY(GPIO5, GPIO, MII, ASC, GPT), 121 MFP_XWAY(GPIO6, GPIO, MII, ASC, EXIN), 122 MFP_XWAY(GPIO7, GPIO, SPI, MII, JTAG), 123 MFP_XWAY(GPIO8, GPIO, SPI, MII, JTAG), 124 MFP_XWAY(GPIO9, GPIO, SPI, MII, JTAG), [all …]
|
H A D | pinctrl-lpc18xx.c | 240 LPC_P(0,0, GPIO, SSP1, ENET, SGPIO, R, R, I2S0_TX_WS,I2S1, 0, ND); 241 LPC_P(0,1, GPIO, SSP1,ENET_ALT,SGPIO, R, R, ENET, I2S1, 0, ND); 242 LPC_P(1,0, GPIO, CTIN, EMC, R, R, SSP0, SGPIO, R, 0, ND); 243 LPC_P(1,1, GPIO, CTOUT, EMC, SGPIO, R, SSP0, R, R, 0, ND); 244 LPC_P(1,2, GPIO, CTOUT, EMC, SGPIO, R, SSP0, R, R, 0, ND); 245 LPC_P(1,3, GPIO, CTOUT, SGPIO, EMC, USB0, SSP1, R, SDMMC, 0, ND); 246 LPC_P(1,4, GPIO, CTOUT, SGPIO, EMC, USB0, SSP1, R, SDMMC, 0, ND); 247 LPC_P(1,5, GPIO, CTOUT, R, EMC, USB0, SSP1, SGPIO, SDMMC, 0, ND); 248 LPC_P(1,6, GPIO, CTIN, R, EMC, R, R, SGPIO, SDMMC, 0, ND); 249 LPC_P(1,7, GPIO, UART1, CTOUT, EMC, USB0, R, R, R, 0, ND); [all …]
|
H A D | pinctrl-falcon.c | 107 MFP_FALCON(GPIO0, RST, GPIO, NONE, NONE), 108 MFP_FALCON(GPIO1, GPIO, GPIO, NONE, NONE), 109 MFP_FALCON(GPIO2, GPIO, GPIO, NONE, NONE), 110 MFP_FALCON(GPIO3, GPIO, GPIO, NONE, NONE), 111 MFP_FALCON(GPIO4, NTR, GPIO, NONE, NONE), 112 MFP_FALCON(GPIO5, NTR, GPIO, PPS, NONE), 113 MFP_FALCON(GPIO6, RST, GPIO, NONE, NONE), 114 MFP_FALCON(GPIO7, MDIO, GPIO, NONE, NONE), 115 MFP_FALCON(GPIO8, MDIO, GPIO, NONE, NONE), 116 MFP_FALCON(GPIO9, LED, GPIO, NONE, NONE), [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | Kconfig | 3 # 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. 51 bool "Debug GPIO calls" 54 Say Y here to add some extra checks and diagnostics to GPIO calls. 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 87 bool "Support GPIO ABI Version 1" 91 Say Y here to support version 1 of the GPIO CDEV ABI. [all …]
|
H A D | TODO | 1 This is a place for planning the ongoing long-term work in the GPIO 5 GPIO descriptors 7 Starting with commit 79a9becda894 the GPIO subsystem embarked on a journey 8 to move away from the global GPIO numberspace and toward a descriptor-based 9 approach. This means that GPIO consumers, drivers and machine descriptions 10 ideally have no use or idea of the global GPIO numberspace that has/was 11 used in the inception of the GPIO subsystem. 16 The underlying motivation for this is that the GPIO numberspace has become 23 Linux GPIO number as those descriptions are external to the Linux kernel 24 and treat GPIO lines as abstract entities. [all …]
|
/openbmc/linux/drivers/pinctrl/bcm/ |
H A D | Kconfig | 18 framework. GPIO is provided by a separate GPIO driver. 21 tristate "Broadcom BCM2835 GPIO (with PINCONF) driver" 30 Say Y here to enable the Broadcom BCM2835 GPIO driver. 56 bool "Broadcom BCM6318 GPIO driver" 62 Say Y here to enable the Broadcom BCM6318 GPIO driver. 65 bool "Broadcom BCM6328 GPIO driver" 71 Say Y here to enable the Broadcom BCM6328 GPIO driver. 74 bool "Broadcom BCM6358 GPIO driver" 80 Say Y here to enable the Broadcom BCM6358 GPIO driver. 83 bool "Broadcom BCM6362 GPIO driver" [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | Kconfig | 2 # GPIO infrastructure and drivers 5 menu "GPIO Support" 8 bool "Enable Driver Model for GPIO drivers" 11 Enable driver model for GPIO access. The standard GPIO 13 the GPIO uclass. Drivers provide methods to query the 18 bool "Enable GPIO hog support" 23 The GPIO chip may contain GPIO hog definitions. GPIO hogging 24 is a mechanism providing automatic GPIO request and config- 28 bool "Enable GPIO hog support in SPL" 33 The GPIO chip may contain GPIO hog definitions. GPIO hogging [all …]
|
/openbmc/witherspoon-pfault-analysis/ |
H A D | gpio.hpp | 46 class GPIO class 49 GPIO() = delete; 50 GPIO(const GPIO&) = delete; 51 GPIO(GPIO&&) = default; 52 GPIO& operator=(const GPIO&) = delete; 53 GPIO& operator=(GPIO&&) = default; 54 ~GPIO() = default; 63 GPIO(const std::string& device, gpioNum_t gpio, Direction direction) : in GPIO() function in witherspoon::gpio::GPIO
|
/openbmc/phosphor-power/ |
H A D | gpio.hpp | 46 class GPIO class 49 GPIO() = delete; 50 GPIO(const GPIO&) = delete; 51 GPIO(GPIO&&) = default; 52 GPIO& operator=(const GPIO&) = delete; 53 GPIO& operator=(GPIO&&) = default; 54 ~GPIO() = default; 63 GPIO(const std::string& device, gpioNum_t gpio, Direction direction) : in GPIO() function in phosphor::gpio::GPIO
|
/openbmc/linux/Documentation/admin-guide/gpio/ |
H A D | gpio-aggregator.rst | 3 GPIO Aggregator 6 The GPIO Aggregator provides a mechanism to aggregate GPIOs, and expose them as 13 GPIO controllers are exported to userspace using /dev/gpiochip* character 15 system permissions, on an all-or-nothing basis: either a GPIO controller is 18 The GPIO Aggregator provides access control for a set of one or more GPIOs, by 22 grab the full GPIO controller, and no longer needs to care about which GPIOs to 25 Aggregated GPIO controllers are instantiated and destroyed by writing to 31 Userspace may ask the kernel to instantiate an aggregated GPIO 42 is a GPIO line name, 45 is a GPIO chip label, and [all …]
|
/openbmc/openbmc/meta-facebook/meta-tiogapass/recipes-phosphor/flash/phosphor-software-manager/ |
H A D | bios-update | 7 GPIO=389 21 if [ ! -d /sys/class/gpio/gpio$GPIO ]; then 23 echo $GPIO > "export" 24 cd gpio$GPIO 26 cd /sys/class/gpio/gpio$GPIO 42 if [ ! -d /sys/class/gpio/gpio$GPIO ]; then 44 echo $GPIO > "export" 45 cd gpio$GPIO 47 cd /sys/class/gpio/gpio$GPIO 58 echo $GPIO > /sys/class/gpio/unexport [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-chromeos-acpi | 67 What: /sys/bus/platform/devices/GGL0001:*/GPIO.X/GPIO.0 68 /sys/bus/platform/devices/GOOG0016:*/GPIO.X/GPIO.0 72 Returns type of the GPIO signal for the Chrome OS specific 73 GPIO assignments (integer). 79 256 to 511 Debug header GPIO 0 to GPIO 255. 82 What: /sys/bus/platform/devices/GGL0001:*/GPIO.X/GPIO.1 83 /sys/bus/platform/devices/GOOG0016:*/GPIO.X/GPIO.1 87 Returns signal attributes of the GPIO signal (integer bitfield). 94 What: /sys/bus/platform/devices/GGL0001:*/GPIO.X/GPIO.2 95 /sys/bus/platform/devices/GOOG0016:*/GPIO.X/GPIO.2 [all …]
|
/openbmc/linux/arch/arm64/boot/dts/bitmain/ |
H A D | bm1880-sophon-edge.dts | 12 * GPIO name legend: proper name = the GPIO line is used as GPIO 15 * "[PER]" = pin is muxed for [peripheral] (not GPIO) 29 * lines i.e. "[FOO]", the GPIO named lines "GPIO-A" thru "GPIO-L" 30 * are the only ones actually used for GPIO. 56 "GPIO-A", /* GPIO0, LSEC pin 23 */ 57 "GPIO-C", /* GPIO1, LSEC pin 25 */ 59 "GPIO-E", /* GPIO3, LSEC pin 27 */ 63 "GPIO-G", /* GPIO7, LSEC pin 29 */ 112 "GPIO-I", /* GPIO50, LSEC pin 31 */ 113 "GPIO-K", /* GPIO51, LSEC pin 33 */ [all …]
|
/openbmc/linux/arch/arm/boot/dts/hisilicon/ |
H A D | hi3620-hi4511.dts | 71 0x008 0x0 /* GPIO -- eFUSE_DOUT */ 95 0x0f8 0x1 /* GPIO (IOMG61) */ 96 0x0fc 0x1 /* GPIO (IOMG62) */ 107 0x104 0x1 /* GPIO (IOMG96) */ 108 0x108 0x1 /* GPIO (IOMG64) */ 119 0x160 0x1 /* GPIO (IOMG85) */ 120 0x164 0x1 /* GPIO (IOMG86) */ 132 0x168 0x1 /* GPIO (IOMG87) */ 133 0x16c 0x1 /* GPIO (IOMG88) */ 134 0x170 0x1 /* GPIO (IOMG93) */ [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/gpio/ |
H A D | gpio.txt | 1 Specifying GPIO information for devices 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 66 GPIO pin number, and GPIO flags as accepted by the "qe_pio_e" gpio-controller. 68 1.1) GPIO specifier best practices 71 A gpio-specifier should contain a flag indicating the GPIO polarity; active- 76 GPIO controller that achieves (or represents, for inputs) a logically asserted 79 the GPIO controller and the device, then the gpio-specifier will represent the [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | gpio-mouse.txt | 1 Device-Tree bindings for GPIO attached mice 3 This simply uses standard GPIO handles to define a simple mouse connected 4 to 5-7 GPIO lines. 9 - up-gpios: GPIO line phandle to the line indicating "up" 10 - down-gpios: GPIO line phandle to the line indicating "down" 11 - left-gpios: GPIO line phandle to the line indicating "left" 12 - right-gpios: GPIO line phandle to the line indicating "right" 15 - button-left-gpios: GPIO line handle to the left mouse button 16 - button-middle-gpios: GPIO line handle to the middle mouse button 17 - button-right-gpios: GPIO line handle to the right mouse button
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio.txt | 1 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 38 a local offset to the GPIO line and the second cell represent consumer flags, 57 GPIO pin number, and GPIO flags as accepted by the "qe_pio_e" gpio-controller. 83 1.1) GPIO specifier best practices 86 A gpio-specifier should contain a flag indicating the GPIO polarity; active- [all …]
|
H A D | nxp,lpc1850-gpio.txt | 1 NXP LPC18xx/43xx GPIO controller Device Tree Bindings 6 - reg : List of addresses and lengths of the GPIO controller 10 - clocks : Phandle and clock specifier pair for GPIO controller 11 - resets : Phandle and reset specifier pair for GPIO controller 12 - gpio-controller : Marks the device node as a GPIO controller 14 - The first cell is the GPIO line number 19 0..9 range, for GPIO pin interrupts it is equal 21 GPIO pin configuration, 8 is for GPIO GROUP0 22 interrupt, 9 is for GPIO GROUP1 interrupt 26 - gpio-ranges : Mapping between GPIO and pinctrl
|
H A D | intel,ixp4xx-gpio.txt | 1 Intel IXP4xx XScale Networking Processors GPIO 3 This GPIO controller is found in the Intel IXP4xx processors. 4 It supports 16 GPIO lines. 6 The interrupt portions of the GPIO controller is hierarchical: 7 the synchronous edge detector is part of the GPIO block, but the 10 the first 12 GPIO lines to 12 system interrupts. 12 The remaining 4 GPIO lines can not be used for receiving 15 The interrupt parent of this GPIO controller must be the 23 - gpio-controller : marks this as a GPIO controller
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | driver.rst | 2 GPIO Driver Interface 5 This document serves as a guide for writers of GPIO chip drivers. 7 Each GPIO controller driver needs to include the following header, which defines 8 the structures used to define a GPIO driver:: 16 A GPIO chip handles one or more GPIO lines. To be considered a GPIO chip, the 18 line is not general purpose, it is not GPIO and should not be handled by a 19 GPIO chip. The use case is the indicative: certain lines in a system may be 20 called GPIO but serve a very particular purpose thus not meeting the criteria 22 GPIO and should therefore still be handled by a GPIO chip driver. 24 Inside a GPIO driver, individual GPIO lines are identified by their hardware [all …]
|
H A D | legacy.rst | 2 Legacy GPIO Interfaces 5 This provides an overview of GPIO access conventions on Linux. 11 What is a GPIO? 13 A "General Purpose Input/Output" (GPIO) is a flexible software-controlled 15 to Linux developers working with embedded and custom hardware. Each GPIO 22 non-dedicated pin can be configured as a GPIO; and most chips have at least 26 also "GPIO Expander" chips that connect using the I2C or SPI serial busses. 27 Most PC southbridges have a few dozen GPIO-capable pins (with only the BIOS 39 cases (to support bidirectional signaling). GPIO controllers may have 46 - Usually a GPIO will be configurable as either input or output, as needed [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6ull-dhcom-pdk2.dts | 30 enable-gpios = <&gpio5 8 GPIO_ACTIVE_HIGH>; /* GPIO G */ 39 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; /* GPIO A */ 40 label = "TA1-GPIO-A"; 46 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; /* GPIO B */ 47 label = "TA2-GPIO-B"; 53 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; /* GPIO C */ 54 label = "TA3-GPIO-C"; 60 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; /* GPIO D */ 61 label = "TA4-GPIO-D"; 71 * Disable PDK2 LED5, because GPIO E is [all …]
|