Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp896249lql; Tue, 12 Mar 2024 00:46:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYcO67NeDu5B1PxCIJehdicquwxVe5PoPhWAYmdz9HU2hEkhZX2lU02+8ZAzlB9+3AGoYF7OI4lPAig9UDW6QAqGKfDsN47rFgluZX2w== X-Google-Smtp-Source: AGHT+IGz3+BQ5CpmYJPDVCMBRGLZGLz3cU0upTZMiXT65TVCeDNG8Yc2W/PNFUEJis9tw6kI/F09 X-Received: by 2002:a17:907:7d9e:b0:a46:30f4:6321 with SMTP id oz30-20020a1709077d9e00b00a4630f46321mr3343413ejc.58.1710229567681; Tue, 12 Mar 2024 00:46:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710229567; cv=pass; d=google.com; s=arc-20160816; b=gO0x8ako6IWAosJ7iqBOq2qAT8hvsv6K/G9A+hikH2yummNaifFbFEnTEb6B7/cajn IdICJxAciHpXfu/w15QBW/EwxPypfMGpnoH9X71A8eFYh0FUMfzje+WdRs9a6mrNhf0v b9BWb9c4+klSURRqZRRNv4gNgtX9y4p47WqZ2OFwuqOT20L/BlGoig6XRZjKa3IDLK7X Do/mhcNsmd8g6RdX13s0DJ7ANZzuAgaIlTlAM41dvGi9meQVisDQzovJg24sDUI+R9KT Mcvj2BQ5yrLg/q2HSEkjC6kiZ7T2M9YqDKBhdhoX3bykCr4LkPL/4Lz54AiXhyfXULNg H1WQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:message-id:subject:cc :from:to:date:dkim-signature; bh=DaPBnbbEkmUycyEZJwv4LHBaiqagj1bYs7NPHk20HRs=; fh=xB6aEdDIXzq5WcXZVaRxcj2XbnoG81P/O/ApI/aBaaA=; b=GZyOORtXoOKW9rD48sUHen++jYdJDyDjuKkviv9GC2Iw3fZMw7YAebzPn9P28XBIyO w70jyqziZ3K0pjFiIAizishwyUwQfaxNlLwwq0BItk6wQ2Xhmjt3S3WFWtv1CH3O3FN1 8n80hXx75BTqgtlkOMAoq9LW2pEoNjYSdBOCdoVcrzrSKMLKuYDvU0ZbvtO/q3opZcx4 OXagjsN4VySanBJnzmEMEhg1HDt7oxNTLUj+V4bluWbSyy6Z+gW8gWw5U1Q+gOrM2i1g f3QlmxxhiV1O9obuJ/Tv8tO7QHyBKocL56ivyEckvjfFb6bnMLdOEq9FF2tX1OjotuIB XLzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=Lb56FpPP; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-99915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k18-20020a170906129200b00a442389d4a1si3118376ejb.542.2024.03.12.00.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 00:46:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=Lb56FpPP; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-99915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6A32E1F21645 for ; Tue, 12 Mar 2024 07:46:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CCBE6995C; Tue, 12 Mar 2024 07:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="Lb56FpPP" 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 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-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 --- 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 { =09=09pinctrl-0 =3D <&motor_en_default>; =09=09pinctrl-names =3D "default"; =09}; + +=09reg_vdd_tsp_a: regulator-vdd-tsp-a { +=09=09compatible =3D "regulator-fixed"; +=09=09regulator-name =3D "vdd_tsp_a"; +=09=09regulator-min-microvolt =3D <3000000>; +=09=09regulator-max-microvolt =3D <3000000>; + +=09=09gpio =3D <&tlmm 73 GPIO_ACTIVE_HIGH>; +=09=09enable-active-high; + +=09=09pinctrl-0 =3D <&tsp_en_default>; +=09=09pinctrl-names =3D "default"; +=09}; }; =20 &blsp_i2c1 { @@ -94,6 +107,28 @@ fuel-gauge@35 { =09}; }; =20 +&blsp_i2c5 { +=09status =3D "okay"; + +=09touchscreen: touchscreen@20 { +=09=09compatible =3D "zinitix,bt541"; +=09=09reg =3D <0x20>; + +=09=09interrupts-extended =3D <&tlmm 13 IRQ_TYPE_EDGE_FALLING>; + +=09=09touchscreen-size-x =3D <540>; +=09=09touchscreen-size-y =3D <960>; + +=09=09vcca-supply =3D <®_vdd_tsp_a>; +=09=09vdd-supply =3D <&pm8916_l6>; + +=09=09pinctrl-0 =3D <&tsp_int_default>; +=09=09pinctrl-names =3D "default"; + +=09=09linux,keycodes =3D ; +=09}; +}; + &blsp_uart2 { =09status =3D "okay"; }; @@ -200,4 +235,18 @@ sdc2_cd_default: sdc2-cd-default-state { =09=09drive-strength =3D <2>; =09=09bias-disable; =09}; + +=09tsp_en_default: tsp-en-default-state { +=09=09pins =3D "gpio73"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; + +=09tsp_int_default: tsp-int-default-state { +=09=09pins =3D "gpio13"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; }; 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 { =09muic: extcon@14 { =09=09compatible =3D "siliconmitus,sm5504-muic"; --=20 2.39.2