U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Support for PRUETH mode on AM335x ICE
@ 2025-04-10  6:59 Parvathi Pudi
  2025-04-10  6:59 ` [PATCH v1 1/1] include: configs: Adds support for AM335x ICE PRUSS mode Parvathi Pudi
  0 siblings, 1 reply; 3+ messages in thread
From: Parvathi Pudi @ 2025-04-10  6:59 UTC (permalink / raw)
  To: u-boot, trini, sjg
  Cc: pratheesh, prajith, vigneshr, danishanwar, praneeth, srk, rogerq,
	afd, krishna, pmohan, mohan, parvathi, basharath

Hi,

This patch adds support for PRU-ICSS mode in the u-boot environment to
correctly load the device tree blob file based on the HW pin (jumper)
configuration in AM335x ICE Evaluation module. In this device, the pins
and the ports are shared between PRU-ICSS and CPSW thus need runtime
detection between the two modes which are rmii in case of CPSW and mii
in case of PRU-ICSS.

Depending on the jumper configuration on AM335x ICE we have to load the
appropriate device tree blob file. In case of CPSW (rmii) mode, we need to
load am335x-icev2.dtb file and in case of PRU-ICSS (mii) mode we need to
load am335x-icev2-prueth.dtb file.

Thanks and Regards,
Parvathi.

Parvathi Pudi (1):
  include: configs: Adds support for AM335x ICE PRUSS mode

 include/configs/am335x_evm.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v1 1/1] include: configs: Adds support for AM335x ICE PRUSS mode
  2025-04-10  6:59 [PATCH v1 0/1] Support for PRUETH mode on AM335x ICE Parvathi Pudi
@ 2025-04-10  6:59 ` Parvathi Pudi
  2025-04-16 14:10   ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Parvathi Pudi @ 2025-04-10  6:59 UTC (permalink / raw)
  To: u-boot, trini, sjg
  Cc: pratheesh, prajith, vigneshr, danishanwar, praneeth, srk, rogerq,
	afd, krishna, pmohan, mohan, parvathi, basharath

On the AM3359 ICE we have two modes of operation CPSW mode or PRU-ICSS
mode.

For PRU-ICSS mode, connect Pin2 and Pin3 of J18 and J19 and for CPSW mode,
connect Pin1 and Pin2 of J18 and J19.

This patch adds support for PRUSS mode boot strapping from uboot.

Co-developed-by: Basharath Hussain Khaja <basharath@couthit.com>
Signed-off-by: Basharath Hussain Khaja <basharath@couthit.com>
Signed-off-by: Parvathi Pudi <parvathi@couthit.com>
---
 include/configs/am335x_evm.h | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 19d3c72a6f1..cf43fc05025 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -138,11 +138,10 @@
 			"setenv fdtfile am335x-evm.dtb; fi; " \
 		"if test $board_name = A335X_SK; then " \
 			"setenv fdtfile am335x-evmsk.dtb; fi; " \
-		"if test $board_name = A335_ICE; then " \
-			"setenv fdtfile am335x-icev2.dtb; " \
-			"if test $ice_mii = mii; then " \
-				"setenv pxe_label_override Pruss; fi;" \
-		"fi; " \
+		"if test $board_name = A335_ICE && test $ice_mii = rmii; then " \
+			"setenv fdtfile am335x-icev2.dtb; fi; " \
+		"if test $board_name = A335_ICE && test $ice_mii = mii; then " \
+			"setenv fdtfile am335x-icev2-prueth.dtb; fi; " \
 		"if test $fdtfile = undefined; then " \
 			"echo WARNING: Could not determine device tree to use; fi; \0" \
 	"init_console=" \
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] include: configs: Adds support for AM335x ICE PRUSS mode
  2025-04-10  6:59 ` [PATCH v1 1/1] include: configs: Adds support for AM335x ICE PRUSS mode Parvathi Pudi
@ 2025-04-16 14:10   ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2025-04-16 14:10 UTC (permalink / raw)
  To: u-boot, sjg, Parvathi Pudi
  Cc: pratheesh, prajith, vigneshr, danishanwar, praneeth, srk, rogerq,
	afd, krishna, pmohan, mohan, basharath

On Thu, 10 Apr 2025 12:29:55 +0530, Parvathi Pudi wrote:

> On the AM3359 ICE we have two modes of operation CPSW mode or PRU-ICSS
> mode.
> 
> For PRU-ICSS mode, connect Pin2 and Pin3 of J18 and J19 and for CPSW mode,
> connect Pin1 and Pin2 of J18 and J19.
> 
> This patch adds support for PRUSS mode boot strapping from uboot.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] include: configs: Adds support for AM335x ICE PRUSS mode
      commit: 07c3480d8b1d9ccaa5b19dab64dd02446197d7d3
-- 
Tom



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-16 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10  6:59 [PATCH v1 0/1] Support for PRUETH mode on AM335x ICE Parvathi Pudi
2025-04-10  6:59 ` [PATCH v1 1/1] include: configs: Adds support for AM335x ICE PRUSS mode Parvathi Pudi
2025-04-16 14:10   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox