OSDN Git Service

ARM: dts: imx6: RDU2: Add Micrel PHY to FEC
authorAndrew Lunn <andrew@lunn.ch>
Mon, 17 Jul 2017 20:25:00 +0000 (22:25 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 25 Jul 2017 09:04:23 +0000 (17:04 +0800)
The FEC has a Micrel PHY connected to it. This PHY is managed using
the bit-banging MDIO bus. Add this to the device tree.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Chris Healy <cphealy@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi

index 5d94b5e..d7328e9 100644 (file)
                pinctrl-0 = <&pinctrl_mdio1>;
                gpios = <&gpio6 5 GPIO_ACTIVE_HIGH
                         &gpio6 4 GPIO_ACTIVE_HIGH>;
+
+               phy: ethernet-phy@0 {
+                       reg = <0>;
+               };
        };
 
        reg_28p0v: regulator-28p0v {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rmii";
+       phy-handle = <&phy>;
        phy-reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
        phy-reset-duration = <100>;
        phy-supply = <&reg_3p3v>;
        status = "okay";
-
-       fixed-link {
-               speed = <100>;
-               full-duplex;
-       };
 };
 
 &usbh1 {