diff --git a/arch/arm64/boot/dts/amlogic/meson-s7.dtsi b/arch/arm64/boot/dts/amlogic/meson-s7.dtsi index d62c0e842..3c071f02c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-s7.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-s7.dtsi @@ -17,6 +17,7 @@ #include #include #include +#include #include "meson-ir-map.dtsi" #include "mesong12a-bifrost.dtsi" / { diff --git a/arch/arm64/boot/dts/amlogic/s7_s905y5_bh201.dts b/arch/arm64/boot/dts/amlogic/s7_s905y5_bh201.dts index f42d1349e..1834c6f20 100644 --- a/arch/arm64/boot/dts/amlogic/s7_s905y5_bh201.dts +++ b/arch/arm64/boot/dts/amlogic/s7_s905y5_bh201.dts @@ -719,28 +719,29 @@ adc_keypad { compatible = "amlogic, adc_keypad"; - status = "disabled"; - key_name = "standby", "vol+", "vol-"; + status = "okay"; + key_name = "vol-", "vol+", "power"; key_num = <3>; - io-channels = <&saradc 0>; + io-channels = <&saradc SARADC_CH0>; io-channel-names = "key-chan-0"; - key_chan = <0 0 0>; - key_code = <116 115 114>; - key_val = <20 910 630>; //val=voltage/1800mV*1023 + key_chan = ; + key_code = ; + /* val = voltage / 1800mV * 1023 */ + key_val = <630 910 20>; key_tolerance = <40 40 40>; }; - gpio_keypad{ + gpio_keypad { compatible = "amlogic, gpio_keypad"; - status = "disabled"; + status = "okay"; scan_period = <20>; - key_num = <2>; - key_name = "bluetooth", "mute"; - key_code = <600 SW_MUTE_DEVICE>; - key_type = ; - key-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH - &gpio GPIOD_3 GPIO_ACTIVE_HIGH>; - detect_mode = <0>;/*0:polling mode, 1:irq mode*/ + key_num = <1>; + key_name = "bluetooth"; + key_code = <600>; + key_type = ; + key-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH>; + /* 0:polling mode, 1:irq mode */ + detect_mode = <0>; }; vin_12v_reg: fixedregulator@12v { diff --git a/arch/arm64/boot/dts/amlogic/s7_s905y5_bh202.dts b/arch/arm64/boot/dts/amlogic/s7_s905y5_bh202.dts index 9231152f3..7f35f76df 100644 --- a/arch/arm64/boot/dts/amlogic/s7_s905y5_bh202.dts +++ b/arch/arm64/boot/dts/amlogic/s7_s905y5_bh202.dts @@ -748,30 +748,17 @@ status = "disabled"; };/* Audio Related end */ - adc_keypad { - compatible = "amlogic, adc_keypad"; - status = "disabled"; - key_name = "standby", "vol+", "vol-"; - key_num = <3>; - io-channels = <&saradc 0>; - io-channel-names = "key-chan-0"; - key_chan = <0 0 0>; - key_code = <116 115 114>; - key_val = <20 910 630>; //val=voltage/1800mV*1023 - key_tolerance = <40 40 40>; - }; - - gpio_keypad{ + gpio_keypad { compatible = "amlogic, gpio_keypad"; - status = "disabled"; + status = "okay"; scan_period = <20>; - key_num = <2>; - key_name = "bluetooth", "mute"; - key_code = <600 SW_MUTE_DEVICE>; - key_type = ; - key-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH - &gpio GPIOD_3 GPIO_ACTIVE_HIGH>; - detect_mode = <0>;/*0:polling mode, 1:irq mode*/ + key_num = <1>; + key_name = "bluetooth"; + key_code = <600>; + key_type = ; + key-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH>; + /* 0:polling mode, 1:irq mode */ + detect_mode = <0>; }; vin_5v_reg: fixedregulator@vin_5v { diff --git a/arch/arm64/boot/dts/amlogic/s7_s905y5_bh209.dts b/arch/arm64/boot/dts/amlogic/s7_s905y5_bh209.dts index 27b9c752e..96c924126 100644 --- a/arch/arm64/boot/dts/amlogic/s7_s905y5_bh209.dts +++ b/arch/arm64/boot/dts/amlogic/s7_s905y5_bh209.dts @@ -750,28 +750,16 @@ adc_keypad { compatible = "amlogic, adc_keypad"; - status = "disabled"; - key_name = "standby", "vol+", "vol-"; - key_num = <3>; - io-channels = <&saradc 0>; + status = "okay"; + key_name = "menu", "vol-", "vol+", "esc", "home"; + key_num = <5>; + io-channels = <&saradc SARADC_CH0>; io-channel-names = "key-chan-0"; - key_chan = <0 0 0>; - key_code = <116 115 114>; - key_val = <20 910 630>; //val=voltage/1800mV*1023 - key_tolerance = <40 40 40>; - }; - - gpio_keypad{ - compatible = "amlogic, gpio_keypad"; - status = "disabled"; - scan_period = <20>; - key_num = <2>; - key_name = "bluetooth", "mute"; - key_code = <600 SW_MUTE_DEVICE>; - key_type = ; - key-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH - &gpio GPIOD_3 GPIO_ACTIVE_HIGH>; - detect_mode = <0>;/*0:polling mode, 1:irq mode*/ + key_chan = ; + key_code = ; + /* key_val = voltage / 1800mV * 1023 */ + key_val = <0 143 266 389 512>; + key_tolerance = <40 40 40 40 40>; }; vin_12v_reg: fixedregulator@12v {