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>
This commit is contained in:
parent
7ce7d89f48
commit
e64b8cc72b
|
@ -61,16 +61,24 @@ property can be omitted.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
system-status {
|
gpio-leds {
|
||||||
label = "Status";
|
compatible = "gpio-leds";
|
||||||
linux,default-trigger = "heartbeat";
|
|
||||||
...
|
system-status {
|
||||||
|
label = "Status";
|
||||||
|
linux,default-trigger = "heartbeat";
|
||||||
|
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
camera-flash {
|
max77693-led {
|
||||||
label = "Flash";
|
compatible = "maxim,max77693-led";
|
||||||
led-sources = <0>, <1>;
|
|
||||||
led-max-microamp = <50000>;
|
camera-flash {
|
||||||
flash-max-microamp = <320000>;
|
label = "Flash";
|
||||||
flash-max-timeout-us = <500000>;
|
led-sources = <0>, <1>;
|
||||||
|
led-max-microamp = <50000>;
|
||||||
|
flash-max-microamp = <320000>;
|
||||||
|
flash-max-timeout-us = <500000>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue