author | Yingyuan Zhu <yingyuan.zhu@amlogic.com> | 2018-08-07 06:07:39 (GMT) |
---|---|---|
committer | Yixun Lan <yixun.lan@amlogic.com> | 2018-08-07 06:51:31 (GMT) |
commit | 39169ed5d09e6bced2938c9e9462f94c16454a26 (patch) | |
tree | bdb7e509ee1bd5e60b8e0311c5bdd8411bb2562d | |
parent | 7152bce7ca274fd6b9cfe9ac0db22feda27dcaae (diff) | |
download | common-39169ed5d09e6bced2938c9e9462f94c16454a26.zip common-39169ed5d09e6bced2938c9e9462f94c16454a26.tar.gz common-39169ed5d09e6bced2938c9e9462f94c16454a26.tar.bz2 |
dts: update the gpio key node for atom and sei210
PD#170502: dts: update the gpio key node for atom and sei210
Change-Id: Ib92167c36c2a756a784494da5dbe73a13c63dff0
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
-rw-r--r-- | arch/arm64/boot/dts/amlogic/atom.dts | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/amlogic/gxl_sei210_1g.dts | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/amlogic/gxl_sei210_2g.dts | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/arch/arm64/boot/dts/amlogic/atom.dts b/arch/arm64/boot/dts/amlogic/atom.dts index 9645d21..da0b388 100644 --- a/arch/arm64/boot/dts/amlogic/atom.dts +++ b/arch/arm64/boot/dts/amlogic/atom.dts @@ -191,12 +191,10 @@ 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 { diff --git a/arch/arm64/boot/dts/amlogic/gxl_sei210_1g.dts b/arch/arm64/boot/dts/amlogic/gxl_sei210_1g.dts index 9b623fb..587d066 100644 --- a/arch/arm64/boot/dts/amlogic/gxl_sei210_1g.dts +++ b/arch/arm64/boot/dts/amlogic/gxl_sei210_1g.dts @@ -732,10 +732,8 @@ 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"; diff --git a/arch/arm64/boot/dts/amlogic/gxl_sei210_2g.dts b/arch/arm64/boot/dts/amlogic/gxl_sei210_2g.dts index a3afca5..9e3d5ac 100644 --- a/arch/arm64/boot/dts/amlogic/gxl_sei210_2g.dts +++ b/arch/arm64/boot/dts/amlogic/gxl_sei210_2g.dts @@ -497,10 +497,8 @@ 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 { |