55 lines
1.8 KiB
Diff
55 lines
1.8 KiB
Diff
From 55582b4c8a77e9d8621da4c2f3cd735f69f297ea Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megous@megous.com>
|
|
Date: Fri, 18 Aug 2017 13:55:48 +0200
|
|
Subject: [PATCH 419/478] Make microbuttons on Orange Pi PC and PC 2 work as
|
|
power off buttons
|
|
|
|
---
|
|
arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 2 +-
|
|
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 2 +-
|
|
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts
|
|
index 4759ba3f2986..147b574d9887 100644
|
|
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts
|
|
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts
|
|
@@ -91,7 +91,7 @@ r_gpio_keys {
|
|
|
|
sw4 {
|
|
label = "sw4";
|
|
- linux,code = <BTN_0>;
|
|
+ linux,code = <KEY_POWER>;
|
|
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
|
|
index 5aff8ecc66cb..ca858d318e8b 100644
|
|
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
|
|
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
|
|
@@ -91,7 +91,7 @@ r_gpio_keys {
|
|
|
|
sw4 {
|
|
label = "sw4";
|
|
- linux,code = <BTN_0>;
|
|
+ linux,code = <KEY_POWER>;
|
|
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
|
|
index 1010c1b22d2e..acc5c31d8786 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
|
|
@@ -59,7 +59,7 @@ r-gpio-keys {
|
|
|
|
sw4 {
|
|
label = "sw4";
|
|
- linux,code = <BTN_0>;
|
|
+ linux,code = <KEY_POWER>;
|
|
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
|
wakeup-source;
|
|
};
|
|
--
|
|
2.35.3
|
|
|