rk312x: overwrite adc channel
authorwdc <wdc@rock-chips.com>
Tue, 5 Aug 2014 03:52:22 +0000 (11:52 +0800)
committerwdc <wdc@rock-chips.com>
Tue, 5 Aug 2014 03:52:22 +0000 (11:52 +0800)
arch/arm/boot/dts/rk3126-sdk.dts
arch/arm/boot/dts/rk312x-sdk.dtsi

index 5b89f30b48e564e0927e80b55a2eebbe08deb366..5656091db289128e8ab709f15999f1d4031d0dd7 100755 (executable)
@@ -23,3 +23,7 @@
                };
        };
 };
+
+&key {
+               io-channels = <&adc 2>;
+};
\ No newline at end of file
index ec6f732bebd7ba9abd24b057c92ea45bfdb969eb..d1545aeb22080d29171bfacfdad0004c3595335f 100755 (executable)
 &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 {
                back-key {
                        linux,code = <158>;
                        label = "back";
-                       rockchip,adc_value = <560>;
+                       rockchip,adc_value = <103>;
                };
 
                camera-key {