diff --git a/arch/arm64/boot/dts/amlogic/meson-s6.dtsi b/arch/arm64/boot/dts/amlogic/meson-s6.dtsi index 35232c465..baf4ba8fb 100644 --- a/arch/arm64/boot/dts/amlogic/meson-s6.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-s6.dtsi @@ -21,6 +21,7 @@ #include #include #include +#include #include "meson-ir-map.dtsi" #include "meson-valhall.dtsi" / { diff --git a/arch/arm64/boot/dts/amlogic/s6_s905d5_bq201.dts b/arch/arm64/boot/dts/amlogic/s6_s905d5_bq201.dts index 752f18667..f6d23a274 100644 --- a/arch/arm64/boot/dts/amlogic/s6_s905d5_bq201.dts +++ b/arch/arm64/boot/dts/amlogic/s6_s905d5_bq201.dts @@ -780,30 +780,31 @@ compatible = "amlogic, picdec"; status = "disabled"; }; + 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>; + status = "okay"; + key_name = "update", "vol-", "vol+", "enter"; + key_num = <4>; + io-channels = <&saradc 3>; + io-channel-names = "key-chan-3"; + key_chan = ; + key_code = ; + key_val = <0 250 470 680>; /* Unit: millivolt */ + key_tolerance = <70 70 70 70>; /* Unit: millivolt */ }; - 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 = "power"; + key_code = ; + key_type = ; + key-gpios = <&gpio GPIOD_3 GPIO_ACTIVE_HIGH>; + /* 0:polling mode, 1:irq mode */ + detect_mode = <0>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/s6_s905d5_bq208.dts b/arch/arm64/boot/dts/amlogic/s6_s905d5_bq208.dts index c3b7efc2b..d07114727 100644 --- a/arch/arm64/boot/dts/amlogic/s6_s905d5_bq208.dts +++ b/arch/arm64/boot/dts/amlogic/s6_s905d5_bq208.dts @@ -780,30 +780,18 @@ compatible = "amlogic, picdec"; status = "disabled"; }; + 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{ - 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*/ + status = "okay"; + key_name = "menu", "vol-", "vol+", "esc", "home"; + key_num = <5>; + io-channels = <&saradc 3>; + io-channel-names = "key-chan-3"; + key_chan = ; + key_code = ; + key_val = <0 251 468 684 900>; /* Unit: millivolt */ + key_tolerance = <70 70 70 70 70>; /* Unit: millivolt */ }; }; diff --git a/arch/arm64/boot/dts/amlogic/s6_s905d5_bq209.dts b/arch/arm64/boot/dts/amlogic/s6_s905d5_bq209.dts index aa805add6..74e845774 100644 --- a/arch/arm64/boot/dts/amlogic/s6_s905d5_bq209.dts +++ b/arch/arm64/boot/dts/amlogic/s6_s905d5_bq209.dts @@ -780,30 +780,18 @@ compatible = "amlogic, picdec"; status = "disabled"; }; + 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{ - 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*/ + status = "okay"; + key_name = "menu", "vol-", "vol+", "esc", "home"; + key_num = <5>; + io-channels = <&saradc 3>; + io-channel-names = "key-chan-3"; + key_chan = ; + key_code = ; + key_val = <0 251 468 684 900>; /* Unit: millivolt */ + key_tolerance = <70 70 70 70 70>; /* Unit: millivolt */ }; }; diff --git a/arch/arm64/boot/dts/amlogic/s6_s905x5_bl201.dts b/arch/arm64/boot/dts/amlogic/s6_s905x5_bl201.dts index 4066c8175..72a440258 100644 --- a/arch/arm64/boot/dts/amlogic/s6_s905x5_bl201.dts +++ b/arch/arm64/boot/dts/amlogic/s6_s905x5_bl201.dts @@ -783,28 +783,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-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>; + io-channels = <&saradc 3>; + io-channel-names = "key-chan-3"; + key_chan = ; + key_code = ; + key_val = <1600 1050 50>; /* Unit: millivolt */ + key_tolerance = <70 70 70>; /* Unit: millivolt */ }; - 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-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_HIGH + &gpio GPIOA_11 GPIO_ACTIVE_HIGH>; + /* 0:polling mode, 1:irq mode */ + detect_mode = <0>; }; vin_12v_reg: fixed@vin_12v_reg { diff --git a/arch/arm64/boot/dts/amlogic/s6_s905x5_bl208.dts b/arch/arm64/boot/dts/amlogic/s6_s905x5_bl208.dts index f3d8c410f..ce525af57 100644 --- a/arch/arm64/boot/dts/amlogic/s6_s905x5_bl208.dts +++ b/arch/arm64/boot/dts/amlogic/s6_s905x5_bl208.dts @@ -780,30 +780,18 @@ compatible = "amlogic, picdec"; status = "disabled"; }; + 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{ - 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*/ + status = "okay"; + key_name = "menu", "vol-", "vol+", "esc", "home"; + key_num = <5>; + io-channels = <&saradc 3>; + io-channel-names = "key-chan-3"; + key_chan = ; + key_code = ; + key_val = <0 251 468 684 900>; /* Unit: millivolt */ + key_tolerance = <70 70 70 70 70>; /* Unit: millivolt */ }; vin_12v_reg: fixed@vin_12v_reg { diff --git a/arch/arm64/boot/dts/amlogic/s6_s905x5_bl209.dts b/arch/arm64/boot/dts/amlogic/s6_s905x5_bl209.dts index 100bbd135..60d5f82a5 100644 --- a/arch/arm64/boot/dts/amlogic/s6_s905x5_bl209.dts +++ b/arch/arm64/boot/dts/amlogic/s6_s905x5_bl209.dts @@ -780,30 +780,18 @@ compatible = "amlogic, picdec"; status = "disabled"; }; + 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{ - 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*/ + status = "okay"; + key_name = "menu", "vol-", "vol+", "esc", "home"; + key_num = <5>; + io-channels = <&saradc 3>; + io-channel-names = "key-chan-3"; + key_chan = ; + key_code = ; + key_val = <0 251 468 684 900>; /* Unit: millivolt */ + key_tolerance = <70 70 70 70 70>; /* Unit: millivolt */ }; vin_12v_reg: fixed@vin_12v_reg {