Commit 91f983ff authored by Andrew Davis's avatar Andrew Davis Committed by Vignesh Raghavendra

arm64: dts: ti: k3-am64: Enable Mailbox nodes at the board level

Mailbox nodes defined in the top-level AM64x SoC dtsi files are incomplete
and may not be functional unless they are extended with a chosen interrupt
and connection to a remote processor.

As the remote processors depend on memory nodes which are only known at
the board integration level, these nodes should only be enabled when
provided with the above information.

Disable the Mailbox nodes in the dtsi files and only enable the ones that
are actually used on a given board.
Signed-off-by: default avatarAndrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20230515172137.474626-4-afd@ti.comSigned-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 731c6ded
...@@ -820,6 +820,7 @@ mailbox0_cluster2: mailbox@29020000 { ...@@ -820,6 +820,7 @@ mailbox0_cluster2: mailbox@29020000 {
#mbox-cells = <1>; #mbox-cells = <1>;
ti,mbox-num-users = <4>; ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <16>; ti,mbox-num-fifos = <16>;
status = "disabled";
}; };
mailbox0_cluster3: mailbox@29030000 { mailbox0_cluster3: mailbox@29030000 {
...@@ -830,6 +831,7 @@ mailbox0_cluster3: mailbox@29030000 { ...@@ -830,6 +831,7 @@ mailbox0_cluster3: mailbox@29030000 {
#mbox-cells = <1>; #mbox-cells = <1>;
ti,mbox-num-users = <4>; ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <16>; ti,mbox-num-fifos = <16>;
status = "disabled";
}; };
mailbox0_cluster4: mailbox@29040000 { mailbox0_cluster4: mailbox@29040000 {
...@@ -840,6 +842,7 @@ mailbox0_cluster4: mailbox@29040000 { ...@@ -840,6 +842,7 @@ mailbox0_cluster4: mailbox@29040000 {
#mbox-cells = <1>; #mbox-cells = <1>;
ti,mbox-num-users = <4>; ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <16>; ti,mbox-num-fifos = <16>;
status = "disabled";
}; };
mailbox0_cluster5: mailbox@29050000 { mailbox0_cluster5: mailbox@29050000 {
...@@ -850,6 +853,7 @@ mailbox0_cluster5: mailbox@29050000 { ...@@ -850,6 +853,7 @@ mailbox0_cluster5: mailbox@29050000 {
#mbox-cells = <1>; #mbox-cells = <1>;
ti,mbox-num-users = <4>; ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <16>; ti,mbox-num-fifos = <16>;
status = "disabled";
}; };
mailbox0_cluster6: mailbox@29060000 { mailbox0_cluster6: mailbox@29060000 {
...@@ -859,6 +863,7 @@ mailbox0_cluster6: mailbox@29060000 { ...@@ -859,6 +863,7 @@ mailbox0_cluster6: mailbox@29060000 {
#mbox-cells = <1>; #mbox-cells = <1>;
ti,mbox-num-users = <4>; ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <16>; ti,mbox-num-fifos = <16>;
status = "disabled";
}; };
mailbox0_cluster7: mailbox@29070000 { mailbox0_cluster7: mailbox@29070000 {
...@@ -868,6 +873,7 @@ mailbox0_cluster7: mailbox@29070000 { ...@@ -868,6 +873,7 @@ mailbox0_cluster7: mailbox@29070000 {
#mbox-cells = <1>; #mbox-cells = <1>;
ti,mbox-num-users = <4>; ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <16>; ti,mbox-num-fifos = <16>;
status = "disabled";
}; };
main_r5fss0: r5fss@78000000 { main_r5fss0: r5fss@78000000 {
......
...@@ -160,30 +160,6 @@ &cpsw_port2 { ...@@ -160,30 +160,6 @@ &cpsw_port2 {
status = "disabled"; status = "disabled";
}; };
&mailbox0_cluster2 {
status = "disabled";
};
&mailbox0_cluster3 {
status = "disabled";
};
&mailbox0_cluster4 {
status = "disabled";
};
&mailbox0_cluster5 {
status = "disabled";
};
&mailbox0_cluster6 {
status = "disabled";
};
&mailbox0_cluster7 {
status = "disabled";
};
&main_i2c0 { &main_i2c0 {
status = "okay"; status = "okay";
pinctrl-names = "default"; pinctrl-names = "default";
......
...@@ -537,6 +537,8 @@ flash@0 { ...@@ -537,6 +537,8 @@ flash@0 {
}; };
&mailbox0_cluster2 { &mailbox0_cluster2 {
status = "okay";
mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 { mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
ti,mbox-rx = <0 0 2>; ti,mbox-rx = <0 0 2>;
ti,mbox-tx = <1 0 2>; ti,mbox-tx = <1 0 2>;
...@@ -548,11 +550,9 @@ mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 { ...@@ -548,11 +550,9 @@ mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
}; };
}; };
&mailbox0_cluster3 {
status = "disabled";
};
&mailbox0_cluster4 { &mailbox0_cluster4 {
status = "okay";
mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 { mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
ti,mbox-rx = <0 0 2>; ti,mbox-rx = <0 0 2>;
ti,mbox-tx = <1 0 2>; ti,mbox-tx = <1 0 2>;
...@@ -564,21 +564,15 @@ mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 { ...@@ -564,21 +564,15 @@ mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
}; };
}; };
&mailbox0_cluster5 {
status = "disabled";
};
&mailbox0_cluster6 { &mailbox0_cluster6 {
status = "okay";
mbox_m4_0: mbox-m4-0 { mbox_m4_0: mbox-m4-0 {
ti,mbox-rx = <0 0 2>; ti,mbox-rx = <0 0 2>;
ti,mbox-tx = <1 0 2>; ti,mbox-tx = <1 0 2>;
}; };
}; };
&mailbox0_cluster7 {
status = "disabled";
};
&main_r5fss0_core0 { &main_r5fss0_core0 {
mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core0>; mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core0>;
memory-region = <&main_r5fss0_core0_dma_memory_region>, memory-region = <&main_r5fss0_core0_dma_memory_region>,
......
...@@ -535,6 +535,8 @@ flash@0 { ...@@ -535,6 +535,8 @@ flash@0 {
}; };
&mailbox0_cluster2 { &mailbox0_cluster2 {
status = "okay";
mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 { mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
ti,mbox-rx = <0 0 2>; ti,mbox-rx = <0 0 2>;
ti,mbox-tx = <1 0 2>; ti,mbox-tx = <1 0 2>;
...@@ -546,11 +548,9 @@ mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 { ...@@ -546,11 +548,9 @@ mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
}; };
}; };
&mailbox0_cluster3 {
status = "disabled";
};
&mailbox0_cluster4 { &mailbox0_cluster4 {
status = "okay";
mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 { mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
ti,mbox-rx = <0 0 2>; ti,mbox-rx = <0 0 2>;
ti,mbox-tx = <1 0 2>; ti,mbox-tx = <1 0 2>;
...@@ -562,21 +562,15 @@ mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 { ...@@ -562,21 +562,15 @@ mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
}; };
}; };
&mailbox0_cluster5 {
status = "disabled";
};
&mailbox0_cluster6 { &mailbox0_cluster6 {
status = "okay";
mbox_m4_0: mbox-m4-0 { mbox_m4_0: mbox-m4-0 {
ti,mbox-rx = <0 0 2>; ti,mbox-rx = <0 0 2>;
ti,mbox-tx = <1 0 2>; ti,mbox-tx = <1 0 2>;
}; };
}; };
&mailbox0_cluster7 {
status = "disabled";
};
&main_r5fss0_core0 { &main_r5fss0_core0 {
mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core0>; mboxes = <&mailbox0_cluster2 &mbox_main_r5fss0_core0>;
memory-region = <&main_r5fss0_core0_dma_memory_region>, memory-region = <&main_r5fss0_core0_dma_memory_region>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment