powerpc/wii.dts: Add drive slot LED
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 17 Mar 2018 15:06:17 +0000 (16:06 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 31 Mar 2018 13:47:41 +0000 (00:47 +1100)
The Wii has a blue LED in the disk drive slot, which is controlled via a
GPIO line. Add this LED to wii.dts, and mark it as a panic-indicator.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/dts/wii.dts

index d709480..104b1d6 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
 
 /*
  * This is commented-out for now.
                        interrupts = <2>;
                };
        };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               /* This is the blue LED in the disk drive slot */
+               drive-slot {
+                       label = "wii:blue:drive_slot";
+                       gpios = <&GPIO 5 GPIO_ACTIVE_HIGH>;
+                       panic-indicator;
+               };
+       };
 };