Commit 8ec9ce36 authored by Suman Anna's avatar Suman Anna Committed by Vignesh Raghavendra

arm64: dts: ti: k3-am65-main: Add PRU system events for virtio

A PRU system event "vring" has been added to each PRU and RTU
node in each of the ICSSG0, ICSSG1 and ICSSG2 remote processor
subsystems to enable the virtio/rpmsg communication between MPU
and that PRU/RTU core. The additions are done in the base
k3-am65-main.dtsi, and so are inherited by all the K3 AM65x
boards.

The PRU system events is the preferred approach over using TI
mailboxes, as it eliminates an external peripheral access from
the PRU/RTU-side, and keeps the interrupt generation internal to
the ICSSG. The difference from MPU would be minimal in using one
versus the other.

Mailboxes can still be used if desired, but currently there is
no support on firmware-side for K3 SoCs to use mailboxes. Either
approach would require that an appropriate firmware image is
loaded/booted on the PRU.
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Acked-by: default avatarRavi Gunasekaran <r-gunasekaran@ti.com>
Signed-off-by: default avatarMD Danish Anwar <danishanwar@ti.com>
Link: https://lore.kernel.org/r/20240529064420.571615-3-danishanwar@ti.comSigned-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 53a39604
...@@ -1185,6 +1185,9 @@ pru0_0: pru@34000 { ...@@ -1185,6 +1185,9 @@ pru0_0: pru@34000 {
<0x22400 0x100>; <0x22400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-pru0_0-fw"; firmware-name = "am65x-pru0_0-fw";
interrupt-parent = <&icssg0_intc>;
interrupts = <16 2 2>;
interrupt-names = "vring";
}; };
rtu0_0: rtu@4000 { rtu0_0: rtu@4000 {
...@@ -1194,6 +1197,9 @@ rtu0_0: rtu@4000 { ...@@ -1194,6 +1197,9 @@ rtu0_0: rtu@4000 {
<0x23400 0x100>; <0x23400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-rtu0_0-fw"; firmware-name = "am65x-rtu0_0-fw";
interrupt-parent = <&icssg0_intc>;
interrupts = <20 4 4>;
interrupt-names = "vring";
}; };
tx_pru0_0: txpru@a000 { tx_pru0_0: txpru@a000 {
...@@ -1212,6 +1218,9 @@ pru0_1: pru@38000 { ...@@ -1212,6 +1218,9 @@ pru0_1: pru@38000 {
<0x24400 0x100>; <0x24400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-pru0_1-fw"; firmware-name = "am65x-pru0_1-fw";
interrupt-parent = <&icssg0_intc>;
interrupts = <18 3 3>;
interrupt-names = "vring";
}; };
rtu0_1: rtu@6000 { rtu0_1: rtu@6000 {
...@@ -1221,6 +1230,9 @@ rtu0_1: rtu@6000 { ...@@ -1221,6 +1230,9 @@ rtu0_1: rtu@6000 {
<0x23c00 0x100>; <0x23c00 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-rtu0_1-fw"; firmware-name = "am65x-rtu0_1-fw";
interrupt-parent = <&icssg0_intc>;
interrupts = <22 5 5>;
interrupt-names = "vring";
}; };
tx_pru0_1: txpru@c000 { tx_pru0_1: txpru@c000 {
...@@ -1339,6 +1351,9 @@ pru1_0: pru@34000 { ...@@ -1339,6 +1351,9 @@ pru1_0: pru@34000 {
<0x22400 0x100>; <0x22400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-pru1_0-fw"; firmware-name = "am65x-pru1_0-fw";
interrupt-parent = <&icssg1_intc>;
interrupts = <16 2 2>;
interrupt-names = "vring";
}; };
rtu1_0: rtu@4000 { rtu1_0: rtu@4000 {
...@@ -1348,6 +1363,9 @@ rtu1_0: rtu@4000 { ...@@ -1348,6 +1363,9 @@ rtu1_0: rtu@4000 {
<0x23400 0x100>; <0x23400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-rtu1_0-fw"; firmware-name = "am65x-rtu1_0-fw";
interrupt-parent = <&icssg1_intc>;
interrupts = <20 4 4>;
interrupt-names = "vring";
}; };
tx_pru1_0: txpru@a000 { tx_pru1_0: txpru@a000 {
...@@ -1366,6 +1384,9 @@ pru1_1: pru@38000 { ...@@ -1366,6 +1384,9 @@ pru1_1: pru@38000 {
<0x24400 0x100>; <0x24400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-pru1_1-fw"; firmware-name = "am65x-pru1_1-fw";
interrupt-parent = <&icssg1_intc>;
interrupts = <18 3 3>;
interrupt-names = "vring";
}; };
rtu1_1: rtu@6000 { rtu1_1: rtu@6000 {
...@@ -1375,6 +1396,9 @@ rtu1_1: rtu@6000 { ...@@ -1375,6 +1396,9 @@ rtu1_1: rtu@6000 {
<0x23c00 0x100>; <0x23c00 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-rtu1_1-fw"; firmware-name = "am65x-rtu1_1-fw";
interrupt-parent = <&icssg1_intc>;
interrupts = <22 5 5>;
interrupt-names = "vring";
}; };
tx_pru1_1: txpru@c000 { tx_pru1_1: txpru@c000 {
...@@ -1493,6 +1517,9 @@ pru2_0: pru@34000 { ...@@ -1493,6 +1517,9 @@ pru2_0: pru@34000 {
<0x22400 0x100>; <0x22400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-pru2_0-fw"; firmware-name = "am65x-pru2_0-fw";
interrupt-parent = <&icssg2_intc>;
interrupts = <16 2 2>;
interrupt-names = "vring";
}; };
rtu2_0: rtu@4000 { rtu2_0: rtu@4000 {
...@@ -1502,6 +1529,9 @@ rtu2_0: rtu@4000 { ...@@ -1502,6 +1529,9 @@ rtu2_0: rtu@4000 {
<0x23400 0x100>; <0x23400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-rtu2_0-fw"; firmware-name = "am65x-rtu2_0-fw";
interrupt-parent = <&icssg2_intc>;
interrupts = <20 4 4>;
interrupt-names = "vring";
}; };
tx_pru2_0: txpru@a000 { tx_pru2_0: txpru@a000 {
...@@ -1520,6 +1550,9 @@ pru2_1: pru@38000 { ...@@ -1520,6 +1550,9 @@ pru2_1: pru@38000 {
<0x24400 0x100>; <0x24400 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-pru2_1-fw"; firmware-name = "am65x-pru2_1-fw";
interrupt-parent = <&icssg2_intc>;
interrupts = <18 3 3>;
interrupt-names = "vring";
}; };
rtu2_1: rtu@6000 { rtu2_1: rtu@6000 {
...@@ -1529,6 +1562,9 @@ rtu2_1: rtu@6000 { ...@@ -1529,6 +1562,9 @@ rtu2_1: rtu@6000 {
<0x23c00 0x100>; <0x23c00 0x100>;
reg-names = "iram", "control", "debug"; reg-names = "iram", "control", "debug";
firmware-name = "am65x-rtu2_1-fw"; firmware-name = "am65x-rtu2_1-fw";
interrupt-parent = <&icssg2_intc>;
interrupts = <22 5 5>;
interrupt-names = "vring";
}; };
tx_pru2_1: txpru@c000 { tx_pru2_1: txpru@c000 {
......
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