ARM: dts: imx6qdl-tx6: add mdio node for ethernet phy
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Mar 2016 08:04:02 +0000 (09:04 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 13 Apr 2016 09:45:00 +0000 (17:45 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-tx6.dtsi

index 1b1c39ebfe54f4610476a362879ec415c182ee32..5988889cee4511b636430d742da0f2ab96b05e40 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 {