linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen
@ 2021-05-28 11:43 Vincent Knecht
  2021-05-28 11:57 ` Stephan Gerhold
  2021-05-31 21:50 ` patchwork-bot+linux-arm-msm
  0 siblings, 2 replies; 3+ messages in thread
From: Vincent Knecht @ 2021-05-28 11:43 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, linux-arm-msm,
	devicetree, linux-kernel
  Cc: phone-devel, ~postmarketos/upstreaming, Vincent Knecht

Enable the MStar msg2638 touchscreen.

Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
---
 .../boot/dts/qcom/msm8916-alcatel-idol347.dts | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
index 540b1fa4b260..670bd1bebd73 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
@@ -45,6 +45,24 @@ &blsp1_uart2 {
 	status = "okay";
 };
 
+&blsp_i2c4 {
+	status = "okay";
+
+	touchscreen@26 {
+		compatible = "mstar,msg2638";
+		reg = <0x26>;
+		interrupt-parent = <&msmgpio>;
+		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+		reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&ts_int_reset_default>;
+		vdd-supply = <&pm8916_l17>;
+		vddio-supply = <&pm8916_l5>;
+		touchscreen-size-x = <2048>;
+		touchscreen-size-y = <2048>;
+	};
+};
+
 &blsp_i2c5 {
 	status = "okay";
 
@@ -281,6 +299,14 @@ proximity_int_default: proximity-int-default {
 		bias-pull-up;
 	};
 
+	ts_int_reset_default: ts-int-reset-default {
+		pins = "gpio13", "gpio100";
+		function = "gpio";
+
+		drive-strength = <2>;
+		bias-disable;
+	};
+
 	usb_id_default: usb-id-default {
 		pins = "gpio69";
 		function = "gpio";
-- 
2.31.1




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

* Re: [PATCH v1] arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen
  2021-05-28 11:43 [PATCH v1] arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen Vincent Knecht
@ 2021-05-28 11:57 ` Stephan Gerhold
  2021-05-31 21:50 ` patchwork-bot+linux-arm-msm
  1 sibling, 0 replies; 3+ messages in thread
From: Stephan Gerhold @ 2021-05-28 11:57 UTC (permalink / raw)
  To: Vincent Knecht
  Cc: Andy Gross, Bjorn Andersson, Rob Herring, linux-arm-msm,
	devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming

On Fri, May 28, 2021 at 01:43:45PM +0200, Vincent Knecht wrote:
> Enable the MStar msg2638 touchscreen.
> 
> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>

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

Thanks!
Stephan

> ---
>  .../boot/dts/qcom/msm8916-alcatel-idol347.dts | 26 +++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
> index 540b1fa4b260..670bd1bebd73 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
> @@ -45,6 +45,24 @@ &blsp1_uart2 {
>  	status = "okay";
>  };
>  
> +&blsp_i2c4 {
> +	status = "okay";
> +
> +	touchscreen@26 {
> +		compatible = "mstar,msg2638";
> +		reg = <0x26>;
> +		interrupt-parent = <&msmgpio>;
> +		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
> +		reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&ts_int_reset_default>;
> +		vdd-supply = <&pm8916_l17>;
> +		vddio-supply = <&pm8916_l5>;
> +		touchscreen-size-x = <2048>;
> +		touchscreen-size-y = <2048>;
> +	};
> +};
> +
>  &blsp_i2c5 {
>  	status = "okay";
>  
> @@ -281,6 +299,14 @@ proximity_int_default: proximity-int-default {
>  		bias-pull-up;
>  	};
>  
> +	ts_int_reset_default: ts-int-reset-default {
> +		pins = "gpio13", "gpio100";
> +		function = "gpio";
> +
> +		drive-strength = <2>;
> +		bias-disable;
> +	};
> +
>  	usb_id_default: usb-id-default {
>  		pins = "gpio69";
>  		function = "gpio";
> -- 
> 2.31.1
> 
> 
> 

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

* Re: [PATCH v1] arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen
  2021-05-28 11:43 [PATCH v1] arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen Vincent Knecht
  2021-05-28 11:57 ` Stephan Gerhold
@ 2021-05-31 21:50 ` patchwork-bot+linux-arm-msm
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2021-05-31 21:50 UTC (permalink / raw)
  To: Vincent Knecht; +Cc: linux-arm-msm

Hello:

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

On Fri, 28 May 2021 13:43:45 +0200 you wrote:
> Enable the MStar msg2638 touchscreen.
> 
> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
> ---
>  .../boot/dts/qcom/msm8916-alcatel-idol347.dts | 26 +++++++++++++++++++
>  1 file changed, 26 insertions(+)

Here is the summary with links:
  - [v1] arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen
    https://git.kernel.org/qcom/c/15c5a08c8427

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:[~2021-05-31 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 11:43 [PATCH v1] arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen Vincent Knecht
2021-05-28 11:57 ` Stephan Gerhold
2021-05-31 21:50 ` patchwork-bot+linux-arm-msm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).