Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6829992rwb; Tue, 22 Nov 2022 20:40:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf68yNmlCl168iI/FZWZxJJEiW1Nszd4m7SaYG9hTYAXA4LKaiNB6K40wDxRvKShP6wg3uGz X-Received: by 2002:a17:907:118b:b0:7b9:c08b:8084 with SMTP id uz11-20020a170907118b00b007b9c08b8084mr1269391ejb.393.1669178400966; Tue, 22 Nov 2022 20:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669178400; cv=none; d=google.com; s=arc-20160816; b=JA6T9LLlwnoeGaK+x6m6IH7yIt8XcFaemxcBnerEHZmsPcOc3h8sXcEB4BK6rnHA5N x70VsRMYE2OA2HFw4Ir7qG3y8gENSJPLuEFDC2k4ywtLWZKdcg7nzdfTxlPEGlT2mLHH YipKOn2rLmwmPFEj+34H9z+vF2aY/9xe4ccgPaOqsXQFp1v6PcwKEv9qXG+kSnqFv7KR nXG5RIVA6TmSPAOPmwECYMRDWWLrxXmByk21JR3XNG4v7c73DoUs8aZkDEX7inpDHqYm pZvOSc4vfjteI5LZvZl5rzHZ2ahx6eZaY1nw/cjOAK4T5EzC49T1NB8OVdrlLjOdpQOf IVDA== 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=GqWfwOkoBVZ9tw8IM+eBPsfBSmvmLyw9g6tZ93oFnPU=; b=mzQo91GLssYfGVhXesjfsLEmqqrAW0urqndbahKnIbThKPWoBGHc5UrJTU3FQAMFcl m2y0KWDmu8FJcuSKhoEu6H+xW9+3m2ZFcz1/rSifeWlhCFd37G6FEZoSNp3YriYU6U4x uZY7935M4ogLY8l3FL2261w2HUi/mhN3U2GXajTUwu2vHXUMnJ1Ay3sulGfu83/7smSg eya7lW/dOPuQqqOBMJvr4Mcuv+0VawwhrIZoohi10y0w0q6S/VBOXyY9Rd6Te07tYPDR qVN4eW04yF/dP5XuJ7jIPcEkThxjairm757tfjLMCT+uc5UtUyW1tNiFyFArfYUNoXqT YwAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=RheSMddl; 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 wt12-20020a170906ee8c00b0076f061ffab4si15717997ejb.51.2022.11.22.20.39.38; Tue, 22 Nov 2022 20:40:00 -0800 (PST) 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=RheSMddl; 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 S235783AbiKWEQ4 (ORCPT + 89 others); Tue, 22 Nov 2022 23:16:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235760AbiKWEQI (ORCPT ); Tue, 22 Nov 2022 23:16:08 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA364ECCE9; Tue, 22 Nov 2022 20:13:59 -0800 (PST) Date: Wed, 23 Nov 2022 04:13:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669176838; x=1669436038; bh=GqWfwOkoBVZ9tw8IM+eBPsfBSmvmLyw9g6tZ93oFnPU=; 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=RheSMddl0+arzZFhrB+RHBoNebzACA6v3Wp+2e93hTyv8xpO4BP7LLX7HvGdkcwHP guVY2BejlZcAglJeQnX08SZ07NElYmV8xrLWaDe0bat6t+rrINkZmuHML9VuCQ8tQP BeyESxQtlgs6uJkAnhxNy+XabKNVpDICmaV/24AnsTjjJ2jCCr12nd1Kd50pNfO4N5 ylx+DqRmSfWTHXP5pVQ1Ec8rw8vmvGCv+2b9+LqqmF7JHoEyDpkjuYONeT785XJxTT ki1l82oYrl/q5Rzcw/75UZ30X1GolDfnMk/lzmeB9qCTso/vZuhZXDQ/wWCkqEwb2Q BIdo3ruh5CrCw== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Stanislav Jakubek , Shawn Guo , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v4 4/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add touchscreen Message-ID: <20221123041300.151055-1-linmengbo0689@protonmail.com> In-Reply-To: <20221123041110.150837-1-linmengbo0689@protonmail.com> References: <20221123041110.150837-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 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 FL8005A uses a Focaltech FT5402 touchscreen that is connected to blsp_i2c5. Add it to the device tree. Signed-off-by: Lin, Meng-Bo Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm6= 4/boot/dts/qcom/msm8916-gplus-fl8005a.dts index a8e8d5273e75..2cac99e3e52c 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts @@ -65,6 +65,32 @@ usb_id: usb-id { =09}; }; =20 +&blsp_i2c5 { +=09status =3D "okay"; + +=09touchscreen@38 { +=09=09/* Actually ft5402 */ +=09=09compatible =3D "edt,edt-ft5406"; +=09=09reg =3D <0x38>; + +=09=09interrupt-parent =3D <&msmgpio>; +=09=09interrupts =3D <13 IRQ_TYPE_EDGE_FALLING>; + +=09=09reset-gpios =3D <&msmgpio 12 GPIO_ACTIVE_LOW>; + +=09=09vcc-supply =3D <&pm8916_l17>; +=09=09iovcc-supply =3D <&pm8916_l6>; + +=09=09touchscreen-size-x =3D <800>; +=09=09touchscreen-size-y =3D <500>; +=09=09touchscreen-inverted-x; +=09=09touchscreen-swapped-x-y; + +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&touchscreen_default>; +=09}; +}; + &blsp1_uart2 { =09status =3D "okay"; }; @@ -229,6 +255,24 @@ gpio_leds_default: gpio-led-default-state { =09=09bias-disable; =09}; =20 +=09touchscreen_default: touchscreen-default-state { +=09=09reset-pins { +=09=09=09pins =3D "gpio12"; +=09=09=09function =3D "gpio"; + +=09=09=09drive-strength =3D <2>; +=09=09=09bias-disable; +=09=09}; + +=09=09touchscreen-pins { +=09=09=09pins =3D "gpio13"; +=09=09=09function =3D "gpio"; + +=09=09=09drive-strength =3D <2>; +=09=09=09bias-pull-up; +=09=09}; +=09}; + =09usb_id_default: usb-id-default-state { =09=09pins =3D "gpio110"; =09=09function =3D "gpio"; --=20 2.30.2