@@ -15,22 +15,25 @@
};
&eeprom {
- #address-cells = <1>;
- #size-cells = <1>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
- board_sn: board-sn@0 {
- reg = <0x0 0x14>;
- };
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
- eth_mac: eth-mac@20 {
- reg = <0x20 0x6>;
- };
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
- board_name: board-name@d0 {
- reg = <0xd0 0x6>;
- };
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
- board_revision: board-revision@e0 {
- reg = <0xe0 0x3>;
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
};
};
@@ -128,8 +128,27 @@
eeprom: eeprom@54 { /* u23 */
compatible = "atmel,24c08";
reg = <0x54>;
- #address-cells = <1>;
- #size-cells = <1>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
+
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
+
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
+
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
+ };
};
};
@@ -153,8 +153,27 @@
eeprom: eeprom@54 { /* u23 */
compatible = "atmel,24c08";
reg = <0x54>;
- #address-cells = <1>;
- #size-cells = <1>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
+
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
+
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
+
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
+ };
};
};
@@ -483,6 +483,27 @@
eeprom: eeprom@54 { /* u23 */
compatible = "atmel,24c08";
reg = <0x54>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
+
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
+
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
+
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
+ };
};
};
i2c@1 {
@@ -379,6 +379,27 @@
eeprom: eeprom@54 { /* u88 */
compatible = "atmel,24c08";
reg = <0x54>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
+
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
+
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
+
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
+ };
};
};
i2c@1 {
@@ -152,6 +152,27 @@
eeprom: eeprom@54 { /* u101 */
compatible = "atmel,24c32"; /* 24LC32A */
reg = <0x54>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
+
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
+
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
+
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
+ };
};
};
i2c@3 {
@@ -397,6 +397,27 @@
eeprom: eeprom@54 { /* u21 */
compatible = "atmel,24c128";
reg = <0x54>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
+
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
+
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
+
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
+ };
};
};
i2c_si5341: i2c@1 {
@@ -401,6 +401,27 @@
eeprom: eeprom@54 { /* u21 */
compatible = "atmel,24c128";
reg = <0x54>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ board_sn: board-sn@0 {
+ reg = <0x0 0x14>;
+ };
+
+ eth_mac: eth-mac@20 {
+ reg = <0x20 0x6>;
+ };
+
+ board_name: board-name@d0 {
+ reg = <0xd0 0x6>;
+ };
+
+ board_revision: board-revision@e0 {
+ reg = <0xe0 0x3>;
+ };
+ };
};
};
i2c_si5341: i2c@1 {
Use fixed partition to cover eeprom content on zynqmp boards. Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- Changes in v2: - remove address/size cells from eeprom nodes - it is not needed - Add missing compatible node to zcu102 arch/arm/dts/zynqmp-zcu102-rev1.0.dts | 29 +++++++++++++++------------ arch/arm/dts/zynqmp-zcu104-revA.dts | 23 +++++++++++++++++++-- arch/arm/dts/zynqmp-zcu104-revC.dts | 23 +++++++++++++++++++-- arch/arm/dts/zynqmp-zcu106-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu111-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu1285-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu208-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu216-revA.dts | 21 +++++++++++++++++++ 8 files changed, 163 insertions(+), 17 deletions(-)