Commit f8dddefc authored by Joe Mason's avatar Joe Mason Committed by Bjorn Andersson

arm64: dts: qcom: msm8916-samsung-fortuna: Add touchscreen

Like msm8916-samsung-a3u-eur, the Grand Prime uses a Zinitix BT541
touchscreen. Add it together with the necessary fixed-regulator to the
device tree.
Signed-off-by: default avatarJoe Mason <buddyjojo06@outlook.com>
[Raymond: Move to fortuna-common. Use interrupts-extended]
Signed-off-by: default avatarRaymond Hackley <raymondhackley@protonmail.com>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240404121703.17086-2-raymondhackley@protonmail.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent c3d9acc5
...@@ -66,6 +66,19 @@ reg_motor_vdd: regulator-motor-vdd { ...@@ -66,6 +66,19 @@ reg_motor_vdd: regulator-motor-vdd {
pinctrl-0 = <&motor_en_default>; pinctrl-0 = <&motor_en_default>;
pinctrl-names = "default"; pinctrl-names = "default";
}; };
reg_vdd_tsp_a: regulator-vdd-tsp-a {
compatible = "regulator-fixed";
regulator-name = "vdd_tsp_a";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&tsp_en_default>;
pinctrl-names = "default";
};
}; };
&blsp_i2c1 { &blsp_i2c1 {
...@@ -94,6 +107,26 @@ fuel-gauge@35 { ...@@ -94,6 +107,26 @@ fuel-gauge@35 {
}; };
}; };
&blsp_i2c5 {
status = "okay";
touchscreen: touchscreen@20 {
compatible = "zinitix,bt541";
reg = <0x20>;
interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
touchscreen-size-x = <540>;
touchscreen-size-y = <960>;
vcca-supply = <&reg_vdd_tsp_a>;
vdd-supply = <&pm8916_l6>;
pinctrl-0 = <&tsp_int_default>;
pinctrl-names = "default";
};
};
&blsp_uart2 { &blsp_uart2 {
status = "okay"; status = "okay";
}; };
...@@ -200,4 +233,18 @@ sdc2_cd_default: sdc2-cd-default-state { ...@@ -200,4 +233,18 @@ sdc2_cd_default: sdc2-cd-default-state {
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
}; };
tsp_en_default: tsp-en-default-state {
pins = "gpio73";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
tsp_int_default: tsp-int-default-state {
pins = "gpio13";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
}; };
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
/* SM5504 MUIC instead of SM5502 */ /* SM5504 MUIC instead of SM5502 */
/delete-node/ &muic; /delete-node/ &muic;
/* Touchscreen varies depending on model variant */
/delete-node/ &touchscreen;
&blsp_i2c1 { &blsp_i2c1 {
muic: extcon@14 { muic: extcon@14 {
compatible = "siliconmitus,sm5504-muic"; compatible = "siliconmitus,sm5504-muic";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment