Writing Device Tree Source (DTS)

Kumar Amarjit amarjit.kumar at patni.com
Mon Nov 23 19:57:44 EST 2009


Hi All,
We are using PowerPc440 core on our Soc that consists of PCIe core, SAS core
and many other things.
We are writing DTS for our board to be used during booting, we have gone
through various dts files available inside the Linux Kernel 2.6.31.
Our board is closets match with Taishan board.
While referring the Taishan.dts, we are unable to get the information
regarding Interrupt-map and interrupt-map-mask property.
Please refer to the snippet.......
It would be great if anybody help me to understand the way they are writing
these properties?
I also gone through the DTS document booting-without-of but that does not
help us, so anybody having any documents on How To Write DTS can help me
out.
 
PCIX0: pci at 20ec00000 {
   device_type = "pci";
   #interrupt-cells = <1>;
   #size-cells = <2>;
   #address-cells = <3>;
   compatible = "ibm,plb440gp-pcix", "ibm,plb-pcix";
   primary;
   large-inbound-windows;
   enable-msi-hole;
   reg = <0x00000002 0x0ec00000   0x00000008 /* Config space access */
          0x00000000 0x00000000 0x00000000  /* no IACK cycles */
          0x00000002 0x0ed00000   0x00000004   /* Special cycles */
          0x00000002 0x0ec80000 0x00000100 /* Internal registers */
          0x00000002 0x0ec80100  0x000000fc>; /* Internal messaging
registers */
 
   /* Outbound ranges, one memory and one IO,
    * later cannot be changed
    */
   ranges = <0x02000000 0x00000000 0x80000000 0x00000003 0x80000000
0x00000000 0x80000000
      0x01000000 0x00000000 0x00000000 0x00000002 0x08000000 0x00000000
0x00010000>;
 
   /* Inbound 2GB range starting at 0 */
   dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
 
   interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
   interrupt-map = <
    /* IDSEL 1 */
    0x800 0x0 0x0 0x1 &UIC0 0x17 0x8
    0x800 0x0 0x0 0x2 &UIC0 0x18 0x8
    0x800 0x0 0x0 0x3 &UIC0 0x19 0x8
    0x800 0x0 0x0 0x4 &UIC0 0x1a 0x8
 
    /* IDSEL 2 */
    0x1000 0x0 0x0 0x1 &UIC0 0x18 0x8
    0x1000 0x0 0x0 0x2 &UIC0 0x19 0x8
    0x1000 0x0 0x0 0x3 &UIC0 0x1a 0x8
    0x1000 0x0 0x0 0x4 &UIC0 0x17 0x8
   >;
  };
 

Thanks & Regards,

 Kumar Amarjit

 

 Software Engineer,

 Product Engineering Services,

 Patni Computer Systems Ltd.

( Mobile: 09320551382  | (Office: +91-2239174127 

(Extn:-4127

 

_____________________________________________________________________ 

This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin at patni.com and delete this mail.
_____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20091123/bad21767/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 16636 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20091123/bad21767/attachment-0001.jpeg>


More information about the devicetree-discuss mailing list