All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen
@ 2020-11-15 19:50 michael.srba
  2020-11-16 11:25 ` Stephan Gerhold
  2020-11-24  4:10 ` patchwork-bot+linux-arm-msm
  0 siblings, 2 replies; 3+ messages in thread
From: michael.srba @ 2020-11-15 19:50 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Rob Herring, linux-arm-msm, devicetree,
	~postmarketos/upstreaming, Michael Srba

From: Michael Srba <Michael.Srba@seznam.cz>

This patch wires up touchscreen support on Samsung Galaxy A3 2015.

Signed-off-by: Michael Srba <Michael.Srba@seznam.cz>
---

Tested on Samsung Galaxy A3 (sm-a3ulte).

---
 .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
index 086f07ead5cb..661f41ad978b 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
@@ -28,6 +28,27 @@ &accelerometer {
 		       "0", "0", "1";
 };
 
+&blsp_i2c5 {
+	status = "okay";
+
+	touchscreen@20 {
+		compatible = "zinitix,bt541";
+
+		reg = <0x20>;
+		interrupt-parent = <&msmgpio>;
+		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+
+		touchscreen-size-x = <540>;
+		touchscreen-size-y = <960>;
+
+		vdd-supply = <&reg_vdd_tsp>;
+		vddo-supply = <&pm8916_l6>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&ts_int_default>;
+	};
+};
+
 &dsi0 {
 	panel@0 {
 		reg = <0>;
@@ -59,4 +80,12 @@ panel_vdd3_default: panel-vdd3-default {
 		drive-strength = <2>;
 		bias-disable;
 	};
+
+	ts_int_default: ts-int-default {
+		pins = "gpio13";
+		function = "gpio";
+
+		drive-strength = <2>;
+		bias-disable;
+	};
 };
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen
  2020-11-15 19:50 [PATCH] arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen michael.srba
@ 2020-11-16 11:25 ` Stephan Gerhold
  2020-11-24  4:10 ` patchwork-bot+linux-arm-msm
  1 sibling, 0 replies; 3+ messages in thread
From: Stephan Gerhold @ 2020-11-16 11:25 UTC (permalink / raw)
  To: michael.srba
  Cc: Andy Gross, Bjorn Andersson, Rob Herring, linux-arm-msm,
	devicetree, ~postmarketos/upstreaming

On Sun, Nov 15, 2020 at 08:50:58PM +0100, michael.srba@seznam.cz wrote:
> From: Michael Srba <Michael.Srba@seznam.cz>
> 
> This patch wires up touchscreen support on Samsung Galaxy A3 2015.
> 
> Signed-off-by: Michael Srba <Michael.Srba@seznam.cz>

Reviewed-by: Stephan Gerhold <stephan@gerhold.net>

> ---
> 
> Tested on Samsung Galaxy A3 (sm-a3ulte).
> 
> ---
>  .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts | 29 +++++++++++++++++++
>  1 file changed, 29 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
> index 086f07ead5cb..661f41ad978b 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
> @@ -28,6 +28,27 @@ &accelerometer {
>  		       "0", "0", "1";
>  };
>  
> +&blsp_i2c5 {
> +	status = "okay";
> +
> +	touchscreen@20 {
> +		compatible = "zinitix,bt541";
> +
> +		reg = <0x20>;
> +		interrupt-parent = <&msmgpio>;
> +		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
> +
> +		touchscreen-size-x = <540>;
> +		touchscreen-size-y = <960>;
> +
> +		vdd-supply = <&reg_vdd_tsp>;
> +		vddo-supply = <&pm8916_l6>;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&ts_int_default>;
> +	};
> +};
> +
>  &dsi0 {
>  	panel@0 {
>  		reg = <0>;
> @@ -59,4 +80,12 @@ panel_vdd3_default: panel-vdd3-default {
>  		drive-strength = <2>;
>  		bias-disable;
>  	};
> +
> +	ts_int_default: ts-int-default {
> +		pins = "gpio13";
> +		function = "gpio";
> +
> +		drive-strength = <2>;
> +		bias-disable;
> +	};
>  };
> -- 
> 2.28.0
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen
  2020-11-15 19:50 [PATCH] arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen michael.srba
  2020-11-16 11:25 ` Stephan Gerhold
@ 2020-11-24  4:10 ` patchwork-bot+linux-arm-msm
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2020-11-24  4:10 UTC (permalink / raw)
  To: Michael Srba; +Cc: linux-arm-msm

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

On Sun, 15 Nov 2020 20:50:58 +0100 you wrote:
> From: Michael Srba <Michael.Srba@seznam.cz>
> 
> This patch wires up touchscreen support on Samsung Galaxy A3 2015.
> 
> Signed-off-by: Michael Srba <Michael.Srba@seznam.cz>
> ---
> 
> [...]

Here is the summary with links:
  - arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen
    https://git.kernel.org/qcom/c/e76be113d4a7

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-24  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 19:50 [PATCH] arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen michael.srba
2020-11-16 11:25 ` Stephan Gerhold
2020-11-24  4:10 ` patchwork-bot+linux-arm-msm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.