[POWERPC] mpc52xx: device tree changes for FEC and MDIO
authorDomen Puncer <domen.puncer@telargo.com>
Sun, 14 Oct 2007 07:57:11 +0000 (17:57 +1000)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 16 Oct 2007 23:10:32 +0000 (17:10 -0600)
Add device tree entries for lite5200b's FEC's PHY.

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/boot/dts/lite5200b.dts

index a6bb1d0558ef838cf281e14aa8de66d8f00d5776..6582c9a39b27aacee6f539619fab4ddf25248a6e 100644 (file)
                ethernet@3000 {
                        device_type = "network";
                        compatible = "mpc5200b-fec","mpc5200-fec";
-                       reg = <3000 800>;
+                       reg = <3000 400>;
                        mac-address = [ 02 03 04 05 06 07 ]; // Bad!
                        interrupts = <2 5 0>;
                        interrupt-parent = <&mpc5200_pic>;
+                       phy-handle = <&phy0>;
+               };
+
+               mdio@3000 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       device_type = "mdio";
+                       compatible = "mpc5200b-fec-phy";
+                       reg = <3000 400>;       // fec range, since we need to setup fec interrupts
+                       interrupts = <2 5 0>;   // these are for "mii command finished", not link changes & co.
+                       interrupt-parent = <&mpc5200_pic>;
+
+                       phy0:ethernet-phy@0 {
+                               device_type = "ethernet-phy";
+                               reg = <0>;
+                       };
                };
 
                ata@3a00 {