Skip to content

Commit dc98bd7

Browse files
aiamadeusmmind
authored andcommitted
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>
1 parent ef81db2 commit dc98bd7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
22

33
/dts-v1/;
4+
#include <dt-bindings/input/input.h>
45
#include "rk3568-radxa-cm3i.dtsi"
56

67
/ {
@@ -11,6 +12,19 @@
1112
mmc1 = &sdmmc0;
1213
};
1314

15+
adc-keys {
16+
compatible = "adc-keys";
17+
io-channels = <&saradc 0>;
18+
io-channel-names = "buttons";
19+
keyup-threshold-microvolt = <1800000>;
20+
21+
button-recovery {
22+
label = "Recovery";
23+
linux,code = <KEY_VENDOR>;
24+
press-threshold-microvolt = <0>;
25+
};
26+
};
27+
1428
pwm-leds {
1529
compatible = "pwm-leds-multicolor";
1630

0 commit comments

Comments
 (0)