label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ compatible = "mac-base";
+ reg = <0xe006 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
firmware: partition@50000 {
};
};
-&gpio {
- status = "okay";
+ðernet {
+ pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&gmac0 {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006 0>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_factory_e006 1>;
+ nvmem-cell-names = "mac-address";
};
};
};
&pcie {
status = "okay";
+};
- pcie0 {
- wifi@0,0 {
- compatible = "pci14c3,7603";
- reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
- ieee80211-freq-limit = <2400000 2500000>;
- };
+&pcie0 {
+ wifi@0,0 {
+ compatible = "pci14c3,7603";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
+ ieee80211-freq-limit = <2400000 2500000>;
};
+};
- pcie1 {
- wifi@0,0 {
- compatible = "pci14c3,7662";
- reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x8000>;
- ieee80211-freq-limit = <5000000 6000000>;
- led {
- led-sources = <2>;
- };
+&pcie1 {
+ wifi@0,0 {
+ compatible = "pci14c3,7662";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
+ ieee80211-freq-limit = <5000000 6000000>;
+
+ led {
+ led-sources = <2>;
};
};
};