From cdc62933b08ae2389bc80170c2268500b194b056 Mon Sep 17 00:00:00 2001 From: wdc Date: Tue, 5 Aug 2014 11:52:22 +0800 Subject: [PATCH] rk312x: overwrite adc channel --- arch/arm/boot/dts/rk3126-sdk.dts | 4 ++++ arch/arm/boot/dts/rk312x-sdk.dtsi | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/rk3126-sdk.dts b/arch/arm/boot/dts/rk3126-sdk.dts index 5b89f30b48e5..5656091db289 100755 --- a/arch/arm/boot/dts/rk3126-sdk.dts +++ b/arch/arm/boot/dts/rk3126-sdk.dts @@ -23,3 +23,7 @@ }; }; }; + +&key { + io-channels = <&adc 2>; +}; \ No newline at end of file diff --git a/arch/arm/boot/dts/rk312x-sdk.dtsi b/arch/arm/boot/dts/rk312x-sdk.dtsi index ec6f732bebd7..d1545aeb2208 100755 --- a/arch/arm/boot/dts/rk312x-sdk.dtsi +++ b/arch/arm/boot/dts/rk312x-sdk.dtsi @@ -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 { -- 2.34.1