Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3556833rwb; Sun, 20 Nov 2022 16:59:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf5u8T4vQ0/GENiWtL3X8q+xKUAH2s4VAqe//gdQEfUvVF9Ncyx3AAjOgzRV0SRDkHGJSDlO X-Received: by 2002:a63:4046:0:b0:46f:932:453f with SMTP id n67-20020a634046000000b0046f0932453fmr15733696pga.405.1668992365027; Sun, 20 Nov 2022 16:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668992365; cv=none; d=google.com; s=arc-20160816; b=jvhNGY73VqEK0jaZVIPm1B+BigemKzftfsAAjkCM9hZ26phMGjVAHNnG1XJCRhDst0 BjUkC2fZe0kgSsXAp0OfyeU+zv8rdlLMwJORL6CVlrG9AAkOAWsreQTaNvV1pkmX9Ob/ lsRmBBqvctl8kjUIkcdIGy8pZPn8jtyAhWb8ezj4C6dlDK4gHLHnuTCqs1Uqmi+wSVwk k7Hgx+k8IvMjThMvhx8Te0/kLoXMOgcnnf4hab/onYPgLVEBuIEGMeNnw6x7o1pn2uwu zDFzzV5CWWsAN9ojAsAJp8GqP2DWGg/7aL8eZoNRNSDFqDyJ5KHuh0/vfCDIlz2g9yx8 4O4A== 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=W6cO1ZHWVplFHoOilh3Dcc/XiGsi4jHeuBl0XvZfPTA=; b=giYMFjY5l2mdnHzmrbBXqW1Jh60z7HqswFCpNDbpk52ZxPkkuW0odmHXM4lnAki+Oo N2s8lxrBj26zL9A7AK/e6x4iKIUBoF5jIsJgbQdpGoXPBRcFmE5nh9VQ7zJYzqSwrLge ITNqOeW55D0muG4ZXtLWAh3O0ADFCgSXLGAgm60YucQ5lzEi5YLNt7YhSsRfA+OuD0GP W6WpFroG7ApGS3KIfSyLgyYIVzLmCaUjf7agnIxiGKQNDXIfp9aD1PjdKRSZjib4v8qg 14iCnrD/Y0KkQez8QGntgJmNKgkTCFj1H9cBWkJFdaHaRywEODJff1JVjqlTi8fWj9no C96Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=aaYIBiCN; 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 m12-20020a656a0c000000b00476f5ad5027si10074657pgu.114.2022.11.20.16.59.13; Sun, 20 Nov 2022 16:59:25 -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=aaYIBiCN; 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 S229975AbiKUAxJ (ORCPT + 90 others); Sun, 20 Nov 2022 19:53:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbiKUAxH (ORCPT ); Sun, 20 Nov 2022 19:53:07 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F8676434 for ; Sun, 20 Nov 2022 16:53:07 -0800 (PST) Date: Mon, 21 Nov 2022 00:52:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668991985; x=1669251185; bh=W6cO1ZHWVplFHoOilh3Dcc/XiGsi4jHeuBl0XvZfPTA=; 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=aaYIBiCNC8iel/ScqMqSrKTAN0W7C2vvD+jeMJAK1HE2IKBKkJjMkDzhqBmN44VqQ nWzJaXzkdlI1f5XSS+VhiSV7d656T0kCXG4hpFe0QOjlFZkWOdtRg+1yG6Hr+CcZlw m71meUwbQZwRv3oUP6QWTJsQFJmJ4wAkPFdWTaiBouUUu1yJH8MFqG96rjJExsvsHP QoVGlKjA0Fi1XrVSbf06b/SdxUbingCVu8jHyy6qQORtn/+Tvq8knHD3Kw/7MHYDkn QyuG1ZWKMlqvBNKGZRvanE7bws+C/gJDZXJp4rNrCfBUh6mIfTiSLJ6kAnGjt6o2/u Q/yxqkRfLwXGw== 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 v2 4/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add touchscreen Message-ID: <20221121005150.4353-1-linmengbo0689@protonmail.com> In-Reply-To: <20221121004813.3883-1-linmengbo0689@protonmail.com> References: <20221121004813.3883-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 --- .../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 33eebb4afb0c..73597f1883aa 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