label = "factory";
reg = <0x30000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_2000: eeprom@2000 {
+ reg = <0x2000 0x200>;
+ };
+
+ macaddr_factory_2004: macaddr@2004 {
+ reg = <0x2004 0x6>;
+ };
+ };
};
partition@40000 {
};
};
-&gpio0 {
- status = "okay";
-};
-
&gpio2 {
status = "okay";
};
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x2004>;
+ nvmem-cells = <&macaddr_factory_2004>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x2000>;
+ nvmem-cells = <&eeprom_factory_2000>;
+ nvmem-cell-names = "eeprom";
};