rk312x-sdk: modify adc key adc_value and power key gpio

Signed-off-by: 陈亮 <cl@rock-chips.com>
This commit is contained in:
陈亮
2014-08-14 23:49:07 -07:00
parent 40481bbdcc
commit ee50487b0d
3 changed files with 18 additions and 4 deletions

View File

@@ -53,6 +53,12 @@
&key {
io-channels = <&adc 2>;
power-key {
gpios = <&gpio1 GPIO_A4 GPIO_ACTIVE_LOW>;
linux,code = <116>;
label = "power";
gpio-key,wakeup;
};
};
&sdmmc {
cd-gpios = <&gpio2 GPIO_A3 GPIO_ACTIVE_HIGH>;/*CD GPIO*/

View File

@@ -54,3 +54,11 @@
&sdmmc {
cd-gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
};
&key {
power-key {
gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
linux,code = <116>;
label = "power";
gpio-key,wakeup;
};
};

View File

@@ -120,13 +120,13 @@
vol-up-key {
linux,code = <115>;
label = "volume up";
rockchip,adc_value = <327>;
rockchip,adc_value = <523>;
};
vol-down-key {
linux,code = <114>;
label = "volume down";
rockchip,adc_value = <426>;
rockchip,adc_value = <727>;
};
power-key {
@@ -145,13 +145,13 @@
home-key {
linux,code = <102>;
label = "home";
rockchip,adc_value = <746>;
rockchip,adc_value = <318>;
};
back-key {
linux,code = <158>;
label = "back";
rockchip,adc_value = <103>;
rockchip,adc_value = <146>;
};
camera-key {