rk312x: overwrite adc channel

This commit is contained in:
wdc
2014-08-05 11:52:22 +08:00
parent dd14603065
commit cdc62933b0
2 changed files with 9 additions and 5 deletions

View File

@@ -23,3 +23,7 @@
};
};
};
&key {
io-channels = <&adc 2>;
};

View File

@@ -71,20 +71,20 @@
&adc {
status = "okay";
key {
key: key {
compatible = "rockchip,key";
io-channels = <&adc 1>;
vol-up-key {
linux,code = <115>;
label = "volume up";
rockchip,adc_value = <1>;
rockchip,adc_value = <327>;
};
vol-down-key {
linux,code = <114>;
label = "volume down";
rockchip,adc_value = <170>;
rockchip,adc_value = <426>;
};
power-key {
@@ -97,7 +97,7 @@
menu-key {
linux,code = <59>;
label = "menu";
rockchip,adc_value = <355>;
rockchip,adc_value = <1>;
};
home-key {
@@ -109,7 +109,7 @@
back-key {
linux,code = <158>;
label = "back";
rockchip,adc_value = <560>;
rockchip,adc_value = <103>;
};
camera-key {