Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10166121rwd; Wed, 21 Jun 2023 17:50:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64ruu9bC7zdqXy6Vmx8yinKlkIwnwtW66o3pxR4S9Ci0OloSki3hYJGWrIQRvOVooCkp8l X-Received: by 2002:a17:902:e5cd:b0:1b6:adeb:3d40 with SMTP id u13-20020a170902e5cd00b001b6adeb3d40mr601478plf.41.1687395048882; Wed, 21 Jun 2023 17:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687395048; cv=none; d=google.com; s=arc-20160816; b=iqqPXblcbT3e4vYFRvJ3E91aA2snECT5oup4JqSckcPdlmVKrIMwKNGwP1FjQSkXji ntfapOVPOIUJ7Juihsu70TkhOmOII02UsPNHcmNU48drjkFNuQdz9lnrBrQ4ePYE/Mbx 5EZt7J1oNEUqRWaUP60bjSHlaGIsvlgp+HUl9hd90tmf2MAXXoSK3jkuZvr6pHW5yhDg cxckbWhxk0/tcuG+TIaMEQX/SHy934ZsEyIaDeQZudnDGLXC8ptsZWZVk5+ujMMUX5Zz H/tLE1BBJt1Oz640P9dS2pHIvaCbtuUCpOJyl/4NBd+q7lTbyeZ6Fe5Ow8uwVW3DaYmq EmmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=KPV8l5vWbr9QkrijMiYUQ4TXqOgXrZpEbZB6K+/SA4w=; b=FKQ8AGI5eevlBYWztX0kHfv56TZVkdx1jSCnAgUj8XGp/Wt864RyY/yX3XtjqwaIv3 6YNoxGBTEeDWCMJotIUJZqJcnJMBOS8nScZ15TNd0U9si+5qZpyotSOTIpQMQROQ7kDi K/eG44+JB22iDlbv+ZQgc0EaYVAOXUyvUuXY5nYDNCWti3eohZM4qK5/L12WeOvpFqQb EswqpksOGj55d74NyCA6CDv/2nTZDt/4SkkpF9vr+EFseX4hybiyEwCXRCqgcaf30tSF Fjho3bo7yBiT4/UshqFVjhsgupsQe9IirgWVsWzB8W3rhOb9J2h+HJKIhLvLmV2oOtZk Xaog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="QZTu5g/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a170902fe8300b001aaf2ced278si1936778plm.430.2023.06.21.17.50.37; Wed, 21 Jun 2023 17:50:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="QZTu5g/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbjFVAQp (ORCPT + 99 others); Wed, 21 Jun 2023 20:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbjFVAQj (ORCPT ); Wed, 21 Jun 2023 20:16:39 -0400 Received: from mail-4327.protonmail.ch (mail-4327.protonmail.ch [185.70.43.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C65F81FF1; Wed, 21 Jun 2023 17:16:06 -0700 (PDT) Date: Thu, 22 Jun 2023 00:04:37 +0000 Authentication-Results: mail-4321.protonmail.ch; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="QZTu5g/b" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1687392292; x=1687651492; bh=KPV8l5vWbr9QkrijMiYUQ4TXqOgXrZpEbZB6K+/SA4w=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=QZTu5g/bwfZI/hjKsmmVwZoifpGc4f0JfgYX8vgDKgVyZvKwtvBJpQstpdpIcANMN FnEfjIB7e2w2jYlPnzfHqlh+gY6eDss1QLQlbBmWSXLyjbhaNdtfn7ZzvF75PcLpnx UJ8b5KTqRG08yhW57yf+BF3otxf1zx9iowo7Lm9AwtffR2v2JyrKML+otfgvipB3o1 VbyAcHjB5kaQ+0eTVVshm2VUAK0v1rQWmQ5Nx9h9Rh3VJUQYgiMbjbCCHnk3Zhl8kO 1Qw4sAbYcKTKMGI46uFqSayLpli4M6daY17IQjr30l6ffXlNiNh25r3HG3+tTU4isG jAnSp8HhAjVPw== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Arnd Bergmann , Olof Johansson , Stephan Gerhold , Nikita Travkin , soc@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ~postmarketos/upstreaming@lists.sr.ht, Joe Mason , "Lin, Meng-Bo" Subject: [PATCH 5/7] arm64: dts: qcom: msm8916-samsung-fortuna: Add touchscreen Message-ID: <20230622000358.48332-1-linmengbo0689@protonmail.com> In-Reply-To: <20230622000007.48219-1-linmengbo0689@protonmail.com> References: <20230622000007.48219-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Lin, Meng-Bo --- .../qcom/msm8916-samsung-fortuna-common.dtsi | 50 +++++++++++++++++++ .../qcom/msm8916-samsung-rossa-common.dtsi | 7 +++ 2 files changed, 57 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 ca147310c27a..6d9f89446105 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi @@ -64,6 +64,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,29 @@ battery@35 { =09}; }; =20 +&blsp_i2c5 { +=09status =3D "okay"; + +=09touchscreen@20 { +=09=09compatible =3D "zinitix,bt541"; +=09=09reg =3D <0x20>; + +=09=09interrupt-parent =3D <&tlmm>; +=09=09interrupts =3D <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"; }; @@ -176,4 +212,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 5b012dc92e0e..242cb61e55fd 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi @@ -15,3 +15,10 @@ muic: extcon@14 { =09=09pinctrl-names =3D "default"; =09}; }; + +&blsp_i2c5 { +=09status =3D "disabled"; + +=09/* Touchscreen varies depending on model variant */ +=09/delete-node/ touchscreen@20; +}; --=20 2.39.2