one more question about dts

Grant Likely grant.likely at secretlab.ca
Wed Jul 21 12:59:15 EST 2010


On Tue, Jul 20, 2010 at 8:37 PM, hacklu <embedway.test at gmail.com> wrote:
> my board is mpc8247,and i write it's dts by   imitating mpc8272's dts
>
> how can i set the localbus address?
>
> localbus at f0010100 {
>                 compatible = "fsl,mpc8272-localbus",
>                              "fsl,pq2-localbus";
>                 #address-cells = <2>;
>                 #size-cells = <1>;
>                 reg = <f0010100 40>;
>                 ranges = <
>                                  0 0 70000000 1000000  #my flash1
>                                  1 0 71000000 1000000  #my flash2
>                                  2 ?  ???????    ???????   #how to set it
> for board-control?
>  3  ?  ????        ????        # how to set it for
> pci_pic                       >;

These values reflect the base address and translation range of each
chip select.  How are your hardware chips selects configured.

If I assume that cs2 is configured for 0xc1000000 to 0xc100ffff, and
cs3 is configured for 0xc2000000 to 0xc203ffff, then your ranges
property would be:

                ranges = < 0 0 70000000 1000000  #my flash1
                           1 0 71000000 1000000  #my flash2
                           2 0 c1000000 10000
                           3 0 c2000000 40000 >;


>
> ....
>  board-control at 2,0 {
>                         reg = <1 0 20>;

If this is attached to chipselect #2, then this should be "reg = <2 0 20>;"

>                         compatible = "fsl,mpc8272ads-bcsr";
>                 };
>                 PCI_PIC: interrupt-controller at 3,0 {
>                         compatible = "fsl,mpc8272ads-pci-pic",
>                                      "fsl,pq2ads-pci-pic";
>                         #interrupt-cells = <1>;
>                         interrupt-controller;
>                         reg = <3 0 8>;
>                         interrupt-parent = <&PIC>;
>                         interrupts = <14 8>;
>                 };
>
> thanks for answering~
> 2010-07-21
> ________________________________
> hacklu



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the Linuxppc-dev mailing list