From: Marian Balakowicz <m8@semihalf.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH v2 06/12] [POWERPC] TQM5200 DTS
Date: Tue, 06 Nov 2007 20:50:45 +0100 [thread overview]
Message-ID: <4730C595.4040707@semihalf.com> (raw)
In-Reply-To: <20071105004739.GG19867@localhost.localdomain>
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@f0000000 {
>
> soc@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@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@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@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@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.
next prev parent reply other threads:[~2007-11-06 19:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-03 23:52 [PATCH v2 00/12] [POWERPC] Add TQM5200/CM5200/Motion-PRO board support Marian Balakowicz
2007-11-03 23:52 ` [PATCH v2 01/12] [POWERPC] Add 'model: ...' line to common show_cpuinfo() Marian Balakowicz
2007-11-04 22:17 ` David Gibson
2007-11-05 1:40 ` Olof Johansson
2007-11-03 23:52 ` [PATCH v2 02/12] [POWERPC] Add 'fsl, lpb' bus type for MPC5200 LocalPlus Bus Marian Balakowicz
2007-11-04 22:18 ` David Gibson
2007-11-03 23:52 ` [PATCH v2 03/12] [POWERPC] Add common mpc52xx_setup_pci() routine Marian Balakowicz
2007-11-03 23:52 ` [PATCH v2 04/12] [POWERPC] Add generic support for simple MPC5200 based boards Marian Balakowicz
2007-11-03 23:52 ` [PATCH v2 05/12] [POWERPC] Export mpc52xx_map_node() routine symbol Marian Balakowicz
2007-11-04 4:09 ` Stephen Rothwell
2007-11-06 12:23 ` Marian Balakowicz
2007-11-03 23:52 ` [PATCH v2 06/12] [POWERPC] TQM5200 DTS Marian Balakowicz
2007-11-05 0:47 ` David Gibson
2007-11-06 19:50 ` Marian Balakowicz [this message]
2007-11-03 23:52 ` [PATCH v2 07/12] [POWERPC] TQM5200 defconfig Marian Balakowicz
2007-11-03 23:52 ` [PATCH v2 08/12] [POWERPC] CM5200 DTS Marian Balakowicz
2007-11-05 0:50 ` David Gibson
2007-11-06 19:18 ` Marian Balakowicz
2007-11-03 23:53 ` [PATCH v2 09/12] [POWERPC] CM5200 defconfig Marian Balakowicz
2007-11-03 23:53 ` [PATCH v2 10/12] [POWERPC] Motion-PRO: Add LED support Marian Balakowicz
2007-11-04 4:27 ` Stephen Rothwell
2007-11-06 11:58 ` Marian Balakowicz
2007-11-03 23:53 ` [PATCH v2 11/12] [POWERPC] Promess Motion-PRO DTS Marian Balakowicz
2007-11-05 0:56 ` David Gibson
2007-11-06 20:02 ` Marian Balakowicz
2007-11-03 23:53 ` [PATCH v2 12/12] [POWERPC] Promess Motion-PRO defconfig Marian Balakowicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4730C595.4040707@semihalf.com \
--to=m8@semihalf.com \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).