summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
diff options
context:
space:
mode:
authorStephan Gerhold <stephan@gerhold.net>2021-05-14 13:43:25 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-06-10 19:04:53 +0300
commit918f24ae4597d5a5e3cdfca0fe7aa3ebd345a25b (patch)
treee9ff7c3bbdfc5f7dc2e277cbc409b70e02940c72 /arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
parent55056b229189be2b4b8e636f0566a0b5bfd3c8f8 (diff)
downloadlinux-918f24ae4597d5a5e3cdfca0fe7aa3ebd345a25b.tar.xz
arm64: dts: qcom: msm8916-huawei-g7: Add touchscreen
The Huawei Ascend G7 has a Synaptics "C199HW-006" touchscreen, supplied by pm8916_l17 and pm8916_l16. Add it to the device tree and reduce the maximum allowed voltage for pm8916_l16 to 1.8V since we really should not use more for an I/O supply. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20210514104328.18756-2-stephan@gerhold.net Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts43
1 files changed, 42 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts b/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
index d67aa7dd4a21..f928179f9ded 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
@@ -6,6 +6,7 @@
#include "msm8916-pm8916.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
/*
@@ -84,6 +85,38 @@
};
};
+&blsp_i2c5 {
+ status = "okay";
+
+ rmi4@70 {
+ compatible = "syna,rmi4-i2c";
+ reg = <0x70>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ interrupt-parent = <&msmgpio>;
+ interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+
+ vdd-supply = <&pm8916_l17>;
+ vio-supply = <&pm8916_l16>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&ts_irq_default>;
+
+ syna,startup-delay-ms = <100>;
+
+ rmi4-f01@1 {
+ reg = <0x1>;
+ syna,nosleep-mode = <1>; /* Allow sleeping */
+ };
+
+ rmi4-f11@11 {
+ reg = <0x11>;
+ syna,sensor-type = <1>; /* Touchscreen */
+ };
+ };
+};
+
&blsp1_uart2 {
status = "okay";
};
@@ -230,7 +263,7 @@
l16 {
regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <3300000>;
+ regulator-max-microvolt = <1800000>;
};
l17 {
@@ -269,6 +302,14 @@
bias-disable;
};
+ ts_irq_default: ts-irq-default {
+ pins = "gpio13";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+
usb_id_default: usb-id-default {
pins = "gpio117";
function = "gpio";