arm64: dts: rockchip: rv1126b-evb: add adc keys support

Signed-off-by: ZhengRong Ruan <ryan.ruan@rock-chips.com>
Change-Id: I8042febc544fa61f2f2df63eff14dfc6f4fd7ffe
This commit is contained in:
ZhengRong Ruan
2025-03-26 17:11:23 +08:00
committed by Tao Huang
parent 068dd9a9b1
commit 9c7e62a8f8

View File

@@ -21,6 +21,38 @@
rockchip,codec = <&audio_codec>, <&acdcdig_dsm>;
};
adc-keys {
compatible = "adc-keys";
io-channels = <&saradc0 0>;
io-channel-names = "buttons";
poll-interval = <100>;
keyup-threshold-microvolt = <1800000>;
esc-key {
label = "esc";
linux,code = <KEY_ESC>;
press-threshold-microvolt = <0>;
};
right-key {
label = "right";
linux,code = <KEY_RIGHT>;
press-threshold-microvolt = <400781>;
};
left-key {
label = "left";
linux,code = <KEY_LEFT>;
press-threshold-microvolt = <801562>;
};
menu-key {
label = "menu";
linux,code = <KEY_MENU>;
press-threshold-microvolt = <1198828>;
};
};
backlight: backlight {
compatible = "pwm-backlight";
brightness-levels = <