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