aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2015-01-21 16:33:47 -0500
committerBryan Wu <cooloney@gmail.com>2015-03-02 14:58:31 -0500
commit0cd1b0c3adaac2f9e8b5d2e739bf63a42fbf7ff2 (patch)
tree45fd14f4938b6816d28b6e4f33d4a44bf79a4148
parent0c571785813cf3294cdbb1f2fb1a9b19e11935f6 (diff)
leds: Let the binding document example for leds-gpio follow the gpio bindings
In the gpio bindings documents it is requested to use the marco's in include/dt-bindings/gpio/gpio.h whenever possible. The gpios in the led drivers don't seem to form an exception, so update the example in the document bindings. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bryan Wu <cooloney@gmail.com>
-rw-r--r--Documentation/devicetree/bindings/leds/leds-gpio.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt b/Documentation/devicetree/bindings/leds/leds-gpio.txt
index f77148f372ea..fea1ebfe24a9 100644
--- a/Documentation/devicetree/bindings/leds/leds-gpio.txt
+++ b/Documentation/devicetree/bindings/leds/leds-gpio.txt
@@ -26,16 +26,18 @@ LED sub-node properties:
26 26
27Examples: 27Examples:
28 28
29#include <dt-bindings/gpio/gpio.h>
30
29leds { 31leds {
30 compatible = "gpio-leds"; 32 compatible = "gpio-leds";
31 hdd { 33 hdd {
32 label = "IDE Activity"; 34 label = "IDE Activity";
33 gpios = <&mcu_pio 0 1>; /* Active low */ 35 gpios = <&mcu_pio 0 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "ide-disk"; 36 linux,default-trigger = "ide-disk";
35 }; 37 };
36 38
37 fault { 39 fault {
38 gpios = <&mcu_pio 1 0>; 40 gpios = <&mcu_pio 1 GPIO_ACTIVE_HIGH>;
39 /* Keep LED on if BIOS detected hardware fault */ 41 /* Keep LED on if BIOS detected hardware fault */
40 default-state = "keep"; 42 default-state = "keep";
41 }; 43 };
@@ -44,11 +46,11 @@ leds {
44run-control { 46run-control {
45 compatible = "gpio-leds"; 47 compatible = "gpio-leds";
46 red { 48 red {
47 gpios = <&mpc8572 6 0>; 49 gpios = <&mpc8572 6 GPIO_ACTIVE_HIGH>;
48 default-state = "off"; 50 default-state = "off";
49 }; 51 };
50 green { 52 green {
51 gpios = <&mpc8572 7 0>; 53 gpios = <&mpc8572 7 GPIO_ACTIVE_HIGH>;
52 default-state = "on"; 54 default-state = "on";
53 }; 55 };
54}; 56};
@@ -57,7 +59,7 @@ leds {
57 compatible = "gpio-leds"; 59 compatible = "gpio-leds";
58 60
59 charger-led { 61 charger-led {
60 gpios = <&gpio1 2 0>; 62 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "max8903-charger-charging"; 63 linux,default-trigger = "max8903-charger-charging";
62 retain-state-suspended; 64 retain-state-suspended;
63 }; 65 };