From patchwork Fri Aug 5 09:23:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 595876 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E997C00140 for ; Fri, 5 Aug 2022 09:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237539AbiHEJX1 (ORCPT ); Fri, 5 Aug 2022 05:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240459AbiHEJXY (ORCPT ); Fri, 5 Aug 2022 05:23:24 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A866E78206; Fri, 5 Aug 2022 02:23:23 -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 sin.source.kernel.org (Postfix) with ESMTPS id E1B3DCE299E; Fri, 5 Aug 2022 09:23:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCBCDC43152; Fri, 5 Aug 2022 09:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659691400; bh=+jrbsnZp5g5cBhtVRPraJopq2jNO8OVSWOuAvexfeLU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s/ouyJvqUbiHSXDG0HOoHHd3m1yvVPWYPGk+sT2dmNu9lK17XcWI7rHwz0nFNDxMZ NkTTOzOL+jHZX0U7hPtWVU465wj1KtRNpE+qYJzibGAZoLTkTOFL0mQHQ1NPjrD0+x CQ75aT+yXo95tWi/F3ZeEXhb2YFF7fnyDSIiS+LY6oJtEXAO+y7KrI9aNoxg01p8xb E+3pJx2/CTDkFRmarU3Kcxp6oT/+ipYYkrfHxI0SudAHPweFvQR1WYyYwHz5cFw+/d 9AtOm5yPYc6zVP5UprYwUA+Yj81JtQAyxB/HXxctDKD5J6+L0FhL8a7Gcs9UnXKZMk tOSivNbh+yyBA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oJtYW-0001JR-9G; Fri, 05 Aug 2022 11:23:44 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 7/7] arm64: dts: qcom: sc8280xp-lenovo-thinkpad-x13s: add alternate touchpad Date: Fri, 5 Aug 2022 11:23:17 +0200 Message-Id: <20220805092317.4985-8-johan+linaro@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220805092317.4985-1-johan+linaro@kernel.org> References: <20220805092317.4985-1-johan+linaro@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for the alternate (second-source) touchpad found on some X13s laptops. Note that alternate touchpad is kept disabled for now. The boot firmware should determine which device is actually populated and enable only the corresponding node. Signed-off-by: Johan Hovold --- .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 1ca72f6ba55a..bdeb2d05aaa1 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -211,6 +211,22 @@ &qup2_i2c5 { status = "okay"; + touchpad@15 { + compatible = "hid-over-i2c"; + reg = <0x15>; + + hid-descr-addr = <0x1>; + interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <&vreg_misc_3p3>; + + pinctrl-names = "default"; + pinctrl-0 = <&tpad_default>; + + wakeup-source; + + status = "disabled"; + }; + touchpad@2c { compatible = "hid-over-i2c"; reg = <0x2c>;