summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/imx6dl-riotboard.dts
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2020-03-13 11:25:33 +0100
committerShawn Guo <shawnguo@kernel.org>2020-03-16 03:47:03 +0100
commit3ce705650d139178234887882612605e66082af2 (patch)
tree6da6fd45ce3b1ec7133dbe2c0b5a71a1017de3b2 /arch/arm/boot/dts/imx6dl-riotboard.dts
parentARM: dts: imx51-zii-rdu1: set name prefix for TPA6130A2 (diff)
downloadlinux-3ce705650d139178234887882612605e66082af2.tar.xz
linux-3ce705650d139178234887882612605e66082af2.zip
ARM: dts: imx6dl-riotboard: 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. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6dl-riotboard.dts')
-rw-r--r--arch/arm/boot/dts/imx6dl-riotboard.dts16
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx6dl-riotboard.dts b/arch/arm/boot/dts/imx6dl-riotboard.dts
index 829654e1835a..065d3ab0f50a 100644
--- a/arch/arm/boot/dts/imx6dl-riotboard.dts
+++ b/arch/arm/boot/dts/imx6dl-riotboard.dts
@@ -89,11 +89,25 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet>;
phy-mode = "rgmii-id";
- phy-reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
+ phy-handle = <&rgmii_phy>;
interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
<&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
fsl,err006687-workaround-present;
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>;
+ };
+ };
};
&gpio1 {