summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin, Meng-Bo <linmengbo0689@protonmail.com>2022-07-24 12:55:43 +0300
committerBjorn Andersson <andersson@kernel.org>2022-08-30 00:13:32 +0300
commit90ca46731599ea364d2d8b5310341ab766fea637 (patch)
tree7326d4eb0f2ec91f99ffe4ebe85e2054cae7c9d9
parent87c1b199e622bc2d9b16da5d870ab6b92db96154 (diff)
downloadlinux-90ca46731599ea364d2d8b5310341ab766fea637.tar.xz
arm64: dts: qcom: msm8916-samsung-e2015: Add touchkey
On the Samsung Galaxy E5 and E7 the touch key is supplied by a single fixed regulator (enabled via GPIO 97) that supplies both MCU and LED. Add it to the device tree. Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20220724095426.14189-1-linmengbo0689@protonmail.com
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi26
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts4
2 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi
index 9caa8a161d31..542010fdfb8a 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi
@@ -38,6 +38,19 @@
pinctrl-names = "default";
pinctrl-0 = <&motor_en_default>;
};
+
+ reg_touch_key: regulator-touch-key {
+ compatible = "regulator-fixed";
+ regulator-name = "touch_key";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpio = <&msmgpio 97 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&tkey_en_default>;
+ };
};
&blsp_i2c2 {
@@ -48,6 +61,11 @@
/delete-node/ magnetometer@12;
};
+&touchkey {
+ vcc-supply = <&reg_touch_key>;
+ vdd-supply = <&reg_touch_key>;
+};
+
&msmgpio {
motor_en_default: motor-en-default {
pins = "gpio76";
@@ -56,4 +74,12 @@
drive-strength = <2>;
bias-disable;
};
+
+ tkey_en_default: tkey-en-default {
+ pins = "gpio97";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
};
diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts
index 4c1becdb9428..bc7134698978 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts
@@ -41,6 +41,10 @@
gpio = <&msmgpio 72 GPIO_ACTIVE_HIGH>;
};
+&reg_touch_key {
+ status = "disabled";
+};
+
&msmgpio {
gpio_leds_default: gpio-led-default {
pins = "gpio60";