diff options
author | Milo Kim <milo.kim@ti.com> | 2013-12-05 21:18:44 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-21 03:27:55 -0500 |
commit | 25a7a6f4a200e2eb04d87fb1c06130b1a85aa688 (patch) | |
tree | 1856a17d2e46a11d3295ccfc6fbc3f08bd4ed8e3 /Documentation/devicetree/bindings/gpio | |
parent | aab5dc680308098bfee0ce8be64d9aba0877fa26 (diff) |
Documentation: Add LP3943 DT bindings and document
Bindings for LP3943 MFD, GPIO and PWM controller are added.
Signed-off-by: Milo Kim <milo.kim@ti.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-lp3943.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-lp3943.txt b/Documentation/devicetree/bindings/gpio/gpio-lp3943.txt new file mode 100644 index 000000000000..80fcb7d70e13 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-lp3943.txt | |||
@@ -0,0 +1,37 @@ | |||
1 | TI/National Semiconductor LP3943 GPIO controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "ti,lp3943-gpio" | ||
5 | - gpio-controller: Marks the device node as a GPIO controller. | ||
6 | - #gpio-cells: Should be 2. See gpio.txt in this directory for a | ||
7 | description of the cells format. | ||
8 | |||
9 | Example: | ||
10 | Simple LED controls with LP3943 GPIO controller | ||
11 | |||
12 | &i2c4 { | ||
13 | lp3943@60 { | ||
14 | compatible = "ti,lp3943"; | ||
15 | reg = <0x60>; | ||
16 | |||
17 | gpioex: gpio { | ||
18 | compatible = "ti,lp3943-gpio"; | ||
19 | gpio-controller; | ||
20 | #gpio-cells = <2>; | ||
21 | }; | ||
22 | }; | ||
23 | }; | ||
24 | |||
25 | leds { | ||
26 | compatible = "gpio-leds"; | ||
27 | indicator1 { | ||
28 | label = "indi1"; | ||
29 | gpios = <&gpioex 9 GPIO_ACTIVE_LOW>; | ||
30 | }; | ||
31 | |||
32 | indicator2 { | ||
33 | label = "indi2"; | ||
34 | gpios = <&gpioex 10 GPIO_ACTIVE_LOW>; | ||
35 | default-state = "off"; | ||
36 | }; | ||
37 | }; | ||