diff options
author | Wei Chen <Wei.Chen@csr.com> | 2015-01-14 19:16:10 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-01-19 05:20:48 -0500 |
commit | 04d2264c3bf07f5c3d18165ba78de0a93360c6c0 (patch) | |
tree | 04013becb97f5762dcabfa573b23846ea1d805f4 /Documentation/devicetree/bindings/gpio | |
parent | 73c4ceda09db2c9a2ff8bb2e90cc98ce1a827c34 (diff) |
gpio: sx150x: add dts support for sx150x driver
Current sx150x gpio expander driver doesn't support
DTS. Now we added dts support for this driver.
Signed-off-by: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-sx150x.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-sx150x.txt b/Documentation/devicetree/bindings/gpio/gpio-sx150x.txt new file mode 100644 index 000000000000..ba2bb84eeac3 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-sx150x.txt | |||
@@ -0,0 +1,40 @@ | |||
1 | SEMTECH SX150x GPIO expander bindings | ||
2 | |||
3 | |||
4 | Required properties: | ||
5 | |||
6 | - compatible: should be "semtech,sx1506q", | ||
7 | "semtech,sx1508q", | ||
8 | "semtech,sx1509q". | ||
9 | |||
10 | - reg: The I2C slave address for this device. | ||
11 | |||
12 | - interrupt-parent: phandle of the parent interrupt controller. | ||
13 | |||
14 | - interrupts: Interrupt specifier for the controllers interrupt. | ||
15 | |||
16 | - #gpio-cells: Should be 2. The first cell is the GPIO number and the | ||
17 | second cell is used to specify optional parameters: | ||
18 | bit 0: polarity (0: normal, 1: inverted) | ||
19 | |||
20 | - gpio-controller: Marks the device as a GPIO controller. | ||
21 | |||
22 | - interrupt-controller: Marks the device as a interrupt controller. | ||
23 | |||
24 | The GPIO expander can optionally be used as an interrupt controller, in | ||
25 | which case it uses the default two cell specifier as described in | ||
26 | Documentation/devicetree/bindings/interrupt-controller/interrupts.txt. | ||
27 | |||
28 | Example: | ||
29 | |||
30 | i2c_gpio_expander@20{ | ||
31 | #gpio-cells = <2>; | ||
32 | #interrupt-cells = <2>; | ||
33 | compatible = "semtech,sx1506q"; | ||
34 | reg = <0x20>; | ||
35 | interrupt-parent = <&gpio_1>; | ||
36 | interrupts = <16 0>; | ||
37 | |||
38 | gpio-controller; | ||
39 | interrupt-controller; | ||
40 | }; | ||