Skip to content

Commit e64b8cc

Browse files
Rafał Miłeckijacek-anaszewski
authored andcommitted
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>
1 parent 7ce7d89 commit e64b8cc

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

‎Documentation/devicetree/bindings/leds/common.txt‎

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,24 @@ property can be omitted.
6161

6262
Examples:
6363

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+
};
6872
};
6973

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+
};
7684
};

0 commit comments

Comments
 (0)