From patchwork Tue Nov 22 13:32:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 24374 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2202691wrr; Tue, 22 Nov 2022 05:36:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7md24xkA0XMjghLnnclzsePa3H/X/7c7WvHN07vwTATxDvyFVESqa/D/HV2yS5tfxdRgMl X-Received: by 2002:a62:868a:0:b0:56e:3a98:f02 with SMTP id x132-20020a62868a000000b0056e3a980f02mr11811729pfd.53.1669124170599; Tue, 22 Nov 2022 05:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669124170; cv=none; d=google.com; s=arc-20160816; b=cLmm1wWPsPLCbGw5gMpXRZ6QHWVve5A3cdGcyYYlU1LUYBXD4iSnPrn99bgKzlXytl 7o2Y+A6IyUWW0yFGJeoBDqLiBxdi9mdBLj0kAPozcX1LCAiPU5oRY/ifE0ugCb3jltbq pwonkw5kRJXqjCVMoxNAWDWeukFcB+Emu7TvaByaW8ORDclsUkNhwgD/27IcVYwTxEqc nNNoYsT47Vw77Xujr1a/WsgDKFsxa0jbqkmbJPRkRtJJcHsU0X2gjhiDCszJVTEY7tAB SO7f3lQ0vj9HHI+pT2rJvwJ7hhUJ1LHAFddzU+WQ6RQfdtZPCRLotugUPmA4DkLjTMeH 5JLQ== 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=zbGqYUYQv6mzJGhERJPOw/70/K8VDzJ3EpV81zipY0btyKBN4TWD8sQX2bv9esPhEA Wnbhr9StPFYT4GqrPfSZNcg2Nes1UwP8+EJIs+J6t94dHFRzAaUnNAUrJF2IjYxRdehb QfkiUa5mU5zzSJ58jOCrliWVjogOi+OQeyzxXmuFd5u/8JzAIiKk0fymolRZg9MUYb5J RBpfp5smviRDYcnRtVvZYgfyf8PnWpcIrstJGREa4V5srHeXrV5X2csTd9Kl/qGNDN/G 1j3MOW5H/QhBfH235W2p/CPKjCNxqoTRvg6tIgQ7rg1A2rkSgkrA1y9k4C3r5kVbNAjZ cjdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=mjtT6EgC; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170902ecce00b00178431e09bdsi13718528plh.230.2022.11.22.05.35.56; Tue, 22 Nov 2022 05:36:10 -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=mjtT6EgC; 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 S233805AbiKVNcm (ORCPT + 99 others); Tue, 22 Nov 2022 08:32:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233802AbiKVNch (ORCPT ); Tue, 22 Nov 2022 08:32:37 -0500 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1959C74; Tue, 22 Nov 2022 05:32:33 -0800 (PST) Date: Tue, 22 Nov 2022 13:32:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669123951; x=1669383151; 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=mjtT6EgCEwE8+XuS8+w0R+4ofsX1V819BBmdonEiDDR39lUerGE3a+lF9NFEYql9J tGaDwLhfACpoopmLOVgzncL0p5dyhK1jyYBZ6l0HZjgEpI2zK0Y3rxHBsHm0ghxde9 DvuWbrFAFqodjCN5qwGn4VKZ1YYy9Nq2R9cJxE8MgPrIccQRmtLt888aKgYczzYYho aZhg0KlT5ka0m38acxmUVZ0roCtZeRFtOZiI2YLenbqGvsayE5Jq/k/PDP3zSayjB2 eyuZH/N87Dtc9Puezvty+hmpf0EPCLD5KlMZt/l7+MK1aiKBNCs6hLvj7bsxFmSbq4 Gxp/Bfyjh/7Zw== 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: [RESEND PATCH v5 4/4] dts: arm64: qcom: msm8916-acer-a1-724: Add touchscreen Message-ID: <20221122133141.258357-1-linmengbo0689@protonmail.com> In-Reply-To: <20221122132816.257717-1-linmengbo0689@protonmail.com> References: <20221122132816.257717-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750203546084157063?= X-GMAIL-MSGID: =?utf-8?q?1750203546084157063?= 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 { }; }; +&blsp_i2c5 { + status = "okay"; + + touchscreen@38 { + /* Actually ft5446 */ + compatible = "edt,edt-ft5406"; + reg = <0x38>; + + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>; + + vcc-supply = <&pm8916_l16>; + iovcc-supply = <&pm8916_l6>; + + touchscreen-size-x = <720>; + touchscreen-size-y = <1280>; + + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_default>; + }; +}; + &blsp1_uart2 { status = "okay"; }; @@ -245,6 +269,24 @@ gpio_keys_default: gpio-keys-default-state { bias-pull-up; }; + touchscreen_default: touchscreen-default-state { + reset-pins { + pins = "gpio12"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + + touchscreen-pins { + pins = "gpio13"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + }; + }; + usb_id_default: usb-id-default-state { pins = "gpio110"; function = "gpio";