From patchwork Thu May 5 19:45:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12840105 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 9011BC433EF for ; Thu, 5 May 2022 19:50:08 +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=YC5MHP9rcjyOjIauUFjGU6ON46TrqgTVdM+N8W89VnA=; b=gJnTjxsC3vr2TA q4YtQ9/Ojzb7bT2/zvFwUepE1TS+tWQJuiA1QW8ycvGM/YCKKcezYoX9aDHvV87sp7J0i3Zzfide+ ZbHvaG6BTq7Qv1F8KUPPOAViYYrYouidecJcI4vaX/KBS99V1fDUtaRPHjmZdhSfxgSo5OUv/AjnR OwFFbvxY6Un2/ZUwHCH8tTAWEbGwCwm4ZHc3as/vQh57pd/6LtOyvsl9RkMPEzGXtQ3EnUcGAa6vO l9v4eLaYnhaK0UJljE1KjjGjTbsCX7t8LmuVRZj8FbDUrXjrDKHo3vQEL9r14EneD+I+qO5KPvt1u xYY3iRSllzhjob+D0aug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmhTD-00HZYu-5j; Thu, 05 May 2022 19:49:03 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmhQy-00HXtF-IU; Thu, 05 May 2022 19:46:46 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id D308A1F45CD0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651780003; bh=Dj7vGkYC2BwaxdlFtxv9aMWMtotDYi0t1OanA82gQVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ob34YrajdxH8LFFr/Uzcr6LQXBusD66HfS6+XCkQgwF+9I7/dqzTSip4UumJ4ElDm 4gctg/6716y5yLvdh//RAFfzEe8J6t0Ncmt/4HFojagHFvLoK04+slvMT7QaTb2lKE qGQcN6oGcWHVmnXfQLuKrvPsz3uE/IUGlkqv4X1JErzfPjIv0qPZka/2oz0Myn9dlb M4QnLgRAtia18gCJqu6J3PJ5UTWtGu96zvoHzyKo0/Ac5R1zUEUOTC5LGC4yin5Q+c 3gij+MxiX93X0p3kLNn+a8K63GVV75bhsOXAPlctkv1Vx8K01hRGrRMeoPUA1SxjYx 8HbVB94qzSN7w== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?utf-8?b?TsOtY29s?= =?utf-8?b?YXMgRi4gUi4gQS4gUHJhZG8=?= , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 10/16] arm64: dts: mediatek: asurada: Add Elan eKTH3000 I2C trackpad Date: Thu, 5 May 2022 15:45:44 -0400 Message-Id: <20220505194550.3094656-11-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220505194550.3094656-1-nfraprado@collabora.com> References: <20220505194550.3094656-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220505_124644_806136_270168A5 X-CRM114-Status: UNSURE ( 9.44 ) 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 Add support for the Elan eKTH3000 i2c trackpad present on Asurada. It is connected to the I2C2 bus and has address 0x15. Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- (no changes since v1) .../boot/dts/mediatek/mt8192-asurada.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 5221f1d1b7dc..a15e84d86449 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -109,6 +109,16 @@ &i2c2 { clock-stretch-ns = <12600>; pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins>; + + trackpad@15 { + compatible = "elan,ekth3000"; + reg = <0x15>; + interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&trackpad_pins>; + vcc-supply = <&pp3300_u>; + wakeup-source; + }; }; &i2c3 { @@ -440,6 +450,14 @@ pins-bus { bias-disable; }; }; + + trackpad_pins: trackpad-default-pins { + pins-int-n { + pinmux = ; + input-enable; + mediatek,pull-up-adv = <3>; + }; + }; }; &spi1 {