Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10272823rwd; Wed, 21 Jun 2023 20:01:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ezwzrn+t46a4+N9pUQM9QLHYOYw7dv7WzhdfLGOseW7gr13PN3ZJ6rU67s3FEBeH/Opdp X-Received: by 2002:a05:6808:1ab3:b0:3a0:355b:77f7 with SMTP id bm51-20020a0568081ab300b003a0355b77f7mr6557695oib.40.1687402911989; Wed, 21 Jun 2023 20:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687402911; cv=none; d=google.com; s=arc-20160816; b=RVvxg5x2q3vJ/r61cqs8As3qZHzTuKxM5h7UClb6HXMzpDE6i7FRuo4YiC4IPxwklI 2dpE1zt8NH+uwE266QqRVdlwEJRf18m9a5Bj3XHpcjMvWtqc5sZoyoAIPY/f4XD+AQQP gX6KvhfKWhELxCDl1Ubf18GOTXgjypb3/b4+Qpr4R8zy97SLG5HyhRggtd37E43vstQk Z1f9nhiqITwI/DbhgPfIN8xrr602l/KbhPDUNtQSIzObc0acSJWEGk+g7b8QEgw73Jj1 oyRdPp36ZLW2ZjCTZAcAtZFmfYsrGqVSC8GZs8iJq+BwwDWz6ryEjtej6zzIsRQ5OWWa Y3bA== 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=7SfUXgxDKFs8VyBnB08DD7BLN92E+2qCeSvNcbRx2Aw=; b=dxf1/GcaRY4zwNWStb/5/5kh+KnCeQtknsX88DI9fpxbXOLjzenBI0KC0HNCXKi4KW 5PDX/vmV13ZjzpON6HnUwPcWTVmoR7OCk4hWiJ7KdskA9QdiSGcHF7HZZy0NuxOvfqnZ QGwgB9KakRLTn1o72SX08X+Iyvs94l6eboCgzZHWeteKQpF3cC++mcekDd5lGfWWJY7F uFVBuJLUzzVF3BM7iLJ7qhfA7gIrVpV9o/J3y3Z/8QPEiuTXkTS7Qs1MxhIIe8Et7TZ0 iRlSFUZxeQAs8jLubRzqgR+ZS8Z+1vVDsXPNjGAW0/qJNQguNQFN6n59RLo7N3ZiEKu9 YgpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="fv0DP/u8"; 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 17-20020a17090a001100b0025b8c6cfc45si12538422pja.80.2023.06.21.20.01.37; Wed, 21 Jun 2023 20:01:51 -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="fv0DP/u8"; 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 S230287AbjFVCGj (ORCPT + 99 others); Wed, 21 Jun 2023 22:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbjFVCGh (ORCPT ); Wed, 21 Jun 2023 22:06:37 -0400 Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64222198B for ; Wed, 21 Jun 2023 19:06:17 -0700 (PDT) Date: Thu, 22 Jun 2023 02:06:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1687399570; x=1687658770; bh=7SfUXgxDKFs8VyBnB08DD7BLN92E+2qCeSvNcbRx2Aw=; 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=fv0DP/u8s/kP/JRVUax0RBzP3gLl7iEwVlP98yiAxlxhM/Y5i7rR5EUzWNjbz6CWO s6w6HCEhbEMiYRBwhYk0lJ4pga+LmWLxPVsAr+Pj4WGN9URrD+pfJS3lxwTnc4IbwD JQK2Zwm7lcX+RRJfh7mmRw3iJ77zUo0VfrvGZvCH4qJpZfItrQqb9H5OUSI32hV79o ZdDUY2tVFmNmdQYvTZhglu1fFS+Y0262Pj/F6Allrs2gBL1BtxYvU9WU+rlj+4D7jX 7wSkjsi692IvaVG+R5EjCY6QARRxKLQTBc6RNzMazA4NDo372eLGE0EYtVJ77akiWl 1K2WRio8FELIw== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , 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 Subject: [PATCH 8/8] arm64: dts: qcom: msm8939-samsung-a7: Add touchscreen Message-ID: <20230622020553.65878-1-linmengbo0689@protonmail.com> In-Reply-To: <20230622020344.65745-1-linmengbo0689@protonmail.com> References: <20230622020344.65745-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=ham 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 A7 uses a Cypress TrueTouch Generation 5 that is connected to blsp_i2c5. Add it to the device tree. Signed-off-by: Lin, Meng-Bo --- .../boot/dts/qcom/msm8939-samsung-a7.dts | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-samsung-a7.dts b/arch/arm64/b= oot/dts/qcom/msm8939-samsung-a7.dts index ea74b61782de..66e56ac59998 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-samsung-a7.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-samsung-a7.dts @@ -222,6 +222,33 @@ reg_touch_key: regulator-touch-key { =09=09pinctrl-names =3D "default"; =09}; =20 +=09reg_tsp_vdd: regulator-tsp-vdd { +=09=09compatible =3D "regulator-fixed"; +=09=09regulator-name =3D "tsp_vdd"; +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <1800000>; +=09=09vin-supply =3D <&pm8916_s4>; + +=09=09gpio =3D <&tlmm 8 GPIO_ACTIVE_HIGH>; +=09=09enable-active-high; + +=09=09pinctrl-0 =3D <®_tsp_io_en_default>; +=09=09pinctrl-names =3D "default"; +=09}; + +=09reg_vdd_tsp: regulator-vdd-tsp { +=09=09compatible =3D "regulator-fixed"; +=09=09regulator-name =3D "vdd_tsp"; +=09=09regulator-min-microvolt =3D <3300000>; +=09=09regulator-max-microvolt =3D <3300000>; + +=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}; + =09reg_vibrator: regulator-vibrator { =09=09compatible =3D "regulator-fixed"; =09=09regulator-name =3D "motor_en"; @@ -260,6 +287,24 @@ muic: extcon@25 { =09}; }; =20 +&blsp_i2c5 { +=09status =3D "okay"; + +=09touchscreen@24 { +=09=09compatible =3D "cypress,tt21000"; + +=09=09reg =3D <0x24>; +=09=09interrupt-parent =3D <&tlmm>; +=09=09interrupts =3D <13 IRQ_TYPE_EDGE_FALLING>; + +=09=09vdd-supply =3D <®_vdd_tsp>; +=09=09vddio-supply =3D <®_tsp_vdd>; + +=09=09pinctrl-0 =3D <&tsp_int_default>; +=09=09pinctrl-names =3D "default"; +=09}; +}; + &blsp_uart2 { =09status =3D "okay"; }; @@ -385,6 +430,20 @@ nfc_i2c_default: nfc-i2c-default-state { =09=09bias-disable; =09}; =20 +=09reg_tsp_en_default: reg-tsp-en-default-state { +=09=09pins =3D "gpio73"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; + +=09reg_tsp_io_en_default: reg-tsp-io-en-default-state { +=09=09pins =3D "gpio8"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; + =09sdc2_cd_default: sdc2-cd-default-state { =09=09pins =3D "gpio38"; =09=09function =3D "gpio"; @@ -426,4 +485,11 @@ tkey_led_en_default: tkey-led-en-default-state { =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}; }; --=20 2.39.2