linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Ilya Yanok <yanok@emcraft.com>
Cc: vlad@emcraft.com, linuxppc-dev@lists.ozlabs.org, wd@denx.de, dzu@denx.de
Subject: Re: [PATCH] mpc8308_p1m: support for MPC8308 P1M board
Date: Tue, 7 Sep 2010 15:28:34 -0500	[thread overview]
Message-ID: <20100907152834.1f038f49@schlenkerla.am.freescale.net> (raw)
In-Reply-To: <1283854143-2299-1-git-send-email-yanok@emcraft.com>

On Tue, 7 Sep 2010 12:09:03 +0200
Ilya Yanok <yanok@emcraft.com> wrote:

> +	compatible = "mpc8308_p1m";

This needs a vendor prefix.

> +		i2c0@3000 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			cell-index = <0>;
> +			compatible = "fsl-i2c";
> +			reg = <0x3000 0x100>;
> +			interrupts = <14 0x8>;
> +			interrupt-parent = <&ipic>;
> +			dfsrr;
> +			fram@50 {
> +				compatible = "ramtron,24c64";
> +				reg = <0x50>;
> +			};
> +		};
> +
> +		i2c1@3100 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			cell-index = <0>;
> +			compatible = "fsl-i2c";
> +			reg = <0x3100 0x100>;
> +			interrupts = <15 0x8>;
> +			interrupt-parent = <&ipic>;
> +			dfsrr;
> +			pwm@28 {
> +				compatible = "maxim,ds1050";
> +				reg = <0x28>;
> +			};
> +			sensor0@48 {
> +				compatible = "maxim,max6625";
> +				reg = <0x48>;
> +			};
> +			sensor1@49 {
> +				compatible = "maxim,max6625";
> +				reg = <0x49>;
> +			};
> +			sensor2@4b {
> +				compatible = "maxim,max6625";
> +				reg = <0x4b>;
> +			};
> +		};

Why "i2c0@3000" and "i2c1@3100" rather than "i2c@3000" and "i2c@3100"?
Likewise for the sensor nodes.

Drop cell-index; it's not part of the fsl i2c binding (plus, they
probably shouldn't both be zero...).

> +		enet0: ethernet@24000 {
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			ranges = <0x0 0x24000 0x1000>;
> +
> +			cell-index = <0>;
> +			device_type = "network";
> +			model = "eTSEC";
> +			compatible = "gianfar";
> +			reg = <0x24000 0x1000>;
> +			local-mac-address = [ 00 00 00 00 00 00 ];
> +			interrupts = <32 0x8 33 0x8 34 0x8>;
> +			interrupt-parent = <&ipic>;
> +			phy-handle = < &phy1 >;
> +			fsl,magic-packet;

8308 does not have magic packet.

> +		gpio@c00 {
> +			#gpio-cells = <2>;
> +			device_type = "gpio";
> +			compatible = "fsl,mpc8308-gpio", "fsl,mpc8349-gpio";
> +			reg = <0xc00 0x18>;
> +			interrupts = <74 0x8>;
> +			interrupt-parent = <&ipic>;
> +			gpio-controller;
> +		};

Drop device_type.

> +	pci0: pcie@e0009000 {
> +		#address-cells = <3>;
> +		#size-cells = <2>;
> +		#interrupt-cells = <1>;
> +		device_type = "pci";
> +		compatible = "fsl,mpc8308-pcie", "fsl,mpc8314-pcie";
> +		reg = <0xe0009000 0x00001000
> +			0xb0000000 0x01000000>;
> +		ranges = <0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
> +		          0x01000000 0 0x00000000 0xb1000000 0 0x00800000>;
> +		bus-range = <0 0>;
> +		interrupt-map-mask = <0xf800 0 0 7>;
> +		interrupt-map = <0 0 0 1 &ipic 1 8
> +				 0 0 0 2 &ipic 1 8
> +				 0 0 0 3 &ipic 1 8
> +				 0 0 0 4 &ipic 1 8>;

Should interrupt-map-mask be <0 0 0 7>?  Or possibly <0 0 0 0> with
just one map entry?

-Scott

  reply	other threads:[~2010-09-07 20:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07 10:09 [PATCH] mpc8308_p1m: support for MPC8308 P1M board Ilya Yanok
2010-09-07 20:28 ` Scott Wood [this message]
2010-09-08 21:54   ` [PATCH][v2] " Ilya Yanok
2010-09-08 22:02     ` Scott Wood
2010-09-08 23:55       ` [PATCH][v3] " Ilya Yanok
2010-10-07  6:00         ` Kumar Gala

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=20100907152834.1f038f49@schlenkerla.am.freescale.net \
    --to=scottwood@freescale.com \
    --cc=dzu@denx.de \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=vlad@emcraft.com \
    --cc=wd@denx.de \
    --cc=yanok@emcraft.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).