From patchwork Mon Nov 21 13:30:01 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: 23741 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1587872wrr; Mon, 21 Nov 2022 05:31:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7aVJdQjFrFvEcCsSXpJNmWkf8c0+IRMGWsibnFw5fTwoE+fiiE7UtTICp471r1ZG0N4jQC X-Received: by 2002:a17:906:4bc4:b0:78d:6325:356 with SMTP id x4-20020a1709064bc400b0078d63250356mr15579200ejv.6.1669037478146; Mon, 21 Nov 2022 05:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669037478; cv=none; d=google.com; s=arc-20160816; b=L/pqA3auMMeitMrre1K9eYQJt2CXNQBc/vqxkCw2V7pjznMzh377mMC6vUiCIQA7v9 PUZEPUSgEZIwz7THAE/C4dhwm0NiN0bwh1Sv1e0NpxPpBx9v9fnlxqNFqfNCfBPoxNlp ul/4Oe68Em6hJqOAA6Z1rf2b6CrCQla1j+fQmusNO4v5kM+wHWhvCUzWqLdG3tY1tydE VVoWSYAQ0XA5MiAMxLJ0Hk65hqjv3PA464Aqv0XkfTTuEDrtzjWz2s6yN6sZIHI9aHpZ 7VAr9nj+6wLocjdtxlNF0XobBikk16zVl+6wQ3X6EgqLMvDlpsm3cSL5OJ7ZPQTInWyY WZnw== 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=pwOBX602Nhh3eHgQt2aQTVP46sIzF7xTsfkMmDNmxsrSUSUAFXsoZZKbuCUBubCAJ/ i7hut31/xR7H735X7ZJblqQAB7iyS26bHQ8gdRooaktBWo066tvczrmx04JV2L4SIyTt GTe2IZ19wE69g+Wn/9rv0V0ov9e5iOqwK9rS4Wyb6FAGRMhppAtfrJGSVS8sHx0ABMNq M8xruicP/UcULKGKhSporprF2Vf7X5Kj6PzQrK4GK8XKC0mzm5R3Zf9rwP8T5HGd7wBF A1sq3tC70oOIh+jjKLSvXre/rf+EDfTJ6svlLW5R/0B8uMYeUtw273nbqylznau1PN6o 2WpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="M/Mv1UxJ"; 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 l18-20020a056402255200b00463d1e263b1si10197499edb.364.2022.11.21.05.30.53; Mon, 21 Nov 2022 05:31:18 -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="M/Mv1UxJ"; 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 S230310AbiKUNaU (ORCPT + 99 others); Mon, 21 Nov 2022 08:30:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbiKUNaI (ORCPT ); Mon, 21 Nov 2022 08:30:08 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24E4BF81F; Mon, 21 Nov 2022 05:30:07 -0800 (PST) Date: Mon, 21 Nov 2022 13:30:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669037406; x=1669296606; 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=M/Mv1UxJrvdP8jxxolAkSuhMvk7lGo0MZiu9L/+Rj57ZbWLFKRqoZ9vIl4Onpx4u2 bCS0slYpP/86VsHJvc+4rQOD4kB5jPoC0wZ2PXdtI353JCjRSzUvoPvoAbxAJKK56k 3561YjdjCcTwilgL6NPHiEy367NKN50NnGVqPOQHqLpQkueIG6BoVvvxcm/uNLQZ0J fuDTWSPryAZIp8LzHmRA65OFiB0t5p51T7yC3iLR6ifsyXrdmZz6dIpTxEWwf6I04t EXTRNXSEX6fNcrNYPRegDnhuQlLroaAZQkgrwy7mzb5j7Z0PokPD3exeF/ctpOhyAL 6wU0ohuRybX6w== 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 v3 4/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add touchscreen Message-ID: <20221121132828.207053-1-linmengbo0689@protonmail.com> In-Reply-To: <20221121132139.206581-1-linmengbo0689@protonmail.com> References: <20221121132139.206581-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,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?1750112642551815872?= X-GMAIL-MSGID: =?utf-8?q?1750112642551815872?= 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/arm64/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 { }; }; +&blsp_i2c5 { + status = "okay"; + + touchscreen@38 { + /* Actually ft5402 */ + compatible = "edt,edt-ft5406"; + reg = <0x38>; + + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + + reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>; + + vcc-supply = <&pm8916_l17>; + iovcc-supply = <&pm8916_l6>; + + touchscreen-size-x = <800>; + touchscreen-size-y = <500>; + touchscreen-inverted-x; + touchscreen-swapped-x-y; + + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_default>; + }; +}; + &blsp1_uart2 { status = "okay"; }; @@ -229,6 +255,24 @@ gpio_leds_default: gpio-led-default-state { bias-disable; }; + 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";