mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
rk312x-sdk: modify adc key adc_value and power key gpio
Signed-off-by: 陈亮 <cl@rock-chips.com>
This commit is contained in:
@@ -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*/
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user