summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChukun Pan <amadeus@jmu.edu.cn>2026-06-01 13:10:00 +0300
committerHeiko Stuebner <heiko@sntech.de>2026-06-02 15:00:28 +0300
commitdc98bd71f41db3666aa8505cc8c72d02653d2980 (patch)
treedf6b0ee3240aa69a354fc6d21ae2ef08c74e8f1b
parentef81db2fdd5a75e3834a4726dc7837f6d2a7229d (diff)
downloadlinux-dc98bd71f41db3666aa8505cc8c72d02653d2980.tar.xz
arm64: dts: rockchip: enable adc button for Radxa E25
The Radxa E25 board has an ADC button. Enable it. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://patch.msgid.link/20260601101000.2076721-1-amadeus@jmu.edu.cn Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts b/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
index 98cfa3abb809..a091c3a44747 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/dts-v1/;
+#include <dt-bindings/input/input.h>
#include "rk3568-radxa-cm3i.dtsi"
/ {
@@ -11,6 +12,19 @@
mmc1 = &sdmmc0;
};
+ adc-keys {
+ compatible = "adc-keys";
+ io-channels = <&saradc 0>;
+ io-channel-names = "buttons";
+ keyup-threshold-microvolt = <1800000>;
+
+ button-recovery {
+ label = "Recovery";
+ linux,code = <KEY_VENDOR>;
+ press-threshold-microvolt = <0>;
+ };
+ };
+
pwm-leds {
compatible = "pwm-leds-multicolor";