diff options
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-grgpio.txt | 26 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-mcp23s08.txt | 47 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-omap.txt | 7 |
3 files changed, 78 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-grgpio.txt b/Documentation/devicetree/bindings/gpio/gpio-grgpio.txt new file mode 100644 index 000000000000..e466598105fc --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-grgpio.txt | |||
@@ -0,0 +1,26 @@ | |||
1 | Aeroflex Gaisler GRGPIO General Purpose I/O cores. | ||
2 | |||
3 | The GRGPIO GPIO core is available in the GRLIB VHDL IP core library. | ||
4 | |||
5 | Note: In the ordinary environment for the GRGPIO core, a Leon SPARC system, | ||
6 | these properties are built from information in the AMBA plug&play. | ||
7 | |||
8 | Required properties: | ||
9 | |||
10 | - name : Should be "GAISLER_GPIO" or "01_01a" | ||
11 | |||
12 | - reg : Address and length of the register set for the device | ||
13 | |||
14 | - interrupts : Interrupt numbers for this device | ||
15 | |||
16 | Optional properties: | ||
17 | |||
18 | - nbits : The number of gpio lines. If not present driver assumes 32 lines. | ||
19 | |||
20 | - irqmap : An array with an index for each gpio line. An index is either a valid | ||
21 | index into the interrupts property array, or 0xffffffff that indicates | ||
22 | no irq for that line. Driver provides no interrupt support if not | ||
23 | present. | ||
24 | |||
25 | For further information look in the documentation for the GLIB IP core library: | ||
26 | http://www.gaisler.com/products/grlib/grip.pdf | ||
diff --git a/Documentation/devicetree/bindings/gpio/gpio-mcp23s08.txt b/Documentation/devicetree/bindings/gpio/gpio-mcp23s08.txt new file mode 100644 index 000000000000..629d0ef17308 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-mcp23s08.txt | |||
@@ -0,0 +1,47 @@ | |||
1 | Microchip MCP2308/MCP23S08/MCP23017/MCP23S17 driver for | ||
2 | 8-/16-bit I/O expander with serial interface (I2C/SPI) | ||
3 | |||
4 | Required properties: | ||
5 | - compatible : Should be | ||
6 | - "mcp,mcp23s08" for 8 GPIO SPI version | ||
7 | - "mcp,mcp23s17" for 16 GPIO SPI version | ||
8 | - "mcp,mcp23008" for 8 GPIO I2C version or | ||
9 | - "mcp,mcp23017" for 16 GPIO I2C version of the chip | ||
10 | - #gpio-cells : Should be two. | ||
11 | - first cell is the pin number | ||
12 | - second cell is used to specify flags. Flags are currently unused. | ||
13 | - gpio-controller : Marks the device node as a GPIO controller. | ||
14 | - reg : For an address on its bus. I2C uses this a the I2C address of the chip. | ||
15 | SPI uses this to specify the chipselect line which the chip is | ||
16 | connected to. The driver and the SPI variant of the chip support | ||
17 | multiple chips on the same chipselect. Have a look at | ||
18 | mcp,spi-present-mask below. | ||
19 | |||
20 | Required device specific properties (only for SPI chips): | ||
21 | - mcp,spi-present-mask : This is a present flag, that makes only sense for SPI | ||
22 | chips - as the name suggests. Multiple SPI chips can share the same | ||
23 | SPI chipselect. Set a bit in bit0-7 in this mask to 1 if there is a | ||
24 | chip connected with the corresponding spi address set. For example if | ||
25 | you have a chip with address 3 connected, you have to set bit3 to 1, | ||
26 | which is 0x08. mcp23s08 chip variant only supports bits 0-3. It is not | ||
27 | possible to mix mcp23s08 and mcp23s17 on the same chipselect. Set at | ||
28 | least one bit to 1 for SPI chips. | ||
29 | - spi-max-frequency = The maximum frequency this chip is able to handle | ||
30 | |||
31 | Example I2C: | ||
32 | gpiom1: gpio@20 { | ||
33 | compatible = "mcp,mcp23017"; | ||
34 | gpio-controller; | ||
35 | #gpio-cells = <2>; | ||
36 | reg = <0x20>; | ||
37 | }; | ||
38 | |||
39 | Example SPI: | ||
40 | gpiom1: gpio@0 { | ||
41 | compatible = "mcp,mcp23s17"; | ||
42 | gpio-controller; | ||
43 | #gpio-cells = <2>; | ||
44 | spi-present-mask = <0x01>; | ||
45 | reg = <0>; | ||
46 | spi-max-frequency = <1000000>; | ||
47 | }; | ||
diff --git a/Documentation/devicetree/bindings/gpio/gpio-omap.txt b/Documentation/devicetree/bindings/gpio/gpio-omap.txt index bff51a2fee1e..1b524c0c79fe 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-omap.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-omap.txt | |||
@@ -20,8 +20,11 @@ Required properties: | |||
20 | 8 = active low level-sensitive. | 20 | 8 = active low level-sensitive. |
21 | 21 | ||
22 | OMAP specific properties: | 22 | OMAP specific properties: |
23 | - ti,hwmods: Name of the hwmod associated to the GPIO: | 23 | - ti,hwmods: Name of the hwmod associated to the GPIO: |
24 | "gpio<X>", <X> being the 1-based instance number from the HW spec | 24 | "gpio<X>", <X> being the 1-based instance number |
25 | from the HW spec. | ||
26 | - ti,gpio-always-on: Indicates if a GPIO bank is always powered and | ||
27 | so will never lose its logic state. | ||
25 | 28 | ||
26 | 29 | ||
27 | Example: | 30 | Example: |