Commit 8de7547e authored by Jonathan Neuschäfer's avatar Jonathan Neuschäfer Committed by Michael Ellerman

powerpc: wii.dts: Add GPIO keys

The Wii has POWER and EJECT buttons, which are connected through
normalization logic to the GPIO controller (the length of an assertion
of these signals is always the same, regardless of how long the user
pressed the buttons).
Signed-off-by: default avatarJonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent f4ddc19a
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/* /*
* This is commented-out for now. * This is commented-out for now.
...@@ -240,5 +241,21 @@ drive-slot { ...@@ -240,5 +241,21 @@ drive-slot {
panic-indicator; panic-indicator;
}; };
}; };
gpio-keys {
compatible = "gpio-keys";
power {
label = "Power Button";
gpios = <&GPIO 0 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_POWER>;
};
eject {
label = "Eject Button";
gpios = <&GPIO 6 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_EJECTCD>;
};
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment