From patchwork Thu Sep 12 15:44:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13802308 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 AB708EED616 for ; Thu, 12 Sep 2024 15:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=c1KFFXITdKh/UNVDhGRYZ7z1/sXibi1fC5DJLFmUObI=; b=i/UIZLiLEK26n9z9GzOSE9esfi 57ZV3VeiaBX6KBXXrOIQR24MJ24075WBytZZeoBIm2Tv51Qr0t5jnBVWPDkDOsayj6unsqMUJFWQY 2r36WSomuZ3PDBcIwkC7YR13LWwS2vs20fNNO3xMQzZUJxej0FQJweFG1qG1/1F34aqmCfLXA17Af M3idB6YtCySOTpXMvylcqMC2FLl8WgsfPOUxnK+Wh16oCtnr+nhcTMgzNxU0/lveQ4F3v8Y4SmYWT EWmtH2h+RX/rjRAt3ZVIA3X1ubDSoJWdWtkq2x3uKQnfOSC6e5qRpSNFZzJooteMxV3PqYRHHrWik cdXK5btw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1som1I-0000000DbyF-0iho; Thu, 12 Sep 2024 15:46:08 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1som0A-0000000Dbfk-2FT0 for linux-arm-kernel@lists.infradead.org; Thu, 12 Sep 2024 15:45:00 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-6c5bcb8e8edso1007064a12.2 for ; Thu, 12 Sep 2024 08:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726155897; x=1726760697; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=c1KFFXITdKh/UNVDhGRYZ7z1/sXibi1fC5DJLFmUObI=; b=LOr43s1HcSa2ZqffT2ST0/uehq6oN8nlHa7De1mFd0Tbfc43yHFnA5s3OvQIhQCd1K ZVxFdHQrnibUNy5UKt0muJjsQDrf3KEIU65UoDSmicbhrhASx1pWh6kcm2kKpC2cnYng Bc/Rd2ONFHV8KuKMxUNETW0ld00kQSlFmn2P4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726155897; x=1726760697; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c1KFFXITdKh/UNVDhGRYZ7z1/sXibi1fC5DJLFmUObI=; b=d9CvELlBBAVlq9mtWZha2F9v29StG2KXn1ORRIy1XvHfz0ikfsIfZULfsKmJ1vH5dQ KJJBmglONvy34StOmM4Xq24+fNY0kXRIXBa5L927VjP2x7QyS8epeM4y4+cjMXyBWvGd TI3FjiVDvIZAKoOeHnDXZ6rtrt2d1eZ2dRfczSAYiCCkM+w/FiyKCSwIlgpIAU5Kw5/3 CA+WaLRVx58tEu7wXZ7qWGnDWXqnYnSjWeuTgbm5nQA7mxPGi+hwWfluZ1JPou47veBe FIMDlDN4iAOTfmzKguwo+UECv+c8+9j9mAog0JFKfN2i9SpfPY4cna8JYRE6zGo9GQMA qoGw== X-Forwarded-Encrypted: i=1; AJvYcCXvKnGn2wXSo+le84bv4tZeagCLGMPED85aReXqJcO8NkKnWO1gT3xFG1ko5PJ1hYq198bGrgDInM0nAaHTSqK5@lists.infradead.org X-Gm-Message-State: AOJu0YxxBS45ZFOSqMCIo/aOr1YOz53IJiRCjDl/jkHGcgO9yJro2QZE Kt/WreOinrYskXyvLX7B8uhOmq/CV7faH7K7mNQWOywEZGadeLI/x2sQVxR8aw== X-Google-Smtp-Source: AGHT+IGceJb5ON2QNnGfniNjs+7jlg3UmQfUeN5Y/7jmG/+KHg45rsa/zeM5LdGm1y6Xl8ZubgzSaw== X-Received: by 2002:a05:6a21:10a:b0:1cf:6629:f42a with SMTP id adf61e73a8af0-1cf76253369mr4671233637.42.1726155897269; Thu, 12 Sep 2024 08:44:57 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:8638:897f:b6cd:8c44]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7190909235csm4751353b3a.134.2024.09.12.08.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 08:44:56 -0700 (PDT) From: Pin-yen Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Chen-Yu Tsai , Pin-yen Lin Subject: [PATCH] arm64: dts: mt8192-asurada-spherion: Add Synaptics trackpad support Date: Thu, 12 Sep 2024 23:44:29 +0800 Message-ID: <20240912154451.3447081-1-treapking@chromium.org> X-Mailer: git-send-email 2.46.0.662.g92d0881bb0-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240912_084458_629993_AB9FDD6D X-CRM114-Status: GOOD ( 12.55 ) 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 Some spherion variants use Synaptics trackpad at address 0x2c in the I2C2 bus with the generic HID-over-i2c driver, and this cannot be distinguished from the firmware compatible string. Support both trackpads in the same devicetree by moving the trackpad pinctrl property to i2c2 and adding the node for Synaptics trackpad. Signed-off-by: Pin-yen Lin Reviewed-by: Matthias Brugger --- .../boot/dts/mediatek/mt8192-asurada-spherion-r0.dts | 11 +++++++++++ arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 4 +--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts index 29aa87e93888..8c485c3ced2c 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts @@ -79,3 +79,14 @@ headset-codec { &touchscreen { compatible = "elan,ekth3500"; }; + +&i2c2 { + /* synaptics touchpad */ + trackpad@2c { + compatible = "hid-over-i2c"; + reg = <0x2c>; + hid-descr-addr = <0x20>; + interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>; + wakeup-source; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 08d71ddf3668..8dda8b63765b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -335,14 +335,12 @@ &i2c2 { clock-frequency = <400000>; clock-stretch-ns = <12600>; pinctrl-names = "default"; - pinctrl-0 = <&i2c2_pins>; + pinctrl-0 = <&i2c2_pins>, <&trackpad_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; };