arm64/dts: add google assist gpio key
Guam/Guamp support the hardware key to trigger the google assistant. Change-Id: I59376040e602b3ec53af718bdc160753b1db0c0a Signed-off-by: chenl18 <chenlei18@lenovo.com> Reviewed-on: https://gerrit.mot.com/1511518 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
1 parent
34abd7b945
commit
300c60f917
2 files changed
+53
-2
No files matched your search
@@ -48,6 +48,20 @@
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
tlmm_gpio_key {
|
||||
gpio_key_active: gpio_key_active {
|
||||
mux {
|
||||
pins = "gpio33";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio33";
|
||||
drive-strength = <2>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
@@ -58,7 +72,7 @@
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
pinctrl-0 = <&key_vol_up_default &gpio_key_active>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
@@ -69,6 +83,16 @@
|
||||
debounce-interval = <15>;
|
||||
gpio-key,wakeup;
|
||||
};
|
||||
|
||||
assist_key{
|
||||
label = "assist_key";
|
||||
gpios = <&tlmm 33 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_SEARCH>;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
gpio-key,wakeup;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -51,13 +51,30 @@
|
||||
};
|
||||
};
|
||||
|
||||
&tlmm {
|
||||
tlmm_gpio_key {
|
||||
gpio_key_active: gpio_key_active {
|
||||
mux {
|
||||
pins = "gpio33";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio33";
|
||||
drive-strength = <2>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
pinctrl-0 = <&key_vol_up_default &gpio_key_active>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
@@ -68,6 +85,16 @@
|
||||
debounce-interval = <15>;
|
||||
gpio-key,wakeup;
|
||||
};
|
||||
|
||||
assist_key{
|
||||
label = "assist_key";
|
||||
gpios = <&tlmm 33 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_SEARCH>;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
gpio-key,wakeup;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user