u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: zynq: Point via nvmem0 alias to eeprom on zc702/zc706
@ 2022-09-27  7:55 Michal Simek
  2022-10-04 11:52 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2022-09-27  7:55 UTC (permalink / raw)
  To: u-boot, git

EEPROM stores identification information about board like a board name,
revision, serial number and ethernet MAC address. U-Boot is capable to read
nvmemX aliases and read/display provided information when nvmem alias link
is described.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 arch/arm/dts/zynq-zc702.dts | 3 ++-
 arch/arm/dts/zynq-zc706.dts | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/zynq-zc702.dts b/arch/arm/dts/zynq-zc702.dts
index 1bd4f8c9f661..99ee87bb2453 100644
--- a/arch/arm/dts/zynq-zc702.dts
+++ b/arch/arm/dts/zynq-zc702.dts
@@ -17,6 +17,7 @@
 		spi0 = &qspi;
 		mmc0 = &sdhci0;
 		usb0 = &usb0;
+		nvmem0 = &eeprom;
 	};
 
 	memory@0 {
@@ -142,7 +143,7 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <2>;
-			eeprom@54 {
+			eeprom: eeprom@54 {
 				compatible = "atmel,24c08";
 				reg = <0x54>;
 			};
diff --git a/arch/arm/dts/zynq-zc706.dts b/arch/arm/dts/zynq-zc706.dts
index cb919e40533e..f0ad68d94f17 100644
--- a/arch/arm/dts/zynq-zc706.dts
+++ b/arch/arm/dts/zynq-zc706.dts
@@ -16,6 +16,7 @@
 		serial0 = &uart1;
 		spi0 = &qspi;
 		mmc0 = &sdhci0;
+		nvmem0 = &eeprom;
 	};
 
 	memory@0 {
@@ -101,7 +102,7 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <2>;
-			eeprom@54 {
+			eeprom: eeprom@54 {
 				compatible = "atmel,24c08";
 				reg = <0x54>;
 			};
-- 
2.36.1


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

* Re: [PATCH] ARM: zynq: Point via nvmem0 alias to eeprom on zc702/zc706
  2022-09-27  7:55 [PATCH] ARM: zynq: Point via nvmem0 alias to eeprom on zc702/zc706 Michal Simek
@ 2022-10-04 11:52 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2022-10-04 11:52 UTC (permalink / raw)
  To: Michal Simek; +Cc: u-boot, git

út 27. 9. 2022 v 9:55 odesílatel Michal Simek <michal.simek@amd.com> napsal:
>
> EEPROM stores identification information about board like a board name,
> revision, serial number and ethernet MAC address. U-Boot is capable to read
> nvmemX aliases and read/display provided information when nvmem alias link
> is described.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
>  arch/arm/dts/zynq-zc702.dts | 3 ++-
>  arch/arm/dts/zynq-zc706.dts | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/dts/zynq-zc702.dts b/arch/arm/dts/zynq-zc702.dts
> index 1bd4f8c9f661..99ee87bb2453 100644
> --- a/arch/arm/dts/zynq-zc702.dts
> +++ b/arch/arm/dts/zynq-zc702.dts
> @@ -17,6 +17,7 @@
>                 spi0 = &qspi;
>                 mmc0 = &sdhci0;
>                 usb0 = &usb0;
> +               nvmem0 = &eeprom;
>         };
>
>         memory@0 {
> @@ -142,7 +143,7 @@
>                         #address-cells = <1>;
>                         #size-cells = <0>;
>                         reg = <2>;
> -                       eeprom@54 {
> +                       eeprom: eeprom@54 {
>                                 compatible = "atmel,24c08";
>                                 reg = <0x54>;
>                         };
> diff --git a/arch/arm/dts/zynq-zc706.dts b/arch/arm/dts/zynq-zc706.dts
> index cb919e40533e..f0ad68d94f17 100644
> --- a/arch/arm/dts/zynq-zc706.dts
> +++ b/arch/arm/dts/zynq-zc706.dts
> @@ -16,6 +16,7 @@
>                 serial0 = &uart1;
>                 spi0 = &qspi;
>                 mmc0 = &sdhci0;
> +               nvmem0 = &eeprom;
>         };
>
>         memory@0 {
> @@ -101,7 +102,7 @@
>                         #address-cells = <1>;
>                         #size-cells = <0>;
>                         reg = <2>;
> -                       eeprom@54 {
> +                       eeprom: eeprom@54 {
>                                 compatible = "atmel,24c08";
>                                 reg = <0x54>;
>                         };
> --
> 2.36.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

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

end of thread, other threads:[~2022-10-04 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27  7:55 [PATCH] ARM: zynq: Point via nvmem0 alias to eeprom on zc702/zc706 Michal Simek
2022-10-04 11:52 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).