From 42cc92083f684f0327528ea289153a1a92272561 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 19 Nov 2026 22:35:36 +1100 Subject: [PATCH 1/2] arm64: dts: apple: t8112, t602x: alias the SEP on the M2 desktops The SEP node is disabled in t8112.dtsi and t602x-die0.dtsi on every board, laptops included. That is the warm-attach contract of apple_sep: on these SoCs the SEP is already running when Linux starts, and the driver enables the SEP node and sep_dart with a changeset at module load, after it has picked the SoC's profile and before the DART probes. The running M2 Air (J413) shows it: "SEP DART changeset applied", "SEP node enabled", then "ready ... 12 endpoints". Say so at the node, so the disabled status does not read as a missing enable. What a board must provide is the sep alias: m1n1 finds the SEP through it to add the sepfw region and the local-policy and iBoot manifests, and the warm registration refuses to attach without the manifests. The M2 laptops have it; the Mac mini (J473, J474s) and the Mac Studio M2 Max (J475c) have a SEP and a profile (T8112, T6020/T6021) but no alias, so the driver could never attach there (key store, Magic Keyboard Touch ID). Add it. These boards have no built-in sensor and leave the mesa node disabled. The M2 Ultra boards (J475d, J180d) get no alias: the driver has no T6022 profile, so it would only reserve memory for nothing. Signed-off-by: Ryan Murray --- arch/arm64/boot/dts/apple/t6020-j474s.dts | 4 ++++ arch/arm64/boot/dts/apple/t6021-j475c.dts | 4 ++++ arch/arm64/boot/dts/apple/t602x-die0.dtsi | 9 +++++++++ arch/arm64/boot/dts/apple/t8112-j473.dts | 1 + arch/arm64/boot/dts/apple/t8112.dtsi | 9 +++++++++ 5 files changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6020-j474s.dts b/arch/arm64/boot/dts/apple/t6020-j474s.dts index 3d2b4c3e0211b..7b80e06270ab5 100644 --- a/arch/arm64/boot/dts/apple/t6020-j474s.dts +++ b/arch/arm64/boot/dts/apple/t6020-j474s.dts @@ -21,6 +21,10 @@ / { compatible = "apple,j474s", "apple,t6020", "apple,arm-platform"; model = "Apple Mac mini (M2 Pro, 2023)"; + + aliases { + sep = &sep; + }; }; /* PCIe devices */ diff --git a/arch/arm64/boot/dts/apple/t6021-j475c.dts b/arch/arm64/boot/dts/apple/t6021-j475c.dts index c3fce206ab662..fa6ee51e9cf4b 100644 --- a/arch/arm64/boot/dts/apple/t6021-j475c.dts +++ b/arch/arm64/boot/dts/apple/t6021-j475c.dts @@ -15,6 +15,10 @@ / { compatible = "apple,j475c", "apple,t6021", "apple,arm-platform"; model = "Apple Mac Studio (M2 Max, 2023)"; + + aliases { + sep = &sep; + }; }; &wifi0 { diff --git a/arch/arm64/boot/dts/apple/t602x-die0.dtsi b/arch/arm64/boot/dts/apple/t602x-die0.dtsi index 828f6ac65c4a8..488afa4e9e574 100644 --- a/arch/arm64/boot/dts/apple/t602x-die0.dtsi +++ b/arch/arm64/boot/dts/apple/t602x-die0.dtsi @@ -722,6 +722,15 @@ status = "disabled"; }; + /* + * Disabled here on every board by design. The SEP is already + * running when Linux starts (warm attach: one shared-memory + * registration, no cold boot), so apple_sep enables this node + * and sep_dart with a changeset at module load, once it has + * picked this SoC's profile and before the DART probes. A + * board with the enclave only needs the sep alias, which m1n1 + * uses to add the sepfw region and the boot manifests. + */ sep: sep@396400000 { compatible = "apple,sep"; reg = <0x3 0x96400000 0x0 0x6C000>; diff --git a/arch/arm64/boot/dts/apple/t8112-j473.dts b/arch/arm64/boot/dts/apple/t8112-j473.dts index 84ecd65613567..eeda54799f63f 100644 --- a/arch/arm64/boot/dts/apple/t8112-j473.dts +++ b/arch/arm64/boot/dts/apple/t8112-j473.dts @@ -24,6 +24,7 @@ ethernet0 = ðernet0; rtc0 = &smc_rtc; rtc1 = &pmu_rtc; + sep = &sep; wifi0 = &wifi0; }; }; diff --git a/arch/arm64/boot/dts/apple/t8112.dtsi b/arch/arm64/boot/dts/apple/t8112.dtsi index d6787eff621bb..a645b90092883 100644 --- a/arch/arm64/boot/dts/apple/t8112.dtsi +++ b/arch/arm64/boot/dts/apple/t8112.dtsi @@ -1847,6 +1847,15 @@ status = "disabled"; }; + /* + * Disabled here on every board by design. The SEP is already + * running when Linux starts (warm attach: one shared-memory + * registration, no cold boot), so apple_sep enables this node + * and sep_dart with a changeset at module load, once it has + * picked this SoC's profile and before the DART probes. A + * board with the enclave only needs the sep alias, which m1n1 + * uses to add the sepfw region and the boot manifests. + */ sep: sep@25e400000 { compatible = "apple,sep"; reg = <0x2 0x5e400000 0x0 0x6C000>; From 451b707c93a2d5be73f3549c1386c6c10c8e5848 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Mon, 23 Nov 2026 10:50:44 +1100 Subject: [PATCH 2/2] arm64: dts: apple: t602x: leave the SEP alias off J474s and J475c for now With the alias the boot loader reserves sepfw and publishes the boot manifests, and apple_sep then makes the SEP's one-shot warm registration. That has a hardware row on the Mac mini (J473) only; J474s and J475c have never booted with it, and a registration cannot be taken back within a boot. Drop their aliases until each has a row; they follow separately. Also name the boot loader in the SEP node comments rather than m1n1. Signed-off-by: Ryan Murray --- arch/arm64/boot/dts/apple/t6020-j474s.dts | 4 ---- arch/arm64/boot/dts/apple/t6021-j475c.dts | 4 ---- arch/arm64/boot/dts/apple/t602x-die0.dtsi | 5 +++-- arch/arm64/boot/dts/apple/t8112.dtsi | 5 +++-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6020-j474s.dts b/arch/arm64/boot/dts/apple/t6020-j474s.dts index 7b80e06270ab5..3d2b4c3e0211b 100644 --- a/arch/arm64/boot/dts/apple/t6020-j474s.dts +++ b/arch/arm64/boot/dts/apple/t6020-j474s.dts @@ -21,10 +21,6 @@ / { compatible = "apple,j474s", "apple,t6020", "apple,arm-platform"; model = "Apple Mac mini (M2 Pro, 2023)"; - - aliases { - sep = &sep; - }; }; /* PCIe devices */ diff --git a/arch/arm64/boot/dts/apple/t6021-j475c.dts b/arch/arm64/boot/dts/apple/t6021-j475c.dts index fa6ee51e9cf4b..c3fce206ab662 100644 --- a/arch/arm64/boot/dts/apple/t6021-j475c.dts +++ b/arch/arm64/boot/dts/apple/t6021-j475c.dts @@ -15,10 +15,6 @@ / { compatible = "apple,j475c", "apple,t6021", "apple,arm-platform"; model = "Apple Mac Studio (M2 Max, 2023)"; - - aliases { - sep = &sep; - }; }; &wifi0 { diff --git a/arch/arm64/boot/dts/apple/t602x-die0.dtsi b/arch/arm64/boot/dts/apple/t602x-die0.dtsi index 488afa4e9e574..7c1799131b46c 100644 --- a/arch/arm64/boot/dts/apple/t602x-die0.dtsi +++ b/arch/arm64/boot/dts/apple/t602x-die0.dtsi @@ -728,8 +728,9 @@ * registration, no cold boot), so apple_sep enables this node * and sep_dart with a changeset at module load, once it has * picked this SoC's profile and before the DART probes. A - * board with the enclave only needs the sep alias, which m1n1 - * uses to add the sepfw region and the boot manifests. + * board with the enclave only needs the sep alias, which the + * boot loader uses to add the sepfw region and the boot + * manifests. */ sep: sep@396400000 { compatible = "apple,sep"; diff --git a/arch/arm64/boot/dts/apple/t8112.dtsi b/arch/arm64/boot/dts/apple/t8112.dtsi index a645b90092883..1244444d470d5 100644 --- a/arch/arm64/boot/dts/apple/t8112.dtsi +++ b/arch/arm64/boot/dts/apple/t8112.dtsi @@ -1853,8 +1853,9 @@ * registration, no cold boot), so apple_sep enables this node * and sep_dart with a changeset at module load, once it has * picked this SoC's profile and before the DART probes. A - * board with the enclave only needs the sep alias, which m1n1 - * uses to add the sepfw region and the boot manifests. + * board with the enclave only needs the sep alias, which the + * boot loader uses to add the sepfw region and the boot + * manifests. */ sep: sep@25e400000 { compatible = "apple,sep";