mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
kernel: sunxi: Add resume, reboot support by pressing power button on orangepi prime
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
From 63d288e380269ce6bfd95e04a1e2e9a8abacecca Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gunjan Gupta <viraniac@gmail.com>
|
||||||
|
Date: Sat, 15 Jul 2023 17:06:17 +0000
|
||||||
|
Subject: [PATCH] arm64: dts: sun50i: h5: enable power button for orangepi
|
||||||
|
prime
|
||||||
|
|
||||||
|
---
|
||||||
|
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
index f430acd85..35e090985 100644
|
||||||
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
@@ -63,8 +63,9 @@ 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
|
||||||
|
|
||||||
@@ -190,3 +190,4 @@
|
|||||||
patches.armbian/arm-dts-sun8i-v40-bananapi-m2-berry-enable-audio-codec.patch
|
patches.armbian/arm-dts-sun8i-v40-bananapi-m2-berry-enable-audio-codec.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||||
|
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||||
|
|||||||
@@ -658,3 +658,4 @@
|
|||||||
patches.armbian/arm-dts-sun8i-v40-bananapi-m2-berry-enable-audio-codec.patch
|
patches.armbian/arm-dts-sun8i-v40-bananapi-m2-berry-enable-audio-codec.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||||
|
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
From 63d288e380269ce6bfd95e04a1e2e9a8abacecca Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gunjan Gupta <viraniac@gmail.com>
|
||||||
|
Date: Sat, 15 Jul 2023 17:06:17 +0000
|
||||||
|
Subject: [PATCH] arm64: dts: sun50i: h5: enable power button for orangepi
|
||||||
|
prime
|
||||||
|
|
||||||
|
---
|
||||||
|
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
index f430acd85..35e090985 100644
|
||||||
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
@@ -63,8 +63,9 @@ 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
|
||||||
|
|
||||||
@@ -178,3 +178,4 @@
|
|||||||
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||||
|
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||||
|
|||||||
@@ -582,3 +582,4 @@
|
|||||||
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||||
|
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
From 63d288e380269ce6bfd95e04a1e2e9a8abacecca Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gunjan Gupta <viraniac@gmail.com>
|
||||||
|
Date: Sat, 15 Jul 2023 17:06:17 +0000
|
||||||
|
Subject: [PATCH] arm64: dts: sun50i: h5: enable power button for orangepi
|
||||||
|
prime
|
||||||
|
|
||||||
|
---
|
||||||
|
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
index f430acd85..35e090985 100644
|
||||||
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
|
||||||
|
@@ -63,8 +63,9 @@ 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
|
||||||
|
|
||||||
@@ -184,3 +184,4 @@
|
|||||||
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||||
|
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||||
|
|||||||
@@ -664,3 +664,4 @@
|
|||||||
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
patches.armbian/arm-dts-sun8i-h3-nanopi-duo2-enable-powerbutton-and-ethernet.patch
|
||||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||||
|
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||||
|
|||||||
Reference in New Issue
Block a user