From nobody Sat Oct 4 19:15:49 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8A0192F49F0; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; cv=none; b=pHhLjGu/mkfQSeWW2ktWxsEubrZQlNhAlDlcUALGIlAq6qc46kA6KYQO1Mqsxhc58cBg08XSVGdJbaHYjNy8tk8YfE9eX9zLaWJ8RkhPn1u5xSKhyiS6QxFcXtiemW1ycz5kY9Afgcudj9vPkbVu/sTejX+KcMdrQ/7OvfppPvg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; c=relaxed/simple; bh=5whLMpPXnChjOuPWhWWpR+lMWG7khfLx4YWLL4J+Wzg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DwEQK74qPMfWWN/UAOWYivZxR9PQzvOgWguB6fx4yBF+WL4A8cQGaxkMdXGi1jWBXzJ8jb3JpOxW7YwQwHWNeFLu5YKBrQXdF+/9w2WK6U5O8S98hvvNgtXJBjYmdM6j/FbIkuaWr7d+cftE9q5tb0iD5751H7VoKfdpt6/Qs8Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tpw3X7p1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tpw3X7p1" Received: by smtp.kernel.org (Postfix) with ESMTPS id 320F9C4CEEB; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755078830; bh=5whLMpPXnChjOuPWhWWpR+lMWG7khfLx4YWLL4J+Wzg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tpw3X7p1c42oKJDTGdTcWbbw2q8YXPQFHW1s71kCnQmYc4rJgN+CsvJUZUw0hAi6M MaUGipDI2Rjql83fIRQDL9oybV2vaffMHbGd+I6W6y2yn20Zy0ZXOE5Vuoq2uZowrI CG8TrdSe+lPAy324oYVbEExJwDXk4lm3nefKm7HYaUH2zImUWapyFH/mVmaTMzic63 jVjM46I5gLyRvmq3nZrmw6H5OQeuyIcIc1fzFXAiNEIJxgtTUdXsc8QpqBy+SJhIpm lCWZdSaPnQ/c5v7WtSKI5YuHyBevr8na/pSzwfBRD3uuDhXHt0saBfUWJFikMJeKuZ zN9QsA7gotm3A== 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 27FC6C87FCF; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) From: Janne Grunau via B4 Relay Date: Wed, 13 Aug 2025 11:53:33 +0200 Subject: [PATCH 1/5] arm64: dts: apple: t8103-j457: Fix PCIe ethernet iommu-map 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: <20250813-apple-dt-sync-6-17-v1-1-209f15d10aa0@jannau.net> References: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@jannau.net> In-Reply-To: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@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=1645; i=j@jannau.net; s=yk2024; h=from:subject:message-id; bh=QgvjbU2+ige4nQSRScXv7jFxB1PnyJOY3TFJi0m6MY4=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhow5CWv6+d6q8iq036ssZ9k4a2bJc/YEiR+rncWEAkSZp gWaKkp0lLIwiHExyIopsiRpv+xgWF2jGFP7IAxmDisTyBAGLk4BmMj/n4wMv71Pm6wznqqQ9mvb XdEah0w9419y0ctvufp4tH5hWPGqgJFhZ8FUhjc1l4wWtbzyUHm0Pv7yUr2OiAte+2/dCN/zWOw PEwA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 X-Endpoint-Received: by B4 Relay for j@jannau.net/yk2024 with auth_id=264 X-Original-From: Janne Grunau Reply-To: j@jannau.net From: Janne Grunau PCIe `port01` of t8103-j457 (iMac, M1, 2 USB-C ports, 2021) is unused and disabled. Linux' PCI subsystem assigns the ethernet nic from `port02` to bus 02. This results into assigning `pcie0_dart_1` from the disabled port as iommu. The `pcie0_dart_1` instance is disabled and probably fused off (it is on the M2 Pro Mac mini which has a disabled PCIe port as well). Without iommu the ethernet nic is not expected work. Adjusts the "bus-range" and the PCIe devices "reg" property to PCI subsystem's bus number. Fixes: 7c77ab91b33d ("arm64: dts: apple: Add missing M1 (t8103) devices") Signed-off-by: Janne Grunau Reviewed-by: Neal Gompa Reviewed-by: Sven Peter --- arch/arm64/boot/dts/apple/t8103-j457.dts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t8103-j457.dts b/arch/arm64/boot/dts= /apple/t8103-j457.dts index 152f95fd49a2118093396838fbd8b6bd1b518f81..7089ccf3ce55661f3f83810496d= aed40c8199189 100644 --- a/arch/arm64/boot/dts/apple/t8103-j457.dts +++ b/arch/arm64/boot/dts/apple/t8103-j457.dts @@ -21,6 +21,14 @@ aliases { }; }; =20 +/* + * Adjust pcie0's iommu-map to account for the disabled port01. + */ +&pcie0 { + iommu-map =3D <0x100 &pcie0_dart_0 1 1>, + <0x200 &pcie0_dart_2 1 1>; +}; + &bluetooth0 { brcm,board-type =3D "apple,santorini"; }; @@ -36,10 +44,10 @@ &wifi0 { */ =20 &port02 { - bus-range =3D <3 3>; + bus-range =3D <2 2>; status =3D "okay"; ethernet0: ethernet@0,0 { - reg =3D <0x30000 0x0 0x0 0x0 0x0>; + reg =3D <0x20000 0x0 0x0 0x0 0x0>; /* To be filled by the loader */ local-mac-address =3D [00 10 18 00 00 00]; }; --=20 2.50.1 From nobody Sat Oct 4 19:15:49 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A593D2FD1DD; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; cv=none; b=KEC2qPBUsAvjKEIw7/rVXj/rezrVL/091MY/jmGV+KVwCinDh2ntAGpEAjc8l89VzLJuAxeIcUctW1N0Zh7DZOdhVtv66v95xN06Drr4y/K9js0lCxg5hW1k08Uuidkeb8ffItjaH/PZh/m1JFrGcqkqk0FL4DuGtZ8VJMsOH/M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; c=relaxed/simple; bh=h7b0Eg4uN7JXP4JlRT6JygCnqQqOrX+rBXUSG6mR1rk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b0lD2gC/D9LSCXXkl4T37LR8jrhHDOG11hHS78pImbK8oDSRcXNkg9ulrAWcQTSD8j6zIphJiHbglj979+e59GhZ7l2wF5JCpq+imiQYMXA2pWada6F3MZhiKqDBfkDP9cW4CSjtwensZtZzoqFneqGPVJr3ojyDp5DFjJrCIeQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bF+aICab; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bF+aICab" Received: by smtp.kernel.org (Postfix) with ESMTPS id 40B2CC4CEF6; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755078830; bh=h7b0Eg4uN7JXP4JlRT6JygCnqQqOrX+rBXUSG6mR1rk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bF+aICab99br/2eSZXb5dI/VAW3Y3cguV73+PpjXSzF3qSYLc7c7GSjoJvzdvXakg 7ktPI7kxNUOUE9+gHhzczgdo9d0t5k6UO+5iZzhbngCb82+3e7DEy3HzjTPdjcPjCB vGgCDzgC/duWDaz9HeXo3qIuPWYH1l3hnTpdcm23rwXBEt7Kfshd1D9JhklaSieKAJ i7i8ZGw5J91DpkVxMFD0V0ZeRieATfFPUQ1EglBWqzEHBt0YxxAQD2km7h309n3nBB KnXBq/de3UoCJJhkQSRSOgY3KckNsNmGNhUpf/u9D06JvbMK1PHcShI+K5sOcUFcBf JQG/eZOkHgeOQ== 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 37CBDCA0EE0; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) From: Janne Grunau via B4 Relay Date: Wed, 13 Aug 2025 11:53:34 +0200 Subject: [PATCH 2/5] arm64: dts: apple: t600x: Comple WiFi properties 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: <20250813-apple-dt-sync-6-17-v1-2-209f15d10aa0@jannau.net> References: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@jannau.net> In-Reply-To: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@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=4966; i=j@jannau.net; s=yk2024; h=from:subject:message-id; bh=SrTiUajMl8doOD8Fc18xDAuFz8wdUpSfSiCRbDLpSoM=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhow5CWsuf9/3qkP3e+79V9JrgqMNY81+B+Q8P52Y/i3ow 5fP5mt2d5SyMIhxMciKKbIkab/sYFhdoxhT+yAMZg4rE8gQBi5OAZiIbRDD/xQdn6CGMzPl5fmu V8dZysW+39Ty4NIM553Gl4Lu/LKx/8Lwv2DqjwRLHf8yfcNpfFcNtPOlfWclCTi8+ZzgI3PuyFo bXgA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 X-Endpoint-Received: by B4 Relay for j@jannau.net/yk2024 with auth_id=264 X-Original-From: Janne Grunau Reply-To: j@jannau.net From: Hector Martin Add compatible and antenna-sku properties to the shared node and brcm,board-type property to individuall board device trees. module and antenna properties Signed-off-by: Hector Martin Signed-off-by: Janne Grunau Reviewed-by: Neal Gompa Reviewed-by: Sven Peter --- arch/arm64/boot/dts/apple/t6000-j314s.dts | 4 ++++ arch/arm64/boot/dts/apple/t6000-j316s.dts | 4 ++++ arch/arm64/boot/dts/apple/t6001-j314c.dts | 4 ++++ arch/arm64/boot/dts/apple/t6001-j316c.dts | 4 ++++ arch/arm64/boot/dts/apple/t6001-j375c.dts | 4 ++++ arch/arm64/boot/dts/apple/t6002-j375d.dts | 4 ++++ arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 2 ++ arch/arm64/boot/dts/apple/t600x-j375.dtsi | 2 ++ 8 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6000-j314s.dts b/arch/arm64/boot/dt= s/apple/t6000-j314s.dts index c9e192848fe3f9f91c3c305e169b949a45e7f7e3..ac35870ca129ce353b04296800b= 197bf684d0bd7 100644 --- a/arch/arm64/boot/dts/apple/t6000-j314s.dts +++ b/arch/arm64/boot/dts/apple/t6000-j314s.dts @@ -16,3 +16,7 @@ / { compatible =3D "apple,j314s", "apple,t6000", "apple,arm-platform"; model =3D "Apple MacBook Pro (14-inch, M1 Pro, 2021)"; }; + +&wifi0 { + brcm,board-type =3D "apple,maldives"; +}; diff --git a/arch/arm64/boot/dts/apple/t6000-j316s.dts b/arch/arm64/boot/dt= s/apple/t6000-j316s.dts index ff1803ce23001c7817a336456bed626adc3931e3..77d6d8c14d741e9b6a0dc44f764= ea54f966e0d59 100644 --- a/arch/arm64/boot/dts/apple/t6000-j316s.dts +++ b/arch/arm64/boot/dts/apple/t6000-j316s.dts @@ -16,3 +16,7 @@ / { compatible =3D "apple,j316s", "apple,t6000", "apple,arm-platform"; model =3D "Apple MacBook Pro (16-inch, M1 Pro, 2021)"; }; + +&wifi0 { + brcm,board-type =3D "apple,madagascar"; +}; diff --git a/arch/arm64/boot/dts/apple/t6001-j314c.dts b/arch/arm64/boot/dt= s/apple/t6001-j314c.dts index 1761d15b98c12f9f6a19798e10d0544805538397..0a5655792a8f1cb6d0029bf9f96= 7aa74cf6c01f7 100644 --- a/arch/arm64/boot/dts/apple/t6001-j314c.dts +++ b/arch/arm64/boot/dts/apple/t6001-j314c.dts @@ -16,3 +16,7 @@ / { compatible =3D "apple,j314c", "apple,t6001", "apple,arm-platform"; model =3D "Apple MacBook Pro (14-inch, M1 Max, 2021)"; }; + +&wifi0 { + brcm,board-type =3D "apple,maldives"; +}; diff --git a/arch/arm64/boot/dts/apple/t6001-j316c.dts b/arch/arm64/boot/dt= s/apple/t6001-j316c.dts index 750e9beeffc0aa87f1dcac1b57dddf78184ddd47..9c215531ea543e9afe8c131f7c8= dc68cfaae666c 100644 --- a/arch/arm64/boot/dts/apple/t6001-j316c.dts +++ b/arch/arm64/boot/dts/apple/t6001-j316c.dts @@ -16,3 +16,7 @@ / { compatible =3D "apple,j316c", "apple,t6001", "apple,arm-platform"; model =3D "Apple MacBook Pro (16-inch, M1 Max, 2021)"; }; + +&wifi0 { + brcm,board-type =3D "apple,madagascar"; +}; diff --git a/arch/arm64/boot/dts/apple/t6001-j375c.dts b/arch/arm64/boot/dt= s/apple/t6001-j375c.dts index 62ea437b58b25ca649e20b1072b4d835bbc17d3a..88ca2037556cec4307d27bba024= 4d7ba7f45b184 100644 --- a/arch/arm64/boot/dts/apple/t6001-j375c.dts +++ b/arch/arm64/boot/dts/apple/t6001-j375c.dts @@ -16,3 +16,7 @@ / { compatible =3D "apple,j375c", "apple,t6001", "apple,arm-platform"; model =3D "Apple Mac Studio (M1 Max, 2022)"; }; + +&wifi0 { + brcm,board-type =3D "apple,okinawa"; +}; diff --git a/arch/arm64/boot/dts/apple/t6002-j375d.dts b/arch/arm64/boot/dt= s/apple/t6002-j375d.dts index 3365429bdc8be90b63c8051822243d897854ab27..f56d13b37eaff1c3c14815575a7= 1024661669296 100644 --- a/arch/arm64/boot/dts/apple/t6002-j375d.dts +++ b/arch/arm64/boot/dts/apple/t6002-j375d.dts @@ -38,6 +38,10 @@ hpm5: usb-pd@3a { }; }; =20 +&wifi0 { + brcm,board-type =3D "apple,okinawa"; +}; + /* delete unused always-on power-domains on die 1 */ =20 /delete-node/ &ps_atc2_usb_aon_die1; diff --git a/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi b/arch/arm64/bo= ot/dts/apple/t600x-j314-j316.dtsi index 22ebc78e120bf8f0f71fd532e9dce4dcd117bbc6..b699672a5543c1c172f9a788d36= 287c0b09051e1 100644 --- a/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi @@ -99,9 +99,11 @@ &port00 { /* WLAN */ 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"; }; }; =20 diff --git a/arch/arm64/boot/dts/apple/t600x-j375.dtsi b/arch/arm64/boot/dt= s/apple/t600x-j375.dtsi index d5b985ad567936111ee5cccc9ca9fc23d01d9edf..95560bf3798bfebe133afafba67= 4005a3e62ddcc 100644 --- a/arch/arm64/boot/dts/apple/t600x-j375.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-j375.dtsi @@ -84,9 +84,11 @@ &port00 { /* WLAN */ 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"; }; }; =20 --=20 2.50.1 From nobody Sat Oct 4 19:15:49 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A59F92FDC21; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; cv=none; b=rgUTnNV8J55Po1FLP9OQuZekMSQsiJ9bB3LZEjaYf2yH7ZS7iN4THBQq0Bzc1pK7OgFOp1nIWMqKwCfkeQzD9Lny62skcYtpWfo4reF2DMpiQeil3hvbSbKxTH2aGQgLIGFciphUvl9WtbybPCkQo70dU4uB1JRAhMqLe1gMd3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; c=relaxed/simple; bh=Ha5dEuqV8NyStkOm/Hu12jV5CVCm/XkYT4uR220+Lss=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d9pPpwPYUfxIRZcysMJ+uRFwBQmbTdl0wSsMW1lkeSyHfkMo6+texGDAEWViPPQrK1PaG6cHZcBvHjjzyey6hVT29BgFptnvVmkPdZScqAh2pEB791rr3IfY6BeH8T0VXIoS5TW7CA0WTKpj89Gz2rybbrO17C3mJWFKv1m670U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M67J4EER; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M67J4EER" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4E650C4CEFD; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755078830; bh=Ha5dEuqV8NyStkOm/Hu12jV5CVCm/XkYT4uR220+Lss=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=M67J4EERGcUplYJuGDjL9tQgqb74vyC5oU4EvnobEEgKyg1qGffMQ0Pqrv+/dALKm CF46C9aTvB/EqBATFcA9LM0s2+cSdFLGZwN15jRAMZWVKAUxU/833cTGparhhVUglY ZqOpIPEbxjHGh4OSe8SkTVTdCXaRjUX6ZTyeDp2XDkYnvTg/nwe0kP2dP7gD2XuC5z qgnuZp+xIDOfaYV3YOGtp/kME275f5cW/bdrMtjBKNKfBTFSZXfTSV9XOp03VAlEIh UAapdOkQryyXc63CAPCBPMl2hx2MSf/1BbVeJpwPXEIc4pteV27su+/TbA4Fetw53F 9ak0knWU+vxSg== 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 45E30CA0EE6; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) From: Janne Grunau via B4 Relay Date: Wed, 13 Aug 2025 11:53:35 +0200 Subject: [PATCH 3/5] arm64: dts: apple: t600x: Add bluetooth device nodes 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: <20250813-apple-dt-sync-6-17-v1-3-209f15d10aa0@jannau.net> References: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@jannau.net> In-Reply-To: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@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=5002; i=j@jannau.net; s=yk2024; h=from:subject:message-id; bh=C2YwY38W49BVPlqekZccmVQQ104q7sB0ZkEUHkDIXu8=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhow5CWuYtHo0f/1vSt+eLWglGlpdeSL2geTTZU0lMgohR ydJTjrXUcrCIMbFICumyJKk/bKDYXWNYkztgzCYOaxMIEMYuDgFYCJyoowMF9nPxilazN7M9eP+ lHzWNZv+W4TZrhPbOW1P6Jss5vw3sYwMd2Ifrxfc0bTw+5R2+Y1XRJ6sWSm6Ycq+qiuOT1f+ito XygIA X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 X-Endpoint-Received: by B4 Relay for j@jannau.net/yk2024 with auth_id=264 X-Original-From: Janne Grunau Reply-To: j@jannau.net From: Hector Martin Add bluetooth PCIe device nodes to specify per device brcm,board-type and provide the bootloader filled "local-bd-address" and calibration data. Signed-off-by: Hector Martin Signed-off-by: Janne Grunau Reviewed-by: Neal Gompa Reviewed-by: Sven Peter --- arch/arm64/boot/dts/apple/t6000-j314s.dts | 4 ++++ arch/arm64/boot/dts/apple/t6000-j316s.dts | 4 ++++ arch/arm64/boot/dts/apple/t6001-j314c.dts | 4 ++++ arch/arm64/boot/dts/apple/t6001-j316c.dts | 4 ++++ arch/arm64/boot/dts/apple/t6001-j375c.dts | 4 ++++ arch/arm64/boot/dts/apple/t6002-j375d.dts | 4 ++++ arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 8 ++++++++ arch/arm64/boot/dts/apple/t600x-j375.dtsi | 8 ++++++++ 8 files changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6000-j314s.dts b/arch/arm64/boot/dt= s/apple/t6000-j314s.dts index ac35870ca129ce353b04296800b197bf684d0bd7..1430b91ff1b152e5a23025d5377= f189601bb5a09 100644 --- a/arch/arm64/boot/dts/apple/t6000-j314s.dts +++ b/arch/arm64/boot/dts/apple/t6000-j314s.dts @@ -20,3 +20,7 @@ / { &wifi0 { brcm,board-type =3D "apple,maldives"; }; + +&bluetooth0 { + brcm,board-type =3D "apple,maldives"; +}; diff --git a/arch/arm64/boot/dts/apple/t6000-j316s.dts b/arch/arm64/boot/dt= s/apple/t6000-j316s.dts index 77d6d8c14d741e9b6a0dc44f764ea54f966e0d59..da0cbe7d96736b1491497243bdb= d1d13c9ab6c62 100644 --- a/arch/arm64/boot/dts/apple/t6000-j316s.dts +++ b/arch/arm64/boot/dts/apple/t6000-j316s.dts @@ -20,3 +20,7 @@ / { &wifi0 { brcm,board-type =3D "apple,madagascar"; }; + +&bluetooth0 { + brcm,board-type =3D "apple,madagascar"; +}; diff --git a/arch/arm64/boot/dts/apple/t6001-j314c.dts b/arch/arm64/boot/dt= s/apple/t6001-j314c.dts index 0a5655792a8f1cb6d0029bf9f967aa74cf6c01f7..c37097dcfdb304d8fcdf77de82e= 494e158d94c72 100644 --- a/arch/arm64/boot/dts/apple/t6001-j314c.dts +++ b/arch/arm64/boot/dts/apple/t6001-j314c.dts @@ -20,3 +20,7 @@ / { &wifi0 { brcm,board-type =3D "apple,maldives"; }; + +&bluetooth0 { + brcm,board-type =3D "apple,maldives"; +}; diff --git a/arch/arm64/boot/dts/apple/t6001-j316c.dts b/arch/arm64/boot/dt= s/apple/t6001-j316c.dts index 9c215531ea543e9afe8c131f7c8dc68cfaae666c..3bc6e0c3294cf98c89dddfb4891= eefbe8aae7020 100644 --- a/arch/arm64/boot/dts/apple/t6001-j316c.dts +++ b/arch/arm64/boot/dts/apple/t6001-j316c.dts @@ -20,3 +20,7 @@ / { &wifi0 { brcm,board-type =3D "apple,madagascar"; }; + +&bluetooth0 { + brcm,board-type =3D "apple,madagascar"; +}; diff --git a/arch/arm64/boot/dts/apple/t6001-j375c.dts b/arch/arm64/boot/dt= s/apple/t6001-j375c.dts index 88ca2037556cec4307d27bba0244d7ba7f45b184..2e7c23714d4d0007b7096d469f3= 2c689944c85ff 100644 --- a/arch/arm64/boot/dts/apple/t6001-j375c.dts +++ b/arch/arm64/boot/dts/apple/t6001-j375c.dts @@ -20,3 +20,7 @@ / { &wifi0 { brcm,board-type =3D "apple,okinawa"; }; + +&bluetooth0 { + brcm,board-type =3D "apple,okinawa"; +}; diff --git a/arch/arm64/boot/dts/apple/t6002-j375d.dts b/arch/arm64/boot/dt= s/apple/t6002-j375d.dts index f56d13b37eaff1c3c14815575a71024661669296..2b7f80119618ad1b497b67597c5= 5968585bd92a9 100644 --- a/arch/arm64/boot/dts/apple/t6002-j375d.dts +++ b/arch/arm64/boot/dts/apple/t6002-j375d.dts @@ -42,6 +42,10 @@ &wifi0 { brcm,board-type =3D "apple,okinawa"; }; =20 +&bluetooth0 { + brcm,board-type =3D "apple,okinawa"; +}; + /* delete unused always-on power-domains on die 1 */ =20 /delete-node/ &ps_atc2_usb_aon_die1; diff --git a/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi b/arch/arm64/bo= ot/dts/apple/t600x-j314-j316.dtsi index b699672a5543c1c172f9a788d36287c0b09051e1..c0aac59a6fae4f6f4b387483665= 349a8e2521c1e 100644 --- a/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi @@ -13,6 +13,7 @@ =20 / { aliases { + bluetooth0 =3D &bluetooth0; serial0 =3D &serial0; wifi0 =3D &wifi0; }; @@ -105,6 +106,13 @@ wifi0: wifi@0,0 { local-mac-address =3D [00 10 18 00 00 10]; apple,antenna-sku =3D "XX"; }; + + 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]; + }; }; =20 &port01 { diff --git a/arch/arm64/boot/dts/apple/t600x-j375.dtsi b/arch/arm64/boot/dt= s/apple/t600x-j375.dtsi index 95560bf3798bfebe133afafba674005a3e62ddcc..ed38acc0dfc36a1e30b1d44f1a8= dcee089e87232 100644 --- a/arch/arm64/boot/dts/apple/t600x-j375.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-j375.dtsi @@ -11,6 +11,7 @@ =20 / { aliases { + bluetooth0 =3D &bluetooth0; serial0 =3D &serial0; wifi0 =3D &wifi0; }; @@ -90,6 +91,13 @@ wifi0: wifi@0,0 { local-mac-address =3D [00 10 18 00 00 10]; apple,antenna-sku =3D "XX"; }; + + 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]; + }; }; =20 &port01 { --=20 2.50.1 From nobody Sat Oct 4 19:15:49 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A58CA2FD1D7; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; cv=none; b=uhuUugC/6iwbkKyi1ORu0gfriIbT05HQMkqqv8jOOtNqR4pPP6Ps556T5PdO6fizSpnI0N56bNg9ldoRQrgt0pI9m2Oj09gWfyG0iyhfgeTvMZxTRH6e4h0aBJjCdW9rKxfwMZQn+Jv2k7OTyNob2ZZWvE4pIMkHqER6v7C+Vho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078830; c=relaxed/simple; bh=bXEF+XbzbkFRg4UMKvH4CuPRLb5qyqp6nFkhHxPfZQU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h0WyUaZNw11SLwgJKZT4cyyjP+CxJodM4MklYRbeZPE94kxRbg8xPWGNujKUPjVlxHk0izyKcIAm0VK+WMK8lfAvviKHZ6HJzNxTPFtxetWIqTORFe4Sj1GsGfMeuiy2n6fQ4V3w5bdSnFNvNJ/3+06vYnhAIiE44PmPYn48SKw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZsKHchEL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZsKHchEL" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5C498C4CEFE; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755078830; bh=bXEF+XbzbkFRg4UMKvH4CuPRLb5qyqp6nFkhHxPfZQU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ZsKHchELJM+GSpNFEosBUzYgbBoRaqHap7E2S4wmUHOxLBCtc8yaWZpSUXPB83LG7 d2dCOePaJZaCCHu7ziwTON2SkrRvSSJIcfjl0dS9S5KYRpNyxk4PT5rt4dar9heWNV zDwrDyg9+o8a3pNKy3QHPbZEAyMcluvVCPTGrYZyNpqro7hsymjIq8lzXqgGPLRu6q xD1QaZ5F3JAM9GQoHor6+2TzqYkmf+zswDP9L9xFTbh71GgLBJBI6q3QYPHvzcAVTX P7qAe5VHNWyRZD5LoXi1cF+I89nffOloVGryvVBPeA0spuzSBm+ZuMjdQWihcaY2jN hKeE7L1Yx813g== 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 5440BCA0EE4; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) From: Janne Grunau via B4 Relay Date: Wed, 13 Aug 2025 11:53:36 +0200 Subject: [PATCH 4/5] dt-bindings: arm: apple: Add t8112 j415 compatible 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: <20250813-apple-dt-sync-6-17-v1-4-209f15d10aa0@jannau.net> References: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@jannau.net> In-Reply-To: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@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=1139; i=j@jannau.net; s=yk2024; h=from:subject:message-id; bh=ED8ImSi3bhM4BQ6UPMffQZiVekSQkM/K2v2LMg5RCM4=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhow5CWueyDyPnp71I75zK0s8092b1S9MzW/du7XgH2c94 x57F8/3HaUsDGJcDLJiiixJ2i87GFbXKMbUPgiDmcPKBDKEgYtTACYydzcjQ/99CyeGynWTK+Wl GwzOmS98cexHd2BnQZ0mY/jRxaqHTzAyPJgS7hbf/qiF48KP9F7xzZFCv5mFplxZ9D4m+fETtuC FXAA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 X-Endpoint-Received: by B4 Relay for j@jannau.net/yk2024 with auth_id=264 X-Original-From: Janne Grunau Reply-To: j@jannau.net From: Janne Grunau This adds the "apple,j415" (MacBook Air (15-inch, M2, 2023) to the apple,t8112 platform. Signed-off-by: Janne Grunau Reviewed-by: Neal Gompa Reviewed-by: Sven Peter --- Documentation/devicetree/bindings/arm/apple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentati= on/devicetree/bindings/arm/apple.yaml index da60e9de1cfbd0151e973c3aafba6d0880fc21aa..3b90b5df60507b245de387de104= a4e64f234139a 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -93,6 +93,7 @@ description: | =20 - MacBook Air (M2, 2022) - MacBook Pro (13-inch, M2, 2022) + - MacBook Pro (15-inch, M2, 2023) - Mac mini (M2, 2023) =20 And devices based on the "M1 Pro", "M1 Max" and "M1 Ultra" SoCs: @@ -279,6 +280,7 @@ properties: items: - enum: - apple,j413 # MacBook Air (M2, 2022) + - apple,j415 # MacBook Air (M2, 2023) - apple,j473 # Mac mini (M2, 2023) - apple,j493 # MacBook Pro (13-inch, M2, 2022) - const: apple,t8112 --=20 2.50.1 From nobody Sat Oct 4 19:15:49 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DE8F22FDC5C; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078831; cv=none; b=gfpqzOzElZE1GMk9SPi1ji64v0gnT6OHAOQOjKlTNeBYghGH2Hq1IqmJdPvHnr4Q2wRTxZtlebZ+cNP2h61X5OsV5w3aOi2ffuD7v5VZdi7nfBIchIXPW32JCrY1FMHwQbwUMz+BUSxRgi1/jUQP2LseMn2K+2MylO4icVq/7HA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755078831; c=relaxed/simple; bh=jPN0v70OwcYjIXRSNqY0ScIhvStfXtDwvU1h2Fu7Gd8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=suNQ1ekPvd6J7+0VKHslfg0cb69mPvTvpQTLHkxI7JnLZW9UQ9ESl1sBnaD780HNGHUU4k2RU6G6aiWfmznTPy/Eb23wSCa8LE28QIP/Lr+dnoknsK8G0Kuj871dNgie0l/WLEVgAF+mntvF3BCFg1erazkaMPpwtIK4DOGRYqg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AmFRHX0Y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AmFRHX0Y" Received: by smtp.kernel.org (Postfix) with ESMTPS id 67D49C113D0; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755078830; bh=jPN0v70OwcYjIXRSNqY0ScIhvStfXtDwvU1h2Fu7Gd8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AmFRHX0YbjrxGtdZCqlqhva6zJNa7kBM2325QEIGyAtRnvgSvqDxCqLIj17U2JFFY Z2zhYjAzJsPST6ghMzAxaLgz/TiK53DpD/iQG99XeDMItG71pYU4EZpRvylWvCXv1i n7CgJw07gabP8AelcYoS1BzalZ/ZQaLDV84zkX0Xl89sAROYl9pvDjjFnUrZb1zaAo BCr3gOlRRRNsmStmSMh4nxxswCQv3m7hjf9GqILXetXEgYKBup9zSu0xECJPWqI80t Zi0GKtP8t6GC6kWls0dx7aCWIMBdx884u/+8DT/7WYILm4COpKiuqjWhyavQ5MrSCO rouFkaTF6ekMQ== 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 60A3CCA0EE0; Wed, 13 Aug 2025 09:53:50 +0000 (UTC) From: Janne Grunau via B4 Relay Date: Wed, 13 Aug 2025 11:53:37 +0200 Subject: [PATCH 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: <20250813-apple-dt-sync-6-17-v1-5-209f15d10aa0@jannau.net> References: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@jannau.net> In-Reply-To: <20250813-apple-dt-sync-6-17-v1-0-209f15d10aa0@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=3232; i=j@jannau.net; s=yk2024; h=from:subject:message-id; bh=j/SpJUpMBqqMJF/E/m3nXQjyW/Z6PJx2/BxKhkTfoIQ=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhow5CWtKgtY+0FL7/rDyr1WzSVPh57e6DjMEJqlIz/m97 IvM9HsHO0pZGMS4GGTFFFmStF92MKyuUYypfRAGM4eVCWQIAxenAExkbzPDf5e47DdhOWoftrt3 vN5i/O3nw651SzO4DM6b62aUJM3sv8jI8PasQ8mfAIt2HQflkjXiFR4y3I+ya5d9vvHiIxuj8Sl bLgA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 X-Endpoint-Received: by B4 Relay for j@jannau.net/yk2024 with auth_id=264 X-Original-From: Janne Grunau Reply-To: j@jannau.net From: Janne Grunau 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. Signed-off-by: Janne Grunau Reviewed-by: Neal Gompa Reviewed-by: Sven Peter --- 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