powerpc/fsl: proliferate simple-bus compatibility to soc nodes
authorKim Phillips <kim.phillips@freescale.com>
Tue, 29 Jul 2008 20:29:24 +0000 (15:29 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 29 Jul 2008 22:48:35 +0000 (17:48 -0500)
add simple-bus compatible property to soc nodes for 83xx/85xx platforms
that were missing them.  Add same to platform probe code.

This fixes SoC device drivers (such as talitos) to succeed in matching
devices present in the soc node.

also update mpc836x_rdk dts to new SEC bindings (overlooked in commit
3fd4473: powerpc/fsl: update crypto node definition and device tree
instances).

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
31 files changed:
arch/powerpc/boot/dts/mpc832x_mds.dts
arch/powerpc/boot/dts/mpc832x_rdb.dts
arch/powerpc/boot/dts/mpc8349emitx.dts
arch/powerpc/boot/dts/mpc8349emitxgp.dts
arch/powerpc/boot/dts/mpc834x_mds.dts
arch/powerpc/boot/dts/mpc836x_mds.dts
arch/powerpc/boot/dts/mpc836x_rdk.dts
arch/powerpc/boot/dts/mpc8377_mds.dts
arch/powerpc/boot/dts/mpc8378_mds.dts
arch/powerpc/boot/dts/mpc8379_mds.dts
arch/powerpc/boot/dts/mpc8536ds.dts
arch/powerpc/boot/dts/mpc8540ads.dts
arch/powerpc/boot/dts/mpc8541cds.dts
arch/powerpc/boot/dts/mpc8544ds.dts
arch/powerpc/boot/dts/mpc8548cds.dts
arch/powerpc/boot/dts/mpc8555cds.dts
arch/powerpc/boot/dts/mpc8560ads.dts
arch/powerpc/boot/dts/mpc8568mds.dts
arch/powerpc/boot/dts/mpc8572ds.dts
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc832x_rdb.c
arch/powerpc/platforms/83xx/mpc834x_itx.c
arch/powerpc/platforms/83xx/mpc834x_mds.c
arch/powerpc/platforms/83xx/mpc836x_mds.c
arch/powerpc/platforms/83xx/sbc834x.c
arch/powerpc/platforms/85xx/ksi8560.c
arch/powerpc/platforms/85xx/mpc8536_ds.c
arch/powerpc/platforms/85xx/mpc85xx_ads.c
arch/powerpc/platforms/85xx/mpc85xx_ds.c
arch/powerpc/platforms/85xx/mpc85xx_mds.c
arch/powerpc/platforms/85xx/sbc8560.c

index 7345743d3d96ac7100a2e0f3269aaf147cbf0cd4..fbc930410ff6f91f08f9ad16f182906213e2c711 100644 (file)
@@ -68,6 +68,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <132000000>;
index e74c045a0f8caa235312518b76e2a333d6a30eaf..b157d1885a2884729eeeffe432afb4fe2f9e2d9c 100644 (file)
@@ -51,6 +51,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <0>;
index 8dfab56625856ea3d57f77b45921789b5d22a206..700e076ef3f55eb7d47ccde848a1a81ffdaa05c8 100644 (file)
@@ -52,6 +52,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <0>;                    // from bootloader
index 49ca3497eefb45bb1540b53757914a488febdd39..cdd3063258ea6a762de3716d49db8a1fe7b748af 100644 (file)
@@ -50,6 +50,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <0>;                    // from bootloader
index ba586cb7afbb52d13600895d39571717582b2fd0..783241c0024007f1244b7c933159ae454c3b6e94 100644 (file)
@@ -57,6 +57,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <0>;
index 3701dae1ee02b09fe7f84246d886401f57ee9a14..a3b76a709951bce3ffee81bc1b2f19204108eee1 100644 (file)
@@ -61,6 +61,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <264000000>;
index 8acd1d6577f22a4b7ffe3bc1b949c3f15c1e667b..89c9202f8bd784477e1cce9d1e1ed8867842fd38 100644 (file)
                };
 
                crypto@30000 {
-                       compatible = "fsl,sec2-crypto";
+                       compatible = "fsl,sec2.0";
                        reg = <0x30000 0x10000>;
-                       interrupts = <11 8>;
+                       interrupts = <11 0x8>;
                        interrupt-parent = <&ipic>;
-                       num-channels = <4>;
-                       channel-fifo-len = <24>;
-                       exec-units-mask = <0x7e>;
-                       /*
-                        * desc mask is for rev1.x, we need runtime fixup
-                        * for >=2.x
-                        */
-                       descriptor-types-mask = <0x1010ebf>;
+                       fsl,num-channels = <4>;
+                       fsl,channel-fifo-len = <24>;
+                       fsl,exec-units-mask = <0x7e>;
+                       fsl,descriptor-types-mask = <0x01010ebf>;
                };
 
                ipic: interrupt-controller@700 {
index 0a700cb5f6110ba53f83f2b36d107ba70f8c01d2..432782b6d20ae132ac6644994a9d3cc0dcb2e8f3 100644 (file)
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <0>;
index 29c8c76a58f7d122dbcc8febdf37668b1ad57dc5..ed32c8ddafe3e0177b6e415fb2556e4c01d99ad2 100644 (file)
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <0>;
index d641a8985ea38e87954b6d77c869308ee1730e66..f4db9ed4a301e1719aa04df4a5d9d2a4f3ff965c 100644 (file)
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x00100000>;
                reg = <0xe0000000 0x00000200>;
                bus-frequency = <0>;
index 02cfa24a1695265bb60faa17f138de56da4a2674..1505d6855eff0eb0e1f5fe7a67c1622b1de6825f 100644 (file)
@@ -49,6 +49,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xffe00000 0x100000>;
                reg = <0xffe00000 0x1000>;
                bus-frequency = <0>;            // Filled out by uboot.
index f2273a872b112e2610c9b9a4bbc6afecd236e389..9568bfaff8f74aab49f18c3526edbfa5655b9a13 100644 (file)
@@ -53,6 +53,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x100000>;
                reg = <0xe0000000 0x100000>;    // CCSRBAR 1M
                bus-frequency = <0>;
index c4469f19ff82814070ac3fb3465364665a1da0e0..6480f4fd96e09f3d7f7a7cab0a5b0daa0c68c6b5 100644 (file)
@@ -53,6 +53,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x100000>;
                reg = <0xe0000000 0x1000>;      // CCSRBAR 1M
                bus-frequency = <0>;
index 7d3829d3495e1ac52d2fbd85e3fd1ba92575493b..f1fb20737e3ef35db6bfb247e7953cce2dbb6ca2 100644 (file)
@@ -54,6 +54,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
 
                ranges = <0x0 0xe0000000 0x100000>;
                reg = <0xe0000000 0x1000>;      // CCSRBAR 1M
index d84466bb7ecaa30739b9006f69dd5b69ed8dcb74..431b496270dc47359e323f79e6e36e1049e9599f 100644 (file)
@@ -58,6 +58,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x100000>;
                reg = <0xe0000000 0x1000>;      // CCSRBAR
                bus-frequency = <0>;
index e03a780062832d7be3d167de7f564d4d8b04f2ce..d833a5c4f4766508988d716b6426eff4677c8049 100644 (file)
@@ -53,6 +53,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x100000>;
                reg = <0xe0000000 0x1000>;      // CCSRBAR 1M
                bus-frequency = <0>;
index ba8159de040be8a406f7f48bd84f512b3e500376..4d1f2f28409439d118a552f97103bb861bc55946 100644 (file)
@@ -53,6 +53,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x100000>;
                reg = <0xe0000000 0x200>;
                bus-frequency = <330000000>;
index 9c30a34821dcf73e0163fd01f13954be51ef6980..a15f10343f53fa4238b9e0d9d4169a4e9388450d 100644 (file)
@@ -60,6 +60,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xe0000000 0x100000>;
                reg = <0xe0000000 0x1000>;
                bus-frequency = <0>;
index 08c61e3daeccabdf3fd3abb2967811ac5ca80786..e124dd18fb5aec09d5d26074e1887729d491e1aa 100644 (file)
@@ -68,6 +68,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                device_type = "soc";
+               compatible = "simple-bus";
                ranges = <0x0 0xffe00000 0x100000>;
                reg = <0xffe00000 0x1000>;      // CCSRBAR & soc regs, remove once parse code for immrbase fixed
                bus-frequency = <0>;            // Filled out by uboot.
index dd4be4aee3149a3063ef002f6252373ea9c728aa..ec43477caa63f66b63d84f125106c6997fb6d8b7 100644 (file)
@@ -105,6 +105,7 @@ static void __init mpc832x_sys_setup_arch(void)
 static struct of_device_id mpc832x_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        { .type = "qe", },
        { .compatible = "fsl,qe", },
        {},
index f049d692d4c82c16984abcb7ee935c7fd3773ce2..0300268ce5b844708c66ba54a3c3d494b02db164 100644 (file)
@@ -115,6 +115,7 @@ static void __init mpc832x_rdb_setup_arch(void)
 static struct of_device_id mpc832x_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        { .type = "qe", },
        { .compatible = "fsl,qe", },
        {},
index 7301d77a08eec283184c30362bc1585c0427fed4..76092d37c7d901fdf9cc713a98d21873f8060bff 100644 (file)
@@ -41,6 +41,7 @@
 
 static struct of_device_id __initdata mpc834x_itx_ids[] = {
        { .compatible = "fsl,pq2pro-localbus", },
+       { .compatible = "simple-bus", },
        {},
 };
 
index 30d509aa9f082f610d59691e5031f25d78e40e89..fc3f2ed1f3e927c722d5243956c6304fe6940f91 100644 (file)
@@ -111,6 +111,7 @@ static void __init mpc834x_mds_init_IRQ(void)
 static struct of_device_id mpc834x_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        {},
 };
 
index 75b80e836576c1b214724653bab4c4d30c833fd6..9d46e5bdd101539454f3b9134a4728bcab4c2a34 100644 (file)
@@ -136,6 +136,7 @@ static void __init mpc836x_mds_setup_arch(void)
 static struct of_device_id mpc836x_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        { .type = "qe", },
        { .compatible = "fsl,qe", },
        {},
index fc21f5c15bab43e30b3612ada5510020adfe3bc4..156c4e21800993b63f2c32de5625011e603620b6 100644 (file)
@@ -83,6 +83,7 @@ static void __init sbc834x_init_IRQ(void)
 static struct __initdata of_device_id sbc834x_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        {},
 };
 
index 2145adeb220c8fe676abf170872885e7af822ef7..8a3b117b6ce2069c75eba6e427f93093c83d6770 100644 (file)
@@ -222,6 +222,7 @@ static void ksi8560_show_cpuinfo(struct seq_file *m)
 
 static struct of_device_id __initdata of_bus_ids[] = {
        { .type = "soc", },
+       { .type = "simple-bus", },
        { .name = "cpm", },
        { .name = "localbus", },
        {},
index 6b846aa1ced92e18cb383da73f0371e08b4f0fdb..1bf5aefdfeb1e0df594cc4c0dc822a13c9241492 100644 (file)
@@ -91,6 +91,7 @@ static void __init mpc8536_ds_setup_arch(void)
 static struct of_device_id __initdata mpc8536_ds_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        {},
 };
 
index ba498d6f2d024c118a78bd6cfa1fb49f554c064f..d17807a6b89a141b555a7d31781093239249ec26 100644 (file)
@@ -230,6 +230,7 @@ static struct of_device_id __initdata of_bus_ids[] = {
        { .type = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
+       { .compatible = "simple-bus", },
        {},
 };
 
index 00c535806647993b6de07ff5e14eb5e06ddd109f..483b65cbabaeb4bb255bdf53b255a9252e805e7f 100644 (file)
@@ -186,6 +186,7 @@ static int __init mpc8544_ds_probe(void)
 static struct of_device_id __initdata mpc85xxds_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        {},
 };
 
index 43a459f63e31230fa54341aed5df7cd3e6ac2463..2494c5155919af7114d695621a2dc78d24c3e111 100644 (file)
@@ -260,6 +260,7 @@ machine_arch_initcall(mpc85xx_mds, board_fixups);
 static struct of_device_id mpc85xx_ids[] = {
        { .type = "soc", },
        { .compatible = "soc", },
+       { .compatible = "simple-bus", },
        { .type = "qe", },
        { .compatible = "fsl,qe", },
        {},
index 2c580cd24e4f4e7959c4e2a65b65cbdf78eb47af..6509ade71668e658729ddb6266217c6ccd8538fe 100644 (file)
@@ -217,6 +217,7 @@ static struct of_device_id __initdata of_bus_ids[] = {
        { .type = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
+       { .compatible = "simple-bus", },
        {},
 };