41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
|
From a9aecd6432bcb9f7008162d47069e8c278f8bbc5 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||
|
Date: Fri, 18 Aug 2017 13:55:48 +0200
|
||
|
Subject: [PATCH 272/464] Make microbuttons on Orange Pi PC and PC 2 work as
|
||
|
power off buttons
|
||
|
|
||
|
---
|
||
|
arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-one.dts | 2 +-
|
||
|
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | 2 +-
|
||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-one.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-one.dts
|
||
|
index 59f6f6d5e7ca..a42fd9550cfd 100644
|
||
|
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-one.dts
|
||
|
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-one.dts
|
||
|
@@ -91,7 +91,7 @@ gpio-keys {
|
||
|
|
||
|
switch-4 {
|
||
|
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 ce3ae19e72db..2aadc3d0a23e 100644
|
||
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
|
||
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
|
||
|
@@ -60,7 +60,7 @@ gpio-keys {
|
||
|
|
||
|
key-sw4 {
|
||
|
label = "sw4";
|
||
|
- linux,code = <BTN_0>;
|
||
|
+ linux,code = <KEY_POWER>;
|
||
|
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
|
||
|
wakeup-source;
|
||
|
};
|
||
|
--
|
||
|
2.34.1
|
||
|
|