Skip to content

Commit

Permalink
powerpc/wii.dts: Add drive slot LED
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
neuschaefer authored and mpe committed Mar 31, 2018
1 parent 80873a0 commit 041413b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/powerpc/boot/dts/wii.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

/dts-v1/;
#include <dt-bindings/gpio/gpio.h>

/*
* This is commented-out for now.
Expand Down Expand Up @@ -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;
};
};
};

0 comments on commit 041413b

Please sign in to comment.