diff mbox series

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

Message ID 20230730025315.8579-1-linmengbo0689@protonmail.com
State Superseded
Headers show
Series arm64: dts: qcom: msm8916-samsung-e5: Add touchscreen | expand

Commit Message

Lin, Meng-Bo July 30, 2023, 2:55 a.m. UTC
Similar to A5, E5 uses a Melfas MMS345L touchscreen that is connected to
blsp_i2c5. Add it to the device tree.

Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
---
 .../boot/dts/qcom/msm8916-samsung-e5.dts      | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

Comments

Konrad Dybcio July 31, 2023, 8:01 a.m. UTC | #1
On 30.07.2023 04:55, Lin, Meng-Bo wrote:
> Similar to A5, E5 uses a Melfas MMS345L touchscreen that is connected to
> blsp_i2c5. Add it to the device tree.
> 
> Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
> ---
>  .../boot/dts/qcom/msm8916-samsung-e5.dts      | 21 +++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts
> index 777eb934eb4b..bf0d128666d0 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts
> @@ -22,3 +22,24 @@ / {
>  	compatible = "samsung,e5", "qcom,msm8916";
>  	chassis-type = "handset";
>  };
> +
> +&blsp_i2c5 {
> +	status = "okay";
> +
> +	touchscreen@48 {
> +		compatible = "melfas,mms345l";
> +		reg = <0x48>;
> +
> +		interrupt-parent = <&tlmm>;
> +		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
interrupts-extended?

Konrad
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts
index 777eb934eb4b..bf0d128666d0 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e5.dts
@@ -22,3 +22,24 @@  / {
 	compatible = "samsung,e5", "qcom,msm8916";
 	chassis-type = "handset";
 };
+
+&blsp_i2c5 {
+	status = "okay";
+
+	touchscreen@48 {
+		compatible = "melfas,mms345l";
+		reg = <0x48>;
+
+		interrupt-parent = <&tlmm>;
+		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+
+		touchscreen-size-x = <720>;
+		touchscreen-size-y = <1280>;
+
+		avdd-supply = <&reg_vdd_tsp_a>;
+		vdd-supply = <&pm8916_l6>;
+
+		pinctrl-0 = <&ts_int_default>;
+		pinctrl-names = "default";
+	};
+};