]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: imx6qdl-tx6: add mdio node for ethernet phy
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 7 Mar 2016 10:02:26 +0000 (11:02 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Mar 2016 09:34:17 +0000 (10:34 +0100)
Add mdio node and an appropriate PHY configuration to enable use of
the PHY interrupt for link status changes.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
arch/arm/boot/dts/imx6qdl-tx6.dtsi

index 8dd50cce1f41559055964ba8025bfecdaf7fe92a..5d0f8c34d54eaf81f6845d9060f397b1757ce21e 100644 (file)
        clock-names = "ipg", "ahb", "ptp", "enet_out";
        phy-mode = "rmii";
        phy-reset-gpios = <&gpio7 6 GPIO_ACTIVE_HIGH>;
+       phy-handle = <&etnphy>;
        phy-supply = <&reg_3v3_etn>;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               etnphy: ethernet-phy@0 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <0>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_enet_mdio>;
+                       interrupts-extended = <&gpio7 1 IRQ_TYPE_EDGE_FALLING>;
+               };
+       };
 };
 
 &gpmi {