drivers: nxp_enet: Generate MAC using eth.h

The MAC address macros are ridiculous in this driver.
Rewrite to be simpler and use eth.h common function.
Also, clarify the mac address generation on the DT overlays.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-03-18 16:40:42 -05:00 committed by Alberto Escolar
commit ac58f3abe6
9 changed files with 61 additions and 70 deletions

View file

@ -42,6 +42,7 @@
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
phy-handle = <&phy>;
zephyr,random-mac-address;
};

View file

@ -43,6 +43,7 @@
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
phy-handle = <&phy>;
zephyr,random-mac-address;
};
&enet_mdio {

View file

@ -43,6 +43,7 @@
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
phy-handle = <&phy>;
zephyr,random-mac-address;
};
&enet_mdio {

View file

@ -43,6 +43,7 @@
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
phy-handle = <&phy>;
zephyr,random-mac-address;
};
&enet_mdio {

View file

@ -43,6 +43,7 @@
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
phy-handle = <&phy>;
zephyr,random-mac-address;
};
&enet_mdio {

View file

@ -43,6 +43,7 @@
pinctrl-names = "default";
phy-handle = <&phy>;
phy-connection-type = "rmii";
zephyr,random-mac-address;
};
&enet_mdio {

View file

@ -43,6 +43,7 @@
pinctrl-names = "default";
phy-handle = <&phy>;
phy-connection-type = "rmii";
zephyr,random-mac-address;
};
&enet_mdio {