ARM: dts: imx6qdl-apf6: add phy to fec
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Tue, 22 Oct 2019 13:16:49 +0000 (15:16 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 28 Oct 2019 06:48:38 +0000 (14:48 +0800)
Add the mdio bus and the phy to the fec-node.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-apf6.dtsi

index 29d5bedc576ea4b31db408a8b28bded0c46df0ff..9f00eba5c25854093aa3e99281cd73ff1c118e1a 100644 (file)
        phy-mode = "rgmii-id";
        phy-reset-duration = <10>;
        phy-reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
+       phy-handle = <&ethphy1>;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy1: ethernet-phy@1 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <1>;
+                       interrupt-parent = <&gpio1>;
+                       interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
+                       status = "okay";
+               };
+       };
 };
 
 /* Bluetooth */