ARM: dts: imx6q-marsboard: properly define rgmii PHY
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 13 Mar 2020 10:25:34 +0000 (11:25 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 16 Mar 2020 02:47:20 +0000 (10:47 +0800)
The Atheros AR8035 PHY can be autodetected but can't use interrupt
support provided on this board. Define MDIO bus and the PHY node to make
it work properly.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-marsboard.dts

index 84b30bd6908fd88b101ec31815a4e9cd5cd4080f..05ee28388229037794d468c23c44a4b6903a771d 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii-id";
-       phy-reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
+       phy-handle = <&rgmii_phy>;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               /* Atheros AR8035 PHY */
+               rgmii_phy: ethernet-phy@4 {
+                       reg = <4>;
+                       interrupts-extended = <&gpio1 28 IRQ_TYPE_LEVEL_LOW>;
+                       reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
+                       reset-assert-us = <10000>;
+                       reset-deassert-us = <1000>;
+               };
+       };
 };
 
 &hdmi {