Skip to content

Commit 3c9a1d4

Browse files
IntegralPilotjannau
authored andcommitted
arm64: dts: apple: Add NVMe nodes to M3 (t8122) device tree
On Apple Silicon, NVMe communication is mediated by a coprocessor known as the ANS, and protected by its own IOMMU known as the SART. Add the following nodes to the M3 (t8122) device tree: - Mailbox for the ANS coprocessor - SART (IOMMU for the ANS coprocessor) - The NVMe / ANS coprocessor itself Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
1 parent 5137d52 commit 3c9a1d4

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t8122.dtsi

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,45 @@
465465
<AIC_IRQ 351 IRQ_TYPE_LEVEL_HIGH>,
466466
<AIC_IRQ 352 IRQ_TYPE_LEVEL_HIGH>;
467467
};
468+
469+
ans_mbox: mbox@309408000 {
470+
compatible = "apple,t8122-asc-mailbox", "apple,asc-mailbox-v4";
471+
reg = <0x3 0x09408000 0x0 0x4000>;
472+
473+
interrupt-parent = <&aic>;
474+
interrupts = <AIC_IRQ 730 IRQ_TYPE_LEVEL_HIGH>,
475+
<AIC_IRQ 731 IRQ_TYPE_LEVEL_HIGH>,
476+
<AIC_IRQ 732 IRQ_TYPE_LEVEL_HIGH>,
477+
<AIC_IRQ 733 IRQ_TYPE_LEVEL_HIGH>;
478+
interrupt-names = "send-empty", "send-not-empty",
479+
"recv-empty", "recv-not-empty";
480+
481+
#mbox-cells = <0>;
482+
power-domains = <&ps_ans>;
483+
};
484+
485+
sart: sart@30dc50000 {
486+
compatible = "apple,t8122-sart", "apple,t6000-sart";
487+
reg = <0x3 0x0dc50000 0x0 0x10000>;
488+
power-domains = <&ps_ans>;
489+
};
490+
491+
nvme: nvme@30dcc0000 {
492+
compatible = "apple,t8122-nvme-ans2", "apple,t8103-nvme-ans2";
493+
reg = <0x3 0x0dcc0000 0x0 0x60000>,
494+
<0x3 0x09400000 0x0 0x4000>;
495+
reg-names = "nvme", "ans";
496+
497+
interrupt-parent = <&aic>;
498+
interrupts = <AIC_IRQ 742 IRQ_TYPE_LEVEL_HIGH>;
499+
500+
mboxes = <&ans_mbox>;
501+
apple,sart = <&sart>;
502+
503+
power-domains = <&ps_ans>, <&ps_apcie_phy_sw>;
504+
power-domain-names = "ans", "apcie0";
505+
resets = <&ps_ans>;
506+
};
468507
};
469508
};
470509

0 commit comments

Comments
 (0)