It's deprecated.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
};
partition@110000 {
- compatible = "nvmem-cells";
reg = <0x110000 0xf0000>;
label = "board_info";
read-only;
port@0 {
reg = <0>;
label = "wan";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
port@1 {
reg = <1>;
label = "lan4";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 5>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <5>;
};
port@2 {
reg = <2>;
label = "lan3";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 4>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <4>;
};
port@3 {
reg = <3>;
label = "lan2";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <3>;
};
port@4 {
reg = <4>;
label = "lan1";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
port@6 {
phy-connection-type = "sgmii";
buffer-manager = <&bm>;
bm,pool-long = <2>;
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
ð2 {
phy-connection-type = "sgmii";
buffer-manager = <&bm>;
bm,pool-long = <3>;
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
&mdio {
port@0 {
reg = <0>;
label = "lan5";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 7>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <7>;
};
port@1 {
reg = <1>;
label = "lan4";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 6>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <6>;
};
port@2 {
reg = <2>;
label = "lan3";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 5>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <5>;
};
port@3 {
reg = <3>;
label = "lan2";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 4>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <4>;
};
port@4 {
reg = <4>;
label = "lan1";
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <3>;
};
port@6 {
buffer-manager = <&bm>;
bm,pool-long = <0>;
bm,pool-short = <1>;
- nvmem-cells = <&macaddr_bdinfo_d880>;
+ nvmem-cells = <&macaddr_bdinfo_d880 0>;
nvmem-cell-names = "mac-address";
fixed-link {
label = "board-info";
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- macaddr_bdinfo_d880: macaddr@d880 {
- reg = <0xd880 0x6>;
+ macaddr_bdinfo_d880: macaddr@d880 {
+ compatible = "mac-base";
+ reg = <0xd880 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
};
};
label = "u-boot";
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_uboot_fffa8: macaddr@fffa8 {
- reg = <0xfffa8 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_fffa8: macaddr@fffa8 {
+ reg = <0xfffa8 0x6>;
+ };
};
};
label = "factory";
reg = <0xf8000 0x8000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_factory_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+ };
};
partition@100000 {
full-duplex;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-
- macaddr_factory_6: macaddr@6 {
- reg = <0x6 0x6>;
- };
-};