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 {
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";
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 {