Skip to contentSkip to conversation

Add AM64x Support to PRUSS and PRU_RPROC driver

PATCH In review MD Danish Anwar 3 participants 9 messages Apr 30, 2024 – May 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Add AM64x Support to PRUSS and PRU_RPROC driver

This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers. This series is a prerequisite for ICSSG Ethernet driver.

Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send another series to enable ICSSG Ethernet driver for AM64x as well.

MD Danish Anwar (2):
remoteproc: pru: Add support for AM64x PRU / RTU cores
soc: ti: pruss: Add support for AM64x

 drivers/remoteproc/pru_rproc.c | 9 +++++++--
 drivers/soc/ti/pruss.c         | 1 +
 2 files changed, 8 insertions(+), 2 deletions(-)

base-commit: ff0de1f0557ed7d2dab47ba976a37347a1fdc432

Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 remoteproc: pru: Add support for AM64x PRU / RTU cores

Add support for AM64x PRU cores by adding compatibles for AM64x.

---
 drivers/remoteproc/pru_rproc.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/remoteproc/pru_rproc.c +7 -2
index 6ec55e27d9..5e9334e117 100644
@@ -399,10 +399,12 @@ static void pru_set_id(struct pru_privdata *priv, struct udevice *dev)
 {
 	u32 mask2 = 0x38000;
 
-	if (device_is_compatible(dev, "ti,am654-rtu"))
+	if (device_is_compatible(dev, "ti,am654-rtu") ||
+	    device_is_compatible(dev, "ti,am642-rtu"))
 		mask2 = 0x6000;
 
-	if (device_is_compatible(dev, "ti,am654-tx-pru"))
+	if (device_is_compatible(dev, "ti,am654-tx-pru") ||
+	    device_is_compatible(dev, "ti,am642-tx-pru"))
 		mask2 = 0xc000;
 
 	if ((priv->pru_iram & mask2) == mask2)
@@ -448,6 +450,9 @@ static const struct udevice_id pru_ids[] = {
 	{ .compatible = "ti,am654-pru"},
 	{ .compatible = "ti,am654-rtu"},
 	{ .compatible = "ti,am654-tx-pru" },
+	{ .compatible = "ti,am642-pru"},
+	{ .compatible = "ti,am642-rtu"},
+	{ .compatible = "ti,am642-tx-pru" },
 	{}
 };
 
Signature · 1 line
2.34.1
#3 lore raw

PATCH 2/2 soc: ti: pruss: Add support for AM64x

In reply to MD Danish Anwar

Add support for AM64x by adding it's compatible in pruss driver.

---
 drivers/soc/ti/pruss.c | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/ti/pruss.c +1 -0
index 461390925d..5317b8335b 100644
@@ -205,6 +205,7 @@ static int pruss_probe(struct udevice *dev)
 
 static const struct udevice_id pruss_ids[] = {
 	{ .compatible = "ti,am654-icssg"},
+	{ .compatible = "ti,am642-icssg"},
 	{}
 };
 
Signature · 1 line
2.34.1
#5 lore raw
In reply to MD Danish Anwar
Quoted 11 lines · MD Danish Anwar

This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers. This series is a prerequisite for ICSSG Ethernet driver.

Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send another series to enable ICSSG Ethernet driver for AM64x as well.

MD Danish Anwar (2):
remoteproc: pru: Add support for AM64x PRU / RTU cores
soc: ti: pruss: Add support for AM64x

[...]

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#6 lore raw

Hi Tom,

Quoted 8 lines · Tom Rini
Quoted 6 lines · MD Danish Anwar

This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers. This series is a prerequisite for ICSSG Ethernet driver.

Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send another series to enable ICSSG Ethernet driver for AM64x as well.

Quoted 8 lines
Quoted 5 lines

MD Danish Anwar (2):
remoteproc: pru: Add support for AM64x PRU / RTU cores
soc: ti: pruss: Add support for AM64x

[...]

Applied to u-boot/next, thanks!

I was working on the latest u-boot/next (d4781422d1 (origin/next) "Merge tag 'v2024.07-rc3' into next") and I don't see this series being part of u-boot/next.

I checked the git logs, you had merged this series but on 18th may you committed [1] ("Revert "Merge patch series "arm: dts: am62-beagleplay:
Fix Beagleplay Ethernet""") which reverts bunch of changes and as part of this commit, this series was also reverted.

Now when I am trying to verify ICSSG, it doesn't work as this series is not part of u-boot/next anymore.

Can you please pull / merge this series again to u-boot/next? Or do I need to send these patches for merge again?

Please let me know.

[1]
https://source.denx.de/u-boot/u-boot/-/commit/d678a59d2d719da9e807495b4b021501f2836ca5

Signature · 2 lines
Thanks and Regards,
Danish
#7 lore raw
Quoted 32 lines · MD Danish Anwar

Hi Tom,

Quoted 8 lines · Tom Rini
Quoted 6 lines · MD Danish Anwar

This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers. This series is a prerequisite for ICSSG Ethernet driver.

Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send another series to enable ICSSG Ethernet driver for AM64x as well.

Quoted 8 lines
Quoted 5 lines

MD Danish Anwar (2):
remoteproc: pru: Add support for AM64x PRU / RTU cores
soc: ti: pruss: Add support for AM64x

[...]

Applied to u-boot/next, thanks!

I was working on the latest u-boot/next (d4781422d1 (origin/next) "Merge tag 'v2024.07-rc3' into next") and I don't see this series being part of u-boot/next.

I checked the git logs, you had merged this series but on 18th may you committed [1] ("Revert "Merge patch series "arm: dts: am62-beagleplay:
Fix Beagleplay Ethernet""") which reverts bunch of changes and as part of this commit, this series was also reverted.

Now when I am trying to verify ICSSG, it doesn't work as this series is not part of u-boot/next anymore.

Quoted 7 lines

Can you please pull / merge this series again to u-boot/next? Or do I need to send these patches for merge again?

Please let me know.

[1]
https://source.denx.de/u-boot/u-boot/-/commit/d678a59d2d719da9e807495b4b021501f2836ca5

Please re-post based on current next, sorry for the rework.

Signature · 1 line
Tom
#8 lore raw

Hi Tom,

Quoted 36 lines · Tom Rini
Quoted 35 lines · MD Danish Anwar

Hi Tom,

Quoted 8 lines · Tom Rini
Quoted 6 lines · MD Danish Anwar

This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers. This series is a prerequisite for ICSSG Ethernet driver.

Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send another series to enable ICSSG Ethernet driver for AM64x as well.

Quoted 8 lines
Quoted 5 lines

MD Danish Anwar (2):
remoteproc: pru: Add support for AM64x PRU / RTU cores
soc: ti: pruss: Add support for AM64x

[...]

Applied to u-boot/next, thanks!

I was working on the latest u-boot/next (d4781422d1 (origin/next) "Merge tag 'v2024.07-rc3' into next") and I don't see this series being part of u-boot/next.

I checked the git logs, you had merged this series but on 18th may you committed [1] ("Revert "Merge patch series "arm: dts: am62-beagleplay:
Fix Beagleplay Ethernet""") which reverts bunch of changes and as part of this commit, this series was also reverted.

Now when I am trying to verify ICSSG, it doesn't work as this series is not part of u-boot/next anymore.

Can you please pull / merge this series again to u-boot/next? Or do I need to send these patches for merge again?

Quoted 7 lines
Quoted 4 lines

Please let me know.

[1]
https://source.denx.de/u-boot/u-boot/-/commit/d678a59d2d719da9e807495b4b021501f2836ca5

Please re-post based on current next, sorry for the rework.

I see that now this series is part of u-boot/next. Your commit [1] has restored the changes. Thanks for that.

[1]
https://source.denx.de/u-boot/u-boot/-/commit/03de305ec48b0bb28554372abb40ccd46dbe0bf9

Signature · 2 lines
Thanks and Regards,
Danish