Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp729531iog; Wed, 29 Jun 2022 09:03:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vXUoT4XKmSSzzOiaCKpOCOCy1XfnBkQ2qieXGT24JC9vMrqpoP2Tuf+74PEsj4C18kvJP6 X-Received: by 2002:a63:6bc1:0:b0:40d:ffa7:9dc3 with SMTP id g184-20020a636bc1000000b0040dffa79dc3mr3575250pgc.111.1656518611010; Wed, 29 Jun 2022 09:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656518611; cv=none; d=google.com; s=arc-20160816; b=UzA5uGbpMLp3xG01NKdUGz2h0czyk7CwTt027vmjvZtluUtzbgeW7r4p63AAbEd6+T +oCld1U9AG0ftLvqhdlRhiK9yAKLGrhmgAV94AigMncw8chCBelqWJC995WgCXfTrJk3 MXF9eTW0FjoW+CxBMYwJ0I5jPU0N+rcqcnjWNUTHzs+PIteluuSYdQSNOiyq8yH3PSuT Em7pvDJFWuS0ua+UU5TBl/pP7vM82bjNlTXEkXB3r0sFOaby0ClM6ifH2WpEPWlxXHJX KMu/qW1G1PQmXvf4tcq9jFtlXVLNwSOvwrQBbq1qmfOSjgOFxFIjl/PQDBB+6MYMB50s 4u9g== 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=lOo2b8F8lnHm9Gp1gJ0KQQt/78fIFmrlOEWDanHTf/g=; b=IYk1keNoBBz72FljHzVxp7Eh579SDv27eXYPdRuJIc7INY8a4FDNwloIX442bAjvR9 FZhuxcSCdWl6N0G4JGQNUgz5DVJ9OyoK0SwMQQrObkaxJ6zkVNHwM8xMzdMDyB6kR6f4 pcUUTT4+Re71KfjXRn2NBKEPSgAJhedaT8/4MTZ7E6LWCA8og0rTUyZ/E3cMxAA73V3v Qkj303erux3qeU0h0qlNoiQ2A7tAeEeI4CWar4T7OmzeTFVd/Ptfs0u7hlmmGLCQSLJg V8g4gWu9TxJNeFzhyp+1JzR0v3N9AIvBNFM+/+n1pZyJQatCZ3U00tLABM2ohuN2aCTQ GXfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KA7L+82b; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a170903404100b0016a183777afsi16875941pla.325.2022.06.29.09.03.07; Wed, 29 Jun 2022 09:03:30 -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=KA7L+82b; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234490AbiF2QAw (ORCPT + 99 others); Wed, 29 Jun 2022 12:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234371AbiF2QAV (ORCPT ); Wed, 29 Jun 2022 12:00:21 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CECA1C91B; Wed, 29 Jun 2022 09:00:19 -0700 (PDT) Received: from notapiano.myfiosgateway.com (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (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: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0B60F66019D8; Wed, 29 Jun 2022 17:00:16 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656518418; bh=o29vqqsWji0OFz7litVCz+HSv2vrNoGr04oOrOfn0YM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KA7L+82b3TQ37iIXoQ/ZOTFIuM2Ig0B5xZNl9IkANTbDCpSij0oVuahGvW1BjwMlO Vpn95jAVKnxoDGYxmCnUEGPW8WjJmeq6jRQdNArA2urpVCn9zT0GlVouBsXaQNjEag 0ChL6N7YeAm6eVth0++RyWz4A2w1mzUbgBYpeDJUTdcJ48zZ3lsci31vnO5b69YMVu fwiI/K2VWHoDeMe5/SAusfv2dTYVb4nIemEt+TkLmHIze+Svob+tX3J6VJWbAMLrPP tNz2nhV7T2rCTZbOVqOk9j4hCvXTo4gI2k2cOYo1SLVkAA7qLgtHZTDn1y3BZkppiH hKSi2BIbzhHTA== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , 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 v4 10/19] arm64: dts: mediatek: asurada: Add Elan eKTH3000 I2C trackpad Date: Wed, 29 Jun 2022 11:59:47 -0400 Message-Id: <20220629155956.1138955-11-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220629155956.1138955-1-nfraprado@collabora.com> References: <20220629155956.1138955-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 Tested-by: Chen-Yu Tsai --- Changes in v4: - Switched mediatek,pull-up-adv for bias-pull-up .../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 fe626535ee5d..4de4235cb768 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 { @@ -436,6 +446,14 @@ pins-bus { bias-disable; }; }; + + trackpad_pins: trackpad-default-pins { + pins-int-n { + pinmux = ; + input-enable; + bias-pull-up = ; + }; + }; }; &spi1 { -- 2.36.1