Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6q-marsboard: properly define rgmii PHY

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>

authored by

Oleksij Rempel and committed by
Shawn Guo
2d42fa31 3ce70565

+15 -1
+15 -1
arch/arm/boot/dts/imx6q-marsboard.dts
··· 111 111 pinctrl-names = "default"; 112 112 pinctrl-0 = <&pinctrl_enet>; 113 113 phy-mode = "rgmii-id"; 114 - phy-reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; 114 + phy-handle = <&rgmii_phy>; 115 115 status = "okay"; 116 + 117 + mdio { 118 + #address-cells = <1>; 119 + #size-cells = <0>; 120 + 121 + /* Atheros AR8035 PHY */ 122 + rgmii_phy: ethernet-phy@4 { 123 + reg = <4>; 124 + interrupts-extended = <&gpio1 28 IRQ_TYPE_LEVEL_LOW>; 125 + reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; 126 + reset-assert-us = <10000>; 127 + reset-deassert-us = <1000>; 128 + }; 129 + }; 116 130 }; 117 131 118 132 &hdmi {