From patchwork Thu Jul 21 14:50:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12925316 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC9D1C433EF for ; Thu, 21 Jul 2022 14:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0/lHcEnjindr/dxJ6LMwCph+Hfl55FCbkm0TPsdE5tY=; b=nRkJFjXVXm23n5 2ug5xlUAsa58WuU6M/PzWPfG7jxj1YB1ln5MfH9hyAeFs8pDezJ5+UjIj4rQVIvOZeL6sMy+g6G/0 VeVrOo0qCLTlMykr5bYFB5NnFArag3e00G2hxNiRZy6pBZ69X97STkzAiJJyTm45E/p+Sh2Do54hq kS7U8FiJtWqDB87YfHGVBuOw6XjP3b8B38TXZob9S7WEhcwrboLSBNhMZPcjtDwfnWNTjEma8Glyp JO9oD/5GDiKLYNVj2ioHP6EyeTX0t1uLk+sTqm0ugKV+i6b5PxCkJfAiKpS7VWUUAyf3zMcirzNNU P1fqWZQ5ufQUkoYZPaOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEXX6-008NG6-8t; Thu, 21 Jul 2022 14:52:08 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEXVZ-008LFc-2O; Thu, 21 Jul 2022 14:50:35 +0000 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 41FCB6601AB2; Thu, 21 Jul 2022 15:50:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658415031; bh=akTb+gtu7ReGU7vaNrXZI/GzP5obrfG91xyx1IuWCT0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SNdO1Ap6ZU0xlgWgFJYU2blXfzN/vJHIwo6pCtA7TnsehatRJmvcv6Hq9HKPqV5TN ZiBDgB4LecZ37guIZll0SYcuqvCkMXnsvyFPh1jtaRAk4fPN82Ap0goRdDOI691FdS 09yjH1OAitrsNplPaXiw5y77DYWB/answ5N9Kef4u8Y22PHCh4peOPazaAsk22EOa3 Tlbixti4yppFotLVX/q9AL5ESGkT0+MdqhsnjYCZgPltrk8s2/9K3RHNPZWc0GA0W+ n3I2DQZdaH7Kw2SDD2amjBoYd8XaZBH1gQdyn0R+KYcQ3UJV8fIQlJrRfe/LSM7d7I JdjiIBIZL8dWw== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno Subject: [PATCH v2 5/8] arm64: dts: mediatek: cherry: Enable Elantech eKTH3000 i2c trackpad Date: Thu, 21 Jul 2022 16:50:14 +0200 Message-Id: <20220721145017.918102-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220721145017.918102-1-angelogioacchino.delregno@collabora.com> References: <20220721145017.918102-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_075033_284272_0E4525E7 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Cherry platform uses an Elantech touchpad/trackpad: enable probing it at address 0x15 on I2C1. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai Tested-by: Chen-Yu Tsai --- .../arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index 8859957c7b27..58349d4c3c8b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -134,6 +134,16 @@ &i2c1 { i2c-scl-internal-delay-ns = <12500>; pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; + + trackpad@15 { + compatible = "elan,ekth3000"; + reg = <0x15>; + interrupts-extended = <&pio 6 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&trackpad_pins>; + vcc-supply = <&pp3300_s3>; + wakeup-source; + }; }; &i2c2 { @@ -727,6 +737,14 @@ subpmic_pin_irq: pins-subpmic-int-n { }; }; + trackpad_pins: trackpad-default-pins { + pins-int-n { + pinmux = ; + input-enable; + bias-pull-up; + }; + }; + touchscreen_pins: touchscreen-default-pins { pins-int-n { pinmux = ;