[POWERPC] dts: kill hardcoded phandles
authorVitaly Bordug <vitb@kernel.crashing.org>
Mon, 9 Jul 2007 18:37:36 +0000 (11:37 -0700)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 10 Jul 2007 05:34:08 +0000 (00:34 -0500)
Removed explicit linux,phandle usage.  Using references and labels now in PQ
and PQ2 boards currently supported in arch/powerpc.

Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Olof Johansson <olof@lixom.net>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/dts/mpc8272ads.dts
arch/powerpc/boot/dts/mpc866ads.dts
arch/powerpc/boot/dts/mpc885ads.dts

index 423eedcf634f6be2e07ab64c108dceb935678803..1934b800278e06d42d47d21ce94fd2490483f2f6 100644 (file)
        compatible = "MPC8260ADS";
        #address-cells = <1>;
        #size-cells = <1>;
-       linux,phandle = <100>;
 
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
-               linux,phandle = <200>;
 
                PowerPC,8272@0 {
                        device_type = "cpu";
                        bus-frequency = <0>;
                        clock-frequency = <0>;
                        32-bit;
-                       linux,phandle = <201>;
                };
        };
 
-       interrupt-controller@f8200000 {
-               linux,phandle = <f8200000>;
+               pci_pic: interrupt-controller@f8200000 {
                #address-cells = <0>;
                #interrupt-cells = <2>;
                interrupt-controller;
        };
        memory {
                device_type = "memory";
-               linux,phandle = <300>;
                reg = <00000000 4000000 f4500000 00000020>;
        };
 
        chosen {
                name = "chosen";
                linux,platform = <0>;
-               interrupt-controller = <10c00>;
-               linux,phandle = <400>;
+               interrupt-controller = <&Cpm_pic>;
        };
 
        soc8272@f0000000 {
                        device_type = "mdio";
                        compatible = "fs_enet";
                        reg = <0 0>;
-                       linux,phandle = <24520>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       ethernet-phy@0 {
-                               linux,phandle = <2452000>;
-                               interrupt-parent = <10c00>;
+                       phy0:ethernet-phy@0 {
+                               interrupt-parent = <&Cpm_pic>;
                                interrupts = <17 4>;
                                reg = <0>;
                                bitbang = [ 12 12 13 02 02 01 ];
                                device_type = "ethernet-phy";
                        };
-                       ethernet-phy@1 {
-                               linux,phandle = <2452001>;
-                               interrupt-parent = <10c00>;
+                       phy1:ethernet-phy@1 {
+                               interrupt-parent = <&Cpm_pic>;
                                interrupts = <17 4>;
                                bitbang = [ 12 12 13 02 02 01 ];
                                reg = <3>;
                        reg = <11300 20 8400 100 11380 30>;
                        mac-address = [ 00 11 2F 99 43 54 ];
                        interrupts = <20 2>;
-                       interrupt-parent = <10c00>;
-                       phy-handle = <2452000>;
+                       interrupt-parent = <&Cpm_pic>;
+                       phy-handle = <&Phy0>;
                        rx-clock = <13>;
                        tx-clock = <12>;
                };
                        reg = <11320 20 8500 100 113b0 30>;
                        mac-address = [ 00 11 2F 99 44 54 ];
                        interrupts = <21 2>;
-                       interrupt-parent = <10c00>;
-                       phy-handle = <2452001>;
+                       interrupt-parent = <&Cpm_pic>;
+                       phy-handle = <&Phy1>;
                        rx-clock = <17>;
                        tx-clock = <18>;
                };
 
                cpm@f0000000 {
-                       linux,phandle = <f0000000>;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        #interrupt-cells = <2>;
                                reg = <11a00 20 8000 100>;
                                current-speed = <1c200>;
                                interrupts = <28 2>;
-                               interrupt-parent = <10c00>;
+                               interrupt-parent = <&Cpm_pic>;
                                clock-setup = <0 00ffffff>;
                                rx-clock = <1>;
                                tx-clock = <1>;
                                reg = <11a60 20 8300 100>;
                                current-speed = <1c200>;
                                interrupts = <2b 2>;
-                               interrupt-parent = <10c00>;
+                               interrupt-parent = <&Cpm_pic>;
                                clock-setup = <1b ffffff00>;
                                rx-clock = <4>;
                                tx-clock = <4>;
                        };
 
                };
-               interrupt-controller@10c00 {
-                       linux,phandle = <10c00>;
+                       cpm_pic:interrupt-controller@10c00 {
                        #address-cells = <0>;
                        #interrupt-cells = <2>;
                        interrupt-controller;
                       compatible = "CPM2";
                };
                pci@0500 {
-                       linux,phandle = <0500>;
                        #interrupt-cells = <1>;
                        #size-cells = <2>;
                        #address-cells = <3>;
                                         c000 0 0 2 f8200000 43 8
                                         c000 0 0 3 f8200000 40 8
                                         c000 0 0 4 f8200000 41 8>;
-                       interrupt-parent = <10c00>;
+                       interrupt-parent = <&Cpm_pic>;
                        interrupts = <14 8>;
                        bus-range = <0 0>;
                        ranges = <02000000 0 80000000 80000000 0 40000000
                        compatible = "talitos";
                        reg = <30000 10000>;
                        interrupts = <b 2>;
-                       interrupt-parent = <10c00>;
+                       interrupt-parent = <&Cpm_pic>;
                        num-channels = <4>;
                        channel-fifo-len = <18>;
                        exec-units-mask = <0000007e>;
index c0d06fd129278894b3fefec1a5b5edcfd9098aa7..e5e7726ddb0345ea1212e8d1806b05266ba7f866 100644 (file)
        compatible = "mpc8xx";
        #address-cells = <1>;
        #size-cells = <1>;
-       linux,phandle = <100>;
 
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
-               linux,phandle = <200>;
 
                PowerPC,866@0 {
                        device_type = "cpu";
                        clock-frequency = <0>;
                        32-bit;
                        interrupts = <f 2>;     // decrementer interrupt
-                       interrupt-parent = <ff000000>;
-                       linux,phandle = <201>;
+                       interrupt-parent = <&Mpc8xx_pic>;
                };
        };
 
        memory {
                device_type = "memory";
-               linux,phandle = <300>;
                reg = <00000000 800000>;
        };
 
                        device_type = "mdio";
                        compatible = "fs_enet";
                        reg = <e80 8>;
-                       linux,phandle = <e80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       ethernet-phy@f {
-                               linux,phandle = <e800f>;
+                       phy: ethernet-phy@f {
                                reg = <f>;
                                device_type = "ethernet-phy";
                        };
                        reg = <e00 188>;
                        mac-address = [ 00 00 0C 00 01 FD ];
                        interrupts = <3 1>;
-                       interrupt-parent = <ff000000>;
-                       phy-handle = <e800f>;
+                       interrupt-parent = <&Mpc8xx_pic>;
+                       phy-handle = <&Phy>;
                };
 
-               pic@ff000000 {
-                       linux,phandle = <ff000000>;
+               mpc8xx_pic: pic@ff000000 {
                        interrupt-controller;
                        #address-cells = <0>;
                        #interrupt-cells = <2>;
@@ -91,7 +84,6 @@
                };
 
                cpm@ff000000 {
-                       linux,phandle = <ff000000>;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        #interrupt-cells = <2>;
                        command-proc = <9c0>;
                        brg-frequency = <0>;
                        interrupts = <0 2>;     // cpm error interrupt
-                       interrupt-parent = <930>;
+                       interrupt-parent = <&Cpm_pic>;
 
-                       pic@930 {
-                               linux,phandle = <930>;
+                       cpm_pic: pic@930 {
                                interrupt-controller;
                                #address-cells = <0>;
                                #interrupt-cells = <2>;
                                interrupts = <5 2 0 2>;
-                               interrupt-parent = <ff000000>;
+                               interrupt-parent = <&Mpc8xx_pic>;
                                reg = <930 20>;
                                built-in;
                                device_type = "cpm-pic";
                                tx-clock = <1>;
                                current-speed = <0>;
                                interrupts = <4 3>;
-                               interrupt-parent = <930>;
+                               interrupt-parent = <&Cpm_pic>;
                        };
 
                        smc@a90 {
                                tx-clock = <2>;
                                current-speed = <0>;
                                interrupts = <3 3>;
-                               interrupt-parent = <930>;
+                               interrupt-parent = <&Cpm_pic>;
                        };
 
                        scc@a00 {
                                reg = <a00 18 3c00 80>;
                                mac-address = [ 00 00 0C 00 03 FD ];
                                interrupts = <1e 3>;
-                               interrupt-parent = <930>;
+                               interrupt-parent = <&Cpm_pic>;
                        };
                };
        };
index aee01087a9325ab7d8effe17f27fd5be12d2ea50..dc7ab9c80611567baa497dffbe42d89e040e68e8 100644 (file)
        compatible = "mpc8xx";
        #address-cells = <1>;
        #size-cells = <1>;
-       linux,phandle = <100>;
 
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
-               linux,phandle = <200>;
 
                PowerPC,885@0 {
                        device_type = "cpu";
                        clock-frequency = <0>;
                        32-bit;
                        interrupts = <f 2>;     // decrementer interrupt
-                       interrupt-parent = <ff000000>;
-                       linux,phandle = <201>;
+                       interrupt-parent = <&Mpc8xx_pic>;
                };
        };
 
        memory {
                device_type = "memory";
-               linux,phandle = <300>;
                reg = <00000000 800000>;
        };
 
                        device_type = "mdio";
                        compatible = "fs_enet";
                        reg = <e80 8>;
-                       linux,phandle = <e80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       ethernet-phy@0 {
-                               linux,phandle = <e8000>;
+                       Phy0: ethernet-phy@0 {
                                reg = <0>;
                                device_type = "ethernet-phy";
                        };
-                       ethernet-phy@1 {
-                               linux,phandle = <e8001>;
+                       Phy1: ethernet-phy@1 {
                                reg = <1>;
                                device_type = "ethernet-phy";
                        };
-                       ethernet-phy@2 {
-                               linux,phandle = <e8002>;
+                       Phy2: ethernet-phy@2 {
                                reg = <2>;
                                device_type = "ethernet-phy";
                        };
@@ -85,8 +77,8 @@
                        reg = <e00 188>;
                        mac-address = [ 00 00 0C 00 01 FD ];
                        interrupts = <3 1>;
-                       interrupt-parent = <ff000000>;
-                       phy-handle = <e8000>;
+                       interrupt-parent = <&Mpc8xx_pic>;
+                       phy-handle = <&Phy1>;
                };
 
                fec@1e00 {
                        reg = <1e00 188>;
                        mac-address = [ 00 00 0C 00 02 FD ];
                        interrupts = <7 1>;
-                       interrupt-parent = <ff000000>;
-                       phy-handle = <e8001>;
+                       interrupt-parent = <&Mpc8xx_pic>;
+                       phy-handle = <&Phy2>;
                };
 
-               pic@ff000000 {
-                       linux,phandle = <ff000000>;
+               Mpc8xx_pic: pic@ff000000 {
                        interrupt-controller;
                        #address-cells = <0>;
                        #interrupt-cells = <2>;
                        compatible = "fsl,pq-pcmcia";
                        device_type = "pcmcia";
                        reg = <80 80>;
-                       interrupt-parent = <ff000000>;
+                       interrupt-parent = <&Mpc8xx_pic>;
                        interrupts = <d 1>;
                };
 
                cpm@ff000000 {
-                       linux,phandle = <ff000000>;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        #interrupt-cells = <2>;
                        command-proc = <9c0>;
                        brg-frequency = <0>;
                        interrupts = <0 2>;     // cpm error interrupt
-                       interrupt-parent = <930>;
+                       interrupt-parent = <&Cpm_pic>;
 
-                       pic@930 {
-                               linux,phandle = <930>;
+                       Cpm_pic: pic@930 {
                                interrupt-controller;
                                #address-cells = <0>;
                                #interrupt-cells = <2>;
                                interrupts = <5 2 0 2>;
-                               interrupt-parent = <ff000000>;
+                               interrupt-parent = <&Mpc8xx_pic>;
                                reg = <930 20>;
                                built-in;
                                device_type = "cpm-pic";
                                tx-clock = <1>;
                                current-speed = <0>;
                                interrupts = <4 3>;
-                               interrupt-parent = <930>;
+                               interrupt-parent = <&Cpm_pic>;
                        };
 
                        smc@a90 {
                                tx-clock = <2>;
                                current-speed = <0>;
                                interrupts = <3 3>;
-                               interrupt-parent = <930>;
+                               interrupt-parent = <&Cpm_pic>;
                        };
 
                        scc@a40 {
                                reg = <a40 18 3e00 80>;
                                mac-address = [ 00 00 0C 00 03 FD ];
                                interrupts = <1c 3>;
-                               interrupt-parent = <930>;
-                               phy-handle = <e8002>;
+                               interrupt-parent = <&Cpm_pic>;
+                               phy-handle = <&Phy2>;
                        };
                };
        };