summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorJonathan Neuschäfer2019-01-12 17:21:24 +0100
committerMichael Ellerman2019-01-15 01:17:09 +0100
commit8de7547e03059281fda075355c1146941fbbe76f (patch)
tree7a8954359350c18f54f364b8b9b2537663589cd4 /arch/powerpc/boot
parentpowerpc: wii.dts: Add interrupt-related properties to GPIO node (diff)
downloadkernel-qcow2-linux-8de7547e03059281fda075355c1146941fbbe76f.tar.gz
kernel-qcow2-linux-8de7547e03059281fda075355c1146941fbbe76f.tar.xz
kernel-qcow2-linux-8de7547e03059281fda075355c1146941fbbe76f.zip
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: 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.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts
index caf735fa11b7..c406bdb4f36f 100644
--- a/arch/powerpc/boot/dts/wii.dts
+++ b/arch/powerpc/boot/dts/wii.dts
@@ -14,6 +14,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/*
* This is commented-out for now.
@@ -240,5 +241,21 @@
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>;
+ };
+ };
};