[POWERPC] FSL: enet device tree cleanups
[pandora-kernel.git] / arch / powerpc / boot / dts / mpc8349emitxgp.dts
index 0b83871..30c6816 100644 (file)
@@ -28,7 +28,6 @@
                        timebase-frequency = <0>;       // from bootloader
                        bus-frequency = <0>;            // from bootloader
                        clock-frequency = <0>;          // from bootloader
-                       32-bit;
                };
        };
 
@@ -40,7 +39,6 @@
        soc8349@e0000000 {
                #address-cells = <1>;
                #size-cells = <1>;
-               #interrupt-cells = <2>;
                device_type = "soc";
                ranges = <0 e0000000 00100000>;
                reg = <e0000000 00000200>;
@@ -53,7 +51,9 @@
                };
 
                i2c@3000 {
-                       device_type = "i2c";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       cell-index = <0>;
                        compatible = "fsl-i2c";
                        reg = <3000 100>;
                        interrupts = <e 8>;
@@ -62,7 +62,9 @@
                };
 
                i2c@3100 {
-                       device_type = "i2c";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       cell-index = <1>;
                        compatible = "fsl-i2c";
                        reg = <3100 100>;
                        interrupts = <f 8>;
 
                spi@7000 {
                        device_type = "spi";
-                       compatible = "mpc83xx_spi";
+                       compatible = "fsl_spi";
                        reg = <7000 1000>;
                        interrupts = <10 8>;
                        interrupt-parent = < &ipic >;
-                       mode = <0>;
+                       mode = "cpu";
                };
 
                usb@23000 {
                };
 
                mdio@24520 {
-                       device_type = "mdio";
-                       compatible = "gianfar";
-                       reg = <24520 20>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       compatible = "fsl,gianfar-mdio";
+                       reg = <24520 20>;
 
                        /* Vitesse 8201 */
                        phy1c: ethernet-phy@1c {
                        };
                };
 
-               ethernet@24000 {
+               enet0: ethernet@24000 {
+                       cell-index = <0>;
                        device_type = "network";
                        model = "TSEC";
                        compatible = "gianfar";
                        interrupts = <20 8 21 8 22 8>;
                        interrupt-parent = < &ipic >;
                        phy-handle = < &phy1c >;
+                       linux,network-index = <0>;
                };
 
                serial@4500 {
                        interrupt-parent = < &ipic >;
                };
 
-               pci@8600 {
-                       interrupt-map-mask = <f800 0 0 7>;
-                       interrupt-map = <
-                                       /* IDSEL 0x0F - PCI Slot */
-                                       7800 0 0 1 &ipic 14 8 /* PCI_INTA */
-                                       7800 0 0 2 &ipic 15 8 /* PCI_INTB */
-                                        >;
-                       interrupt-parent = < &ipic >;
-                       interrupts = <43 8>;
-                       bus-range = <1 1>;
-                       ranges = <42000000 0 a0000000 a0000000 0 10000000
-                                 02000000 0 b0000000 b0000000 0 10000000
-                                 01000000 0 00000000 e3000000 0 01000000>;
-                       clock-frequency = <3f940aa>;
-                       #interrupt-cells = <1>;
-                       #size-cells = <2>;
-                       #address-cells = <3>;
-                       reg = <8600 100>;
-                       compatible = "fsl,mpc8349-pci";
-                       device_type = "pci";
-               };
-
                crypto@30000 {
                        device_type = "crypto";
                        model = "SEC2";
                        #address-cells = <0>;
                        #interrupt-cells = <2>;
                        reg = <700 100>;
-                       built-in;
                        device_type = "ipic";
                };
        };
+
+       pci@e0008600 {
+               interrupt-map-mask = <f800 0 0 7>;
+               interrupt-map = <
+                               /* IDSEL 0x0F - PCI Slot */
+                               7800 0 0 1 &ipic 14 8 /* PCI_INTA */
+                               7800 0 0 2 &ipic 15 8 /* PCI_INTB */
+                                >;
+               interrupt-parent = < &ipic >;
+               interrupts = <43 8>;
+               bus-range = <1 1>;
+               ranges = <42000000 0 a0000000 a0000000 0 10000000
+                         02000000 0 b0000000 b0000000 0 10000000
+                         01000000 0 00000000 e3000000 0 01000000>;
+               clock-frequency = <3f940aa>;
+               #interrupt-cells = <1>;
+               #size-cells = <2>;
+               #address-cells = <3>;
+               reg = <e0008600 100>;
+               compatible = "fsl,mpc8349-pci";
+               device_type = "pci";
+       };
 };