From nobody Sun Feb 8 02:56:24 2026 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FA586995B; Tue, 12 Mar 2024 07:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710229559; cv=none; b=h3NL46ommc9TtY0razVuUGohNEA9HHvaxANAD1jnwP50YaOYsTWOW5YeIMdToyjqChwc7mnLgZwa1e1lJpVt+wAuvo1AoJO6UYURgy9iyMb9qpmKs7kZQK+ffofDtaL9s+h/4MgMvr1QLIRXGyUzajBG9nuRUX6VokGWrHWQmFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710229559; c=relaxed/simple; bh=nAKaAzfxM+TFh5Qpz2J4wCa6Dr9859dg3apghxnoja0=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=OMwb0mEt4VgpOPhLLkQdZlwevv51Chho9/G2U/rTq0FwSU9tfp6EzbhPxC5sTwcQGirNv2axguL+tn6uJjK12DGs1g0NA/PiyLTxTWtJeOiXct0pQe5ynrH77hBkp3V2DqrPfj3ziBtVf7zhJI1XVRS2cQkUiMeqv8+RGxgyfos= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=Lb56FpPP; arc=none smtp.client-ip=185.70.43.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="Lb56FpPP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1710229555; x=1710488755; bh=DaPBnbbEkmUycyEZJwv4LHBaiqagj1bYs7NPHk20HRs=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Lb56FpPPyy6Z6YqvkokT76iv1PogGPvWLj86UZds8I5ywqZhda9mfdNpzv2w46CML 43JceMkwEzhuQVdPqobuJtQJvodzZkUDiYnfRIiEdXpKARWScYC/2I8jP/3Dg37zFF zaEOcARVidVp+TEx4tnDDIK0BlkvNGr9ul8nPquxMUvRv4voEVnY13GdWvEVVTz2Sf Hc+l8P+cGyTwQMz+w1DOYfbnMnRUIIFgSUi16JPUVKCGtCestT74RH4kCwCCkJZQal aCd9aP7mOFBgQa4Zrr0oGWF3/NPsoeWgsdqUK0x8loBxU0xe1U+fJm977ZJNh//YV2 IggAdobIYJ1GQ== Date: Tue, 12 Mar 2024 07:45:42 +0000 To: linux-kernel@vger.kernel.org From: Raymond Hackley Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Joe Mason Subject: [PATCH v2] arm64: dts: qcom: msm8916-samsung-fortuna: Add touchscreen Message-ID: <20240312074536.62964-1-raymondhackley@protonmail.com> Feedback-ID: 49437091:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Joe Mason Like msm8916-samsung-a3u-eur, the Grand Prime uses a Zinitix BT541 touchscreen. Add it together with the necessary fixed-regulator to the device tree. Signed-off-by: Joe Mason [Raymond: Move to fortuna-common. Use interrupts-extended] Signed-off-by: Raymond Hackley Reviewed-by: Konrad Dybcio --- v2: Add &touchscreen. Keep i2c5 enabled --- .../qcom/msm8916-samsung-fortuna-common.dtsi | 49 +++++++++++++++++++ .../qcom/msm8916-samsung-rossa-common.dtsi | 3 ++ 2 files changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi b= /arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi index c2800ad2dd5b..d16647e687ef 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi @@ -66,6 +66,19 @@ reg_motor_vdd: regulator-motor-vdd { pinctrl-0 =3D <&motor_en_default>; pinctrl-names =3D "default"; }; + + reg_vdd_tsp_a: regulator-vdd-tsp-a { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdd_tsp_a"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3000000>; + + gpio =3D <&tlmm 73 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&tsp_en_default>; + pinctrl-names =3D "default"; + }; }; =20 &blsp_i2c1 { @@ -94,6 +107,28 @@ fuel-gauge@35 { }; }; =20 +&blsp_i2c5 { + status =3D "okay"; + + touchscreen: touchscreen@20 { + compatible =3D "zinitix,bt541"; + reg =3D <0x20>; + + interrupts-extended =3D <&tlmm 13 IRQ_TYPE_EDGE_FALLING>; + + touchscreen-size-x =3D <540>; + touchscreen-size-y =3D <960>; + + vcca-supply =3D <®_vdd_tsp_a>; + vdd-supply =3D <&pm8916_l6>; + + pinctrl-0 =3D <&tsp_int_default>; + pinctrl-names =3D "default"; + + linux,keycodes =3D ; + }; +}; + &blsp_uart2 { status =3D "okay"; }; @@ -200,4 +235,18 @@ sdc2_cd_default: sdc2-cd-default-state { drive-strength =3D <2>; bias-disable; }; + + tsp_en_default: tsp-en-default-state { + pins =3D "gpio73"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + tsp_int_default: tsp-int-default-state { + pins =3D "gpio13"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; }; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi b/a= rch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi index 42843771ae2a..4048b72efcdc 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi @@ -5,6 +5,9 @@ /* SM5504 MUIC instead of SM5502 */ /delete-node/ &muic; =20 +/* Touchscreen varies depending on model variant */ +/delete-node/ &touchscreen; + &blsp_i2c1 { muic: extcon@14 { compatible =3D "siliconmitus,sm5504-muic"; --=20 2.39.2