Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/iommu/apple,sart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -146,6 +149,7 @@ allOf:
enum:
- apple,t6041-nvme-ans2
- apple,t8132-nvme-ans2
- apple,t8140-nvme-ans2
then:
properties:
reg:
Expand Down
13 changes: 13 additions & 0 deletions drivers/nvme/host/apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 },
{},
};
Expand Down