summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2020-08-05 12:16:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-11 13:10:28 +0200
commit72b2b3fa79671348278cb2b7ce6d35de2a16c28e (patch)
tree280089ba93b92b6b25866cb8dafd77f6185b4ef5
parentcfafc7aa1223adf1a1e771900ac6db7ed266fa01 (diff)
downloadbarebox-72b2b3fa79671348278cb2b7ce6d35de2a16c28e.tar.gz
barebox-72b2b3fa79671348278cb2b7ce6d35de2a16c28e.tar.xz
ARM: dts: imx6: vicut1: fix network support
Create the PHY node with properly configured phy-mode and reset lines. In this case we will not need board specific PHY fixups. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/dts/imx6q-vicut1.dts18
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/dts/imx6q-vicut1.dts b/arch/arm/dts/imx6q-vicut1.dts
index 9f60ed1ac2..9747b3c62e 100644
--- a/arch/arm/dts/imx6q-vicut1.dts
+++ b/arch/arm/dts/imx6q-vicut1.dts
@@ -19,9 +19,23 @@
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet>;
- phy-mode = "rgmii";
- /* phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; */
+ phy-mode = "rgmii-id";
+ phy-handle = <&rgmii_phy>;
status = "okay";
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ /* Microchip KSZ9031RNX PHY */
+ rgmii_phy: ethernet-phy@4 {
+ reg = <4>;
+ interrupts-extended = <&gpio1 28 IRQ_TYPE_LEVEL_LOW>;
+ reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
+ reset-assert-us = <10000>;
+ reset-deassert-us = <300>;
+ };
+ };
};
&iomuxc {