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 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: 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 }, {}, };