diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2016-12-06 09:32:03 +0100 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2017-01-05 23:00:54 +0100 |
commit | e64b8cc72bf9958efd4f38e55d2980c95e0ce679 (patch) | |
tree | 2776928290fdd8e4604c6da015061b5002498817 /Documentation/devicetree/bindings/leds | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
download | blackbird-obmc-linux-e64b8cc72bf9958efd4f38e55d2980c95e0ce679.tar.gz blackbird-obmc-linux-e64b8cc72bf9958efd4f38e55d2980c95e0ce679.zip |
DT: leds: Improve examples by adding some context
During my work on some new LED trigger I tried adding example similar to
the existing ones which received following comment from Rob:
> It's not really clear in the example this is an LED node as it is
> incomplete.
Keeping that in mind I suggest adding context for the existing example
entries in hope to make documentation more clear.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/leds')
-rw-r--r-- | Documentation/devicetree/bindings/leds/common.txt | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 696be5792625..24b656014089 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -61,16 +61,24 @@ property can be omitted. Examples: -system-status { - label = "Status"; - linux,default-trigger = "heartbeat"; - ... +gpio-leds { + compatible = "gpio-leds"; + + system-status { + label = "Status"; + linux,default-trigger = "heartbeat"; + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + }; }; -camera-flash { - label = "Flash"; - led-sources = <0>, <1>; - led-max-microamp = <50000>; - flash-max-microamp = <320000>; - flash-max-timeout-us = <500000>; +max77693-led { + compatible = "maxim,max77693-led"; + + camera-flash { + label = "Flash"; + led-sources = <0>, <1>; + led-max-microamp = <50000>; + flash-max-microamp = <320000>; + flash-max-timeout-us = <500000>; + }; }; |