From patchwork Mon Mar 27 08:36:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 75309 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1360026vqo; Mon, 27 Mar 2023 01:44:55 -0700 (PDT) X-Google-Smtp-Source: AKy350b2ccdaf3Ni3jRd+MlM9S4HRtE/GkO8wH6rY76v+VqEOTuvPBP+IBfbbBO8bA189wogXVZ+ X-Received: by 2002:a05:6402:5178:b0:4fa:57bf:141a with SMTP id d24-20020a056402517800b004fa57bf141amr12934632ede.32.1679906695178; Mon, 27 Mar 2023 01:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906695; cv=none; d=google.com; s=arc-20160816; b=EnzbEUFwaCLrVhH6na6nUJgf7cOzJnOsKhcblIJt6tmt3Aa673OU/dEIHEKk9O7g7/ tB7AwHlUpIMYjNuyZ4O+Jo7LkjUyuNGgBQgLFq7Ka+11v07uhmmF+Og6oCSVyb9yASVS SJXuPR7tPZjWwlr5AVKhawqeC8Fl4teeHYtU/yJZz1y39cHDJe6v4x93Bhe6HMnJQcvU TdwScIxRpmQNqEzt9sTRuj6qazS1ECdacMsqQVfEazWofsGgBFqf8vMgoUpMUJhjSsPm 58W/4Qy2tXG+IPY0HNS354gkGOo+m33W+VX8ZO11kkFTvh2RoiLv1IwwIcBqiTk/t0Ft twdQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SZWEWgV9KWorwzy5WyRu1cE1MVCUr2d2V/ImhIwrHg0=; b=Fhx4zF7jz6F8DyEomCcawAD3tBXT4oR2BGl3y04y3PYzIUcqV6+PrA7UwcEdS2FL9O Ryfcn9RmzWfd1kcxofKF7UipL7DbSAkFBvAXw0CSuYgI1GQZWrvCksPzHL/QOrOIzSh8 PMGi7CsNhoer9bkXQuyWcgh91xsbpUmMC2X9GjsihuPBqq+LwaGq3G5zvCbSt6KkbPwW anwcT6MMWTo5y+E/MnRJPOYeMCLjuR053KlIbSzF0S7uhJ2iB5o4MkBhzDvPD5F77dPA YFkR2QnwcWe059uDZgTXe/8rbdxJiaAX1zpbVj8OXwk0tdK/SVnmXdGPK2JKlDxdE6tl 1xKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FAw0Fkcv; 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=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a50ee91000000b004c0b7e61b21si6106554edr.365.2023.03.27.01.44.31; Mon, 27 Mar 2023 01:44:55 -0700 (PDT) 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=@collabora.com header.s=mail header.b=FAw0Fkcv; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231196AbjC0Ila (ORCPT + 99 others); Mon, 27 Mar 2023 04:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233157AbjC0Ikg (ORCPT ); Mon, 27 Mar 2023 04:40:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14088659F; Mon, 27 Mar 2023 01:37:07 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2E5A366030DD; Mon, 27 Mar 2023 09:37:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679906226; bh=Hpg+2kX8cSdZxnfmoRo906qfV2RYRZo5yI+72ONjdQY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FAw0FkcvKRQq7SxMAUHNCsdj/Xi9VXqhIMNLXbL0I1aMoIQFFEu4oH8lXmvdGpTOq N3bIawz0SMfPVyzPYWB1kQBMhciex90bwii9r46fjeG1F2ZNhM0oRB6ZBYrWryEKY/ YA9yE3PcNqfKoA7kiNt47TLoxHieCsgUmQ02TIwbsKV5iE3PY9iyZNvF0AdzdLvnZm jyMyM8vUb2UYMaqMkvQatG7STuhbjGKn2R9cDTsP2pJhcdW6ebr+YZhA8tWZUXtYpR Hubnz2bE97PUqE+Wcsh4FZxZnPVJNDQJmjJtFuJ8RisAdlae/WV/3u/9KbDY8EuwWE CwAw97wTtXPzw== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: qii.wang@mediatek.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, houlong.wei@mediatek.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno Subject: [PATCH v2 13/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Synaptics RMI4 Touchscreen Date: Mon, 27 Mar 2023 10:36:43 +0200 Message-Id: <20230327083647.22017-14-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327083647.22017-1-angelogioacchino.delregno@collabora.com> References: <20230327083647.22017-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761509842655119029?= X-GMAIL-MSGID: =?utf-8?q?1761509842655119029?= Add the RMI4 Touchscreen on I2C2 and its pin definitions. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt6795-sony-xperia-m5.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index 6df1c848e2d5..edab90f06a24 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -71,6 +71,28 @@ &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins>; status = "okay"; + + touchscreen@20 { + compatible = "syna,rmi4-i2c"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&ts_pins>; + syna,startup-delay-ms = <160>; + syna,reset-delay-ms = <90>; + + rmi4-f01@1 { + reg = <0x1>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; + }; + }; }; &i2c3 { @@ -80,6 +102,19 @@ &i2c3 { }; &pio { + ts_pins: touchscreen-pins { + pins-irq { + pinmux = ; + bias-pull-up; + input-enable; + }; + + pins-rst { + pinmux = ; + output-high; + }; + }; + i2c0_pins: i2c0-pins { pins-bus { pinmux = ,