Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5839464rwb; Tue, 22 Nov 2022 05:42:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf56YE/EnqWjSn+larIYw6ewcVgmbzOMgtnm9AoyRpPKAKaon5fu0xc1bwSVL8OdjEr4lcil X-Received: by 2002:a17:906:81c4:b0:78d:9858:e538 with SMTP id e4-20020a17090681c400b0078d9858e538mr20147391ejx.502.1669124566310; Tue, 22 Nov 2022 05:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669124566; cv=none; d=google.com; s=arc-20160816; b=KxS271Sfpnlt3tNcV3G1/E7pSoZzV9O6zj9RmJbhDg6K/jl/FuvLl7z4v/1j7t3bC/ J/Dzeg3PKJaUVLKcaZaSoJMc0XEBi5/AU/PVmubNKNuKNOWSmyRhOg6JjW6K1XDGS8UV JSake/i3yVo+rb/iuchVGTShSalyHCt6MEHGhGu3wu+/dgmORRuQWidMKMZkpY3/sCGy DlbPCvOMsCiHf4HQiiCA6uB6q4oJ91nKygwL60Zv3MyJg/9hi+TuHRYzeW5D94oYli4W BfwQh0Exgk1yxuv7Ey/wvNZRH8Dngr6TrVr9M5kmOVsoUUteGCf33HCZz1MqiVFBZRae H4Zg== 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=pMgyj6309dziadQUAmdkN8/52Ea7gPzJRy2Jf1geJQ0=; b=N3+5iJ/MiHBxyzONDEceXUCtI2ndHFWY/CH9vXMBuXCqwBZZ/QWfukL3T6Xv69cQ8I xp46/vLeGHGMcLJk70dy0TAIs1CIqTIH+7HQ1R2/+KjmetdKe7KgGlHMq+lIHIvybOYU DLm35ri9/IkBP6w+GRGzmdyGUhvH0ZflXT7erZH49ueAYuyv/mQ9ApsbUMdVhdZRKQGo GACRHgI/eAjgaCGzCLq8lfrza8tndhYNNNvmFi5+bjCd2XO5GomgI5+83q00eb9G9RUV ysEm/SuFAa+rJaGgpo/6OF4+mmvg+hhC6N/BAJGJOFClzb4wgO+Jq0ysnVzz+vTdMIrZ oIkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=VE2lU9vK; 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 v5-20020a056402348500b0046363151bd1si12871532edc.615.2022.11.22.05.42.24; Tue, 22 Nov 2022 05:42:46 -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=VE2lU9vK; 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 S233397AbiKVNZn (ORCPT + 90 others); Tue, 22 Nov 2022 08:25:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233351AbiKVNZg (ORCPT ); Tue, 22 Nov 2022 08:25:36 -0500 Received: from mail-40137.protonmail.ch (mail-40137.protonmail.ch [185.70.40.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8339664A34; Tue, 22 Nov 2022 05:25:35 -0800 (PST) Date: Tue, 22 Nov 2022 13:25:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669123533; x=1669382733; bh=pMgyj6309dziadQUAmdkN8/52Ea7gPzJRy2Jf1geJQ0=; 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=VE2lU9vKRibqAZOLKzoig1lkrqJWGASx7WDbbpWPzXCiUnYZEz1oi8uKSMNuPRAgR nVvWSgiv1ATmaFA3lDZpBEdyDoLQM5bPSi1DWnWepIa6Y7sUORWvwKJAU02o/EqlMn SaJVdLh3HQxPpmY+HnTQbQX06zHslwQeTEOsFy5Ml6szSqU9WssYUu/aXBC/rHJz7y KrUn/mHpfXmvjVMkUzb+OJBiNmj+w1ERImHy/DH3v+dOc/gasEsdALauh5LEY5i2HU RqlJ7Hv+mFnya+FIk98MuusB2Pm5AaKKNL1apOV2C4SQphz3q/LffvR2sCaLRbxi3p wuwDIcSm0peAg== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v5 4/4] dts: arm64: qcom: msm8916-acer-a1-724: Add touchscreen Message-ID: <20221122132421.257658-1-linmengbo0689@protonmail.com> In-Reply-To: <20221122132142.257241-1-linmengbo0689@protonmail.com> References: <20221121133732.207820-1-linmengbo0689@protonmail.com> <20221122132142.257241-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=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 A1-724 uses a Focaltech FT5446 touchscreen that is connected to blsp_i2c5. Add it to the device tree. Signed-off-by: Lin, Meng-Bo --- .../boot/dts/qcom/msm8916-acer-a1-724.dts | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts b/arch/arm64/= boot/dts/qcom/msm8916-acer-a1-724.dts index bea0d022dd9a..5b216107f69b 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts @@ -81,6 +81,30 @@ magnetometer@12 { =09}; }; =20 +&blsp_i2c5 { +=09status =3D "okay"; + +=09touchscreen@38 { +=09=09/* Actually ft5446 */ +=09=09compatible =3D "edt,edt-ft5406"; +=09=09reg =3D <0x38>; + +=09=09interrupt-parent =3D <&msmgpio>; +=09=09interrupts =3D <13 IRQ_TYPE_LEVEL_LOW>; + +=09=09reset-gpios =3D <&msmgpio 12 GPIO_ACTIVE_LOW>; + +=09=09vcc-supply =3D <&pm8916_l16>; +=09=09iovcc-supply =3D <&pm8916_l6>; + +=09=09touchscreen-size-x =3D <720>; +=09=09touchscreen-size-y =3D <1280>; + +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&touchscreen_default>; +=09}; +}; + &blsp1_uart2 { =09status =3D "okay"; }; @@ -245,6 +269,24 @@ gpio_keys_default: gpio-keys-default-state { =09=09bias-pull-up; =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