From: Yingyuan Zhu Date: Thu, 22 Nov 2018 05:54:54 +0000 (+0800) Subject: arm: dts: tl1: add adc_keypad node for tl1 [1/1] X-Git-Tag: hardkernel-4.9.236-104~2122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=763fcde9b120b3d9e9aab07f801cd9dd08545a3c;p=platform%2Fkernel%2Flinux-amlogic.git arm: dts: tl1: add adc_keypad node for tl1 [1/1] PD#172587 Problem: adc_keypad driver is not enabled in tl1 Solution: add adc_keypad node in dts Verify: test pass on x301 Change-Id: I3946297e710c5753d6f9425ec56bf6def94db941 Signed-off-by: Yingyuan Zhu --- diff --git a/arch/arm/boot/dts/amlogic/mesontl1.dtsi b/arch/arm/boot/dts/amlogic/mesontl1.dtsi index f9359f1..9273cde 100644 --- a/arch/arm/boot/dts/amlogic/mesontl1.dtsi +++ b/arch/arm/boot/dts/amlogic/mesontl1.dtsi @@ -25,7 +25,7 @@ #include #include #include "mesong12a-bifrost.dtsi" - +#include / { interrupt-parent = <&gic>; #address-cells = <1>; diff --git a/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts b/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts index aa75a68..09ac1611 100644 --- a/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts +++ b/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts @@ -590,6 +590,21 @@ 0xffff 0x0>; /* ending flag */ }; + adc_keypad { + compatible = "amlogic, adc_keypad"; + status = "okay"; + key_name = "vol-", "vol+", "ch+", "ch-", + "menu", "source", "exit"; + key_num = <7>; + io-channels = <&saradc SARADC_CH2 &saradc SARADC_CH3>; + io-channel-names = "key-chan-2", "key-chan-3"; + key_chan = ; + key_code = <114 115 192 193 139 466 174>; + key_val = <0 143 266 389 0 143 266>; //val=voltage/1800mV*1023 + key_tolerance = <40 40 40 40 40 40 40>; + }; + unifykey { compatible = "amlogic, unifykey"; status = "okay"; diff --git a/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts b/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts index 525f131..c7e51c5 100644 --- a/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts +++ b/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts @@ -594,6 +594,21 @@ 0xffff 0x0>; /* ending flag */ }; + /* for external keypad */ + adc_keypad { + compatible = "amlogic, adc_keypad"; + status = "okay"; + key_name = "power","up","down","enter","left","right","home"; + key_num = <7>; + io-channels = <&saradc SARADC_CH2>,<&saradc SARADC_CH3>; + io-channel-names = "key-chan-2", "key-chan-3"; + key_chan = ; + key_code = <116 103 108 28 105 106 102>; + key_val = <0 143 266 389 512 143 266>; //val=voltage/1800mV*1023 + key_tolerance = <40 40 40 40 40 40 40>; +}; + unifykey { compatible = "amlogic, unifykey"; status = "okay";