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 | |
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')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-lp3943.txt | 37 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/mfd/lp3943.txt | 33 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/pwm/pwm-lp3943.txt | 58 |
3 files changed, 128 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 | }; | ||
diff --git a/Documentation/devicetree/bindings/mfd/lp3943.txt b/Documentation/devicetree/bindings/mfd/lp3943.txt new file mode 100644 index 000000000000..e8591d6b11b4 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/lp3943.txt | |||
@@ -0,0 +1,33 @@ | |||
1 | TI/National Semiconductor LP3943 MFD driver | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "ti,lp3943" | ||
5 | - reg: I2C slave address. From 0x60 to 0x67. | ||
6 | |||
7 | LP3943 consists of two sub-devices, lp3943-gpio and lp3943-pwm. | ||
8 | |||
9 | For the LP3943 GPIO properties please refer to: | ||
10 | Documentation/devicetree/bindings/gpio/gpio-lp3943.txt | ||
11 | |||
12 | For the LP3943 PWM properties please refer to: | ||
13 | Documentation/devicetree/bindings/pwm/pwm-lp3943.txt | ||
14 | |||
15 | Example: | ||
16 | |||
17 | lp3943@60 { | ||
18 | compatible = "ti,lp3943"; | ||
19 | reg = <0x60>; | ||
20 | |||
21 | gpioex: gpio { | ||
22 | compatible = "ti,lp3943-gpio"; | ||
23 | gpio-controller; | ||
24 | #gpio-cells = <2>; | ||
25 | }; | ||
26 | |||
27 | pwm3943: pwm { | ||
28 | compatible = "ti,lp3943-pwm"; | ||
29 | #pwm-cells = <2>; | ||
30 | ti,pwm0 = <8 9 10>; | ||
31 | ti,pwm1 = <15>; | ||
32 | }; | ||
33 | }; | ||
diff --git a/Documentation/devicetree/bindings/pwm/pwm-lp3943.txt b/Documentation/devicetree/bindings/pwm/pwm-lp3943.txt new file mode 100644 index 000000000000..7bd9d3b12ce1 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-lp3943.txt | |||
@@ -0,0 +1,58 @@ | |||
1 | TI/National Semiconductor LP3943 PWM controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "ti,lp3943-pwm" | ||
5 | - #pwm-cells: Should be 2. See pwm.txt in this directory for a | ||
6 | description of the cells format. | ||
7 | Note that this hardware limits the period length to the | ||
8 | range 6250~1600000. | ||
9 | - ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1. | ||
10 | 0 = output 0 | ||
11 | 1 = output 1 | ||
12 | . | ||
13 | . | ||
14 | 15 = output 15 | ||
15 | |||
16 | Example: | ||
17 | PWM 0 is for RGB LED brightness control | ||
18 | PWM 1 is for brightness control of LP8557 backlight device | ||
19 | |||
20 | &i2c3 { | ||
21 | lp3943@60 { | ||
22 | compatible = "ti,lp3943"; | ||
23 | reg = <0x60>; | ||
24 | |||
25 | /* | ||
26 | * PWM 0 : output 8, 9 and 10 | ||
27 | * PWM 1 : output 15 | ||
28 | */ | ||
29 | pwm3943: pwm { | ||
30 | compatible = "ti,lp3943-pwm"; | ||
31 | #pwm-cells = <2>; | ||
32 | ti,pwm0 = <8 9 10>; | ||
33 | ti,pwm1 = <15>; | ||
34 | }; | ||
35 | }; | ||
36 | |||
37 | }; | ||
38 | |||
39 | /* LEDs control with PWM 0 of LP3943 */ | ||
40 | pwmleds { | ||
41 | compatible = "pwm-leds"; | ||
42 | rgb { | ||
43 | label = "indi::rgb"; | ||
44 | pwms = <&pwm3943 0 10000>; | ||
45 | max-brightness = <255>; | ||
46 | }; | ||
47 | }; | ||
48 | |||
49 | &i2c4 { | ||
50 | /* Backlight control with PWM 1 of LP3943 */ | ||
51 | backlight@2c { | ||
52 | compatible = "ti,lp8557"; | ||
53 | reg = <0x2c>; | ||
54 | |||
55 | pwms = <&pwm3943 1 10000>; | ||
56 | pwm-names = "lp8557"; | ||
57 | }; | ||
58 | }; | ||