read-only;
compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_config_8014: macaddr@8014 {
- reg = <0x8014 0x11>;
- };
- macaddr_config_8036: macaddr@8036 {
- reg = <0x8036 0x11>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_8014: macaddr@8014 {
+ compatible = "mac-base";
+ reg = <0x8014 0x11>;
+ #nvmem-cell-cells = <1>;
+ };
+
+ macaddr_config_8036: macaddr@8036 {
+ compatible = "mac-base";
+ reg = <0x8036 0x11>;
+ #nvmem-cell-cells = <1>;
+ };
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_8014>;
- nvmem-cell-names = "mac-address-ascii";
+ nvmem-cells = <&macaddr_config_8014 0>;
+ nvmem-cell-names = "mac-address";
};
&gmac1 {
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_config_8036>;
- nvmem-cell-names = "mac-address-ascii";
+ nvmem-cells = <&macaddr_config_8036 0>;
+ nvmem-cell-names = "mac-address";
};
&mdio {
read-only;
compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
- macaddr_factory_165: macaddr@165 {
- reg = <0x165 0x11>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_165: macaddr@165 {
+ compatible = "mac-base";
+ reg = <0x165 0x11>;
+ #nvmem-cell-cells = <1>;
+ };
};
+
+
};
partition@0_wholeflash {
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <2400000 2500000>;
- nvmem-cells = <&macaddr_factory_165>;
- nvmem-cell-names = "mac-address-ascii";
+ nvmem-cells = <&macaddr_factory_165 0>;
+ nvmem-cell-names = "mac-address";
};
};
mediatek,mtd-eeprom = <&factory 0x14000>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&macaddr_factory_165>;
- nvmem-cell-names = "mac-address-ascii";
- mac-address-increment = <(2)>;
+ nvmem-cells = <&macaddr_factory_165 2>;
+ nvmem-cell-names = "mac-address";
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_165>;
- nvmem-cell-names = "mac-address-ascii";
+ nvmem-cells = <&macaddr_factory_165 0>;
+ nvmem-cell-names = "mac-address";
};
&gmac1 {
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_165>;
- nvmem-cell-names = "mac-address-ascii";
- mac-address-increment = <(1)>;
+ nvmem-cells = <&macaddr_factory_165 1>;
+ nvmem-cell-names = "mac-address";
};
&mdio {