Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2278469rwb; Sat, 19 Nov 2022 12:31:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mi13maXPgQj5jMttR+WKftTz3J7+grFNwKAHbPCs5DxZiH5nxqHaZ19Eem9gbro7tqkvT X-Received: by 2002:a17:906:d103:b0:7ad:9673:8b73 with SMTP id b3-20020a170906d10300b007ad96738b73mr10691043ejz.14.1668889880045; Sat, 19 Nov 2022 12:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668889880; cv=none; d=google.com; s=arc-20160816; b=sxl+yJn3o/tGSsCL5MRJFK4eYQjptVgEWysmgqNO5X6X/XaxZCFknwuW9ELqqM1Lvj gXqTxYcNKN3oVqe+x8TrW65NJlsKlUPA3pjRFSP8fQ3krSFq7ckziv1/NIy+2UfrImsx emjrS9IL6cIWWUi6hch4G/FBwRYZMgP8hWi67xkfLVR1uxTfXgMlSH9ZlV1QwljMOMbd TOTcedTzOKPdhgJcz6dcoGikQx02/nAvi0/AGJXeLGHrTCpugxfyRMNQB0Fl6qC5lqC7 Gv8dOlNZC2SR0MMdL2Z9jXI2ET0q/9+awB3t6UgYtnEA7iNZalGL2LH79Nbnoissc9Ku MHmg== 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=v0KmbPR3PfBW4/Zhi3DR1i6itkdlJYgYRsbDeUPdxGM=; b=r62HlhlPXrD/p08BmU0JDZ9DckEiEu07B5Xpg869KA5jcMWmAgyxjMCgpNbCSmbIFg VO0UlvKT87L0TE4WDacHEmRMF5j7okZJuA7uhEr5/1shDwNiouk0X/KK6OS3RisEC7So NGtkJYYzq3ekf5GbCYoznA7YnbnA8nczCjhE9qcg5NlZi6r+92DsBR9Kcf2F1XelEUhM peqcy8gf8PLYkUTE8PTy3LawPNCIKsok5stepmSz3QeKo0F0tpA5q2MAH+5gSJqA0FPx kDum8SuWE+t8pqgIHRS0oPVZSQSgJvNYZRJgm5HT1dvPZ60xVBw+WNqm8MCawk6J/9qQ z1KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=dIFoNkdV; 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 cw7-20020a170906478700b007ae8b1704b9si6707743ejc.406.2022.11.19.12.30.57; Sat, 19 Nov 2022 12:31:20 -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=dIFoNkdV; 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 S234291AbiKSU2X (ORCPT + 91 others); Sat, 19 Nov 2022 15:28:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234146AbiKSU2H (ORCPT ); Sat, 19 Nov 2022 15:28:07 -0500 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35FBE1A398; Sat, 19 Nov 2022 12:28:05 -0800 (PST) Date: Sat, 19 Nov 2022 20:27:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668889684; x=1669148884; bh=v0KmbPR3PfBW4/Zhi3DR1i6itkdlJYgYRsbDeUPdxGM=; 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=dIFoNkdVjKH06DklH2uqB8fKkjHAoz7S/LUrJ9Ts45Fc5uwBU40I+NvMGkaap9aEI 4NYcW6rA3xJobWbJAYHxsxkeMJLnlZtXAeZKrCBZsf4ibmsTCs7KRk4b6wxGV/x7od YBm86M3BRdcJK4hm/HPbRZPjc7oZiY6JvZSvjwvqA96MhqSvoO9xowpKeRs73X+8Af 72qJKxfC50S6BVEA4msUH9OWdUXB93MpoiLYv60DZhMV4eH6PUGM1xYiuRwaDaBDvZ 62W0tmVbORXlyulAT5LdpGfdaVG06foRd4yxJ01lhWYz7MXuYO2xQyQGQZY883Gzo6 BjM+azRcGd73Q== 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 4/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add touchscreen Message-ID: <20221119202649.93613-1-linmengbo0689@protonmail.com> In-Reply-To: <20221119202316.93142-1-linmengbo0689@protonmail.com> References: <20221119202316.93142-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,RCVD_IN_MSPIKE_H2,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 FL8005A uses a Focaltech FT5402 touchscreen that is connected to blsp_i2c5. Add it to the device tree. Signed-off-by: Lin, Meng-Bo --- .../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 bed1fe984287..cc81880f7c42 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=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=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}; + =09usb_id_default: usb-id-default-state { =09=09pins =3D "gpio110"; =09=09function =3D "gpio"; --=20 2.30.2