[PATCH v2 06/12] [POWERPC] TQM5200 DTS
Marian Balakowicz
m8 at semihalf.com
Wed Nov 7 06:50:45 EST 2007
David Gibson wrote:
> On Sun, Nov 04, 2007 at 12:52:47AM +0100, Marian Balakowicz wrote:
>> Add device tree source file for TQM5200 board.
> [snip]
>> + soc5200 at f0000000 {
>
> soc at address is the new convention, I believe, but I guess you need
> compatibility with older bootstraps.
Correct, we stick with 'soc5200' due to hardcoded paths in U-boot.
>
>> + model = "fsl,mpc5200";
>> + compatible = "mpc5200";
>
> This compatible looks bogus; it should have the "fsl," at least.
Added 'fsl,'.
> [snip]
>> + mpc5200_pic: pic at 500 {
>> + // 5200 interrupts are encoded into two levels;
>> + interrupt-controller;
>> + #interrupt-cells = <3>;
>> + device_type = "interrupt-controller";
>
> No device_type here.
Removed it.
>
>> + compatible = "mpc5200-pic";
>> + reg = <500 80>;
>> + };
>> +
>> + gpt at 600 { // General Purpose Timer
>> + compatible = "fsl,mpc5200-gpt";
>> + cell-index = <0>;
>
> Ok, is this actually a suitable usage for cell-index? It should only
> be used when the cell-index number is used to program some soc-global
> register. It should not be used just for ordering or logical-indexing
> purposes.
Rechecked that and it's not being used anywhere. Removed.
> [snip]
>> + serial at 2000 { // PSC1
>> + device_type = "serial";
>> + compatible = "mpc5200-psc-uart";
>> + port-number = <0>; // Logical port assignment
>> + cell-index = <0>;
>
> Ditto w.r.t. cell-index.
Not used, removed.
> port-number also looks bogus - the device tree should not generally
> contain logical numbering information in this manner. How and what
> uses the port-number property?
'port-number' is used by serial driver (mpc52xx_uart.c), if present it
assigns a device number (/dev/PSC<port-number>) for given serial port.
That allows to override default auto-numbering.
>> + sram at 8000 {
>> + compatible = "mpc5200-sram","sram";
>
> Uh.. is there an "sram" binding? "sram" doesn't look specific enough
> for a compatible property.
Right, removed "sram".
Thanks,
m.
More information about the Linuxppc-dev
mailing list