Skip to contentSkip to conversation

Add support for the GST ESPRESSOBin-Ultra board

PATCH Superseded Luka Kovacic 3 participants 11 messages Feb 4, 2021 – Feb 9, 2021

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Add support for the GST ESPRESSOBin-Ultra board

This patchset adds initial support for the ESPRESSOBin-Ultra board from Globalscale Technologies, Inc.

The board is based on the 64-bit dual-core Marvell Armada 3720 SoC. Peripherals:
- 5 Gigabit Ethernet ports (WAN has PoE, up to 30W, Topaz 6341 switch)
- RTC clock (PCF8563)
- USB 3.0 port
- USB 2.0 port
- 4x LED
- UART over Micro-USB
- M.2 slot (2280)
- Mini PCI-E slot

Additionally support for importing Marvell hw_info formatted environments is added to fully support the board.

Luka Kovacic (3):
cmd: env: Add 'env import -h' for Marvell hw_info formatted
environments
arm: mvebu: mvebu_armada-37xx: Define the loadaddr environment
variable
arm: mvebu: Initial ESPRESSOBin-Ultra board support

 arch/arm/dts/Makefile                         |   1 +
 .../arm/dts/armada-3720-espressobin-ultra.dts | 202 ++++++++++++++++++
 board/Marvell/mvebu_armada-37xx/MAINTAINERS   |   8 +
 board/Marvell/mvebu_armada-37xx/board.c       |  76 ++++++-
 cmd/nvedit.c                                  |  22 +-
 .../mvebu_espressobin-ultra-88f3720_defconfig |  90 ++++++++
 include/configs/mvebu_armada-37xx.h           |   1 +
 lib/hashtable.c                               |   2 +-
 8 files changed, 391 insertions(+), 11 deletions(-)
 create mode 100644 arch/arm/dts/armada-3720-espressobin-ultra.dts
 create mode 100644 configs/mvebu_espressobin-ultra-88f3720_defconfig
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>
---
 cmd/nvedit.c    | 22 ++++++++++++++++++----
 lib/hashtable.c |  2 +-
 2 files changed, 19 insertions(+), 5 deletions(-)
cmd/nvedit.c +18 -4
index d0d2eca904..eab490ac48 100644
@@ -1060,7 +1060,7 @@ sep_err:
 
 #ifdef CONFIG_CMD_IMPORTENV
 /*
- * env import [-d] [-t [-r] | -b | -c] addr [size] [var ...]
+ * env import [-d] [-t [-r] | -b | -h | -c] addr [size] [var ...]
  *	-d:	delete existing environment before importing if no var is
  *		passed; if vars are passed, if one var is in the current
  *		environment but not in the environment at addr, delete var from
@@ -1073,6 +1073,7 @@ sep_err:
  *		to import text files created with editors which are using CRLF
  *		for line endings. Only effective in addition to -t.
  *	-b:	assume binary format ('\0' separated, "\0\0" terminated)
+ *	-h:	assume Marvell hw_info format (0x20 separated, "0x20\0" terminated)
  *	-c:	assume checksum protected environment format
  *	addr:	memory address to read from
  *	size:	length of input data; if missing, proper '\0'
@@ -1082,6 +1083,14 @@ sep_err:
  *	var...	List of the names of the only variables that get imported from
  *		the environment at address 'addr'. Without arguments, the whole
  *		environment gets imported.
+ *
+ * Using the "-h" flag you can import a Marvell hw_info formatted environment.
+ * This is commonly used on Marvell Armada A37XX devices to store the board serial
+ * number, MAC addresses and some other information.
+ * Currently you can only import these by loading the data into memory and parse it
+ * using this command. Exporting is currently not supported, due to tight memory
+ * restrictions and a strict formatting scheme.
+ * These parameters are usually populated in the factory.
  */
 static int do_env_import(struct cmd_tbl *cmdtp, int flag,
 			 int argc, char *const argv[])
@@ -1107,6 +1116,11 @@ static int do_env_import(struct cmd_tbl *cmdtp, int flag,
 					goto sep_err;
 				sep = '\0';
 				break;
+			case 'h':		/* Marvell hw_info format */
+				if (fmt++)
+					goto sep_err;
+				sep = 0x20;
+				break;
 			case 'c':		/* external checksum format */
 				if (fmt++)
 					goto sep_err;
@@ -1199,8 +1213,8 @@ static int do_env_import(struct cmd_tbl *cmdtp, int flag,
 	return 0;
 
 sep_err:
-	printf("## %s: only one of \"-b\", \"-c\" or \"-t\" allowed\n",
-		cmd);
+	printf("## %s: only one of \"-b\", \"-h\", \"-c\" or \"-t\" allowed\n",
+	       cmd);
 	return 1;
 }
 #endif
@@ -1450,7 +1464,7 @@ static char env_help_text[] =
 #endif
 #endif
 #if defined(CONFIG_CMD_IMPORTENV)
-	"env import [-d] [-t [-r] | -b | -c] addr [size] [var ...] - import environment\n"
+	"env import [-d] [-t [-r] | -b | -h | -c] addr [size] [var ...] - import environment\n"
 #endif
 #if defined(CONFIG_CMD_NVEDIT_INFO)
 	"env info - display environment information\n"
lib/hashtable.c +1 -1
index ff5ff72639..06322e3304 100644
@@ -794,7 +794,7 @@ static int drop_var_from_set(const char *name, int nvars, char * vars[])
  * multi-line values.
  *
  * In theory, arbitrary separator characters can be used, but only
- * '\0' and '\n' have really been tested.
+ * '\0', '\n' and 0x20 have been tested.
  */
 
 int himport_r(struct hsearch_data *htab,
Signature · 1 line
2.20.1
#2 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

Quoted 18 lines · Luka Kovacic

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Quoted 3 lines
Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>

So, the implementation itself is fine:

And I take it as a given that we can't get the boards populated with an existing separator, so we need to solve this somehow or another. I am however loathe to increase every platform by a handful of bytes (help text, code text) to cover this case, and adding #ifdef around the help text in particular would be very ugly. Is there any clean way to write this as a board-specific command? I assume the overall intention is to import the factory env for the required information, store it in regular U-Boot environment and then never touch the factory area again. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210204/dcd89772/attachment.sig>
#3 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

Hello Tom,

Quoted 29 lines · Tom Rini
Quoted 18 lines · Luka Kovacic

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Quoted 3 lines
Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>

So, the implementation itself is fine:

Quoted 8 lines

And I take it as a given that we can't get the boards populated with an existing separator, so we need to solve this somehow or another. I am however loathe to increase every platform by a handful of bytes (help text, code text) to cover this case, and adding #ifdef around the help text in particular would be very ugly. Is there any clean way to write this as a board-specific command? I assume the overall intention is to import the factory env for the required information, store it in regular U-Boot environment and then never touch the factory area again. Thanks!

I have already considered the possibility of implementing this in a board-specific way, but I tried implementing it here to avoid unnecessary code duplication.
You are correct, the intention is to use this functionality as a migration path. It's good to keep the factory area intact, in case it's still needed in the future.
The Marvell hw_info area is limited to MACs and serial numbers by the stock utility.

I've also compared the resulting u-boot.bin binary size with and without the patch and the difference is about 40 bytes.

Quoted 3 lines

--
Tom

Kind regards,
Luka

#4 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

Quoted 41 lines · Luka Kovacic

Hello Tom,

Quoted 29 lines · Tom Rini
Quoted 18 lines · Luka Kovacic

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Quoted 3 lines
Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>

So, the implementation itself is fine:

Quoted 8 lines

And I take it as a given that we can't get the boards populated with an existing separator, so we need to solve this somehow or another. I am however loathe to increase every platform by a handful of bytes (help text, code text) to cover this case, and adding #ifdef around the help text in particular would be very ugly. Is there any clean way to write this as a board-specific command? I assume the overall intention is to import the factory env for the required information, store it in regular U-Boot environment and then never touch the factory area again. Thanks!

Quoted 8 lines

I have already considered the possibility of implementing this in a board-specific way, but I tried implementing it here to avoid unnecessary code duplication.
You are correct, the intention is to use this functionality as a migration path. It's good to keep the factory area intact, in case it's still needed in the future.
The Marvell hw_info area is limited to MACs and serial numbers by the stock utility.

OK. And can we put this in the board-specific path somehow, relatively cleanly?

Quoted 2 lines

I've also compared the resulting u-boot.bin binary size with and without the patch and the difference is about 40 bytes.

Yes, but it's 40 bytes on nearly every single platform.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210205/169a747c/attachment.sig>
#5 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

Quoted 52 lines · Tom Rini
Quoted 41 lines · Luka Kovacic

Hello Tom,

Quoted 29 lines · Tom Rini
Quoted 18 lines · Luka Kovacic

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Quoted 3 lines
Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>

So, the implementation itself is fine:

Quoted 8 lines

And I take it as a given that we can't get the boards populated with an existing separator, so we need to solve this somehow or another. I am however loathe to increase every platform by a handful of bytes (help text, code text) to cover this case, and adding #ifdef around the help text in particular would be very ugly. Is there any clean way to write this as a board-specific command? I assume the overall intention is to import the factory env for the required information, store it in regular U-Boot environment and then never touch the factory area again. Thanks!

Quoted 8 lines

I have already considered the possibility of implementing this in a board-specific way, but I tried implementing it here to avoid unnecessary code duplication.
You are correct, the intention is to use this functionality as a migration path. It's good to keep the factory area intact, in case it's still needed in the future.
The Marvell hw_info area is limited to MACs and serial numbers by the stock utility.

Quoted 2 lines

OK. And can we put this in the board-specific path somehow, relatively cleanly?

I've been thinking about the following options:
- Implementing a separate command under cmd/mvebu (hw_info), like done
in the stock U-Boot.
I'm not inclined to this one, as I don't see real utility in updating this factory
area. A positive with this one is that it abstracts reading of the SPI flash.

- No command, automatic migration, directly from the SPI flash (implemented
in the board.c file.
I don't see this as a clean way of doing it, the Armada A37XX board.c is already quite full of board-specific init.

- Implemented as is, but with #ifdef
This would break CONFIG_CMD_IMPORTENV into smaller pieces. #ifdef wouldn't look too bad around the code, only the inline string changes would be ugly.

What would you recommend?

Quoted 8 lines
Quoted 3 lines

I've also compared the resulting u-boot.bin binary size with and without the patch and the difference is about 40 bytes.

Yes, but it's 40 bytes on nearly every single platform.

--
Tom

Kind regards,
Luka

#6 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

Quoted 68 lines · Luka Kovacic
Quoted 52 lines · Tom Rini
Quoted 41 lines · Luka Kovacic

Hello Tom,

Quoted 29 lines · Tom Rini
Quoted 18 lines · Luka Kovacic

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Quoted 3 lines
Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>

So, the implementation itself is fine:

Quoted 8 lines

And I take it as a given that we can't get the boards populated with an existing separator, so we need to solve this somehow or another. I am however loathe to increase every platform by a handful of bytes (help text, code text) to cover this case, and adding #ifdef around the help text in particular would be very ugly. Is there any clean way to write this as a board-specific command? I assume the overall intention is to import the factory env for the required information, store it in regular U-Boot environment and then never touch the factory area again. Thanks!

Quoted 8 lines

I have already considered the possibility of implementing this in a board-specific way, but I tried implementing it here to avoid unnecessary code duplication.
You are correct, the intention is to use this functionality as a migration path. It's good to keep the factory area intact, in case it's still needed in the future.
The Marvell hw_info area is limited to MACs and serial numbers by the stock utility.

Quoted 2 lines

OK. And can we put this in the board-specific path somehow, relatively cleanly?

I've been thinking about the following options:
- Implementing a separate command under cmd/mvebu (hw_info), like done
in the stock U-Boot.
I'm not inclined to this one, as I don't see real utility in updating this factory
area. A positive with this one is that it abstracts reading of the SPI flash.

- No command, automatic migration, directly from the SPI flash (implemented
in the board.c file.
I don't see this as a clean way of doing it, the Armada A37XX board.c is already quite full of board-specific init.

Quoted 6 lines

- Implemented as is, but with #ifdef
This would break CONFIG_CMD_IMPORTENV into smaller pieces. #ifdef wouldn't look too bad around the code, only the inline string changes would be ugly.

What would you recommend?

I hate to say it but I prefer the first, especially if it ends up being like 50 lines of code or whatever to write the function and all that. Or the second option, if the first option really ends up being messy once you write it and the second one less messy. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210205/dba84c6e/attachment.sig>
#7 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

Quoted 75 lines · Tom Rini
Quoted 73 lines · Luka Kovacic
Quoted 52 lines · Tom Rini
Quoted 41 lines · Luka Kovacic

Hello Tom,

Quoted 29 lines · Tom Rini
Quoted 18 lines · Luka Kovacic

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Quoted 3 lines
Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>

So, the implementation itself is fine:

Quoted 8 lines

And I take it as a given that we can't get the boards populated with an existing separator, so we need to solve this somehow or another. I am however loathe to increase every platform by a handful of bytes (help text, code text) to cover this case, and adding #ifdef around the help text in particular would be very ugly. Is there any clean way to write this as a board-specific command? I assume the overall intention is to import the factory env for the required information, store it in regular U-Boot environment and then never touch the factory area again. Thanks!

Quoted 8 lines

I have already considered the possibility of implementing this in a board-specific way, but I tried implementing it here to avoid unnecessary code duplication.
You are correct, the intention is to use this functionality as a migration path. It's good to keep the factory area intact, in case it's still needed in the future.
The Marvell hw_info area is limited to MACs and serial numbers by the stock utility.

Quoted 2 lines

OK. And can we put this in the board-specific path somehow, relatively cleanly?

I've been thinking about the following options:
- Implementing a separate command under cmd/mvebu (hw_info), like done
in the stock U-Boot.
I'm not inclined to this one, as I don't see real utility in updating this factory
area. A positive with this one is that it abstracts reading of the SPI flash.

- No command, automatic migration, directly from the SPI flash (implemented
in the board.c file.
I don't see this as a clean way of doing it, the Armada A37XX board.c is already quite full of board-specific init.

- Implemented as is, but with #ifdef
This would break CONFIG_CMD_IMPORTENV into smaller pieces. #ifdef wouldn't look too bad around the code, only the inline string changes would be ugly.

Quoted 6 lines
Quoted 1 line

What would you recommend?

I hate to say it but I prefer the first, especially if it ends up being like 50 lines of code or whatever to write the function and all that. Or the second option, if the first option really ends up being messy once you write it and the second one less messy. Thanks!

Okay, I agree.

I think the first option should end up cleaner than both other options. I'll do it this way.

Quoted 3 lines

--
Tom

Kind regards,
Luka

#8 lore raw

PATCH 1/3 cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

Quoted 83 lines · Luka Kovacic
Quoted 75 lines · Tom Rini
Quoted 73 lines · Luka Kovacic
Quoted 52 lines · Tom Rini
Quoted 41 lines · Luka Kovacic

Hello Tom,

Quoted 29 lines · Tom Rini
Quoted 18 lines · Luka Kovacic

The '-h' flag is added to the 'env import' command to enable parsing Marvell hw_info formatted environments.
This format is often used on Marvell Armada A37XX based devices to store parameters like the board serial number, factory MAC addresses and some other information.

Currently this environment format can only be imported, not exported. These parameters are usually written to the flash in the factory.

This functionality has been tested on the GST ESPRESSOBin-Ultra board successfully.

Usage example:
=> sf probe
=> sf read ${loadaddr} 0x003E000A 0x1F0 # Read the environment from
SPI flash
=> env import -h ${loadaddr}

Quoted 3 lines
Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>

So, the implementation itself is fine:

Quoted 8 lines

And I take it as a given that we can't get the boards populated with an existing separator, so we need to solve this somehow or another. I am however loathe to increase every platform by a handful of bytes (help text, code text) to cover this case, and adding #ifdef around the help text in particular would be very ugly. Is there any clean way to write this as a board-specific command? I assume the overall intention is to import the factory env for the required information, store it in regular U-Boot environment and then never touch the factory area again. Thanks!

Quoted 8 lines

I have already considered the possibility of implementing this in a board-specific way, but I tried implementing it here to avoid unnecessary code duplication.
You are correct, the intention is to use this functionality as a migration path. It's good to keep the factory area intact, in case it's still needed in the future.
The Marvell hw_info area is limited to MACs and serial numbers by the stock utility.

Quoted 2 lines

OK. And can we put this in the board-specific path somehow, relatively cleanly?

I've been thinking about the following options:
- Implementing a separate command under cmd/mvebu (hw_info), like done
in the stock U-Boot.
I'm not inclined to this one, as I don't see real utility in updating this factory
area. A positive with this one is that it abstracts reading of the SPI flash.

- No command, automatic migration, directly from the SPI flash (implemented
in the board.c file.
I don't see this as a clean way of doing it, the Armada A37XX board.c is already quite full of board-specific init.

- Implemented as is, but with #ifdef
This would break CONFIG_CMD_IMPORTENV into smaller pieces. #ifdef wouldn't look too bad around the code, only the inline string changes would be ugly.

Quoted 6 lines
Quoted 1 line

What would you recommend?

I hate to say it but I prefer the first, especially if it ends up being like 50 lines of code or whatever to write the function and all that. Or the second option, if the first option really ends up being messy once you write it and the second one less messy. Thanks!

Quoted 4 lines

Okay, I agree.

I think the first option should end up cleaner than both other options. I'll do it this way.

Ok. Please rebase on latest mainline and send v2 once it's ready.

Thanks,
Stefan

#9 lore raw

PATCH 2/3 arm: mvebu: mvebu_armada-37xx: Define the loadaddr environment variable

In reply to Luka Kovacic

Add the loadaddr U-Boot environment variable, as this is available in the stock Marvell U-Boot by default on Marvell Armada A37XX platforms.

Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>
---
 include/configs/mvebu_armada-37xx.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/mvebu_armada-37xx.h +1 -0
index 0d585606a7..6da82078a4 100644
@@ -89,6 +89,7 @@
 
 /* fdt_addr and kernel_addr are needed for existing distribution boot scripts */
 #define CONFIG_EXTRA_ENV_SETTINGS	\
+	"loadaddr=0x6000000\0"		\
 	"scriptaddr=0x6d00000\0"	\
 	"pxefile_addr_r=0x6e00000\0"	\
 	"fdt_addr=0x6f00000\0"		\
Signature · 1 line
2.20.1
#10 lore raw

PATCH 3/3 arm: mvebu: Initial ESPRESSOBin-Ultra board support

In reply to Luka Kovacic

Add initial support for the ESPRESSOBin-Ultra board from Globalscale Technologies, Inc.

The board is based on the 64-bit dual-core Marvell Armada 3720 SoC. Peripherals:
- 5 Gigabit Ethernet ports (WAN has PoE, up to 30W, Topaz 6341 switch)
- RTC clock (PCF8563)
- USB 3.0 port
- USB 2.0 port
- 4x LED
- UART over Micro-USB
- M.2 slot (2280)
- Mini PCI-E slot

Additionally, automatic import of the Marvell hw_info parameters is enabled via the recently added env import -h flag.
The parameters stored in Marvell hw_info are usually the board serial number and MAC addresses.

Cc Luka Perkov <[email protected]>
Cc Robert Marko <[email protected]>
---
 arch/arm/dts/Makefile                         |   1 +
 .../arm/dts/armada-3720-espressobin-ultra.dts | 202 ++++++++++++++++++
 board/Marvell/mvebu_armada-37xx/MAINTAINERS   |   8 +
 board/Marvell/mvebu_armada-37xx/board.c       |  76 ++++++-
 .../mvebu_espressobin-ultra-88f3720_defconfig |  90 ++++++++
 5 files changed, 371 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm/dts/armada-3720-espressobin-ultra.dts
 create mode 100644 configs/mvebu_espressobin-ultra-88f3720_defconfig
arch/arm/dts/Makefile +1 -0
index 858b79ac97..51455c0271 100644
@@ -210,6 +210,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \
 dtb-$(CONFIG_ARCH_MVEBU) +=			\
 	armada-3720-db.dtb			\
 	armada-3720-espressobin.dtb		\
+	armada-3720-espressobin-ultra.dtb	\
 	armada-3720-turris-mox.dtb		\
 	armada-3720-uDPU.dtb			\
 	armada-375-db.dtb			\
arch/arm/dts/armada-3720-espressobin-ultra.dts new file +202 -0

202 lines not on this page · raw message

board/Marvell/mvebu_armada-37xx/MAINTAINERS +8 -0
index f2c0a582d7..d69af832fc 100644
@@ -10,6 +10,14 @@ M:	Konstantin Porotchkin <[email protected]>
 S:	Maintained
 F:	configs/mvebu_espressobin-88f3720_defconfig
 
+ESPRESSOBin-Ultra BOARD
+M:	Luka Kovacic <[email protected]>
+M:	Robert Marko <[email protected]>
+M:	Luka Perkov <[email protected]>
+S:	Maintained
+F:	arch/arm/dts/armada-3720-espressobin-ultra.dts
+F:	configs/mvebu_espressobin-ultra-88f3720_defconfig
+
 uDPU BOARD
 M:	Vladimir Vid <[email protected]>
 S:	Maintained
board/Marvell/mvebu_armada-37xx/board.c +70 -6

108 lines not on this page · raw message

configs/mvebu_espressobin-ultra-88f3720_defconfig new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
2.20.1