mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 06:41:43 +00:00
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>
This commit is contained in:
parent
f4ddc19a71
commit
8de7547e03
@ -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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user