Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] prpmc2800: Clean up dts properties

Remove several unused (or software config only) properties.
Rename marvel node to "system-controller". Also, rename the
"block-index" property to "cell-index" to conform to current
practice.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Mark A. Greer and committed by
Paul Mackerras
1791f91b a05ce88a

+11 -36
+3 -24
arch/powerpc/boot/dts/prpmc2800.dts
··· 42 42 reg = <0x0 0x20000000>; /* Default (512MB) */ 43 43 }; 44 44 45 - mv64x60@f1000000 { /* Marvell Discovery */ 45 + system-controller@f1000000 { /* Marvell Discovery mv64360 */ 46 46 #address-cells = <1>; 47 47 #size-cells = <1>; 48 48 model = "mv64360"; /* Default */ ··· 114 114 }; 115 115 116 116 SDMA0: sdma@4000 { 117 - device_type = "dma"; 118 117 compatible = "marvell,mv64360-sdma"; 119 118 reg = <0x4000 0xc18>; 120 119 virtual-reg = <0xf1004000>; 121 - interrupt-base = <0>; 122 120 interrupts = <36>; 123 121 interrupt-parent = <&PIC>; 124 122 }; 125 123 126 124 SDMA1: sdma@6000 { 127 - device_type = "dma"; 128 125 compatible = "marvell,mv64360-sdma"; 129 126 reg = <0x6000 0xc18>; 130 127 virtual-reg = <0xf1006000>; 131 - interrupt-base = <0>; 132 128 interrupts = <38>; 133 129 interrupt-parent = <&PIC>; 134 130 }; ··· 135 139 clock-src = <8>; 136 140 clock-frequency = <133333333>; 137 141 current-speed = <9600>; 138 - bcr = <0>; 139 142 }; 140 143 141 144 BRG1: brg@b208 { ··· 143 148 clock-src = <8>; 144 149 clock-frequency = <133333333>; 145 150 current-speed = <9600>; 146 - bcr = <0>; 147 151 }; 148 152 149 153 CUNIT: cunit@f200 { ··· 168 174 cunit = <&CUNIT>; 169 175 mpscrouting = <&MPSCROUTING>; 170 176 mpscintr = <&MPSCINTR>; 171 - block-index = <0>; 172 - max_idle = <40>; 173 - chr_1 = <0>; 174 - chr_2 = <0>; 175 - chr_10 = <3>; 176 - mpcr = <0>; 177 + cell-index = <0>; 177 178 interrupts = <40>; 178 179 interrupt-parent = <&PIC>; 179 180 }; ··· 183 194 cunit = <&CUNIT>; 184 195 mpscrouting = <&MPSCROUTING>; 185 196 mpscintr = <&MPSCINTR>; 186 - block-index = <1>; 187 - max_idle = <40>; 188 - chr_1 = <0>; 189 - chr_2 = <0>; 190 - chr_10 = <3>; 191 - mpcr = <0>; 197 + cell-index = <1>; 192 198 interrupts = <42>; 193 199 interrupt-parent = <&PIC>; 194 200 }; ··· 191 207 wdt@b410 { /* watchdog timer */ 192 208 compatible = "marvell,mv64360-wdt"; 193 209 reg = <0xb410 0x8>; 194 - timeout = <10>; /* wdt timeout in seconds */ 195 210 }; 196 211 197 212 i2c@c000 { ··· 198 215 compatible = "marvell,mv64360-i2c"; 199 216 reg = <0xc000 0x20>; 200 217 virtual-reg = <0xf100c000>; 201 - freq_m = <8>; 202 - freq_n = <3>; 203 - timeout = <1000>; /* 1000 = 1 second */ 204 - retries = <1>; 205 218 interrupts = <37>; 206 219 interrupt-parent = <&PIC>; 207 220 };
+1 -1
arch/powerpc/boot/mpsc.c
··· 141 141 if (mpscintr_base == NULL) 142 142 goto err_out; 143 143 144 - n = getprop(devp, "block-index", &v, sizeof(v)); 144 + n = getprop(devp, "cell-index", &v, sizeof(v)); 145 145 if (n != sizeof(v)) 146 146 goto err_out; 147 147 reg_set = (int)v;
+7 -11
arch/powerpc/sysdev/mv64x60_dev.c
··· 127 127 if (err) 128 128 return err; 129 129 130 - prop = of_get_property(np, "block-index", NULL); 130 + prop = of_get_property(np, "cell-index", NULL); 131 131 if (!prop) 132 132 return -ENODEV; 133 133 port_number = *(int *)prop; ··· 136 136 137 137 pdata.cache_mgmt = 1; /* All current revs need this set */ 138 138 139 + pdata.max_idle = 40; /* default */ 139 140 prop = of_get_property(np, "max_idle", NULL); 140 141 if (prop) 141 142 pdata.max_idle = *prop; ··· 346 345 347 346 memset(&pdata, 0, sizeof(pdata)); 348 347 348 + pdata.freq_m = 8; /* default */ 349 349 prop = of_get_property(np, "freq_m", NULL); 350 350 if (!prop) 351 351 return -ENODEV; 352 352 pdata.freq_m = *prop; 353 353 354 + pdata.freq_m = 3; /* default */ 354 355 prop = of_get_property(np, "freq_n", NULL); 355 356 if (!prop) 356 357 return -ENODEV; 357 358 pdata.freq_n = *prop; 358 359 359 - prop = of_get_property(np, "timeout", NULL); 360 - if (prop) 361 - pdata.timeout = *prop; 362 - else 363 - pdata.timeout = 1000; /* 1 second */ 360 + pdata.timeout = 1000; /* default: 1 second */ 364 361 365 362 pdev = platform_device_alloc(MV64XXX_I2C_CTLR_NAME, id); 366 363 if (!pdev) ··· 400 401 401 402 memset(&pdata, 0, sizeof(pdata)); 402 403 403 - prop = of_get_property(np, "timeout", NULL); 404 - if (!prop) 405 - return -ENODEV; 406 - pdata.timeout = *prop; 404 + pdata.timeout = 10; /* Default: 10 seconds */ 407 405 408 406 np = of_get_parent(np); 409 407 if (!np) ··· 488 492 if (!of_device_is_compatible(np, "marvell,mv64360-mpsc")) 489 493 goto not_mpsc; 490 494 491 - prop = of_get_property(np, "block-index", NULL); 495 + prop = of_get_property(np, "cell-index", NULL); 492 496 if (!prop) 493 497 goto not_mpsc; 494 498