Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: qcom: sdm845-oneplus: Be more explicit touchsreen description
@ 2026-08-19 13:56 David Heidelberg via B4 Relay
  2026-08-19 13:56 ` [PATCH 1/2] arm64: dts: qcom: sdm845-oneplus: Move touchscreen y-axis to the right place David Heidelberg via B4 Relay
  2026-08-19 13:56 ` [PATCH 2/2] arm64: dts: qcom: sdm845-oneplus: Define touchscreen in the detail David Heidelberg via B4 Relay
  0 siblings, 2 replies; 5+ messages in thread
From: David Heidelberg via B4 Relay @ 2026-08-19 13:56 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Marcus Ramberg
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel,
	David Heidelberg

Useful for aftermarket touchscreens, which don't fully comply with the
standards.

Signed-off-by: David Heidelberg <david@ixit.cz>
---
David Heidelberg (2):
      arm64: dts: qcom: sdm845-oneplus: Move touchscreen y-axis to the right place
      arm64: dts: qcom: sdm845-oneplus: Define touchscreen in the detail

 arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi   | 2 +-
 arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts | 5 +++++
 arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts    | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)
---
base-commit: 5453bc3279e9f8578ac3e534d476240e40c879e1
change-id: 20260731-oneplus-ts-quirk-5d962004a129

Best regards,
--  
David Heidelberg <david@ixit.cz>



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

* [PATCH 1/2] arm64: dts: qcom: sdm845-oneplus: Move touchscreen y-axis to the right place
  2026-08-19 13:56 [PATCH 0/2] arm64: dts: qcom: sdm845-oneplus: Be more explicit touchsreen description David Heidelberg via B4 Relay
@ 2026-08-19 13:56 ` David Heidelberg via B4 Relay
  2026-08-19 14:41   ` Konrad Dybcio
  2026-08-19 13:56 ` [PATCH 2/2] arm64: dts: qcom: sdm845-oneplus: Define touchscreen in the detail David Heidelberg via B4 Relay
  1 sibling, 1 reply; 5+ messages in thread
From: David Heidelberg via B4 Relay @ 2026-08-19 13:56 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Marcus Ramberg
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel,
	David Heidelberg

From: David Heidelberg <david@ixit.cz>

This value belongs only to enchilada, fajita sets it's own (as the width
/ y-axis differs).

No functional change.

Signed-off-by: David Heidelberg <david@ixit.cz>
---
 arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi   | 1 -
 arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
index 439779f308e38..fead66d60e58d 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
@@ -538,17 +538,16 @@ synaptics-rmi4-i2c@20 {
 		rmi4-f01@1 {
 			reg = <0x01>;
 			syna,nosleep-mode = <1>;
 		};
 
 		rmi4_f12: rmi4-f12@12 {
 			reg = <0x12>;
 			touchscreen-x-mm = <68>;
-			touchscreen-y-mm = <144>;
 			syna,sensor-type = <1>;
 			syna,rezero-wait-ms = <200>;
 		};
 	};
 };
 
 &ipa {
 	firmware-name = "qcom/sdm845/OnePlus/enchilada/ipa_fws.mbn";
diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
index 3b30d79706fe7..be346286e19b3 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
@@ -90,16 +90,20 @@ led@4 {
 
 		led@5 {
 			reg = <5>;
 			color = <LED_COLOR_ID_RED>;
 		};
 	};
 };
 
+&rmi4_f12 {
+	touchscreen-y-mm = <144>;
+};
+
 &sound {
 	model = "OnePlus 6";
 	audio-routing = "RX_BIAS", "MCLK",
 			"AMIC2", "MIC BIAS2",
 			"AMIC3", "MIC BIAS4",
 			"AMIC4", "MIC BIAS1",
 			"AMIC5", "MIC BIAS4";
 };

-- 
2.55.0



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

* [PATCH 2/2] arm64: dts: qcom: sdm845-oneplus: Define touchscreen in the detail
  2026-08-19 13:56 [PATCH 0/2] arm64: dts: qcom: sdm845-oneplus: Be more explicit touchsreen description David Heidelberg via B4 Relay
  2026-08-19 13:56 ` [PATCH 1/2] arm64: dts: qcom: sdm845-oneplus: Move touchscreen y-axis to the right place David Heidelberg via B4 Relay
@ 2026-08-19 13:56 ` David Heidelberg via B4 Relay
  2026-08-19 14:42   ` Konrad Dybcio
  1 sibling, 1 reply; 5+ messages in thread
From: David Heidelberg via B4 Relay @ 2026-08-19 13:56 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Marcus Ramberg
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel,
	David Heidelberg

From: David Heidelberg <david@ixit.cz>

Once probing, aftermarket touchscreens report touch over 0..65535
which is unusable. Be explicit in device-tree to avoid this issue.

This change should be irrelevant for original touchscreens, which
reports proper values.

Signed-off-by: David Heidelberg <david@ixit.cz>
---
 arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi   | 1 +
 arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts | 1 +
 arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts    | 1 +
 3 files changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
index fead66d60e58d..4e65c2368c728 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
@@ -538,16 +538,17 @@ synaptics-rmi4-i2c@20 {
 		rmi4-f01@1 {
 			reg = <0x01>;
 			syna,nosleep-mode = <1>;
 		};
 
 		rmi4_f12: rmi4-f12@12 {
 			reg = <0x12>;
 			touchscreen-x-mm = <68>;
+			syna,clip-x-high = <1079>;
 			syna,sensor-type = <1>;
 			syna,rezero-wait-ms = <200>;
 		};
 	};
 };
 
 &ipa {
 	firmware-name = "qcom/sdm845/OnePlus/enchilada/ipa_fws.mbn";
diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
index be346286e19b3..276217f7216b5 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
@@ -92,16 +92,17 @@ led@5 {
 			reg = <5>;
 			color = <LED_COLOR_ID_RED>;
 		};
 	};
 };
 
 &rmi4_f12 {
 	touchscreen-y-mm = <144>;
+	syna,clip-y-high = <2279>;
 };
 
 &sound {
 	model = "OnePlus 6";
 	audio-routing = "RX_BIAS", "MCLK",
 			"AMIC2", "MIC BIAS2",
 			"AMIC3", "MIC BIAS4",
 			"AMIC4", "MIC BIAS1",
diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
index 0542333a83579..e9d1a1c6ac596 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
@@ -65,16 +65,17 @@ &pmi8998_charger {
  * The TFA9894 codec is currently unsupported.
  * We need to delete the node to allow the soundcard
  * to probe for headphones/earpiece.
  */
 /delete-node/ &speaker_playback_dai;
 
 &rmi4_f12 {
 	touchscreen-y-mm = <148>;
+	syna,clip-y-high = <2339>;
 };
 
 &wcd9340 {
 	qcom,micbias1-microvolt = <2700000>;
 	qcom,micbias2-microvolt = <2700000>;
 	qcom,micbias3-microvolt = <2700000>;
 	qcom,micbias4-microvolt = <2700000>;
 };

-- 
2.55.0



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

* Re: [PATCH 1/2] arm64: dts: qcom: sdm845-oneplus: Move touchscreen y-axis to the right place
  2026-08-19 13:56 ` [PATCH 1/2] arm64: dts: qcom: sdm845-oneplus: Move touchscreen y-axis to the right place David Heidelberg via B4 Relay
@ 2026-08-19 14:41   ` Konrad Dybcio
  0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-08-19 14:41 UTC (permalink / raw)
  To: david, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Marcus Ramberg
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel

On 8/19/26 3:56 PM, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david@ixit.cz>
> 
> This value belongs only to enchilada, fajita sets it's own (as the width
> / y-axis differs).
> 
> No functional change.
> 
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH 2/2] arm64: dts: qcom: sdm845-oneplus: Define touchscreen in the detail
  2026-08-19 13:56 ` [PATCH 2/2] arm64: dts: qcom: sdm845-oneplus: Define touchscreen in the detail David Heidelberg via B4 Relay
@ 2026-08-19 14:42   ` Konrad Dybcio
  0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-08-19 14:42 UTC (permalink / raw)
  To: david, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Marcus Ramberg
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel

On 8/19/26 3:56 PM, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david@ixit.cz>
> 
> Once probing, aftermarket touchscreens report touch over 0..65535
> which is unusable. Be explicit in device-tree to avoid this issue.
> 
> This change should be irrelevant for original touchscreens, which
> reports proper values.
> 
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

end of thread, other threads:[~2026-08-19 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19 13:56 [PATCH 0/2] arm64: dts: qcom: sdm845-oneplus: Be more explicit touchsreen description David Heidelberg via B4 Relay
2026-08-19 13:56 ` [PATCH 1/2] arm64: dts: qcom: sdm845-oneplus: Move touchscreen y-axis to the right place David Heidelberg via B4 Relay
2026-08-19 14:41   ` Konrad Dybcio
2026-08-19 13:56 ` [PATCH 2/2] arm64: dts: qcom: sdm845-oneplus: Define touchscreen in the detail David Heidelberg via B4 Relay
2026-08-19 14:42   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox