[POWERPC] Small fixes for the Ebony device tree

This patch corrects a number of minor errors in the Ebony device tree:
- Missing (given as 0) cache sizes are added to the CPU node
- device_type properties are removed from nodes which don't
have a reasonably well defined device_type binding. This does require
a very small code change to locate the busses to be probed for
of_platform devices by 'compatible' instead of 'device_type'.
- A node is added for the SRAM controller
- The unit address of the small-flash node is adjusted to
correctly reflect the reg property.
- device_type values for the MAL and ZMII are updated to
reflected more up-to-date versions of the binding.
- An incorrect offset in the partition map for the large-flash
node is corrected.
- Some redundant values, already commented out are removed
entirely.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by David Gibson and committed by Paul Mackerras c72ea777 f7c0d13b

+16 -27
+13 -24
arch/powerpc/boot/dts/ebony.dts
··· 33 timebase-frequency = <0>; // Filled in by zImage 34 i-cache-line-size = <32>; 35 d-cache-line-size = <32>; 36 - i-cache-size = <0>; 37 - d-cache-size = <0>; 38 dcr-controller; 39 dcr-access-method = "native"; 40 }; ··· 46 }; 47 48 UIC0: interrupt-controller0 { 49 - device_type = "ibm,uic"; 50 compatible = "ibm,uic-440gp", "ibm,uic"; 51 interrupt-controller; 52 cell-index = <0>; ··· 57 }; 58 59 UIC1: interrupt-controller1 { 60 - device_type = "ibm,uic"; 61 compatible = "ibm,uic-440gp", "ibm,uic"; 62 interrupt-controller; 63 cell-index = <1>; ··· 69 }; 70 71 CPC0: cpc { 72 - device_type = "ibm,cpc"; 73 compatible = "ibm,cpc-440gp"; 74 dcr-reg = <0b0 003 0e0 010>; 75 // FIXME: anything else? 76 }; 77 78 plb { 79 - device_type = "ibm,plb"; 80 compatible = "ibm,plb-440gp", "ibm,plb4"; 81 #address-cells = <2>; 82 #size-cells = <1>; 83 ranges; 84 clock-frequency = <0>; // Filled in by zImage 85 86 - SDRAM0: sdram { 87 - device_type = "memory-controller"; 88 - compatible = "ibm,sdram-440gp", "ibm,sdram"; 89 dcr-reg = <010 2>; 90 // FIXME: anything else? 91 }; 92 93 DMA0: dma { 94 // FIXME: ??? 95 - device_type = "ibm,dma-4xx"; 96 - compatible = "ibm,dma-440gp", "ibm,dma-4xx"; 97 dcr-reg = <100 027>; 98 }; 99 100 MAL0: mcmal { 101 - device_type = "mcmal-dma"; 102 compatible = "ibm,mcmal-440gp", "ibm,mcmal"; 103 dcr-reg = <180 62>; 104 num-tx-chans = <4>; ··· 117 }; 118 119 POB0: opb { 120 - device_type = "ibm,opb"; 121 compatible = "ibm,opb-440gp", "ibm,opb"; 122 #address-cells = <1>; 123 #size-cells = <1>; ··· 130 clock-frequency = <0>; // Filled in by zImage 131 132 EBC0: ebc { 133 - device_type = "ibm,ebc"; 134 - compatible = "ibm,ebc-440gp"; 135 dcr-reg = <012 2>; 136 #address-cells = <2>; 137 #size-cells = <1>; ··· 143 interrupts = <5 4>; 144 interrupt-parent = <&UIC1>; 145 146 - small-flash@0,0 { 147 device_type = "rom"; 148 compatible = "direct-mapped"; 149 probe-type = "JEDEC"; ··· 155 156 ds1743@1,0 { 157 /* NVRAM & RTC */ 158 - device_type = "nvram"; 159 compatible = "ds1743"; 160 reg = <1 0 2000>; 161 }; ··· 165 probe-type = "JEDEC"; 166 bank-width = <1>; 167 partitions = <0 380000 168 - 280000 80000>; 169 partition-names = "fs", "firmware"; 170 reg = <2 0 400000>; 171 }; ··· 221 222 GPIO0: gpio@40000700 { 223 /* FIXME */ 224 - device_type = "gpio"; 225 compatible = "ibm,gpio-440gp"; 226 reg = <40000700 20>; 227 }; 228 229 ZMII0: emac-zmii@40000780 { 230 - device_type = "emac-zmii"; 231 compatible = "ibm,zmii-440gp", "ibm,zmii"; 232 reg = <40000780 c>; 233 }; ··· 292 293 chosen { 294 linux,stdout-path = "/plb/opb/serial@40000200"; 295 - // linux,initrd-start = <0>; /* FIXME */ 296 - // linux,initrd-end = <0>; 297 - // bootargs = ""; 298 }; 299 }; 300 -
··· 33 timebase-frequency = <0>; // Filled in by zImage 34 i-cache-line-size = <32>; 35 d-cache-line-size = <32>; 36 + i-cache-size = <8000>; /* 32 kB */ 37 + d-cache-size = <8000>; /* 32 kB */ 38 dcr-controller; 39 dcr-access-method = "native"; 40 }; ··· 46 }; 47 48 UIC0: interrupt-controller0 { 49 compatible = "ibm,uic-440gp", "ibm,uic"; 50 interrupt-controller; 51 cell-index = <0>; ··· 58 }; 59 60 UIC1: interrupt-controller1 { 61 compatible = "ibm,uic-440gp", "ibm,uic"; 62 interrupt-controller; 63 cell-index = <1>; ··· 71 }; 72 73 CPC0: cpc { 74 compatible = "ibm,cpc-440gp"; 75 dcr-reg = <0b0 003 0e0 010>; 76 // FIXME: anything else? 77 }; 78 79 plb { 80 compatible = "ibm,plb-440gp", "ibm,plb4"; 81 #address-cells = <2>; 82 #size-cells = <1>; 83 ranges; 84 clock-frequency = <0>; // Filled in by zImage 85 86 + SDRAM0: memory-controller { 87 + compatible = "ibm,sdram-440gp"; 88 dcr-reg = <010 2>; 89 // FIXME: anything else? 90 }; 91 92 + SRAM0: sram { 93 + compatible = "ibm,sram-440gp"; 94 + dcr-reg = <020 8 00a 1>; 95 + }; 96 + 97 DMA0: dma { 98 // FIXME: ??? 99 + compatible = "ibm,dma-440gp"; 100 dcr-reg = <100 027>; 101 }; 102 103 MAL0: mcmal { 104 compatible = "ibm,mcmal-440gp", "ibm,mcmal"; 105 dcr-reg = <180 62>; 106 num-tx-chans = <4>; ··· 119 }; 120 121 POB0: opb { 122 compatible = "ibm,opb-440gp", "ibm,opb"; 123 #address-cells = <1>; 124 #size-cells = <1>; ··· 133 clock-frequency = <0>; // Filled in by zImage 134 135 EBC0: ebc { 136 + compatible = "ibm,ebc-440gp", "ibm,ebc"; 137 dcr-reg = <012 2>; 138 #address-cells = <2>; 139 #size-cells = <1>; ··· 147 interrupts = <5 4>; 148 interrupt-parent = <&UIC1>; 149 150 + small-flash@0,80000 { 151 device_type = "rom"; 152 compatible = "direct-mapped"; 153 probe-type = "JEDEC"; ··· 159 160 ds1743@1,0 { 161 /* NVRAM & RTC */ 162 compatible = "ds1743"; 163 reg = <1 0 2000>; 164 }; ··· 170 probe-type = "JEDEC"; 171 bank-width = <1>; 172 partitions = <0 380000 173 + 380000 80000>; 174 partition-names = "fs", "firmware"; 175 reg = <2 0 400000>; 176 }; ··· 226 227 GPIO0: gpio@40000700 { 228 /* FIXME */ 229 compatible = "ibm,gpio-440gp"; 230 reg = <40000700 20>; 231 }; 232 233 ZMII0: emac-zmii@40000780 { 234 compatible = "ibm,zmii-440gp", "ibm,zmii"; 235 reg = <40000780 c>; 236 }; ··· 299 300 chosen { 301 linux,stdout-path = "/plb/opb/serial@40000200"; 302 }; 303 };
+3 -3
arch/powerpc/platforms/44x/ebony.c
··· 27 #include "44x.h" 28 29 static struct of_device_id ebony_of_bus[] = { 30 - { .type = "ibm,plb", }, 31 - { .type = "ibm,opb", }, 32 - { .type = "ibm,ebc", }, 33 {}, 34 }; 35
··· 27 #include "44x.h" 28 29 static struct of_device_id ebony_of_bus[] = { 30 + { .compatible = "ibm,plb4", }, 31 + { .compatible = "ibm,opb", }, 32 + { .compatible = "ibm,ebc", }, 33 {}, 34 }; 35