arm64: zynqmp: Add nvmem alises for eeproms
authorMichal Simek <michal.simek@xilinx.com>
Mon, 14 Jun 2021 15:25:25 +0000 (17:25 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 13 Sep 2021 06:55:54 +0000 (08:55 +0200)
Use nvmem alias to point to eeprom memory which contains information about
board. The change is done based on discussion in the link below.

Link: https://lore.kernel.org/r/CAL_JsqLMDqpkyg-Q7mUfw-XH67-v068Q6e9wTq2UOoN=0-_coQ@mail.gmail.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/9b860b47ec3ca64340b4d29317e92b667236d7d1.1623684253.git.michal.simek@xilinx.com
arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts
arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts
arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts
arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts
arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts

index 1a45e4946dd444f766812e4501a7b5f7d1d7a581..339a12b255c1d3c52eddd3d0f976a6a5b32cf33d 100644 (file)
@@ -25,6 +25,7 @@
                i2c0 = &i2c0;
                i2c1 = &i2c1;
                mmc0 = &sdhci1;
+               nvmem0 = &eeprom;
                rtc0 = &rtc;
                serial0 = &uart0;
                serial1 = &uart1;
index d7ecfcadd08bd976d93b2a98f6cb60758b7a5a62..4c328569c3ac04e0be04a496c35c6a21ffcfcde0 100644 (file)
@@ -23,6 +23,7 @@
                ethernet0 = &gem3;
                i2c0 = &i2c1;
                mmc0 = &sdhci1;
+               nvmem0 = &eeprom;
                rtc0 = &rtc;
                serial0 = &uart0;
                serial1 = &uart1;
                         * 512B - 768B address 0x56
                         * 768B - 1024B address 0x57
                         */
-                       eeprom@54 { /* u23 */
+                       eeprom: eeprom@54 { /* u23 */
                                compatible = "atmel,24c08";
                                reg = <0x54>;
                                #address-cells = <1>;
index 403a8ea6a36fce6dce00ebeb6970df2cf5771e8e..99d172867f6a790b03ff8af9eb04fb276edf9bae 100644 (file)
@@ -23,6 +23,7 @@
                ethernet0 = &gem3;
                i2c0 = &i2c1;
                mmc0 = &sdhci1;
+               nvmem0 = &eeprom;
                rtc0 = &rtc;
                serial0 = &uart0;
                serial1 = &uart1;
index 186d2e00d4a029af7966b08673fb291d69ee25ef..dbb8bfbb5c7f691364c9585739b600892893f6cb 100644 (file)
@@ -25,6 +25,7 @@
                i2c0 = &i2c0;
                i2c1 = &i2c1;
                mmc0 = &sdhci1;
+               nvmem0 = &eeprom;
                rtc0 = &rtc;
                serial0 = &uart0;
                serial1 = &uart1;
index e646246a3b14a074badfce56491150c2884e9878..85e9d0e2f9bd2ffd9d541331dd162d2025764966 100644 (file)
@@ -25,6 +25,7 @@
                i2c0 = &i2c0;
                i2c1 = &i2c1;
                mmc0 = &sdhci1;
+               nvmem0 = &eeprom;
                rtc0 = &rtc;
                serial0 = &uart0;
                serial1 = &dcc;