diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-07 13:52:16 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-17 18:48:12 +0000 |
commit | db376cd398e2132ac9cbfac5daf599e181c6d7ac (patch) | |
tree | abdf62afe676daa4f599b5140cc3a7976eff6a93 /Silicon/Socionext | |
parent | c0895cdcc80d3cb5ae9b676d3e6dc4a2491708da (diff) | |
download | edk2-platforms-db376cd398e2132ac9cbfac5daf599e181c6d7ac.tar.xz |
Platform/DeveloperBox: add description of power button to DT
Add the power button as a gpio-keys KEY_POWER button, and mark it as
a wakeup source so it can be used under the OS both as a 'sleep' and
as a 'wake' button.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Silicon/Socionext')
-rw-r--r-- | Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts b/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts index 6ae7d5f300..d2cd7ef90e 100644 --- a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts +++ b/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts @@ -15,9 +15,23 @@ #include "SynQuacer.dtsi"
+#define KEY_POWER 116
+
/ {
model = "Socionext Developer Box";
compatible = "socionext,developer-box", "socionext,synquacer";
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ interrupt-parent = <&exiu>;
+
+ power {
+ label = "Power Button";
+ linux,code = <KEY_POWER>;
+ interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_FALLING>;
+ wakeup-source;
+ };
+ };
};
&gpio {
|