adc-keys on Luckfox pico plus
Posted: 2025-04-07 22:43
Hi! I'm trying to use adc-keys on board, changed rv1106-evb.dtsi by adding new keys
But after that /dev/input/event0 disappear. IDK what problem is. Anyway /proc/device-tree/ shows key_down-key/, key_left-key/, etc. Is present.
Thank you!
Code: Select all
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
*/
#include "rv1106-amp.dtsi"
#include <dt-bindings/input/input.h>
/ {
adc-keys{
compatible = "adc-keys";
io-channels = <&saradc 0>;
io-channel-names = "buttons";
poll-interval = <100>;
keyup-threshold-microvolt = <1700000>;
key_up-key {
label = "key_up";
linux,code = <KEY_UP>;
press-threshold-microvolt = <1400000>;
};
key_down-key {
label = "key_down";
linux,code = <KEY_DOWN>;
press-threshold-microvolt = <1000000>;
};
key_left-key {
label = "key_left";
linux,code = <KEY_LEFT>;
press-threshold-microvolt = <600000>;
};
key_right-key {
label = "key_right";
linux,code = <KEY_RIGHT>;
press-threshold-microvolt = <1600000>;
};
};
restart-poweroff {
compatible = "restart-poweroff";
};
};
&fiq_debugger {
rockchip,irq-mode-enable = <1>;
status = "okay";
};
&gmac {
status = "okay";
};
&i2s0_8ch {
status = "okay";
};
&mpp_srv {
status = "okay";
};
&mpp_vcodec {
status = "okay";
};
&npu {
status = "okay";
};
&rga2 {
status = "okay";
};
&rkdvbm {
status = "okay";
};
&rkvenc {
status = "okay";
};
&rkvenc_pp {
status = "okay";
};
&rmii_phy {
bgs,increment = <0>;
};
&rng {
status = "okay";
};
&rve {
status = "okay";
};
&tsadc {
status = "okay";
};
&u2phy {
status = "okay";
};
&u2phy_otg {
status = "okay";
};
&usbdrd {
status = "okay";
};
&usbdrd_dwc3 {
extcon = <&u2phy>;
status = "okay";
};
Thank you!