Elbc device driver

Scott Wood scottwood at freescale.com
Sat Oct 12 04:35:40 EST 2013


On Fri, 2013-10-11 at 17:03 +0200, Mercier Ivan wrote:
> Hi,
> this should be correct (I'm using chip select 3 for this device)
>         lbc: localbus at ffe124000 {
>                 reg = <0xf 0xfe124000 0 0x1000>;
>                 ranges = <3 0 0xf 0xe0000000 0x08000000>;
> 
>                 a3p400{
>                         #address-cells = <1>;
>                         #size-cells = <1>;
>                         compatible = "my_a3p_driver";
>                         reg = <0x0 0x0 0x800000>;
>                 };
>         };

Compatible describes the device, not the driver.  It takes the format
"vendor,device".  The node name, OTOH, is normally a generic description
of the device's functionality ("flash", "ethernet", "board-control",
etc).

You don't need #address-cells/#size-cells on the a3p400 node unless it
has child nodes with reg or ranges.

-Scott





More information about the Linuxppc-dev mailing list