The node name&label should match the address in the 'reg' property,
so it's better to change the incorrect offset to the 0x28.
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mac-address-increment = <3>;
};
wan: port@1 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
};
#address-cells = <1>;
#size-cells = <1>;
- macaddr_factory_4000: macaddr@4000 {
+ macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};