partition@1080000 {
label = "ubi";
reg = <0x1080000 0x6f00000>;
+
+ volumes {
+ ubi-volume-board-config {
+ volname = "board-config";
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_board_102: macaddr@102 {
+ compatible = "mac-base";
+ reg = <0x102 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
+ };
+ };
};
partition@7fe0000 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
+ nvmem-cells = <&macaddr_board_102 2>;
+ nvmem-cell-names = "mac-address";
};
};
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
+ nvmem-cells = <&macaddr_board_102 3>;
+ nvmem-cell-names = "mac-address";
};
};
pll-data = <0xa6000000 0xa0000101 0x80001313>;
phy-handle = <&phy>;
+ nvmem-cells = <&macaddr_board_102 0>;
+ nvmem-cell-names = "mac-address";
+
gmac-config {
device = <&gmac>;
rgmii-enabled = <1>;
&wmac {
status = "okay";
qca,no-eeprom;
+
+ nvmem-cells = <&macaddr_board_102 1>;
+ nvmem-cell-names = "mac-address";
};
else
caldata_extract "odm-caldata" 0x1000 0x440
fi
- ath9k_patch_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) 1)
;;
*)
caldata_die "board $board is not supported yet"
else
caldata_extract "odm-caldata" 0x5000 0x440
fi
- ath9k_patch_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) 2)
;;
*)
caldata_die "board $board is not supported yet"
else
caldata_extract "odm-caldata" 0x9000 0x440
fi
- ath9k_patch_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) 3)
;;
*)
caldata_die "board $board is not supported yet"