41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From f026570bbc127c43f1aef8661c1147ce223cb019 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 263/388] 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/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts
|
|
index 927fd1bab..f5476cdab 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 @@ 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 093838108..953d5cdf1 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.35.3
|
|
|