Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp844727rwl; Fri, 24 Mar 2023 02:49:33 -0700 (PDT) X-Google-Smtp-Source: AKy350Yc2kSLzr83I1q/UXSWj0PCRVthvrYggQkSu0cTLZv4n+5kvK9kjkYzJEduhpqDpe/54WdL X-Received: by 2002:a17:90b:3851:b0:23d:4e9d:2eb0 with SMTP id nl17-20020a17090b385100b0023d4e9d2eb0mr2065894pjb.36.1679651373387; Fri, 24 Mar 2023 02:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679651373; cv=none; d=google.com; s=arc-20160816; b=SZ2BNNZMSrEpdk/lQ4VCKfxD/iJE7GNXY/OkNxQmzzvs09NMGU0E1PU/ndzeb6eCRR 5vhZQwwjYV1YLEWyi5KNuJ+eTuhvxAUwDmOz7XyMTjrceoBSS2b8b1EhSsRE857j0kLz KSZwrPYE+tX3OnVJfJdDILbWqfXiIUhrfeRopgGuDuzpRvYytl7mlTHq8wngE5Q3gku4 5PLSdZpDOUzS5LXi0EwJK/FDqoCQJI1KKuIKUb/8BVLKh4TbZhsW/GbsMHAGCXk6gsVX IXr2yHOpUv1EAXs0FmU1Coj9kWbHw821mO166htkef84VHr/PYj3e5Mf2VmXip32nZo4 qEzA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=fhhwyuFTHPSmrpV6rqU3P5YWwdyDJbF8oP7Jrkl4Tjw=; b=efe6XRnwq/uvIJ1gM59kovhyju+B5DKfl0rS6VAg1+sklwypWEQ6m/z5sjHAtV7qHp Dyop6AxNDnbXesTlDImFB5RPkjFjRDaf/MFdAZ3htvnPEGpXH5sDt4W/0y/CuSt/k2Pr bf8kUiygHbrZuTeglMU0wqCNmT8R0+PjXSMVjJMXh2S5KyzAPEqZPy0INhnpcsXjCW5M O+PWoHjvKGQNEsPEILTvIA1wM/ThQHSUT8v5NpY0v7aU4zAXkRfOIShO1CXH+2nli+OV nUWkPvFQPrQk13s9+0XPqtE9AAripAif7wcOlWfpBqCE/2hxcIaAWfYqrfKtzsb1nD+s UL5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WvMRplOf; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl7-20020a17090b120700b0023d4ab4c5d9si3863462pjb.93.2023.03.24.02.49.21; Fri, 24 Mar 2023 02:49:33 -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=@kernel.org header.s=k20201202 header.b=WvMRplOf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbjCXJss (ORCPT + 99 others); Fri, 24 Mar 2023 05:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjCXJsr (ORCPT ); Fri, 24 Mar 2023 05:48:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E1D35A7; Fri, 24 Mar 2023 02:48:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 84808B81DEB; Fri, 24 Mar 2023 09:48:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D1E5C433D2; Fri, 24 Mar 2023 09:48:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679651324; bh=mkHVp7d64S5bJINGS2EiLvsmAoZ0Dtzmx168JV4/2V8=; h=From:To:Cc:Subject:Date:From; b=WvMRplOfo5on0g6CSuAiAee4vS68axpPZ+p8m2TOvgY8uZal+vU1S8FKpl6X3RBOP mtgbD5tk+4KnO7kdTVvHRGi3LQrSWnrTr9fqzrVxV/fkQVu1lOWDKS7VRTLfpDzywx 2B3lNVH7TNfZJ8F8pZfM7TVeRdeOCHjxolTPzB7njh5YASw8u7H6+SJ30NEAS4THl1 txqHxeAuizJ+1dMoWMaTjZM0a42fAhd4o3zBHkl5A23eeWTpL+uQhOzL7ZHHkuiDoF WYJGYyfYzE76nnEO0TJSiiqOzNYb33EW9jl+lIbr7wSBfF8+eQYUBjm3T1lQ7nKza7 vqt8EbdKHBKQw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pfe2N-0005KV-Ev; Fri, 24 Mar 2023 10:48:43 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] arm64: dts: qcom: sc8280xp-x13s: enable alternate touchpad Date: Fri, 24 Mar 2023 10:47:44 +0100 Message-Id: <20230324094744.20448-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 Enable both touchpad nodes in the devictree and let the HID driver determine which one is actually populated (by attempting to read from each i2c address). Ideally this would not be needed and the boot firmware should instead enable only the node for the populated touchpad, but this is unlikely to ever be realised for the X13s. Note that the pin configuration must currently be moved to the parent i2c-bus node even though only one of these nodes will ever be successfully probed on a specific device (e.g. to allow them to be probed in parallel). Signed-off-by: Johan Hovold --- .../boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 6addc91d7c74..d7de7cb22d75 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -641,7 +641,7 @@ &i2c21 { clock-frequency = <400000>; pinctrl-names = "default"; - pinctrl-0 = <&i2c21_default>; + pinctrl-0 = <&i2c21_default>, <&tpad_default>; status = "okay"; @@ -654,12 +654,7 @@ touchpad@15 { vdd-supply = <&vreg_misc_3p3>; vddl-supply = <&vreg_s10b>; - pinctrl-names = "default"; - pinctrl-0 = <&tpad_default>; - wakeup-source; - - status = "disabled"; }; touchpad@2c { @@ -671,9 +666,6 @@ touchpad@2c { vdd-supply = <&vreg_misc_3p3>; vddl-supply = <&vreg_s10b>; - pinctrl-names = "default"; - pinctrl-0 = <&tpad_default>; - wakeup-source; }; -- 2.39.2