Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4285312rwb; Mon, 21 Nov 2022 06:03:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf55vbFYnSv+qOXHIgF0AS0JysiDmCQPlt58fJ7851VmEQynPELC+p9IdJUMpeIxWG/BtVKG X-Received: by 2002:a17:902:f813:b0:187:12cc:d6f1 with SMTP id ix19-20020a170902f81300b0018712ccd6f1mr6949142plb.63.1669039423857; Mon, 21 Nov 2022 06:03:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669039423; cv=none; d=google.com; s=arc-20160816; b=j6bqFS63EUfcIMYvrKoIGl1FMeQsJK+MP++PLmOSF8XjZ5wNUJnR0cWqcJC7uRLdWF Dd5qXLZpr+fonyr8kU5ohSg9OfhH6td7SW5PLfMiEAxy4B9S/g0YrPyxI9S1iwNjqzIz HKPN+N7+LlkuZ7K0qym+9LhlDZJ0fz+n/1ShPRUcBW5xBEsLo5rmvxlgj0rXgen1Y+Hd fzi8Czu/ClGHB7xJIViK8O6ZOtYzLU16oPGCKOzHHgGY4/ZC01NqKf7crIOXPINnD2nn 4tYHc7ZZ4xcrETZ0GOYk0/oTB5SBYJI9pVsREUjTOKzCQvMwAM4Lr0kjePfnCB2vPP1M GvAg== 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=pwOBX602Nhh3eHgQt2aQTVP46sIzF7xTsfkMmDNmxsrSUSUAFXsoZZKbuCUBubCAJ/ i7hut31/xR7H735X7ZJblqQAB7iyS26bHQ8gdRooaktBWo066tvczrmx04JV2L4SIyTt GTe2IZ19wE69g+Wn/9rv0V0ov9e5iOqwK9rS4Wyb6FAGRMhppAtfrJGSVS8sHx0ABMNq M8xruicP/UcULKGKhSporprF2Vf7X5Kj6PzQrK4GK8XKC0mzm5R3Zf9rwP8T5HGd7wBF A1sq3tC70oOIh+jjKLSvXre/rf+EDfTJ6svlLW5R/0B8uMYeUtw273nbqylznau1PN6o 2WpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="M/Mv1UxJ"; 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 na6-20020a17090b4c0600b0021891e322c3si8743710pjb.87.2022.11.21.06.03.14; Mon, 21 Nov 2022 06:03:43 -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="M/Mv1UxJ"; 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 S230310AbiKUNaU (ORCPT + 91 others); Mon, 21 Nov 2022 08:30:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbiKUNaI (ORCPT ); Mon, 21 Nov 2022 08:30:08 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24E4BF81F; Mon, 21 Nov 2022 05:30:07 -0800 (PST) Date: Mon, 21 Nov 2022 13:30:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669037406; x=1669296606; 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=M/Mv1UxJrvdP8jxxolAkSuhMvk7lGo0MZiu9L/+Rj57ZbWLFKRqoZ9vIl4Onpx4u2 bCS0slYpP/86VsHJvc+4rQOD4kB5jPoC0wZ2PXdtI353JCjRSzUvoPvoAbxAJKK56k 3561YjdjCcTwilgL6NPHiEy367NKN50NnGVqPOQHqLpQkueIG6BoVvvxcm/uNLQZ0J fuDTWSPryAZIp8LzHmRA65OFiB0t5p51T7yC3iLR6ifsyXrdmZz6dIpTxEWwf6I04t EXTRNXSEX6fNcrNYPRegDnhuQlLroaAZQkgrwy7mzb5j7Z0PokPD3exeF/ctpOhyAL 6wU0ohuRybX6w== 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 v3 4/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add touchscreen Message-ID: <20221121132828.207053-1-linmengbo0689@protonmail.com> In-Reply-To: <20221121132139.206581-1-linmengbo0689@protonmail.com> References: <20221121132139.206581-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