dts: update the gpio key node for atom and sei210
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Tue, 7 Aug 2018 06:07:39 +0000 (14:07 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Tue, 7 Aug 2018 06:51:31 +0000 (23:51 -0700)
PD#170502: dts: update the gpio key node for atom and sei210

Change-Id: Ib92167c36c2a756a784494da5dbe73a13c63dff0
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
arch/arm64/boot/dts/amlogic/atom.dts
arch/arm64/boot/dts/amlogic/gxl_sei210_1g.dts
arch/arm64/boot/dts/amlogic/gxl_sei210_2g.dts

index 9645d2171e42f5d0b0a3eca44ce3a5c8d04dcbc8..da0b38832378252aa98c56697282f02980c68092 100644 (file)
            key_num = <3>;
            key_name = "source", "bt_paring", "mute";
            key_code = <466 218 248>;
-           key_pin = <&gpio GPIODV_0 GPIO_ACTIVE_LOW
+           key-gpios = <&gpio GPIODV_0 GPIO_ACTIVE_LOW
                        &gpio GPIODV_1 GPIO_ACTIVE_LOW
                        &gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
-           interrupts = <0 70 1
-                               0 71 2>;
-           interrupt-names = "irq_keyup", "irq_keydown";
+               detect_mode = <0>;/*0:polling mode, 1:irq mode*/
        };
 
        gpioleds {
index 9b623fb2e248ed6f337c1139afbb7dc6f8c5a23a..587d066cbc3ea6f5b824cfa3e3e52f9da0244a4f 100644 (file)
                key_num = <1>;
                key_name = "power";
                key_code = <116>;
-               key_pin = <&gpio_ao  GPIOAO_2  GPIO_ACTIVE_HIGH>;
-               interrupts = <0 70 1
-                               0 71 2>;
-               interrupt-names = "irq_keyup", "irq_keydown";
+               key-gpios = <&gpio_ao  GPIOAO_2  GPIO_ACTIVE_HIGH>;
+               detect_mode = <0>;/*0:polling mode, 1:irq mode*/
        };
        meson-fb {
                compatible = "amlogic, meson-gxl";
index a3afca5dc7d325508c234d56fe57022109f5a8f0..9e3d5ac2f0c622b7b973bfbd37643792dc4656d7 100644 (file)
                key_num = <1>;
                key_name = "power";
                key_code = <116>;
-               key_pin = <&gpio_ao  GPIOAO_2  GPIO_ACTIVE_HIGH>;
-               interrupts = <  0 70 1
-                       0 71 2>;
-               interrupt-names = "irq_keyup", "irq_keydown";
+               key-gpios = <&gpio_ao  GPIOAO_2  GPIO_ACTIVE_HIGH>;
+               detect_mode = <0>;/*0:polling mode, 1:irq mode*/
        };
 
        aml_sensor0: aml-sensor@0 {