Thread (21 messages) 21 messages, 5 authors, 2009-06-16

Re: [PATCH v4] 83xx: add support for the kmeter1 board.

From: David Gibson <hidden>
Date: 2009-06-15 02:42:57

On Fri, Jun 12, 2009 at 07:27:42AM +0200, Heiko Schocher wrote:
Hello David,

David Gibson wrote:
quoted
On Thu, Jun 11, 2009 at 08:10:41PM +0200, Heiko Schocher wrote:
quoted
The following series implements basic board support for
the kmeter1 board from keymile, based on a MPC8360.
[snip]
quoted
+		par_io@1400 {
+			reg = <0x1400 0x100>;
+			device_type = "par_io";
This should have a compatible value instead of a device_type value.
compatible = "fsl,mpc8360-par_io"; ?
Sounds reasonable, if there isn't an existing precedent to follow.
quoted
[snip]
quoted
+			num-ports = <7>;
+
+			pio_ucc1: ucc_pin@00 {
Since these nodes have addresses, they should also have reg
properties.  And the parent should have #address-cells and
#size-cells.
added "#address-cells" and "#size-cells", but couldn;t find what
I should write in a "reg" entry ... I think something like that:

reg = <0x00 0x01>;
If you just want a plain index number, which is what it seems you have
here, then you'll want #address-cells = 1, #size-cells = 0 and reg
will then have one cell (i.e. 1 u32) with the index number

so 	subnode@0 {
		reg = <0>;
	}
	subnode@1 {
		reg = <1>;
	}

Note also that it's usual for the unit addresses (that's the bits
after the @ sign) to be formatted without leading zeroes.
?
quoted
[snip]
quoted
+		qe@100000 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			device_type = "qe";
This device_type should not be here.
deleted.
Ok.

-- 
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help