linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Marian Balakowicz <m8@semihalf.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 05/11] [POWERPC] TQM5200 DTS
Date: Wed, 24 Oct 2007 11:51:15 +1000	[thread overview]
Message-ID: <20071024015115.GK10595@localhost.localdomain> (raw)
In-Reply-To: <20071023231333.29359.35252.stgit@hekate.izotz.org>

On Wed, Oct 24, 2007 at 01:13:33AM +0200, Marian Balakowicz wrote:
> Add device tree source file for TQM5200 board.
> 
> Signed-off-by: Marian Balakowicz <m8@semihalf.com>
> ---
> 
>  arch/powerpc/boot/dts/tqm5200.dts |  236 +++++++++++++++++++++++++++++++++++++
>  1 files changed, 236 insertions(+), 0 deletions(-)
>  create mode 100644 arch/powerpc/boot/dts/tqm5200.dts
> 
> 
> diff --git a/arch/powerpc/boot/dts/tqm5200.dts b/arch/powerpc/boot/dts/tqm5200.dts
> new file mode 100644
> index 0000000..01c7778
> --- /dev/null
> +++ b/arch/powerpc/boot/dts/tqm5200.dts
> @@ -0,0 +1,236 @@
> +/*
> + * TQM5200 board Device Tree Source
[snip]
> +	soc5200@f0000000 {

I thought we were moving towards calling these just /soc@address?

> +		model = "fsl,mpc5200";
> +		compatible = "mpc5200";

That should have a vendor prefix.

[snip]
> +		serial@2000 {		// PSC1
> +			device_type = "serial";
> +			compatible = "mpc5200-psc-uart";
> +			port-number = <0>;  // Logical port assignment

How are these port-number things used?  The device tree shouldn't
generally contain information that isn't inherent to the hardware.
There can be reasons for hacks like this, but we should avoid them if
possible.

> +			cell-index = <0>;

cell-index should only be used if the index number is used when
manipulating the hardware (e.g. if there's a global control register
which takes this number).

[snip]
> +		ata@3a00 {
> +			device_type = "ata";

No such thing as device_type = "ata", drop it.  In general, never
include a device_type unless a binding explicitly says to do so.

[snip]
> +	lpb@fc000000 {
> +		model = "fsl,lpb";
> +		compatible = "lpb";

Not nearly specific enough.  Must include a vendor prefix at least,
and should have a lot more revision information.  You should always be
able to pick the right driver with compatible alone, "model" should
generally be for human consumption, the driver shouldn't need it.

> +		device_type = "lpb";

Drop this.  Again, presence of a device_type property is the
exception, not the rule.

> +		ranges = <0 fc000000 02000000>;

You need #address-cells and #size-cells properties, too.

[snip]

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

  reply	other threads:[~2007-10-24  1:51 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-23 23:13 [PATCH 00/11] [POWERPC] Add TQM5200/CM5200/Motion-PRO board support Marian Balakowicz
2007-10-23 23:13 ` [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo() Marian Balakowicz
2007-10-23 23:23   ` David Gibson
2007-10-25 14:17     ` Marian Balakowicz
2007-10-23 23:59   ` Olof Johansson
2007-10-24  7:11   ` Stephen Rothwell
2007-10-25  4:33     ` Milton Miller
2007-10-25 14:47       ` Marian Balakowicz
2007-10-23 23:13 ` [PATCH 02/11] [POWERPC] Add 'lpb' bus type for MPC5200 LocalPlus Bus Marian Balakowicz
2007-10-24  0:09   ` Olof Johansson
2007-10-25 14:55     ` Marian Balakowicz
2007-10-23 23:13 ` [PATCH 03/11] [POWERPC] Add common mpc52xx_setup_pci() routine Marian Balakowicz
2007-10-24  7:16   ` Stephen Rothwell
2007-10-23 23:13 ` [PATCH 04/11] [POWERPC] Add generic support for MPC5200 based boards Marian Balakowicz
2007-10-24 14:03   ` Grant Likely
2007-10-23 23:13 ` [PATCH 05/11] [POWERPC] TQM5200 DTS Marian Balakowicz
2007-10-24  1:51   ` David Gibson [this message]
2007-10-24 14:09     ` Grant Likely
2007-10-25 15:23     ` Marian Balakowicz
2007-10-25  9:57   ` Martin Krause
2007-10-25 13:53     ` Grant Likely
2007-10-25 15:46       ` Marian Balakowicz
2007-10-26  1:33         ` David Gibson
2007-10-29 14:18           ` Marian Balakowicz
2007-10-29 15:40             ` Grant Likely
2007-10-30  0:58               ` David Gibson
2007-10-30  5:58                 ` Grant Likely
2007-10-30 15:34               ` Marian Balakowicz
2007-10-23 23:13 ` [PATCH 06/11] [POWERPC] TQM5200 defconfig Marian Balakowicz
2007-10-23 23:13 ` [PATCH 07/11] [POWERPC] CM5200 DTS Marian Balakowicz
2007-10-23 23:13 ` [PATCH 08/11] [POWERPC] CM5200 defconfig Marian Balakowicz
2007-10-23 23:13 ` [PATCH 09/11] [POWERPC] Motion-PRO: Add LED support Marian Balakowicz
2007-10-24 14:18   ` Grant Likely
2007-10-25 15:53     ` Marian Balakowicz
2007-10-23 23:14 ` [PATCH 10/11] [POWERPC] Promess Motion-PRO DTS Marian Balakowicz
2007-10-23 23:14 ` [PATCH 11/11] [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=20071024015115.GK10595@localhost.localdomain \
    --to=david@gibson.dropbear.id.au \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=m8@semihalf.com \
    /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).