Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2022852rwl; Fri, 6 Jan 2023 00:24:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXtpbz/XSLzG1l5/GHBlgCohcrZYZNPZsa8Ix91HNR5t7tqST9GU5Kf/R+H55q1ad5iP6CYN X-Received: by 2002:a17:906:700f:b0:7c0:b79c:7d5f with SMTP id n15-20020a170906700f00b007c0b79c7d5fmr60421338ejj.68.1672993481625; Fri, 06 Jan 2023 00:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672993481; cv=none; d=google.com; s=arc-20160816; b=uNC7YwoC9kwyg6RUFXtvI39gHy8ju4vyo566ao95Q3hG4mM/jy0f8VNBNvd7zI68aR u5aV6mwCJuY6wtpom27viouh3m2SbkFR8nvhgHHNmAEjDPFpUXlVvAJWGtkvRIq4f4RE v6QG9/hWrqP6lVasY52KnHEaGdbl22Mxvws/YpkFS7jSfLMr59q+118ADD75kW9UNrjF jtiApNFosPFP3rJlMx/At/acdD4BGocnrluU5Lm6FeGgR/Hv1BXn8Z85iw0xIWAIzN0c X4GwVAjIqJjhSgHBAtDkBLshPP5HynYEOPKlyoqyoYr9m4eNdZn27J5iea/e1Q5YjVDZ woDw== 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=uN8uGuJLyuQYymcT6r2GdhM4XccS43VSviVd5JQ3lLdftpl14SeyCk37ZmL94ebAvP cBtNvqWDoE1ZFhbXHWpLTroLZb84jLygkdhDC98RUeT+4Pzrnko8gX/9g/GF6PlAr2Dk eb2343GYK/zA524mUoJUcYlp0MK/bUMa/E4DxNexYPDbl9TaagyLqJZ2PJCA+Kw1JC7W efQ/HmHGQHrQt3w0CXnZ/L7jjzY2BzbAYgXEsihQEnCBN7DwC8Z37XOafXmnKcm6+h1H WwgX5pTqs96DsQmnqd+Rng7+sn10w44tdusihRSKfuXk6DVfMS4k5uJKbDzBe9nOTT4l 1nvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=qIcXMB8+; 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 ck17-20020a170906c45100b007701a050273si503450ejb.942.2023.01.06.00.24.28; Fri, 06 Jan 2023 00:24:41 -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=qIcXMB8+; 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 S232117AbjAFILF (ORCPT + 54 others); Fri, 6 Jan 2023 03:11:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232216AbjAFIKs (ORCPT ); Fri, 6 Jan 2023 03:10:48 -0500 Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 687C878E85; Fri, 6 Jan 2023 00:10:46 -0800 (PST) Date: Fri, 06 Jan 2023 08:10:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1672992643; x=1673251843; 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=qIcXMB8+ctvcVZCBekKZoJoEnSTdQSTJDpNnj6cL9rS6hrOS79Yc8hSxBMIzcP7vU uSBRrDwqk89aoqh9xSZG89b5iP8xv739cMjjpNvcKBxsw0YJxQ7nCQ+kfD8iHmqAlQ NzJBWL3QwO+1mRzbwoou/6OH4MMJoDX5TbN+CUKnzsQdp+a0LcDXlWYlryshhKVIRD g5dcXR8SHYbBTtrkKCGj0D41V4fMeje2r1hL5UW6cm5jKGJYZRjrNtDIRKQHyz/Z7F BNzwp/+9bpbzk2PqOJ0zFzrM2p+OYQfdRSK+cclJF+yPjhrHOqneGCfBLHCsEuQjq8 1XghqJGIavslw== 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 , Miquel Raynal , Jagan Teki , Chris Morgan , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v5 4/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add touchscreen Message-ID: <20230106080924.256286-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106080644.255940-1-linmengbo0689@protonmail.com> References: <20230106080644.255940-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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 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