]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: zynq: Point via nvmem0 alias to eeprom on zc702/zc706
authorMichal Simek <michal.simek@amd.com>
Wed, 11 Dec 2024 12:41:28 +0000 (13:41 +0100)
committerMichal Simek <michal.simek@amd.com>
Mon, 3 Feb 2025 16:05:50 +0000 (17:05 +0100)
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/c4a28874455a8747638551cf09ba31aa803b8b09.1733920873.git.michal.simek@amd.com
arch/arm/boot/dts/xilinx/zynq-zc702.dts
arch/arm/boot/dts/xilinx/zynq-zc706.dts

index 424e78f6c148868eb7eb65e03ccd6892d0586240..78645455c0a717ed81bcb38538f4b288120ed4ac 100644 (file)
@@ -16,6 +16,7 @@
                i2c0 = &i2c0;
                serial0 = &uart1;
                mmc0 = &sdhci0;
+               nvmem0 = &eeprom;
        };
 
        memory@0 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <2>;
-                       eeprom@54 {
+                       eeprom: eeprom@54 {
                                compatible = "atmel,24c08";
                                reg = <0x54>;
                        };
index 199fb37257c23e8e632b3903dc17fc279f04f420..1ebf8e422c3c4bec149644602b32f4b6b3f4f954 100644 (file)
@@ -15,6 +15,7 @@
                i2c0 = &i2c0;
                serial0 = &uart1;
                mmc0 = &sdhci0;
+               nvmem0 = &eeprom;
        };
 
        memory@0 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <2>;
-                       eeprom@54 {
+                       eeprom: eeprom@54 {
                                compatible = "atmel,24c08";
                                reg = <0x54>;
                        };