From 857c95370bd82406275cec91f0942ab38fb9543e Mon Sep 17 00:00:00 2001 From: wdc Date: Wed, 30 Jul 2014 16:45:09 +0800 Subject: [PATCH] 3126: add key node at dts file --- arch/arm/boot/dts/rk3126-sdk.dts | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/rk3126-sdk.dts b/arch/arm/boot/dts/rk3126-sdk.dts index 9a3eff802c7a..24ef257c303a 100755 --- a/arch/arm/boot/dts/rk3126-sdk.dts +++ b/arch/arm/boot/dts/rk3126-sdk.dts @@ -64,6 +64,59 @@ status = "disabled"; }; +&adc { + status = "okay"; + + key { + compatible = "rockchip,key"; + io-channels = <&adc 1>; + + vol-up-key { + linux,code = <115>; + label = "volume up"; + rockchip,adc_value = <1>; + }; + + vol-down-key { + linux,code = <114>; + label = "volume down"; + rockchip,adc_value = <170>; + }; + + power-key { + gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>; + linux,code = <116>; + label = "power"; + gpio-key,wakeup; + }; + + menu-key { + linux,code = <59>; + label = "menu"; + rockchip,adc_value = <355>; + }; + + home-key { + linux,code = <102>; + label = "home"; + rockchip,adc_value = <746>; + }; + + back-key { + linux,code = <158>; + label = "back"; + rockchip,adc_value = <560>; + }; + + camera-key { + linux,code = <212>; + label = "camera"; + rockchip,adc_value = <450>; + }; + }; +}; + + &i2c0 { status = "okay"; rk818: rk818@1c { -- 2.34.1