linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen
@ 2022-04-21 21:42 Luca Weiss
  2022-04-21 21:42 ` [PATCH 2/3] ARM: dts: msm8974-FP2: Configure charger Luca Weiss
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Luca Weiss @ 2022-04-21 21:42 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: ~postmarketos/upstreaming, phone-devel, Luca Weiss, Andy Gross,
	Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, devicetree,
	linux-kernel

Configure the touchscreen found on the new display module of the FP2.
To add some detail, FP2 has two different screen/touchscreen variants
("display module"), the old module has Synaptics touchscreen, the new
one this Ilitek touchscreen.

We're only supporting the new display module for now.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
 .../boot/dts/qcom-msm8974pro-fairphone-fp2.dts    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
index 96427d75ea82..8f07d8e363aa 100644
--- a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
+++ b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
@@ -57,6 +57,21 @@ vibrator {
 	};
 };
 
+&blsp1_i2c2 {
+	status = "okay";
+
+	touchscreen@41 {
+		compatible = "ilitek,ili2120";
+		reg = <0x41>;
+		interrupt-parent = <&tlmm>;
+		interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
+		reset-gpios = <&tlmm 55 GPIO_ACTIVE_LOW>;
+
+		touchscreen-size-x = <1080>;
+		touchscreen-size-y = <1920>;
+	};
+};
+
 &blsp1_uart2 {
 	status = "okay";
 };
-- 
2.36.0


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

* [PATCH 2/3] ARM: dts: msm8974-FP2: Configure charger
  2022-04-21 21:42 [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen Luca Weiss
@ 2022-04-21 21:42 ` Luca Weiss
  2022-04-21 21:42 ` [PATCH 3/3] ARM: dts: msm8974-FP2: Add supplies for remoteprocs Luca Weiss
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Luca Weiss @ 2022-04-21 21:42 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: ~postmarketos/upstreaming, phone-devel, Luca Weiss, Andy Gross,
	Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, devicetree,
	linux-kernel

Set the relevant properties on the smbb charger to allow the device to
charge properly.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
 arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
index 8f07d8e363aa..34266126d5a2 100644
--- a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
+++ b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
@@ -397,6 +397,16 @@ &sdhc_2 {
 	pinctrl-1 = <&sdc2_off>;
 };
 
+&smbb {
+	usb-charge-current-limit = <1500000>;
+	qcom,fast-charge-safe-current = <1500000>;
+	qcom,fast-charge-current-limit = <1500000>;
+	qcom,fast-charge-safe-voltage = <4380000>;
+	qcom,fast-charge-high-threshold-voltage = <4350000>;
+	qcom,auto-recharge-threshold-voltage = <4240000>;
+	qcom,minimum-input-voltage = <4450000>;
+};
+
 &tlmm {
 	panel_pin: panel {
 		te {
-- 
2.36.0


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

* [PATCH 3/3] ARM: dts: msm8974-FP2: Add supplies for remoteprocs
  2022-04-21 21:42 [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen Luca Weiss
  2022-04-21 21:42 ` [PATCH 2/3] ARM: dts: msm8974-FP2: Configure charger Luca Weiss
@ 2022-04-21 21:42 ` Luca Weiss
  2022-05-04 17:20 ` [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen patchwork-bot+linux-arm-msm
  2022-05-04 17:21 ` Bjorn Andersson
  3 siblings, 0 replies; 5+ messages in thread
From: Luca Weiss @ 2022-04-21 21:42 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: ~postmarketos/upstreaming, phone-devel, Luca Weiss, Andy Gross,
	Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, devicetree,
	linux-kernel

Those were removed from msm8974.dtsi as part of a recent cleanup commit,
so add them back for FP2.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
 arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
index 34266126d5a2..0700a0008caa 100644
--- a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
+++ b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
@@ -189,6 +189,17 @@ wcnss {
 	};
 };
 
+&remoteproc_adsp {
+	cx-supply = <&pm8841_s2>;
+};
+
+&remoteproc_mss {
+	cx-supply = <&pm8841_s2>;
+	mss-supply = <&pm8841_s3>;
+	mx-supply = <&pm8841_s1>;
+	pll-supply = <&pm8941_l12>;
+};
+
 &rpm_requests {
 	pm8841-regulators {
 		compatible = "qcom,rpm-pm8841-regulators";
-- 
2.36.0


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

* Re: [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen
  2022-04-21 21:42 [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen Luca Weiss
  2022-04-21 21:42 ` [PATCH 2/3] ARM: dts: msm8974-FP2: Configure charger Luca Weiss
  2022-04-21 21:42 ` [PATCH 3/3] ARM: dts: msm8974-FP2: Add supplies for remoteprocs Luca Weiss
@ 2022-05-04 17:20 ` patchwork-bot+linux-arm-msm
  2022-05-04 17:21 ` Bjorn Andersson
  3 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2022-05-04 17:20 UTC (permalink / raw)
  To: Luca Weiss; +Cc: linux-arm-msm

Hello:

This series was applied to qcom/linux.git (for-next)
by Bjorn Andersson <bjorn.andersson@linaro.org>:

On Thu, 21 Apr 2022 23:42:41 +0200 you wrote:
> Configure the touchscreen found on the new display module of the FP2.
> To add some detail, FP2 has two different screen/touchscreen variants
> ("display module"), the old module has Synaptics touchscreen, the new
> one this Ilitek touchscreen.
> 
> We're only supporting the new display module for now.
> 
> [...]

Here is the summary with links:
  - [1/3] ARM: dts: msm8974-FP2: Add support for touchscreen
    https://git.kernel.org/qcom/c/88044abcde58
  - [2/3] ARM: dts: msm8974-FP2: Configure charger
    https://git.kernel.org/qcom/c/da281bf9345a
  - [3/3] ARM: dts: msm8974-FP2: Add supplies for remoteprocs
    https://git.kernel.org/qcom/c/fb5e339fb1bc

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] 5+ messages in thread

* Re: [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen
  2022-04-21 21:42 [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen Luca Weiss
                   ` (2 preceding siblings ...)
  2022-05-04 17:20 ` [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen patchwork-bot+linux-arm-msm
@ 2022-05-04 17:21 ` Bjorn Andersson
  3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2022-05-04 17:21 UTC (permalink / raw)
  To: Luca Weiss, linux-arm-msm
  Cc: devicetree, phone-devel, Andy Gross, linux-kernel,
	Krzysztof Kozlowski, Rob Herring, ~postmarketos/upstreaming

On Thu, 21 Apr 2022 23:42:41 +0200, Luca Weiss wrote:
> Configure the touchscreen found on the new display module of the FP2.
> To add some detail, FP2 has two different screen/touchscreen variants
> ("display module"), the old module has Synaptics touchscreen, the new
> one this Ilitek touchscreen.
> 
> We're only supporting the new display module for now.
> 
> [...]

Applied, thanks!

[1/3] ARM: dts: msm8974-FP2: Add support for touchscreen
      commit: 88044abcde58ebf810f4be49ee2555ecc333bad4
[2/3] ARM: dts: msm8974-FP2: Configure charger
      commit: da281bf9345a8bcde224976b83d6ad7899830e97
[3/3] ARM: dts: msm8974-FP2: Add supplies for remoteprocs
      commit: fb5e339fb1bc9eb7f34b341d995e4ab39c03588e

Best regards,
-- 
Bjorn Andersson <bjorn.andersson@linaro.org>

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

end of thread, other threads:[~2022-05-04 18:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 21:42 [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen Luca Weiss
2022-04-21 21:42 ` [PATCH 2/3] ARM: dts: msm8974-FP2: Configure charger Luca Weiss
2022-04-21 21:42 ` [PATCH 3/3] ARM: dts: msm8974-FP2: Add supplies for remoteprocs Luca Weiss
2022-05-04 17:20 ` [PATCH 1/3] ARM: dts: msm8974-FP2: Add support for touchscreen patchwork-bot+linux-arm-msm
2022-05-04 17:21 ` Bjorn Andersson

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).