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 9645d21..da0b388 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 9b623fb..587d066 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 a3afca5..9e3d5ac 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 {