&gsw {
phy-mode = "mii";
phy-handle = <&phy0>;
- nvmem-cells = <&macaddr_ath9k_cal_a91>;
+ nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
mdio-bus {
#address-cells = <1>;
label = "urlader";
reg = <0x00000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_ath9k_cal_a91: macaddr@a91 {
+ compatible = "mac-base";
+ reg = <0xa91 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@20000 {
status = "okay";
vbus-supply = <&usb1_vbus>;
};
-
-&ath9k_cal {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_ath9k_cal_a91: macaddr@a91 {
- reg = <0xa91 0x6>;
- };
-};