diff mbox series

[v2] ARM: dts: sun8i: h3: beelink-x2: Add power button

Message ID 20210323204341.28825-1-jernej.skrabec@siol.net (mailing list archive)
State New, archived
Headers show
Series [v2] ARM: dts: sun8i: h3: beelink-x2: Add power button | expand

Commit Message

Jernej Škrabec March 23, 2021, 8:43 p.m. UTC
Beelink X2 has power button. Add node for it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
---
Changes from v1:
- renamed node name so it doesn't contain underscores

 arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Chen-Yu Tsai March 24, 2021, 3 a.m. UTC | #1
On Wed, Mar 24, 2021 at 4:44 AM Jernej Skrabec <jernej.skrabec@siol.net> wrote:
>
> Beelink X2 has power button. Add node for it.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>

Acked-by: Chen-Yu Tsai <wens@csie.org>
Maxime Ripard March 24, 2021, 9:25 a.m. UTC | #2
hi,

On Tue, Mar 23, 2021 at 09:43:41PM +0100, Jernej Skrabec wrote:
> Beelink X2 has power button. Add node for it.
> 
> Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>

Applied, thanks

Maxime
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
index 62b5280ec093..f0e591e1c771 100644
--- a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
+++ b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
@@ -111,6 +111,17 @@  spdif_out: spdif-out {
 		#sound-dai-cells = <0>;
 		compatible = "linux,spdif-dit";
 	};
+
+	r-gpio-keys {
+		compatible = "gpio-keys";
+
+		power {
+			label = "power";
+			linux,code = <KEY_POWER>;
+			gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+			wakeup-source;
+		};
+	};
 };
 
 &de {