From patchwork Fri Feb 24 10:20:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein via B4 Relay X-Patchwork-Id: 13151098 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 6F162C64ED8 for ; Fri, 24 Feb 2023 10:21:38 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yTWmdAlfAptDvjQW/3B76uwPd6ngyGblO0jIH9CoyxA=; b=zKbSGnw5DN/jSk M2CKIGt7/GcG01uMmAB0vdTd4MwMFbcMNPCmdD2jAignhaySjePAdwjg30+lEYSGR9lqQLZK2zDGY yQeAIBe2rn5jyHGhndifjVDHTsycO6GLpWSpy1CUKOLLW5TC+5Jp+vARfibgf+I8yvQFPmcOXWY4V xSTOIY1mMNW40w+/RJRWjgI4LzKd56G9Duik9lY8N724YrhbnzjC5564vXEkAxUei9BVFVbg22qNK qSGCBxB516O28p/c2xRE/qC3g1kli9N8/RyQVfGr0Z+N3up6WD/4aMaZUthZnNRiY8h1xGp/Zq3FG rCTUdd+UF3rZ4IE4Cw8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVVC0-001yXd-Jp; Fri, 24 Feb 2023 10:20:44 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVVBX-001yLa-6w for linux-arm-kernel@lists.infradead.org; Fri, 24 Feb 2023 10:20:17 +0000 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 C91B4B81C35; Fri, 24 Feb 2023 10:20:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 16548C433D2; Fri, 24 Feb 2023 10:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677234012; bh=xBlidCGHZUNt5nAF7dXDD2T7thNcl2l1qGkhq0zvEjc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=swKqWuzU1JiUgiaSapoJDakRf5mPBcakTP0gmqIw6AUbv+9n6ibx2SH79pjUKxNrQ BiZKkQvfyrKnMeK5768FEn7BIvNgrzzJzcNv6A8y20ec33Ngjb5qsYieseOrn/bbOC UKXIijGSw2SYkcFtrxuGt0bYXLa9yGbS0zyBV77FN5kMPrx7kMyP4+B2csQr7FFP4e 6BQm+lShfJMZiepDRNRXSJHSlvwxiOdeQxSXcxOkIbcLDo4Sfnsmdzt7WAe0T4JR8Q kIMZfcVbGbhqTTYGMKsnzEOJRX6QWtNyE3jFj9BHQMoriNmYdMiWjUmORUi0U7wvlA Sws/wfwYwbRRg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2565C678DB; Fri, 24 Feb 2023 10:20:11 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Fri, 24 Feb 2023 11:20:08 +0100 Subject: [PATCH RFC 3/4] arm64: dts: apple: t8103: Add touchbar bindings MIME-Version: 1.0 Message-Id: <20230223-z2-for-ml-v1-3-028f2b85dc15@gmail.com> References: <20230223-z2-for-ml-v1-0-028f2b85dc15@gmail.com> In-Reply-To: <20230223-z2-for-ml-v1-0-028f2b85dc15@gmail.com> To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , - , Henrik Rydberg Cc: linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sasha Finkelstein X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677234010; l=2182; i=fnkl.kernel@gmail.com; s=20230213; h=from:subject:message-id; bh=n1LEbnJGNHnfsCpIN9s17ImMS20Dap8uFST/5P947LI=; b=Z+MkwSkt7mmaoKRcS+hOzhrNIBUyg7rGRKE1Q6QyT8HRmCd/0mfzlyW5k8sACQITrZ5uyl2/f jbjdkjOq4GqB7VFI+IfxLDh2QXfjOG+yN3qg8/5YwX3qArspaR0+xXE X-Developer-Key: i=fnkl.kernel@gmail.com; a=ed25519; pk=7LFSAJtxIWAs9LzCIyX0sSvCZy2wQTyEIu1zch6o804= X-Endpoint-Received: by B4 Relay for fnkl.kernel@gmail.com/20230213 with auth_id=28 X-Original-From: Sasha Finkelstein X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230224_022015_585548_6E35A15E X-CRM114-Status: GOOD ( 11.46 ) 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: , Reply-To: fnkl.kernel@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sasha Finkelstein Adds device tree entries for the touchbar digitizer Signed-off-by: Sasha Finkelstein --- arch/arm64/boot/dts/apple/t8103-j293.dts | 20 ++++++++++++++++++++ arch/arm64/boot/dts/apple/t8103.dtsi | 12 ++++++++++++ 2 files changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8103-j293.dts b/arch/arm64/boot/dts/apple/t8103-j293.dts index 151074109a11..c369493b1c06 100644 --- a/arch/arm64/boot/dts/apple/t8103-j293.dts +++ b/arch/arm64/boot/dts/apple/t8103-j293.dts @@ -15,6 +15,9 @@ / { compatible = "apple,j293", "apple,t8103", "apple,arm-platform"; model = "Apple MacBook Pro (13-inch, M1, 2020)"; + aliases { + touchbar0 = &touchbar0; + }; }; &bluetooth0 { @@ -25,6 +28,23 @@ &wifi0 { brcm,board-type = "apple,honshu"; }; +&spi0 { + status = "okay"; + + touchbar0: touchbar@0 { + compatible = "apple,z2-touchscreen"; + reg = <0>; + spi-max-frequency = <11500000>; + reset-gpios = <&pinctrl_ap 139 0>; + cs-gpios = <&pinctrl_ap 109 0>; + interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>; + firmware-name = "apple/dfrmtfw-j293.bin"; + touchscreen-size-x = <23045>; + touchscreen-size-y = <640>; + apple,z2-device-name = "MacBookPro17,1 Touch Bar"; + }; +}; + /* * Remove unused PCIe ports and disable the associated DARTs. */ diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi index 9859219699f4..70d3183f72bf 100644 --- a/arch/arm64/boot/dts/apple/t8103.dtsi +++ b/arch/arm64/boot/dts/apple/t8103.dtsi @@ -432,6 +432,18 @@ i2c4: i2c@235020000 { status = "disabled"; /* only used in J293 */ }; + spi0: spi@235100000 { + compatible = "apple,t8103-spi", "apple,spi"; + reg = <0x2 0x35100000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + clocks = <&clk_200m>; + power-domains = <&ps_spi0>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; /* only used in J293 */ + }; + serial0: serial@235200000 { compatible = "apple,s5l-uart"; reg = <0x2 0x35200000 0x0 0x1000>;