Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rafał Miłecki and committed by
Jacek Anaszewski
e64b8cc7 7ce7d89f

+18 -10
+18 -10
Documentation/devicetree/bindings/leds/common.txt
··· 61 61 62 62 Examples: 63 63 64 - system-status { 65 - label = "Status"; 66 - linux,default-trigger = "heartbeat"; 67 - ... 64 + gpio-leds { 65 + compatible = "gpio-leds"; 66 + 67 + system-status { 68 + label = "Status"; 69 + linux,default-trigger = "heartbeat"; 70 + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 71 + }; 68 72 }; 69 73 70 - camera-flash { 71 - label = "Flash"; 72 - led-sources = <0>, <1>; 73 - led-max-microamp = <50000>; 74 - flash-max-microamp = <320000>; 75 - flash-max-timeout-us = <500000>; 74 + max77693-led { 75 + compatible = "maxim,max77693-led"; 76 + 77 + camera-flash { 78 + label = "Flash"; 79 + led-sources = <0>, <1>; 80 + led-max-microamp = <50000>; 81 + flash-max-microamp = <320000>; 82 + flash-max-timeout-us = <500000>; 83 + }; 76 84 };