arm64: dts: rockchip: rk3399-sapphire add adc_key

Change-Id: I60f390fad4400f18c21bcc76842f5c0d769bb5f2
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
This commit is contained in:
Wu Liangqing 2023-04-19 09:59:56 +00:00 committed by Tao Huang
parent c8b8d9251b
commit 71775aaa12
1 changed files with 44 additions and 0 deletions

View File

@ -16,6 +16,50 @@
stdout-path = "serial2:1500000n8";
};
adc_keys: adc-keys {
compatible = "adc-keys";
io-channels = <&saradc 1>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <1800000>;
poll-interval = <100>;
vol-up-key {
label = "volume up";
linux,code = <KEY_VOLUMEUP>;
press-threshold-microvolt = <1750>;
};
vol-down-key {
label = "volume down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <297500>;
};
menu-key {
label = "menu";
linux,code = <KEY_MENU>;
press-threshold-microvolt = <1305500>;
};
home-key {
label = "home";
linux,code = <KEY_HOME>;
press-threshold-microvolt = <621250>;
};
back-key {
label = "back";
linux,code = <KEY_BACK>;
press-threshold-microvolt = <980000>;
};
camera-key {
label = "camera";
linux,code = <KEY_CAMERA>;
press-threshold-microvolt = <787500>;
};
};
clkin_gmac: external-gmac-clock {
compatible = "fixed-clock";
clock-frequency = <125000000>;