Skip to content

Commit 0aae82e

Browse files
committed
arm64: dts: apple: t6031: Add NVMe related device nodes
Add NVMe related devices nodes for all t6031, t6032 and t6034 based devices. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent c3f67db commit 0aae82e

3 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* NVMe related devices for Apple T603x SoCs.
4+
*
5+
* Copyright The Asahi Linux Contributors
6+
*/
7+
8+
DIE_NODE(ans_mbox): mbox@349408000 {
9+
compatible = "apple,t6031-asc-mailbox", "apple,asc-mailbox-v4";
10+
reg = <0x3 0x49408000 0x0 0x4000>;
11+
interrupt-parent = <&aic>;
12+
interrupts = <AIC_IRQ DIE_NO 1274 IRQ_TYPE_LEVEL_HIGH>,
13+
<AIC_IRQ DIE_NO 1275 IRQ_TYPE_LEVEL_HIGH>,
14+
<AIC_IRQ DIE_NO 1276 IRQ_TYPE_LEVEL_HIGH>,
15+
<AIC_IRQ DIE_NO 1277 IRQ_TYPE_LEVEL_HIGH>;
16+
interrupt-names = "send-empty", "send-not-empty",
17+
"recv-empty", "recv-not-empty";
18+
power-domains = <&DIE_NODE(ps_ans)>;
19+
#mbox-cells = <0>;
20+
};
21+
22+
DIE_NODE(sart): sart@34dc50000 {
23+
compatible = "apple,t6031-sart", "apple,t6000-sart";
24+
reg = <0x3 0x4dc50000 0x0 0x10000>;
25+
power-domains = <&DIE_NODE(ps_ans)>;
26+
};
27+
28+
DIE_NODE(nvme): nvme@34dcc0000 {
29+
compatible = "apple,t6031-nvme-ans2", "apple,t8103-nvme-ans2";
30+
reg = <0x3 0x4dcc0000 0x0 0x40000>,
31+
<0x3 0x49400000 0x0 0x4000>;
32+
reg-names = "nvme", "ans";
33+
interrupt-parent = <&aic>;
34+
/* The NVME interrupt is always routed to die 0 */
35+
interrupts = <AIC_IRQ 0 2366 IRQ_TYPE_LEVEL_HIGH>;
36+
mboxes = <&DIE_NODE(ans_mbox)>;
37+
apple,sart = <&DIE_NODE(sart)>;
38+
power-domains = <&DIE_NODE(ps_ans)>,
39+
<&DIE_NODE(ps_apcie_sys_st)>,
40+
<&DIE_NODE(ps_apcie_sys_st1)>;
41+
power-domain-names = "ans", "apcie0", "apcie1";
42+
resets = <&DIE_NODE(ps_ans)>;
43+
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
&soc {
4242
#include "t6031-die0.dtsi"
4343
#include "t6031-dieX.dtsi"
44+
#include "t6031-nvme.dtsi"
4445
};
4546

4647
#include "t6031-gpio-pins.dtsi"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348

349349
&die1 {
350350
#include "t6031-dieX.dtsi"
351+
#include "t6031-nvme.dtsi"
351352
};
352353

353354
#include "t6031-pmgr.dtsi"

0 commit comments

Comments
 (0)