From nobody Fri Oct 3 23:06:00 2025 Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CBA3248F58; Sat, 23 Aug 2025 09:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755942604; cv=none; b=MVlZLhmn90hByo47RB4a5PGiEqZkAp55Mp+N9/wHv0aOapoMGKebLVulIZ8ZyT7Et/ihMK1pT7Iqyc0RX7VuEXmw/K1Irvpn8iOHKeTXOhNFeEart7SCmKMxKsmUc7bqN7mDVKipkIwfVxwZ3lDjksL0Yt6or2PUbDGn+4cpOKg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755942604; c=relaxed/simple; bh=xEVrh3+WA2vAWDrkpWrh52y7/8LmQkfrJtSTPdvSQfY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MELvEqAxm+/68nv1xsL9G1zlLjVgeFB/nEDwDoPyKjhAmeVSNhqcceYRG0QUxt0RfR1ZX5x1gg7sh5a2YhwDr/PgsEGHWosDs6aFcDqTYvglr1eAHtfuUj9q14fI2GWn+PxWWGCLezNvdsyJux/6x9IPDascaJR29meZFolparo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net; spf=pass smtp.mailfrom=jannau.net; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b=uRzPndwZ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=J79o/LNy; arc=none smtp.client-ip=202.12.124.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jannau.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b="uRzPndwZ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="J79o/LNy" Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 242951D00094; Sat, 23 Aug 2025 05:50:02 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Sat, 23 Aug 2025 05:50:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jannau.net; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1755942601; x=1756029001; bh=FdaWPI1cu75bm+vy4q+AG8ToHjhIBdBDvqctNSZ0c9E=; b= uRzPndwZrsEJTyO7qkfN+2MV4g9idftti+42350iNiAVXL4iq9eGLCW1sbithB57 GCGnrMzxj2uoWHYYNn+T+jgfX/qgQBk4WRJTo8n70dxHY1HiDAGxb9ba4dD+MBvi uhu2AI79jjEpjc7wRPI8vo5KVJrGxjn4LC5G/Y6XwaAW6fnnPxkE+6dqLpuaBg8a nf6/egFp3vGUGxCrDPjInX0NLXiSpuR0iizCG+qusFKXvBHp1O+nnze2hNwMHu8I 1riQIqL+l4TCF5IWxuPOMuM39wBZRuBhmynCfRcojutE5MbVcBVdrx3ssPMcw33Z vMZl3RBMI2TdXLE9mtPAnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1755942601; x= 1756029001; bh=FdaWPI1cu75bm+vy4q+AG8ToHjhIBdBDvqctNSZ0c9E=; b=J 79o/LNyUfLaAFYXCsEoBUuSRU4Zgozl8uNHzC/0Jc+jZYuTaSsvdr+NBPZRUCJXP Igvl34vLb0A9ym417+2pe0mys1WB1qOfGwCINEJRIr86G9NIyGziGR0YlGLUPTGZ qH5u4dYRIMZLyqkVpJiPz69/IzWKZRH1P3OJt5oGzl/xU07tho4Z7ttBx8tqp8e3 WYP/Q4S92vLu3bTT8e18Ro9tGabdA8jiUKewjs1LyJcyN4wyYcLXWxfnjbJTKXBD XT3FB59nOo3LmfPIvXr9c9iHUFvl69rsmwf4m6OK/b2b+MUT4/SjrJaw7LKaMwJv Z5BCsusZZdQONgic4xAdw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduieeifedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflrghnnhgv ucfirhhunhgruhcuoehjsehjrghnnhgruhdrnhgvtheqnecuggftrfgrthhtvghrnhepfe ehheeileduffehteeihfdvtdelffdutdeludduiedutedvfeffheekhefgtedtnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhesjhgrnhhnrg hurdhnvghtpdhnsggprhgtphhtthhopedufedpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepuggvvhhitggvthhrvggvsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpth htohepkhgvthhtvghnihhssehophgvnhgsshgurdhorhhgpdhrtghpthhtoheprhhosghh sehkvghrnhgvlhdrohhrghdprhgtphhtthhopehkrhiikhdoughtsehkvghrnhgvlhdroh hrghdprhgtphhtthhopegtohhnohhrodgutheskhgvrhhnvghlrdhorhhgpdhrtghpthht oheprghsrghhiheslhhishhtshdrlhhinhhugidruggvvhdprhgtphhtthhopehlihhnuh igqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhn uhigqdgrrhhmqdhkvghrnhgvlheslhhishhtshdrihhnfhhrrgguvggrugdrohhrghdprh gtphhtthhopehmrghrtggrnhesmhgrrhgtrghnrdhsth X-ME-Proxy: Feedback-ID: i47b949f6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Aug 2025 05:50:01 -0400 (EDT) From: Janne Grunau Date: Sat, 23 Aug 2025 11:49:48 +0200 Subject: [PATCH v2 5/5] arm64: dts: apple: Add devicetreee for t8112-j415 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250823-apple-dt-sync-6-17-v2-5-6dc0daeb4786@jannau.net> References: <20250823-apple-dt-sync-6-17-v2-0-6dc0daeb4786@jannau.net> In-Reply-To: <20250823-apple-dt-sync-6-17-v2-0-6dc0daeb4786@jannau.net> To: Sven Peter , Alyssa Rosenzweig , Neal Gompa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Kettenis , Hector Martin Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Janne Grunau X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3317; i=j@jannau.net; s=yk2024; h=from:subject:message-id; bh=xEVrh3+WA2vAWDrkpWrh52y7/8LmQkfrJtSTPdvSQfY=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhoyVfTv1j3vGXq/dolp/KZBv9qXNx28fPJ23o1jno1rhF QZF/l1yHaUsDGJcDLJiiixJ2i87GFbXKMbUPgiDmcPKBDKEgYtTACbyIZyR4VrqSxXXqOAJIYrS e8pNt6jVLZCM2G1QvKKtNqRXp0F8GsNfEae98//M477DklzJ8eFui/jRo3mBx36qVXGZa/o0/GH hBgA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 The 15-inch M2 MacBook Air was released a year after the 13-inch one thus missed in initial submission of devicetrees for M2 based devices. It is currently a copy of t8112-j413 with edited identifiers but will eventually differ in a meaningful way. It has for example a different speaker configuration than the 13-inch model. Reviewed-by: Neal Gompa Reviewed-by: Sven Peter Signed-off-by: Janne Grunau --- arch/arm64/boot/dts/apple/Makefile | 1 + arch/arm64/boot/dts/apple/t8112-j415.dts | 80 ++++++++++++++++++++++++++++= ++++ 2 files changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple= /Makefile index 4f337bff36cdf51837ac7d50122692895026ce14..df4ba8ef6213c9f7e4ef02a50d7= 250008977cc71 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -80,5 +80,6 @@ dtb-$(CONFIG_ARCH_APPLE) +=3D t6001-j316c.dtb dtb-$(CONFIG_ARCH_APPLE) +=3D t6001-j375c.dtb dtb-$(CONFIG_ARCH_APPLE) +=3D t6002-j375d.dtb dtb-$(CONFIG_ARCH_APPLE) +=3D t8112-j413.dtb +dtb-$(CONFIG_ARCH_APPLE) +=3D t8112-j415.dtb dtb-$(CONFIG_ARCH_APPLE) +=3D t8112-j473.dtb dtb-$(CONFIG_ARCH_APPLE) +=3D t8112-j493.dtb diff --git a/arch/arm64/boot/dts/apple/t8112-j415.dts b/arch/arm64/boot/dts= /apple/t8112-j415.dts new file mode 100644 index 0000000000000000000000000000000000000000..b54e218e5384ca89155e4350d66= 80a28a531f408 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-j415.dts @@ -0,0 +1,80 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple MacBook Air (15-inch, M2, 2023) + * + * target-type: J415 + * + * Copyright The Asahi Linux Contributors + */ + +/dts-v1/; + +#include "t8112.dtsi" +#include "t8112-jxxx.dtsi" +#include + +/ { + compatible =3D "apple,j415", "apple,t8112", "apple,arm-platform"; + model =3D "Apple MacBook Air (15-inch, M2, 2023)"; + + aliases { + bluetooth0 =3D &bluetooth0; + wifi0 =3D &wifi0; + }; + + led-controller { + compatible =3D "pwm-leds"; + led-0 { + pwms =3D <&fpwm1 0 40000>; + label =3D "kbd_backlight"; + function =3D LED_FUNCTION_KBD_BACKLIGHT; + color =3D ; + max-brightness =3D <255>; + default-state =3D "keep"; + }; + }; +}; + +/* + * Force the bus number assignments so that we can declare some of the + * on-board devices and properties that are populated by the bootloader + * (such as MAC addresses). + */ +&port00 { + bus-range =3D <1 1>; + wifi0: wifi@0,0 { + compatible =3D "pci14e4,4433"; + reg =3D <0x10000 0x0 0x0 0x0 0x0>; + /* To be filled by the loader */ + local-mac-address =3D [00 10 18 00 00 10]; + apple,antenna-sku =3D "XX"; + brcm,board-type =3D "apple,snake"; + }; + + bluetooth0: bluetooth@0,1 { + compatible =3D "pci14e4,5f71"; + reg =3D <0x10100 0x0 0x0 0x0 0x0>; + /* To be filled by the loader */ + local-bd-address =3D [00 00 00 00 00 00]; + brcm,board-type =3D "apple,snake"; + }; +}; + +&i2c0 { + /* MagSafe port */ + hpm5: usb-pd@3a { + compatible =3D "apple,cd321x"; + reg =3D <0x3a>; + interrupt-parent =3D <&pinctrl_ap>; + interrupts =3D <8 IRQ_TYPE_LEVEL_LOW>; + interrupt-names =3D "irq"; + }; +}; + +&i2c4 { + status =3D "okay"; +}; + +&fpwm1 { + status =3D "okay"; +}; --=20 2.50.1