]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: Point via nvmem0 alias to eeprom on zc702/zc706
authorMichal Simek <michal.simek@amd.com>
Tue, 27 Sep 2022 07:55:12 +0000 (09:55 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 5 Oct 2022 06:43:54 +0000 (08:43 +0200)
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>
Link: https://lore.kernel.org/r/c63bba87d0400b6bd0f5651fac21d525f12288f5.1664265311.git.michal.simek@amd.com
arch/arm/dts/zynq-zc702.dts
arch/arm/dts/zynq-zc706.dts

index 1bd4f8c9f6615af6b39077bcdfe1b3c85df13798..99ee87bb2453c7cbf60eb90f73348ebcb4cc31fc 100644 (file)
@@ -17,6 +17,7 @@
                spi0 = &qspi;
                mmc0 = &sdhci0;
                usb0 = &usb0;
+               nvmem0 = &eeprom;
        };
 
        memory@0 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <2>;
-                       eeprom@54 {
+                       eeprom: eeprom@54 {
                                compatible = "atmel,24c08";
                                reg = <0x54>;
                        };
index cb919e40533e4a4d7785449ae536e6c9616d65a4..f0ad68d94f17a7509783edb88add4f2063d454d5 100644 (file)
@@ -16,6 +16,7 @@
                serial0 = &uart1;
                spi0 = &qspi;
                mmc0 = &sdhci0;
+               nvmem0 = &eeprom;
        };
 
        memory@0 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <2>;
-                       eeprom@54 {
+                       eeprom: eeprom@54 {
                                compatible = "atmel,24c08";
                                reg = <0x54>;
                        };