From e324e799ddf56da2c3aea11b5c67020918e52b37 Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Sat, 14 Nov 2026 23:37:41 -0500 Subject: [PATCH 1/2] arm64: dts: apple: t6050-j716c: enable the Neural Engine The J716c (M5 Max) ANE is the J714s's: the ADT ane0 has the same registers, interrupts, clocks, PMGR words, DARTs and five DAPF ranges as t6050-peripherals.dtsi, and iBoot preloads the same 27.0 TEXT/DATA layout. Include t6050-j714s-ane.dtsi for the two firmware reservations the boot loader fills. ANE_SYS's parents are already on: FAB8_SOC as firmware-owned for the SEP, FAB9_SOC for the camera. Developed with Claude Code. Signed-off-by: Erik Bourget --- arch/arm64/boot/dts/apple/t6050-j716c.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-j716c.dts b/arch/arm64/boot/dts/apple/t6050-j716c.dts index 8fdea5242027b..3de646544c484 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716c.dts @@ -255,3 +255,10 @@ #include "t6050-j716c-sleep.dtsi" #include "t6050-j716c-sleep-full.dtsi" + +/* + * The Neural Engine, started only after the boot loader's preload hand-off. + * ANE_SYS sits behind FAB8_SOC (kept on for the SEP above) and FAB9_SOC (on for + * the camera). + */ +#include "t6050-j714s-ane.dtsi" From acb6bae3718f2e93bfafff7b6643ea6787e85ce9 Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Tue, 17 Nov 2026 15:27:36 -0500 Subject: [PATCH 2/2] arm64: dts: apple: t6050: name the ANE DART's DAPF window ane0_dart has a second register window, 0x509810000, 16 KiB: the ADT dart-ane0 lists it as the DART's DAPF instance. The binding requires reg-names with two windows, so CHECK_DTBS warned for every board that enables the ANE. Name the windows "dart" and "dapf". apple-dart parses a named DAPF window only when the node also has apple,dapf-ranges, which ane0_dart does not (the ANE driver programs its own DAPF records), so behaviour does not change. Also say in t6050-j714s-ane.dtsi that it serves the J716c too. Developed with Claude Code. Signed-off-by: Erik Bourget --- arch/arm64/boot/dts/apple/t6050-j714s-ane.dtsi | 9 +++++---- arch/arm64/boot/dts/apple/t6050-peripherals.dtsi | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6050-j714s-ane.dtsi b/arch/arm64/boot/dts/apple/t6050-j714s-ane.dtsi index 788acc71ead54..fcad9b25534bb 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s-ane.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-j714s-ane.dtsi @@ -1,9 +1,10 @@ // SPDX-License-Identifier: GPL-2.0+ OR MIT /* - * The J714s Neural Engine. iBoot preloads the personalized firmware (ADT ane0 - * segment-ranges, TEXT 0xc0000 and DATA 0x2ac000 bytes). The boot loader fills - * the two reservations from that boot's ADT, renames them to their physical - * addresses and enables them; until then the ANE driver leaves the engine off. + * The Neural Engine of the J714s and the J716c, which share its layout. iBoot + * preloads the personalized firmware (ADT ane0 segment-ranges, TEXT 0xc0000 and + * DATA 0x2ac000 bytes). The boot loader fills the two reservations from that + * boot's ADT, renames them to their physical addresses and enables them; until + * then the ANE driver leaves the engine off. */ / { diff --git a/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi b/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi index 488f3c3ee6d6e..f728a7e9ea57e 100644 --- a/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi @@ -3355,6 +3355,7 @@ compatible = "apple,t6050-dart", "apple,t8110-dart"; reg = <0x5 0x9800000 0x0 0xc000>, <0x5 0x9810000 0x0 0x4000>; + reg-names = "dart", "dapf"; interrupts = ; #iommu-cells = <1>; power-domains = <&ps_ane_sys>;