dt-bindings: leds: common: fix example for gpio-leds
authorJohan Jonker <jbx6244@gmail.com>
Fri, 13 Mar 2020 16:57:00 +0000 (17:57 +0100)
committerRob Herring <robh@kernel.org>
Tue, 31 Mar 2020 15:03:34 +0000 (09:03 -0600)
The preferred form for gpio-leds compatible subnodes is:
^led-[0-9a-f]$
Fix example by changing led0 and led1 to led-0 and led-1.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/leds/common.yaml

index c60b994..4c270fd 100644 (file)
@@ -167,13 +167,13 @@ examples:
     led-controller {
         compatible = "gpio-leds";
 
-        led0 {
+        led-0 {
             function = LED_FUNCTION_STATUS;
             linux,default-trigger = "heartbeat";
             gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
         };
 
-        led1 {
+        led-1 {
             function = LED_FUNCTION_USB;
             gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
             trigger-sources = <&ohci_port1>, <&ehci_port1>;