Thread (34 messages) 34 messages, 12 authors, 2006-10-05

Re: [PATCH 10/11] Add MPC8360EMDS board support

From: Kumar Gala <hidden>
Date: 2006-09-27 13:33:11

quoted
quoted
quoted
+memory {
+               device_type = "memory";
+               linux,phandle = <300>;
+               reg = <00000000 4000000 f4500000 00000020>;
+       };
the second pair is about bcsr and its size.

Just in case this may help (and wondering if I'm not violating
something :) )

Well, this can make it work.  But I would prefer to use a new node
because the BCSR is by no means a memory type of device.  I have
made my
quoted
quoted
change to use node like this:

        bcsr@f8000000 {
                device_type = "board-control";
                reg = <f8000000 8000>;
        };
I though about that approach, but saw somewhere a reference that we
should not summon
quoted
new node types without utter necessity, and utilized memory because
bcsr is
quoted
memory-mapped stuff. I can hardly imagine bcsr as a device (which
would require
quoted
respective spec inclusion btw).
Well I didn't see such a guideline.  However BCSR is truly a device like
any other peripherals on board.  Usually it is an FPGA on local bus to
control the board.
Agree that a new node is better, calling it memory isn't right.  However, I'm not sure this really needs a node in the device tree. The BCSR isn't really the same from board to board last time I checked.  I'd be interested in Paul's thinking about why it should be in the tree.
quoted
hence let's open a discussion what others think about that. The
problem seems common
quoted
(and for some boards
is called somewhat else apparently), but at this point we should come
to some
quoted
conclusion, document it, and use it.
Agreed.  As we are adding more devices to the device tree, we should
also have a guideline clearly stated for adding new nodes.

I'm adding MURAM as a new node under QE bus.  Please comment.
                muram@10000 {
                        device_type = "memory";
                        ranges = <0 00010000 0000c000>;

                        data-only@0{
                                reg = <0 c000>;
                        };
                };
What was the need for this?

- kumar
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help