From bcf870bb5971643ee6ae511ed679cf3f713438d6 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Tue, 27 Oct 2026 22:04:33 +0100 Subject: [PATCH 1/3] dt-bindings: nvme: apple,nvme-ans: Add T8142 compatible T8142 (M5) ANS2 behaves like T8140: separate NVMe (non-secure alias) and NVMMU windows, post-M4 queue setup, three power domains. Allow apple,t8142-nvme-ans2 with apple,t8140-nvme-ans2 as fallback and apply the three-region reg rule to the T8140 family as well. Signed-off-by: Thomas Glanzmann --- Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml b/Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml index 85f0fd2b6fa1e..93388178e330e 100644 --- a/Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml +++ b/Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml @@ -26,6 +26,9 @@ properties: - items: - const: apple,t8140-nvme-ans2 - const: apple,t8132-nvme-ans2 + - items: + - const: apple,t8142-nvme-ans2 + - const: apple,t8140-nvme-ans2 - items: - enum: # Do not add additional SoC to this list. @@ -146,6 +149,7 @@ allOf: enum: - apple,t6041-nvme-ans2 - apple,t8132-nvme-ans2 + - apple,t8140-nvme-ans2 then: properties: reg: From 0dd9b105d76048a36bcac2eed279de1e20c3bfdd Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Tue, 27 Oct 2026 22:04:33 +0100 Subject: [PATCH 2/3] dt-bindings: iommu: apple,sart: Add T8142 compatible The T8142 (M5) SART is the coastguard SART with sart-version 3, the same layout as T6000. Signed-off-by: Thomas Glanzmann --- Documentation/devicetree/bindings/iommu/apple,sart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/apple,sart.yaml b/Documentation/devicetree/bindings/iommu/apple,sart.yaml index a75b4c8f05d5b..47fb67a6906df 100644 --- a/Documentation/devicetree/bindings/iommu/apple,sart.yaml +++ b/Documentation/devicetree/bindings/iommu/apple,sart.yaml @@ -37,6 +37,7 @@ properties: - apple,t8122-sart - apple,t8132-sart - apple,t8140-sart + - apple,t8142-sart - const: apple,t6000-sart - enum: - apple,t6000-sart From 44e3ab566eb6fa281094bfece4e92d9db4748273 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Sun, 1 Nov 2026 21:19:01 +0100 Subject: [PATCH 3/3] nvme: apple: add T8142 (M5) The J813 (MacBook Air 13-inch, M5) ANS2 is laid out like T8140's: LSQ NVMMU, separate NVMMU, IOQ registers, 64-deep queues and broken FUA. As on every post-M4 controller the final shutdown sends SHN. aura (the J813 boot loader) leaves the controller and its RTKit session running for Linux to adopt. Signed-off-by: Thomas Glanzmann --- drivers/nvme/host/apple.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/nvme/host/apple.c b/drivers/nvme/host/apple.c index 05f73eb1dd5e9..e4c9a1ccd38a0 100644 --- a/drivers/nvme/host/apple.c +++ b/drivers/nvme/host/apple.c @@ -2728,6 +2728,18 @@ static const struct apple_nvme_hw apple_nvme_t8140_hw = { .quirks = NVME_QUIRK_BROKEN_FUA, }; +/* + * T8142 (M5) is laid out like T8140; the final shutdown sends SHN, as on + * every post-M4 controller. + */ +static const struct apple_nvme_hw apple_nvme_t8142_hw = { + .has_lsq_nvmmu = true, + .has_separate_nvmmu = true, + .needs_ioq_registers = true, + .max_queue_depth = 64, + .quirks = NVME_QUIRK_BROKEN_FUA, +}; + /* * T6040 (M4 Pro) with the 26.x ANS firmware: the T8132 controller, but the * "nvme" register block ends at 0x10000 and the linear submission queue @@ -2748,6 +2760,7 @@ static const struct of_device_id apple_nvme_of_match[] = { { .compatible = "apple,t8103-nvme-ans2", .data = &apple_nvme_t8103_hw }, { .compatible = "apple,t8132-nvme-ans2", .data = &apple_nvme_t8132_hw }, { .compatible = "apple,t8140-nvme-ans2", .data = &apple_nvme_t8140_hw }, + { .compatible = "apple,t8142-nvme-ans2", .data = &apple_nvme_t8142_hw }, { .compatible = "apple,nvme-ans2", .data = &apple_nvme_t8103_hw }, {}, };