Add R5F and C7xv device nodes
Subsystems (2)
v8 cover Add R5F and C7xv device nodes
For am62x and am62ax devices, this patch series adds device nodes for the R5F subsystem and C7xv DSP subsystem found in their respective voltage domain, based on the device TRMs [0][1].
This patch series also includes patches for enabling IPC for am62x SK, am62ax SK, and am62px SK by reserving memory and binding the mailbox assignments for each remote core.
Also reserve timers used by C7x DSP for am62ax SK board and timers used by MCU FW for AM642 SK and EVM boards as per firmware requirements.
Changes since v7:
- Rebase against next
- add Andrew's review tags
Links
v7: https://lore.kernel.org/linux-devicetree/[email protected]
v6: https://lore.kernel.org/linux-devicetree/[email protected]/
v5: https://lore.kernel.org/linux-devicetree/[email protected]/
v4: https://lore.kernel.org/linux-devicetree/[email protected]/
v3: https://lore.kernel.org/linux-devicetree/[email protected]/
v2: https://lore.kernel.org/linux-devicetree/[email protected]/
v1: https://lore.kernel.org/linux-devicetree/[email protected]/
[0] https://www.ti.com/lit/pdf/spruj16
[1] https://www.ti.com/lit/pdf/spruiv7
[2] https://lore.kernel.org/linux-devicetree/[email protected]/
[3] https://lore.kernel.org/linux-devicetree/[email protected]/
Devarsh Thakkar (3):
arm64: dts: ti: k3-am62a-wakeup: Add R5F device node
arm64: dts: ti: k3-am62a7-sk: Enable IPC with remote processors
arm64: dts: ti: k3-am62p5-sk: Enable IPC with remote processors
Hari Nagalla (6):
arm64: dts: ti: k3-am62-wakeup: Add wakeup R5F node
arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
arm64: dts: ti: k3-am62x-sk-common: Enable IPC with remote processors
arm64: dts: ti: k3-am62a7-sk: Reserve main_timer2 for C7x DSP
arm64: dts: ti: k3-am62a7-sk: Reserve main_rti4 for C7x DSP
arm64: dts: ti: k3-am64: Reserve timers used by MCU FW
Jai Luthra (1):
arm64: dts: ti: k3-am62a-main: Add C7xv device node
Judith Mendez (1):
arm64: dts: ti: k3-am62: Add ATCM and BTCM cbass ranges
arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 25 +++++ arch/arm64/boot/dts/ti/k3-am62.dtsi | 8 +- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 12 ++ arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 25 +++++ arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi | 25 +++++ arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 106 +++++++++++++++++- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 50 ++++++++- .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 34 +++++- arch/arm64/boot/dts/ti/k3-am642-evm.dts | 20 ++++ arch/arm64/boot/dts/ti/k3-am642-sk.dts | 20 ++++ 10 files changed, 306 insertions(+), 19 deletions(-)
Signature · 1 line
2.49.0
PATCH v8 1/11 arm64: dts: ti: k3-am62: Add ATCM and BTCM cbass ranges
Add cbass ranges for ATCM and BTCM on am62x device, without these, remoteproc driver fails to probe and attach to the DM r5 core and IPC communication is broken.
--- arch/arm64/boot/dts/ti/k3-am62.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-am62.dtsi +6 -2
@@ -86,7 +86,9 @@ cbass_main: bus@f0000 { /* Wakeup Domain Range */ <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, - <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>; + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ cbass_mcu: bus@4000000 { bootph-all;
@@ -103,7 +105,9 @@ cbass_wakeup: bus@b00000 { #size-cells = <2>; ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */ - <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>; + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ }; };
Signature · 1 line
2.49.0
PATCH v8 2/11 arm64: dts: ti: k3-am62-wakeup: Add wakeup R5F node
In reply to Judith MendezFrom: Hari Nagalla <[email protected]>
AM62 SoC devices have a single core R5F processor in wakeup domain. The R5F processor in wakeup domain is used as a device manager for the SoC.
--- arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +25 -0
@@ -106,6 +106,31 @@ wkup_rti0: watchdog@2b000000 { status = "reserved"; }; + wkup_r5fss0: r5fss@78000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x78000000 0x00 0x78000000 0x8000>, + <0x78100000 0x00 0x78100000 0x8000>; + power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + wkup_r5fss0_core0: r5f@78000000 { + compatible = "ti,am62-r5f"; + reg = <0x78000000 0x00008000>, + <0x78100000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 121 1>; + firmware-name = "am62-wkup-r5f0_0-fw"; + ti,atcm-enable = <1>; + ti,btcm-enable = <1>; + ti,loczrama = <1>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <121>; + ti,sci-proc-ids = <0x01 0xff>; + }; + }; + wkup_vtm0: temperature-sensor@b00000 { compatible = "ti,j7200-vtm"; reg = <0x00 0xb00000 0x00 0x400>,
Signature · 1 line
2.49.0
Re: [PATCH v8 02/11] arm64: dts: ti: k3-am62-wakeup: Add wakeup R5F node
Quoted 10 lines · Judith Mendez
From: Hari Nagalla <[email protected]>
AM62 SoC devices have a single core R5F processor in wakeup domain. The R5F processor in wakeup domain is used as a device manager for the SoC.
Signed-off-by Devarsh Thakkar <[email protected]>Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>
Quoted 40 lines
--- arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +25
-0@@ -106,6 +106,31 @@ wkup_rti0: watchdog@2b000000 { status = "reserved"; }; + wkup_r5fss0: r5fss@78000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x78000000 0x00 0x78000000 0x8000>, + <0x78100000 0x00 0x78100000 0x8000>; + power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + wkup_r5fss0_core0: r5f@78000000 { + compatible = "ti,am62-r5f"; + reg = <0x78000000 0x00008000>, + <0x78100000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 121 1>; + firmware-name = "am62-wkup-r5f0_0-fw"; + ti,atcm-enable = <1>; + ti,btcm-enable = <1>; + ti,loczrama = <1>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <121>; + ti,sci-proc-ids = <0x01 0xff>; + }; + }; + wkup_vtm0: temperature-sensor@b00000 { compatible = "ti,j7200-vtm"; reg = <0x00 0xb00000 0x00 0x400>,
PATCH v8 3/11 arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
In reply to Judith MendezFrom: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
--- arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25 -0
@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
Signature · 1 line
2.49.0
Re: [PATCH v8 03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
Hi,
I'm unable to load the latest TI firmware (98efd20ec71f8c1c8f909d34ab656731) with this patch.
[ 7.012889] remoteproc remoteproc1: 79000000.r5f is available
[ 7.032640] remoteproc remoteproc1: powering up 79000000.r5f
[ 7.038626] remoteproc remoteproc1: Booting fw image am62a-mcu-r5f0_0-fw, size 53140 [ 7.057209] remoteproc remoteproc1: bad phdr da 0x79100000 mem 0x47ea0 [ 7.064716] remoteproc remoteproc1: Failed to load program segments: -22
I figured out that the mcu sram node disappeared in v5. Apparently adding it back manually doesn't solve this problem. Any idea what's wrong?
- Daniel
Quoted 47 lines · Judith Mendez
From: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>--- arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25
-0@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
Re: [PATCH v8 03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
Hi Daniel,
Quoted 11 lines · Daniel Schultz
Hi,
I'm unable to load the latest TI firmware (
98efd20ec71f8c1c8f909d34ab656731) with this patch.[ 7.012889] remoteproc remoteproc1: 79000000.r5f is available
[ 7.032640] remoteproc remoteproc1: powering up 79000000.r5f
[ 7.038626] remoteproc remoteproc1: Booting fw image am62a-mcu- r5f0_0-fw, size 53140 [ 7.057209] remoteproc remoteproc1: bad phdr da0x79100000mem0x47ea0[ 7.064716] remoteproc remoteproc1: Failed to load program segments: -22I figured out that the mcu sram node disappeared in v5. Apparently adding it back manually doesn't solve this problem. Any idea what's wrong?
For am62ax, there should be several items changed with this v8 series in order for remoteproc to work with the TI default firmware:
1. memory carveouts were reduced to 15MB [0] & edge-ai memory carveouts are not included here
2. mcu_sram1 node removed [2]
If you want to catch up on the general direction for this series, please refer to [3]. atm remoteproc can fail with the default FW, but we are trying to move away from that firmware and this is the first step in that direction.
[0] https://lore.kernel.org/linux-devicetree/[email protected]/
[1] https://lore.kernel.org/linux-devicetree/[email protected]/
[2] https://lore.kernel.org/linux-devicetree/[email protected]/
[3] https://lore.kernel.org/linux-devicetree/[email protected]/
~ Judith
Quoted 49 lines · Judith Mendez
Quoted 47 lines
From: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>---
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi| 25 ++++++++++++++++++++++++1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25
-0@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
Re: [PATCH v8 03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
Quoted 11 lines · Judith
Hi Daniel,
Quoted 8 lines · Daniel Schultz
Hi,
I'm unable to load the latest TI firmware (
98efd20ec71f8c1c8f909d34ab656731) with this patch.[ 7.012889] remoteproc remoteproc1: 79000000.r5f is available
[ 7.032640] remoteproc remoteproc1: powering up 79000000.r5f
[ 7.038626] remoteproc remoteproc1: Booting fw image am62a-mcu- r5f0_0-fw, size 53140 [ 7.057209] remoteproc remoteproc1: bad phdr da0x79100000mem0x47ea0
So this looks like the firmware has sections in the SRAM region. That would be the issue here.
Quoted 9 lines
Quoted 3 lines
[ 7.064716] remoteproc remoteproc1: Failed to load program segments: -22
I figured out that the mcu sram node disappeared in v5. Apparently adding it back manually doesn't solve this problem. Any idea what's wrong?
For am62ax, there should be several items changed with this v8 series in order for remoteproc to work with the TI default firmware:
1. memory carveouts were reduced to 15MB [0] & edge-ai memory carveouts are not included here
This shouldn't be an issue, the default firmware doesn't use the extended carveouts.
Quoted 2 lines
2.
mcu_sram1node removed [2]
So when you say you added back the SRAM node, did you also add the sram = <&mcu_ram>; in the core node?
Andrew
Quoted 62 lines
If you want to catch up on the general direction for this series, please refer to [3]. atm remoteproc can fail with the default FW, but we are trying to move away from that firmware and this is the first step in that direction.
[0] https://lore.kernel.org/linux-devicetree/[email protected]/
[1] https://lore.kernel.org/linux-devicetree/[email protected]/
[2] https://lore.kernel.org/linux-devicetree/[email protected]/
[3] https://lore.kernel.org/linux-devicetree/[email protected]/~ Judith
Quoted 49 lines · Judith Mendez
Quoted 47 lines
From: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>---
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi| 25 ++++++++++++++++++++++++1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25
-0@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
Re: [PATCH v8 03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
Hey,
Quoted 8 lines · Andrew Davis
Quoted 7 lines · Judith
Hi Daniel,
Quoted 4 lines · Daniel Schultz
Hi,
I'm unable to load the latest TI firmware (
98efd20ec71f8c1c8f909d34ab656731) with this patch.
Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
[ 7.012889] remoteproc remoteproc1: 79000000.r5f is available
[ 7.032640] remoteproc remoteproc1: powering up 79000000.r5f
[ 7.038626] remoteproc remoteproc1: Booting fw image am62a-mcu- r5f0_0-fw, size 53140 [ 7.057209] remoteproc remoteproc1: bad phdr da0x79100000mem0x47ea0So this looks like the firmware has sections in the SRAM region. That would be the issue here.
Quoted 6 lines
Quoted 3 lines
[ 7.064716] remoteproc remoteproc1: Failed to load program segments: -22
I figured out that the mcu sram node disappeared in v5. Apparently adding it back manually doesn't solve this problem. Any idea what's wrong?
For am62ax, there should be several items changed with this v8 series in order for remoteproc to work with the TI default firmware:
What firmware did you use? I was using the latest public default firmware from ti-linux-firmware.
Quoted 6 lines
Quoted 3 lines
1. memory carveouts were reduced to 15MB [0] & edge-ai memory carveouts are not included here
This shouldn't be an issue, the default firmware doesn't use the extended carveouts.
Yes, this is just the echo firmware.
Quoted 6 lines
Quoted 3 lines
2.
mcu_sram1node removed [2]So when you say you added back the SRAM node, did you also add the sram = <
&mcu_ram>; in the core node?
With that property added, I can load the firmware again! So, what's the problem with adding this sram node and did you remove it?
- Daniel
Quoted 66 lines
Andrew
Quoted 63 lines
If you want to catch up on the general direction for this series, please refer to [3]. atm remoteproc can fail with the default FW, but we are trying to move away from that firmware and this is the first step in that direction.
[0] https://lore.kernel.org/linux-devicetree/[email protected]/
[1] https://lore.kernel.org/linux-devicetree/[email protected]/
[2] https://lore.kernel.org/linux-devicetree/[email protected]/
[3] https://lore.kernel.org/linux-devicetree/[email protected]/~ Judith
Quoted 50 lines · Judith Mendez
Quoted 48 lines
From: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>---
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi| 25
++++++++++++++++++++++++1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25
-0@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
Re: [PATCH v8 03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
Quoted 34 lines · Daniel Schultz
Hey,
Quoted 8 lines · Andrew Davis
Quoted 7 lines · Judith
Hi Daniel,
Quoted 4 lines · Daniel Schultz
Hi,
I'm unable to load the latest TI firmware (
98efd20ec71f8c1c8f909d34ab656731) with this patch.Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
[ 7.012889] remoteproc remoteproc1: 79000000.r5f is available
[ 7.032640] remoteproc remoteproc1: powering up 79000000.r5f
[ 7.038626] remoteproc remoteproc1: Booting fw image am62a-mcu- r5f0_0-fw, size 53140 [ 7.057209] remoteproc remoteproc1: bad phdr da0x79100000mem0x47ea0So this looks like the firmware has sections in the SRAM region. That would be the issue here.
Quoted 6 lines
Quoted 3 lines
[ 7.064716] remoteproc remoteproc1: Failed to load program segments: -22
I figured out that the mcu sram node disappeared in v5. Apparently adding it back manually doesn't solve this problem. Any idea what's wrong?
For am62ax, there should be several items changed with this v8 series in order for remoteproc to work with the TI default firmware:
What firmware did you use? I was using the latest public default firmware from ti-linux-firmware.
Quoted 6 lines
Quoted 3 lines
1. memory carveouts were reduced to 15MB [0] & edge-ai memory carveouts are not included here
This shouldn't be an issue, the default firmware doesn't use the extended carveouts.
Yes, this is just the echo firmware.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
2.
mcu_sram1node removed [2]So when you say you added back the SRAM node, did you also add the sram = <
&mcu_ram>; in the core node?With that property added, I can load the firmware again! So, what's the problem with adding this sram node and did you remove it?
Good to hear that fixed it.
And we removed the SRAM node as I was unhappy with how we were handling reserving it. The firmware should declare usage of shared resources like this in its resource table, and the RProc driver should dynamically request the same from a normal SRAM pool. What we were doing before was to statically block out the whole SRAM node for use by the R5, and the driver would unconditionally map it, even if it was not used by the loaded firmware at all.
I wanted us to fix the above before upstreaming it so we left it out of this series. Next cycle we should have the better solution ready and posted for upstream.
Andrew
Quoted 67 lines
- Daniel
Quoted 65 lines
Andrew
Quoted 62 lines
If you want to catch up on the general direction for this series, please refer to [3]. atm remoteproc can fail with the default FW, but we are trying to move away from that firmware and this is the first step in that direction.
[0] https://lore.kernel.org/linux-devicetree/[email protected]/
[1] https://lore.kernel.org/linux-devicetree/[email protected]/
[2] https://lore.kernel.org/linux-devicetree/[email protected]/
[3] https://lore.kernel.org/linux-devicetree/[email protected]/~ Judith
Quoted 49 lines · Judith Mendez
Quoted 47 lines
From: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>---
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi| 25 ++++++++++++++++++++++++1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25
-0@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
Re: [PATCH v8 03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
Quoted 44 lines · Andrew Davis
Quoted 34 lines · Daniel Schultz
Hey,
Quoted 8 lines · Andrew Davis
Quoted 7 lines · Judith
Hi Daniel,
Quoted 4 lines · Daniel Schultz
Hi,
I'm unable to load the latest TI firmware (
98efd20ec71f8c1c8f909d34ab656731) with this patch.Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
[ 7.012889] remoteproc remoteproc1: 79000000.r5f is available
[ 7.032640] remoteproc remoteproc1: powering up 79000000.r5f
[ 7.038626] remoteproc remoteproc1: Booting fw image am62a-mcu- r5f0_0-fw, size 53140 [ 7.057209] remoteproc remoteproc1: bad phdr da0x79100000mem0x47ea0So this looks like the firmware has sections in the SRAM region. That would be the issue here.
Quoted 6 lines
Quoted 3 lines
[ 7.064716] remoteproc remoteproc1: Failed to load program segments: -22
I figured out that the mcu sram node disappeared in v5. Apparently adding it back manually doesn't solve this problem. Any idea what's wrong?
For am62ax, there should be several items changed with this v8 series in order for remoteproc to work with the TI default firmware:
What firmware did you use? I was using the latest public default firmware from ti-linux-firmware.
Quoted 6 lines
Quoted 3 lines
1. memory carveouts were reduced to 15MB [0] & edge-ai memory carveouts are not included here
This shouldn't be an issue, the default firmware doesn't use the extended carveouts.
Yes, this is just the echo firmware.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
2.
mcu_sram1node removed [2]So when you say you added back the SRAM node, did you also add the sram = <
&mcu_ram>; in the core node?With that property added, I can load the firmware again! So, what's the problem with adding this sram node and did you remove it?
Quoted 8 lines
Good to hear that fixed it.
And we removed the SRAM node as I was unhappy with how we were handling reserving it. The firmware should declare usage of shared resources like this in its resource table, and the RProc driver should dynamically request the same from a normal SRAM pool. What we were doing before was to statically block out the whole SRAM node for use by the R5, and the driver would unconditionally map it, even if it was not used by the loaded firmware at all.
okay, that make sense.
Quoted 4 lines
I wanted us to fix the above before upstreaming it so we left it out of this series. Next cycle we should have the better solution ready and posted for upstream.
thanks for the feedback. We're still on linux-ti 6.12 with this product. So, I don't care if it's not fully working yet. I was just preparing our device-trees with R5 and C7 nodes.
- Daniel
Quoted 71 lines
Andrew
Quoted 68 lines
- Daniel
Quoted 66 lines
Andrew
Quoted 63 lines
If you want to catch up on the general direction for this series, please refer to [3]. atm remoteproc can fail with the default FW, but we are trying to move away from that firmware and this is the first step in that direction.
[0] https://lore.kernel.org/linux-devicetree/[email protected]/
[1] https://lore.kernel.org/linux-devicetree/[email protected]/
[2] https://lore.kernel.org/linux-devicetree/[email protected]/
[3] https://lore.kernel.org/linux-devicetree/[email protected]/~ Judith
Quoted 50 lines · Judith Mendez
Quoted 48 lines
From: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>---
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi| 25
++++++++++++++++++++++++1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25
-0@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
Re: [PATCH v8 03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
In reply to Judith MendezQuoted 9 lines · Judith Mendez
From: Hari Nagalla <[email protected]>
AM62A SoCs have a single R5F core in the MCU voltage domain. Add the R5FSS node with the child node for core0 in MCU voltage domain .dtsi file.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>
Quoted 38 lines
--- arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +25
-0@@ -174,4 +174,29 @@ mcu_mcan1: can@4e18000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; + + mcu_r5fss0: r5fss@79000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x79000000 0x00 0x79000000 0x8000>, + <0x79020000 0x00 0x79020000 0x8000>; + power-domains = <&k3_pds 7 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + mcu_r5fss0_core0: r5f@79000000 { + compatible = "ti,am62-r5f"; + reg = <0x79000000 0x00008000>, + <0x79020000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 9 1>; + firmware-name = "am62a-mcu-r5f0_0-fw"; + ti,atcm-enable = <0>; + ti,btcm-enable = <1>; + ti,loczrama = <0>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <9>; + ti,sci-proc-ids = <0x03 0xff>; + }; + }; };
PATCH v8 4/11 arm64: dts: ti: k3-am62a-wakeup: Add R5F device node
In reply to Judith MendezFrom: Devarsh Thakkar <[email protected]>
AM62A SoCs have a single R5F core in wakeup domain. This core is also used as a device manager for the SoC.
--- arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi +25 -0
@@ -103,6 +103,31 @@ wkup_rti0: watchdog@2b000000 { status = "reserved"; }; + wkup_r5fss0: r5fss@78000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x78000000 0x00 0x78000000 0x8000>, + <0x78100000 0x00 0x78100000 0x8000>; + power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + wkup_r5fss0_core0: r5f@78000000 { + compatible = "ti,am62-r5f"; + reg = <0x78000000 0x00008000>, + <0x78100000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 121 1>; + firmware-name = "am62a-wkup-r5f0_0-fw"; + ti,atcm-enable = <1>; + ti,btcm-enable = <1>; + ti,loczrama = <1>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <121>; + ti,sci-proc-ids = <0x01 0xff>; + }; + }; + wkup_vtm0: temperature-sensor@b00000 { compatible = "ti,j7200-vtm"; reg = <0x00 0xb00000 0x00 0x400>,
Signature · 1 line
2.49.0
Re: [PATCH v8 04/11] arm64: dts: ti: k3-am62a-wakeup: Add R5F device node
Quoted 9 lines · Judith Mendez
From: Devarsh Thakkar <[email protected]>
AM62A SoCs have a single R5F core in wakeup domain. This core is also used as a device manager for the SoC.
Signed-off-by Devarsh Thakkar <[email protected]>Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>
Quoted 40 lines
--- arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi +25
-0@@ -103,6 +103,31 @@ wkup_rti0: watchdog@2b000000 { status = "reserved"; }; + wkup_r5fss0: r5fss@78000000 { + compatible = "ti,am62-r5fss"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x78000000 0x00 0x78000000 0x8000>, + <0x78100000 0x00 0x78100000 0x8000>; + power-domains = <&k3_pds 119 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + + wkup_r5fss0_core0: r5f@78000000 { + compatible = "ti,am62-r5f"; + reg = <0x78000000 0x00008000>, + <0x78100000 0x00008000>; + reg-names = "atcm", "btcm"; + resets = <&k3_reset 121 1>; + firmware-name = "am62a-wkup-r5f0_0-fw"; + ti,atcm-enable = <1>; + ti,btcm-enable = <1>; + ti,loczrama = <1>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <121>; + ti,sci-proc-ids = <0x01 0xff>; + }; + }; + wkup_vtm0: temperature-sensor@b00000 { compatible = "ti,j7200-vtm"; reg = <0x00 0xb00000 0x00 0x400>,
PATCH v8 5/11 arm64: dts: ti: k3-am62a-main: Add C7xv device node
In reply to Judith MendezFrom: Jai Luthra <[email protected]>
AM62A SoCs have a C7xv DSP subsystem with Analytics engine capability. This subsystem is intended for deep learning purposes. Define the device node for C7xv DSP.
--- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +12 -0
@@ -1123,6 +1123,18 @@ vpu: video-codec@30210000 { power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>; }; + c7x_0: dsp@7e000000 { + compatible = "ti,am62a-c7xv-dsp"; + reg = <0x00 0x7e000000 0x00 0x00100000>; + reg-names = "l2sram"; + resets = <&k3_reset 208 1>; + firmware-name = "am62a-c71_0-fw"; + ti,sci = <&dmsc>; + ti,sci-dev-id = <208>; + ti,sci-proc-ids = <0x04 0xff>; + status = "disabled"; + }; + e5010: jpeg-encoder@fd20000 { compatible = "ti,am62a-jpeg-enc", "img,e5010-jpeg-enc"; reg = <0x00 0xfd20000 0x00 0x100>,
Signature · 1 line
2.49.0
Re: [PATCH v8 05/11] arm64: dts: ti: k3-am62a-main: Add C7xv device node
Quoted 10 lines · Judith Mendez
From: Jai Luthra <[email protected]>
AM62A SoCs have a C7xv DSP subsystem with Analytics engine capability. This subsystem is intended for deep learning purposes. Define the device node for C7xv DSP.
Signed-off-by Jai Luthra <[email protected]>Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Judith Mendez <[email protected]>Acked-by Andrew Davis <[email protected]>
Quoted 27 lines
--- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +12
-0@@ -1123,6 +1123,18 @@ vpu: video-codec@30210000 { power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>; }; + c7x_0: dsp@7e000000 { + compatible = "ti,am62a-c7xv-dsp"; + reg = <0x00 0x7e000000 0x00 0x00100000>; + reg-names = "l2sram"; + resets = <&k3_reset 208 1>; + firmware-name = "am62a-c71_0-fw"; + ti,sci = <&dmsc>; + ti,sci-dev-id = <208>; + ti,sci-proc-ids = <0x04 0xff>; + status = "disabled"; + }; + e5010: jpeg-encoder@fd20000 { compatible = "ti,am62a-jpeg-enc", "img,e5010-jpeg-enc"; reg = <0x00 0xfd20000 0x00 0x100>,
PATCH v8 6/11 arm64: dts: ti: k3-am62a7-sk: Enable IPC with remote processors
In reply to Judith MendezFrom: Devarsh Thakkar <[email protected]>
For each remote proc, reserve memory for IPC and bind the mailbox assignments. Two memory regions are reserved for each remote processor. The first region of 1MB of memory is used for Vring shared buffers and the second region is used as external memory to the remote processor for the resource table and for tracebuffer allocations.
--- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 96 +++++++++++++++++++++++-- 1 file changed, 90 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +90 -6
@@ -52,6 +52,42 @@ linux,cma { linux,cma-default; }; + c7x_0_dma_memory_region: c7x-dma-memory@99800000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x99800000 0x00 0x100000>; + no-map; + }; + + c7x_0_memory_region: c7x-memory@99900000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x99900000 0x00 0xf00000>; + no-map; + }; + + mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@9b800000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9b800000 0x00 0x100000>; + no-map; + }; + + mcu_r5fss0_core0_memory_region: r5f-dma-memory@9b900000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9b900000 0x00 0xf00000>; + no-map; + }; + + wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9c800000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9c800000 0x00 0x100000>; + no-map; + }; + + wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9c900000 0x00 0xf00000>; + no-map; + }; + secure_tfa_ddr: tfa@9e780000 { reg = <0x00 0x9e780000 0x00 0x80000>; alignment = <0x1000>;
@@ -63,12 +99,6 @@ secure_ddr: optee@9e800000 { alignment = <0x1000>; no-map; }; - - wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 { - compatible = "shared-dma-pool"; - reg = <0x00 0x9c900000 0x00 0x01e00000>; - no-map; - }; }; opp-table {
@@ -781,3 +811,57 @@ &epwm1 { pinctrl-0 = <&main_epwm1_pins_default>; status = "okay"; }; + +&mailbox0_cluster0 { + status = "okay"; + + mbox_r5_0: mbox-r5-0 { + ti,mbox-rx = <0 0 0>; + ti,mbox-tx = <1 0 0>; + }; +}; + +&mailbox0_cluster1 { + status = "okay"; + + mbox_c7x_0: mbox-c7x-0 { + ti,mbox-rx = <0 0 0>; + ti,mbox-tx = <1 0 0>; + }; +}; + +&mailbox0_cluster2 { + status = "okay"; + + mbox_mcu_r5_0: mbox-mcu-r5-0 { + ti,mbox-rx = <0 0 0>; + ti,mbox-tx = <1 0 0>; + }; +}; + +&wkup_r5fss0 { + status = "okay"; +}; + +&wkup_r5fss0_core0 { + mboxes = <&mailbox0_cluster0>, <&mbox_r5_0>; + memory-region = <&wkup_r5fss0_core0_dma_memory_region>, + <&wkup_r5fss0_core0_memory_region>; +}; + +&mcu_r5fss0 { + status = "okay"; +}; + +&mcu_r5fss0_core0 { + mboxes = <&mailbox0_cluster2>, <&mbox_mcu_r5_0>; + memory-region = <&mcu_r5fss0_core0_dma_memory_region>, + <&mcu_r5fss0_core0_memory_region>; +}; + +&c7x_0 { + mboxes = <&mailbox0_cluster1>, <&mbox_c7x_0>; + memory-region = <&c7x_0_dma_memory_region>, + <&c7x_0_memory_region>; + status = "okay"; +};
Signature · 1 line
2.49.0
PATCH v8 7/11 arm64: dts: ti: k3-am62p5-sk: Enable IPC with remote processors
In reply to Judith MendezFrom: Devarsh Thakkar <[email protected]>
For each remote proc, reserve memory for IPC and bind the mailbox assignments. Two memory regions are reserved for each remote processor. The first region of 1MB of memory is used for Vring shared buffers and the second region is used as external memory to the remote processor for the resource table and for tracebuffer allocations.
--- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 50 ++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +44 -6
@@ -49,6 +49,30 @@ reserved-memory { #size-cells = <2>; ranges; + mcu_r5fss0_core0_dma_memory_region: mcu-r5fss-dma-memory-region@9b800000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9b800000 0x00 0x100000>; + no-map; + }; + + mcu_r5fss0_core0_memory_region: mcu-r5fss-memory-region@9b900000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9b900000 0x00 0xf00000>; + no-map; + }; + + wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9c800000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9c800000 0x00 0x100000>; + no-map; + }; + + wkup_r5fss0_core0_memory_region: r5f-memory@9c900000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9c900000 0x00 0xf00000>; + no-map; + }; + secure_tfa_ddr: tfa@9e780000 { reg = <0x00 0x9e780000 0x00 0x80000>; no-map;
@@ -58,12 +82,6 @@ secure_ddr: optee@9e800000 { reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ no-map; }; - - wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 { - compatible = "shared-dma-pool"; - reg = <0x00 0x9c900000 0x00 0x01e00000>; - no-map; - }; }; vmain_pd: regulator-0 {
@@ -666,6 +684,26 @@ mbox_mcu_r5_0: mbox-mcu-r5-0 { }; }; +&wkup_r5fss0 { + status = "okay"; +}; + +&wkup_r5fss0_core0 { + mboxes = <&mailbox0_cluster0 &mbox_r5_0>; + memory-region = <&wkup_r5fss0_core0_dma_memory_region>, + <&wkup_r5fss0_core0_memory_region>; +}; + +&mcu_r5fss0 { + status = "okay"; +}; + +&mcu_r5fss0_core0 { + mboxes = <&mailbox0_cluster1 &mbox_mcu_r5_0>; + memory-region = <&mcu_r5fss0_core0_dma_memory_region>, + <&mcu_r5fss0_core0_memory_region>; +}; + &main_uart0 { pinctrl-names = "default"; pinctrl-0 = <&main_uart0_pins_default>;
Signature · 1 line
2.49.0
PATCH v8 8/11 arm64: dts: ti: k3-am62x-sk-common: Enable IPC with remote processors
In reply to Judith MendezFrom: Hari Nagalla <[email protected]>
For each remote proc, reserve memory for IPC and bind the mailbox assignments. Two memory regions are reserved for each remote processor. The first region of 1MB of memory is used for Vring shared buffers and the second region is used as external memory to the remote processor for the resource table and for tracebuffer allocations.
--- .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +29 -5
@@ -70,6 +70,18 @@ mcu_m4fss_memory_region: m4f-memory@9cc00000 { no-map; }; + wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9da00000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9da00000 0x00 0x100000>; + no-map; + }; + + wkup_r5fss0_core0_memory_region: r5f-memory@9db00000 { + compatible = "shared-dma-pool"; + reg = <0x00 0x9db00000 0x00 0xc00000>; + no-map; + }; + secure_tfa_ddr: tfa@9e780000 { reg = <0x00 0x9e780000 0x00 0x80000>; alignment = <0x1000>;
@@ -82,11 +94,6 @@ secure_ddr: optee@9e800000 { no-map; }; - wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9db00000 { - compatible = "shared-dma-pool"; - reg = <0x00 0x9db00000 0x00 0xc00000>; - no-map; - }; }; leds {
@@ -495,10 +502,17 @@ cpsw3g_phy0: ethernet-phy@0 { }; &mailbox0_cluster0 { + status = "okay"; + mbox_m4_0: mbox-m4-0 { ti,mbox-rx = <0 0 0>; ti,mbox-tx = <1 0 0>; }; + + mbox_r5_0: mbox-r5-0 { + ti,mbox-rx = <2 0 0>; + ti,mbox-tx = <3 0 0>; + }; }; &mcu_m4fss {
@@ -508,6 +522,16 @@ &mcu_m4fss { status = "okay"; }; +&wkup_r5fss0 { + status = "okay"; +}; + +&wkup_r5fss0_core0 { + mboxes = <&mailbox0_cluster0 &mbox_r5_0>; + memory-region = <&wkup_r5fss0_core0_dma_memory_region>, + <&wkup_r5fss0_core0_memory_region>; +}; + &usbss0 { bootph-all; status = "okay";
Signature · 1 line
2.49.0
PATCH v8 9/11 arm64: dts: ti: k3-am62a7-sk: Reserve main_timer2 for C7x DSP
In reply to Judith MendezFrom: Hari Nagalla <[email protected]>
C7x DSP uses main_timer2, so mark it as reserved in linux DT.
--- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +5 -0
@@ -701,6 +701,11 @@ &main_uart1 { status = "reserved"; }; +/* main_timer2 is used by C7x DSP */ +&main_timer2 { + status = "reserved"; +}; + &usbss0 { status = "okay"; ti,vbus-divider;
Signature · 1 line
2.49.0
PATCH v8 10/11 arm64: dts: ti: k3-am62a7-sk: Reserve main_rti4 for C7x DSP
In reply to Judith MendezFrom: Hari Nagalla <[email protected]>
The main rti4 watchdog timer is used by the C7x DSP, so reserve the timer in the linux device tree.
--- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +5 -0
@@ -870,3 +870,8 @@ &c7x_0 { <&c7x_0_memory_region>; status = "okay"; }; + +/* main_rti4 is used by C7x DSP */ +&main_rti4 { + status = "reserved"; +};
Signature · 1 line
2.49.0
PATCH v8 11/11 arm64: dts: ti: k3-am64: Reserve timers used by MCU FW
In reply to Judith MendezFrom: Hari Nagalla <[email protected]>
AM64x device has 4 R5F cores in the main domain. TI MCU firmware uses main domain timers as tick timers in these firmwares. Hence keep them as reserved in the Linux device tree.
--- arch/arm64/boot/dts/ti/k3-am642-evm.dts | 20 ++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am642-sk.dts | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+)
arch/arm64/boot/dts/ti/k3-am642-evm.dts +20 -0
@@ -796,6 +796,26 @@ &mcu_m4fss { status = "okay"; }; +/* main_timer8 is used by r5f0-0 */ +&main_timer8 { + status = "reserved"; +}; + +/* main_timer9 is used by r5f0-1 */ +&main_timer9 { + status = "reserved"; +}; + +/* main_timer10 is used by r5f1-0 */ +&main_timer10 { + status = "reserved"; +}; + +/* main_timer11 is used by r5f1-1 */ +&main_timer11 { + status = "reserved"; +}; + &serdes_ln_ctrl { idle-states = <AM64_SERDES0_LANE0_PCIE0>; };
arch/arm64/boot/dts/ti/k3-am642-sk.dts +20 -0
@@ -710,6 +710,26 @@ &mcu_m4fss { status = "okay"; }; +/* main_timer8 is used by r5f0-0 */ +&main_timer8 { + status = "reserved"; +}; + +/* main_timer9 is used by r5f0-1 */ +&main_timer9 { + status = "reserved"; +}; + +/* main_timer10 is used by r5f1-0 */ +&main_timer10 { + status = "reserved"; +}; + +/* main_timer11 is used by r5f1-1 */ +&main_timer11 { + status = "reserved"; +}; + &ecap0 { status = "okay"; /* PWM is available on Pin 1 of header J3 */
Signature · 1 line
2.49.0
Hi Judith Mendez,
Quoted 9 lines · Judith Mendez
For am62x and am62ax devices, this patch series adds device nodes for the R5F subsystem and C7xv DSP subsystem found in their respective voltage domain, based on the device TRMs [0][1].
This patch series also includes patches for enabling IPC for am62x SK, am62ax SK, and am62px SK by reserving memory and binding the mailbox assignments for each remote core.
[...]
I have applied the following to branch ti-k3-dts-next on [1]. Thank you!
[01/11] arm64: dts: ti: k3-am62: Add ATCM and BTCM cbass ranges
commit: 5bb1949ffa021056b389393c5edb22abba5372c3
[02/11] arm64: dts: ti: k3-am62-wakeup: Add wakeup R5F node
commit: 5722117235aca01893dbda9dbc7e4790b0b9d43c
[03/11] arm64: dts: ti: k3-am62a-mcu: Add R5F remote proc node
commit: 7f321892dc53015e29cd1055231727b8cdc24923
[04/11] arm64: dts: ti: k3-am62a-wakeup: Add R5F device node
commit: f0623719c2a612cbb9d5927fc5ffef9b54a12fb7
[05/11] arm64: dts: ti: k3-am62a-main: Add C7xv device node
commit: 56f13d79430f8faa27943e376ac25aca0836ee93
[06/11] arm64: dts: ti: k3-am62a7-sk: Enable IPC with remote processors
commit: 77c29ebe76d80174d5735b61edd3c95e32a75d2e
[07/11] arm64: dts: ti: k3-am62p5-sk: Enable IPC with remote processors
commit: b05a6c145001e99348a2fe33958be912f4eb8d4d
[08/11] arm64: dts: ti: k3-am62x-sk-common: Enable IPC with remote processors
commit: 8fb034b8402ead1028ed63394a177947b1450fcd
[09/11] arm64: dts: ti: k3-am62a7-sk: Reserve main_timer2 for C7x DSP
commit: 2a473854bea16de7d3502ae2cd1ba4481eb632e9
[10/11] arm64: dts: ti: k3-am62a7-sk: Reserve main_rti4 for C7x DSP
commit: b4ec77305c2645ce96c4a13aca0c375815e06672
[11/11] arm64: dts: ti: k3-am64: Reserve timers used by MCU FW
commit: e4b55d85024f806c9b364d498e0ebbc74d76d77dAll being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D