mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
arm64: dts: rockchip: Fix some adc key issues for rk3326/px30 board
1. add vref voltage 1.8v; 2. Alphabetical order; 3. Fix the press-threshold-microvolt; 4. Add poll interval 100ms Change-Id: If5e29f5073155be3022053cc3516dda88c5db223 Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
parent
bbdfca3f4f
commit
ff72078491
|
|
@ -21,36 +21,37 @@ adc-keys {
|
|||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 2>;
|
||||
io-channel-names = "buttons";
|
||||
poll-interval = <100>;
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <10000>;
|
||||
};
|
||||
|
||||
vol-down-key {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
label = "volume down";
|
||||
press-threshold-microvolt = <170000>;
|
||||
esc-key {
|
||||
linux,code = <KEY_ESC>;
|
||||
label = "esc";
|
||||
press-threshold-microvolt = <1270000>;
|
||||
};
|
||||
|
||||
home-key {
|
||||
linux,code = <KEY_HOME>;
|
||||
label = "home";
|
||||
press-threshold-microvolt = <254000>;
|
||||
press-threshold-microvolt = <602000>;
|
||||
};
|
||||
|
||||
menu-key {
|
||||
linux,code = <KEY_MENU>;
|
||||
label = "menu";
|
||||
press-threshold-microvolt = <414000>;
|
||||
press-threshold-microvolt = <952000>;
|
||||
};
|
||||
|
||||
esc-key {
|
||||
linux,code = <KEY_ESC>;
|
||||
label = "esc";
|
||||
press-threshold-microvolt = <614000>;
|
||||
vol-down-key {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
label = "volume down";
|
||||
press-threshold-microvolt = <290000>;
|
||||
};
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <17000>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -587,6 +588,7 @@ &route_dsi {
|
|||
|
||||
&saradc {
|
||||
status = "okay";
|
||||
vref-supply = <&vcc1v8_soc>;
|
||||
};
|
||||
|
||||
&sdmmc {
|
||||
|
|
|
|||
|
|
@ -21,36 +21,37 @@ adc-keys {
|
|||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 2>;
|
||||
io-channel-names = "buttons";
|
||||
poll-interval = <100>;
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
|
||||
esc-key {
|
||||
linux,code = <KEY_ESC>;
|
||||
label = "esc";
|
||||
press-threshold-microvolt = <614000>;
|
||||
press-threshold-microvolt = <1270000>;
|
||||
};
|
||||
|
||||
home-key {
|
||||
linux,code = <KEY_HOME>;
|
||||
label = "home";
|
||||
press-threshold-microvolt = <254000>;
|
||||
press-threshold-microvolt = <602000>;
|
||||
};
|
||||
|
||||
menu-key {
|
||||
linux,code = <KEY_MENU>;
|
||||
label = "menu";
|
||||
press-threshold-microvolt = <414000>;
|
||||
};
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <10000>;
|
||||
press-threshold-microvolt = <952000>;
|
||||
};
|
||||
|
||||
vol-down-key {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
label = "volume down";
|
||||
press-threshold-microvolt = <170000>;
|
||||
press-threshold-microvolt = <290000>;
|
||||
};
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <17000>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -587,6 +588,7 @@ &route_dsi {
|
|||
|
||||
&saradc {
|
||||
status = "okay";
|
||||
vref-supply = <&vcc1v8_soc>;
|
||||
};
|
||||
|
||||
&sdmmc {
|
||||
|
|
|
|||
|
|
@ -22,18 +22,19 @@ adc-keys {
|
|||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 2>;
|
||||
io-channel-names = "buttons";
|
||||
poll-interval = <100>;
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <10000>;
|
||||
};
|
||||
|
||||
vol-down-key {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
label = "volume down";
|
||||
press-threshold-microvolt = <170000>;
|
||||
press-threshold-microvolt = <290000>;
|
||||
};
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <17000>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -539,6 +540,7 @@ &route_dsi {
|
|||
|
||||
&saradc {
|
||||
status = "okay";
|
||||
vref-supply = <&vcc1v8_soc>;
|
||||
};
|
||||
|
||||
&sdmmc {
|
||||
|
|
|
|||
|
|
@ -22,36 +22,37 @@ adc-keys {
|
|||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 2>;
|
||||
io-channel-names = "buttons";
|
||||
poll-interval = <100>;
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <10000>;
|
||||
};
|
||||
|
||||
vol-down-key {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
label = "volume down";
|
||||
press-threshold-microvolt = <170000>;
|
||||
esc-key {
|
||||
linux,code = <KEY_ESC>;
|
||||
label = "esc";
|
||||
press-threshold-microvolt = <1270000>;
|
||||
};
|
||||
|
||||
home-key {
|
||||
linux,code = <KEY_HOME>;
|
||||
label = "home";
|
||||
press-threshold-microvolt = <254000>;
|
||||
press-threshold-microvolt = <602000>;
|
||||
};
|
||||
|
||||
menu-key {
|
||||
linux,code = <KEY_MENU>;
|
||||
label = "menu";
|
||||
press-threshold-microvolt = <414000>;
|
||||
press-threshold-microvolt = <952000>;
|
||||
};
|
||||
|
||||
esc-key {
|
||||
linux,code = <KEY_ESC>;
|
||||
label = "esc";
|
||||
press-threshold-microvolt = <614000>;
|
||||
vol-down-key {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
label = "volume down";
|
||||
press-threshold-microvolt = <290000>;
|
||||
};
|
||||
|
||||
vol-up-key {
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <17000>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -665,6 +666,7 @@ &route_lvds {
|
|||
|
||||
&saradc {
|
||||
status = "okay";
|
||||
vref-supply = <&vcc1v8_soc>;
|
||||
};
|
||||
|
||||
&sdmmc {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user