ARM: dts: imx: m53menlo: Convert to DM_ETH
authorMarek Vasut <marex@denx.de>
Sat, 30 May 2020 20:44:46 +0000 (22:44 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 8 Jun 2020 08:43:02 +0000 (10:43 +0200)
Convert the board to DM_ETH instead of legacy networking. This requires
a minor addition to the DT to satisfy the requirement for specifying a
PHY node. No functional change from board user perspective.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/dts/imx53-m53menlo.dts
configs/m53menlo_defconfig

index a6805eca9d08171c60d3b3a8b7b602cb1eaa4379..3767dcaef4c3b1b8c5542be0f9563eb4f3bb3e04 100644 (file)
 &fec {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_fec>;
+       phy-handle = <&ethphy0>;
        phy-mode = "rmii";
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy0: ethernet-phy@0 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <0>;
+               };
+       };
 };
 
 &i2c1 {
index a65c21a139e3cba91e824bb64ca2d8f679204432..5289899601373f9d752c25e53af781ae560babfb 100644 (file)
@@ -75,6 +75,9 @@ CONFIG_NAND_MXC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
+CONFIG_DM_ETH=y
+CONFIG_DM_MDIO=y
+CONFIG_DM_ETH_PHY=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX5=y
 CONFIG_DM_REGULATOR=y