summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorJonathan Neuschäfer2018-03-17 16:06:17 +0100
committerMichael Ellerman2018-03-31 15:47:41 +0200
commit041413b88d6e9c66582d0a38d0e82f8933d42d9a (patch)
tree9f6d0f45cee5a5d21065a8d38531b6fb92840bea /arch/powerpc/boot
parentpowerpc/wii.dts: Add GPIO line names (diff)
downloadkernel-qcow2-linux-041413b88d6e9c66582d0a38d0e82f8933d42d9a.tar.gz
kernel-qcow2-linux-041413b88d6e9c66582d0a38d0e82f8933d42d9a.tar.xz
kernel-qcow2-linux-041413b88d6e9c66582d0a38d0e82f8933d42d9a.zip
powerpc/wii.dts: Add drive slot LED
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>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r--arch/powerpc/boot/dts/wii.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts
index d7094804e796..104b1d6d5695 100644
--- a/arch/powerpc/boot/dts/wii.dts
+++ b/arch/powerpc/boot/dts/wii.dts
@@ -13,6 +13,7 @@
*/
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
/*
* This is commented-out for now.
@@ -223,5 +224,16 @@
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;
+ };
+ };
};