From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796422403; b=igsgYvqtRSWFEAb3aJTRz0gQfiwgc0by8+wTDHkFsmAJJ/+dUiUTbnzQDfdfHiqnXPlQ amx1EFyxZqnGbhtUKqZodbn3P4sL7He9P5v19P1X//vrQfYlWXzqSNYssja9/UTm+U4hx H0+qCvB2CNYI9W8V4pTF2O/KNhSsf69DJz7R0NjQdjtF3ap/l828j/X16/P5JEPrGh0Gg 7iYejL6YhrKiAxYPzGBMLXeS6IeS4sPKN4MwGvkJ2W932/7dp/VHHzKieUm/6JxDXjIU7 iPCRQXS2/3mB2MSdiynk9IClElvscoVpJTI8EH6GrVPgNytpojqO5Q8euSRXwNpzYSA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796422403; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=oGZ7/9kyZAVcT5Yp+R3JFwYbL5vYEVm3lT+kt7CsYV8=; b=0FQFFrwIB4JTmnXiyy7rkX7i5YA2CmaYtrsmtVYQxmUhWzL3nvaVx4wX9DfiTYDvcHeO aXLS8ETiFi7/ucywCdqpLUTNVOrCWmpYVmJUWFolaI/ZB0HSc6u4VakhjbxsGko4GTd3k LQsi7X+tyTa3h1L543Pvug2fWy+0reSfMEnsS1qbWeOPuAy5EhBv2uILdM99DGZPmSqNQ K8iYCeGaxr/wNsPkELKoOpApoJp4Vy5xNrJ8MzFj4PUL99f/9Hxgd58ZF4wirFKErHnYu TRNuTPDyYK0q/DeYXEeyaE+7Q2kYrAt9VGquEVy01iekRcZDr+kt6soEmqxt3Jdt+Zg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="be5F6Lx/"; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64DC0606A33B; Fri, 4 Dec 2026 22:13:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=be5F6Lx/ Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796422403; b=iqyXYKX9Ph0ofTMVv16t1Mrj1KocvUji+QLTCz/a94/GEI2OW9hFbc0WkJ7lRn5wRO8z GI4XE2LtPwWScy422DrTic3RlHfPF5zov09qng5KGuXCWxjMTKxL2kbkbwIWnFzNw5LKM M0FhE9ZoUPqgkg+IioDzns+mbrbjHKK09yJHiBO6y4WhvyEa0OFh1mObAZ5558dhRfXAD jEIXyHcJpQe7llPJ6HLkV1VD58cRF8UQJRJhPyo+bXrtPxCSjyaNbhXSljnTTaaAUF3pn /2hZf/WP0QJcuLktyIAqZSYLMc/Mdj5Hv5K82rm3ginzUYLK/bxkRvj+winPYgijDog== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796422403; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=oGZ7/9kyZAVcT5Yp+R3JFwYbL5vYEVm3lT+kt7CsYV8=; b=RZMgYDH4+S7des7TTsbjmWR90jG51IZjVowSGDNuW4tF+MtLsCQcrVtyuuZiHoplHhi3 Y7hAkYDYOiTlDtcmizdWteDyAk516ShHTvon1DvF9tf0OnNaezp+gGqVmFRvV6MSM/ubZ oMvzbsRqWMwHAasMBFfEXUX1c48ZLSe8sUbbIeYk8WEbpx1xpFfZl2rvHEnfdvsF2NHr8 mXwSR8hdFRB7cy+D3/XeK61G9kMeHpZF8VspXiktaKd7uAL9qUhC1e2vR4tvyG9XIjZss 2T08Xvl9HjNgb1HSNjwGaAtsG+kl5+9nIKVFtdfkMLLatg50NE5BSAcIfpDp9dyxolA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5F83E1F00A10; Fri, 4 Dec 2026 22:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796422403; bh=oGZ7/9kyZAVcT5Yp+R3JFwYbL5vYEVm3lT+kt7CsYV8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=be5F6Lx/2GoWT+7Lcc4XqWA9XlNAu7WdlvTWYdI1DZz6Q/4fi3CZ4EOpCcwME8FKq f0i/tiFdHQXA8klnX6SABxmKxS0+oUI6bKAyFul1t3I8xh4w9FskQ3WnCpboXkShwQ +oY2dSbVph6iVIh/UCjRuXRFaW7tvfx6NDSZcbU4LyW9/GkV5RqGY24/GH+fQLqmEn dOQp0F/Z3LNZFqxmK1ApiP36xFRwU4Kr2ZaN/GiVNyXgRwDzRIU0Hr6T2y7XrdDc9D J81PrRXyZZa3KfXbaUTfZtaVAutjPIpflI4h9Va/HobnQYbIldmRhrFMF82IloxZex 27cDbJri0ywYw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id E052850087; Fri, 4 Dec 2026 22:13:21 +0000 (UTC) From: Marco Mattiolo via B4 Relay Date: Fri, 04 Dec 2026 23:13:15 +0100 Subject: [PATCH 4/5] arm64: dts: qcom: sdm845-google: Group touchscreen pins, add mode-switch pin X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261204-crosshatch_touchscreen-v1-4-9f76ff10eab1@runbox.com> References: <20261204-crosshatch_touchscreen-v1-0-9f76ff10eab1@runbox.com> In-Reply-To: <20261204-crosshatch_touchscreen-v1-0-9f76ff10eab1@runbox.com> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andi Shyti , Bjorn Andersson , Konrad Dybcio , Abel Vesa Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, David Heidelberg , Marco Mattiolo X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2500; i=marco.mattiolo@runbox.com; h=from:subject:message-id; bh=7Zh16EX6IKG/RfC4tQBk0tOGibpoVrISsS/Bd2/vAkk=; b=owEBbQKS/ZANAwAKAXOPlyqe18XHAcsmYgBrEzr/qn7G6LlAFDVBYUFfn0r+7s7WlLBWLfuXX 7N0QZTRF4SJAjMEAAEKAB0WIQQa0L7o5CIZYebcNTFzj5cqntfFxwUCaxM6/wAKCRBzj5cqntfF x4lDD/wJJY9FNQyt9dbhq8VC8iYTImRKyVgWynyLtUxZuZSiM75PMx7uq1wjM/sz0YCoP04e+Wo cTTpHTWe5AridfB1jC85q3R9TCNr/gn67iw2cBtZ4488J5Pxb2TO7G7hivUbelmPnozgAM7v+1a Br7wE2xC1DmWaIrBIr974ZMuXAtZ1UbyV2NROWzqwEm/jTWPJniiFu/ADCxNxNnUMzNKEna0iPT fe7WqiwuNUy6GO8NaoHSqekyfGRm9fAfNakN1x4vqvUrwdVp21I+bVeG3B+4O13T0AwdgVFSgjm xTK0Sfrzs3ebe2OwxljwuZJsv60rBPSfoAJyHZaayBkfw90K9nRpXT9nDanz9k5PgWxf5jgc5u1 O36spHBMYwY9xj58+4JHd0W7D/aHt4VUsVhTzhNcnz1qTugRDPVNXAeU9cKeTtPS+9/D01/ln1y atGzoG0gDgKijD8MbTWrZvBtIc4wCJhLaQQ2MefAtoUQlnDFOrMfnf0BWqn/xHoLKoqp1aBEHxB 5pwSxGwj9ynMGkAU6LQO7kaR4srdSRd0rJaYVhGVWq7m2fkIIA1EQQhF3jfmM2Kl12nGEi5isBD 2AotWrbcRXL2H7QujY4xozDcxCGL8Y4843aceOVsfpITwXfkMv18VNkQc6EtjxkeO+EFv4TvcqN aE0GaVAE9/AN9fQ== X-Developer-Key: i=marco.mattiolo@runbox.com; a=openpgp; fpr=1AD0BEE8E4221961E6DC3531738F972A9ED7C5C7 X-Endpoint-Received: by B4 Relay for marco.mattiolo@runbox.com/default with auth_id=1746 X-Original-From: Marco Mattiolo Reply-To: marco.mattiolo@runbox.com Content-Transfer-Encoding: 7bit From: Marco Mattiolo Pixel 3 and Pixel 3 XL use different touchscreen controllers on the same pins: reset on gpio99, interrupt on gpio125, and the AP/SLPI I2C bus switch on gpio136. Move the reset and interrupt pin configuration into a single touchscreen-default-state, add the switch pin to it, and use the grouped state on blueline. Suggested-by: David Heidelberg Signed-off-by: Marco Mattiolo --- .../arm64/boot/dts/qcom/sdm845-google-blueline.dts | 19 ++++++++++++- arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 31 ++++++++++++++-------- 2 files changed, 38 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts index a000c75494f1..a412d2e93850 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts @@ -26,7 +26,24 @@ &i2c2 { status = "okay"; - /* ST,FTS @ 49 */ + touchscreen@49 { + compatible = "st,stmfts5"; + reg = <0x49>; + + pinctrl-0 = <&touchscreen_default>; + pinctrl-names = "default"; + + interrupts-extended = <&tlmm 125 IRQ_TYPE_LEVEL_LOW>; + + mode-switch-gpios = <&tlmm 136 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; + + avdd-supply = <&vreg_l19a_3p3>; + vdd-supply = <&vreg_l14a_1p8>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2160>; + }; }; &mdss_dsi0 { diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi index 3c9656b88b69..a706efec1b10 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi @@ -523,18 +523,27 @@ firmware-pins { }; - touchscreen_reset: ts-reset-state { - pins = "gpio99"; - function = "gpio"; - drive-strength = <8>; - bias-pull-up; - }; + touchscreen_default: touchscreen-default-state { + reset-pins { + pins = "gpio99"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + irq-pins { + pins = "gpio125"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; - touchscreen_pins: ts-pins-gpio-state { - pins = "gpio125"; - function = "gpio"; - drive-strength = <2>; - bias-disable; + switch-pins { + pins = "gpio136"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; }; }; -- 2.53.0