]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: enable adc button for Radxa E25
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 1 Jun 2026 10:10:00 +0000 (18:10 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 2 Jun 2026 12:00:28 +0000 (14:00 +0200)
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>
arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts

index 98cfa3abb80936610a4da22a0165310715e0ecc8..a091c3a44747dbab2938dfa4e607747564f5c633 100644 (file)
@@ -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"
 
 / {
                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";