<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>&nbsp;<br>&nbsp;I'm attempting to get SPI to work on my embedded design<br>&nbsp;that is based on the mpc8313erbd reference board wiht a<br>&nbsp;2.6.27 kernel.&nbsp; I cannot open the SPI device.&nbsp;<br>&nbsp;Tracing through the kernel code, it looks like the device is<br>&nbsp;not being found in the DTB file.&nbsp; However there is a<br>&nbsp;SPI node in there already described.&nbsp; Our boards is a<br>&nbsp;SPI master, and the device we will attach is a SPI<br>&nbsp;slave.&nbsp; Could someone elaborate on what is needed in<br>&nbsp;the DTS file to have our SPI driver work and respond to an<br>&nbsp;open() call?<br>&nbsp;<br>&nbsp;I've attached our latest attempt at modifying the DTS<br>&nbsp;file.<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&gt; /*<br>&gt;  * MPC8313E RDB Device Tree Source<br>&gt;  *<br>&gt;  * Copyright 2005, 2006, 2007 Freescale
 Semiconductor Inc.<br>&gt;  *<br>&gt;  * This program is free software; you can<br>&gt; redistribute&nbsp; it and/or modify it<br>&gt;  * under&nbsp; the terms of&nbsp; the GNU General&nbsp;<br>&gt; Public License as published by the<br>&gt;  * Free Software Foundation;&nbsp; either version 2 of<br>&gt; the&nbsp; License, or (at your<br>&gt;  * option) any later version.<br>&gt;  */<br>&gt; /dts-v1/;<br>&gt; / {<br>&gt;  model = "MPC8313ERDB";<br>&gt;  compatible = "MPC8313ERDB", "MPC831xRDB", "MPC83xxRDB";<br>&gt;  #address-cells = &lt;1&gt;;<br>&gt;  #size-cells = &lt;1&gt;;<br>&gt;  aliases {<br>&gt; &nbsp; ethernet0 = &amp;enet0;<br>&gt; &nbsp; ethernet1 = &amp;enet1;<br>&gt; &nbsp; serial0 = &amp;serial0;<br>&gt; &nbsp; serial1 = &amp;serial1;<br>&gt; &nbsp; pci0 = &amp;pci0;<br>&gt;  };<br>&gt;  cpus {<br>&gt; &nbsp; #address-cells = &lt;1&gt;;<br>&gt; &nbsp; #size-cells = &lt;0&gt;;<br>&gt; &nbsp; PowerPC,8313@0 {<br>&gt;
 &nbsp;&nbsp;&nbsp;device_type = "cpu";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;d-cache-line-size = &lt;32&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;i-cache-line-size = &lt;32&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;d-cache-size = &lt;16384&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;i-cache-size = &lt;16384&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;timebase-frequency = &lt;0&gt;; // from<br>&gt; bootloader<br>&gt; &nbsp;&nbsp;&nbsp;bus-frequency = &lt;0&gt;;&nbsp; // from<br>&gt; bootloader<br>&gt; &nbsp;&nbsp;&nbsp;clock-frequency = &lt;0&gt;;&nbsp; //<br>&gt; from bootloader<br>&gt; &nbsp; };<br>&gt;  };<br>&gt;  memory {<br>&gt; &nbsp; device_type = "memory";<br>&gt; &nbsp; reg = &lt;0x00000000 0x08000000&gt;; // 128MB at 0<br>&gt;  };<br>&gt;  localbus@e0005000 {<br>&gt; &nbsp; #address-cells = &lt;2&gt;;<br>&gt; &nbsp; #size-cells = &lt;1&gt;;<br>&gt; &nbsp; compatible = "fsl,mpc8313-elbc", "fsl,elbc",<br>&gt; "simple-bus";<br>&gt; &nbsp; reg = &lt;0xe0005000
 0x1000&gt;;<br>&gt; &nbsp; interrupts = &lt;77 0x8&gt;;<br>&gt; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; // CS0 and CS1 are swapped when<br>&gt; &nbsp; // booting from nand, but the<br>&gt; &nbsp; // addresses are the same.<br>&gt; &nbsp; ranges = &lt;0x0 0x0 0xfe000000 0x00200000<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x1 0x0<br>&gt; 0xc0000000 0x02000000<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x2 0x0<br>&gt; 0xf0000000 0x00020000<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x3 0x0<br>&gt; 0xfa000000 0x00008000&gt;;<br>&gt; &nbsp; /* remapped for our part */<br>&gt; &nbsp; flash@0,0 {<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "cfi-flash";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x0 0x0 0x200000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;bank-width = &lt;2&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;device-width = &lt;1&gt;;<br>&gt;
 &nbsp;&nbsp;&nbsp;<br>&gt; &nbsp;&nbsp;&nbsp;u-boot@0 {<br>&gt; &nbsp; &nbsp; reg = &lt;0x0 0x40000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;u-boot-env@40000 {<br>&gt; &nbsp; &nbsp; reg = &lt;0x40000 0x10000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;kernel@50000 {<br>&gt; &nbsp; &nbsp; reg = &lt;0x50000 0x1A0000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;dtb@1F0000 {<br>&gt; &nbsp; &nbsp; reg = &lt;0x1f0000 0x10000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp; };<br>&gt; &nbsp; /* DCC - remapped for our part */<br>&gt; &nbsp; nand@1,0 {<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl,mpc8313-fcm-nand",<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>&gt; "fsl,elbc-fcm-nand";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x1 0x0 0x02000000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;fs1@0 {<br>&gt;
 &nbsp; &nbsp; reg = &lt;0x0 0x10000000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;fs2@10000000 {<br>&gt; &nbsp; &nbsp; reg = &lt;0x10000000 0x10000000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp; };<br>&gt;  };<br>&gt;  soc8313@e0000000 {<br>&gt; &nbsp; #address-cells = &lt;1&gt;;<br>&gt; &nbsp; #size-cells = &lt;1&gt;;<br>&gt; &nbsp; device_type = "soc";<br>&gt; &nbsp; compatible = "simple-bus";<br>&gt; &nbsp; ranges = &lt;0x0 0xe0000000 0x00100000&gt;;<br>&gt; &nbsp; reg = &lt;0xe0000000 0x00000200&gt;;<br>&gt; &nbsp; bus-frequency = &lt;0&gt;;<br>&gt; &nbsp; wdt@200 {<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "watchdog";<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "mpc83xx_wdt";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x200 0x100&gt;;<br>&gt; &nbsp; };<br>&gt; &nbsp; /*<br>&gt; &nbsp; *&nbsp; FPGA-TNG device<br>&gt; &nbsp; * used 4 external interrupts<br>&gt; &nbsp; * IRQ0&nbsp; - magnetec stripe image writer/reader<br>&gt; &nbsp; *
 IRQ1&nbsp; - picture image writer<br>&gt; &nbsp; * IRQ2&nbsp; - RFID reader&nbsp; -<br>&gt; &nbsp; * IRQ3 - MiniPCI?<br>&gt; &nbsp; * IRQ4 - motion devices<br>&gt; &nbsp; */<br>&gt; &nbsp; fpga-tng@f0000000 {<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fpga-tng";<br>&gt; &nbsp;&nbsp;&nbsp;ranges;<br>&gt; &nbsp;&nbsp;&nbsp;/* IRQ 0 level */<br>&gt; &nbsp;&nbsp;&nbsp;magstripe@00 {<br>&gt; &nbsp; &nbsp; device_type = "magstripe";<br>&gt; &nbsp; &nbsp; compatible = "ms_tng";<br>&gt; &nbsp; &nbsp; reg = &lt;0x00 0x4&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;48 0x8&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt; &amp;ipic &gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;/* IRQ 1 level */<br>&gt; &nbsp;&nbsp;&nbsp;tph@5e {<br>&gt; &nbsp; &nbsp; device_type = "tph";<br>&gt; &nbsp; &nbsp; compatible = "tph_tng";<br>&gt; &nbsp; &nbsp; reg =
 &lt;0x5e 0x4&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;17 0x8&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt; &amp;ipic &gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;motion@8e {<br>&gt; &nbsp; &nbsp; device_type = "motion";<br>&gt; &nbsp; &nbsp; compatible = "motion_tng";<br>&gt; &nbsp; &nbsp; reg = &lt;0x8e 0x4&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;20 0x8&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt; &amp;ipic &gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp; };<br>&gt; &nbsp; sleep-nexus {<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "simple-bus";<br>&gt; &nbsp;&nbsp;&nbsp;sleep = &lt;&amp;pmc 0x03000000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;ranges;<br>&gt; &nbsp;&nbsp;&nbsp;pit@400 {<br>&gt; &nbsp; &nbsp; device_type = "pit";<br>&gt; &nbsp; &nbsp; compatible = "mpc_pit";<br>&gt; &nbsp; &nbsp; reg = &lt;0x400 0x100&gt;;<br>&gt;
 &nbsp; &nbsp; interrupts = &lt;65 0x8&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt; &amp;ipic &gt;;<br>&gt; &nbsp; &nbsp; clock-frequency = &lt;133333330&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;i2c@3000 {<br>&gt; &nbsp; &nbsp; #address-cells = &lt;1&gt;;<br>&gt; &nbsp; &nbsp; #size-cells = &lt;0&gt;;<br>&gt; &nbsp; &nbsp; cell-index = &lt;0&gt;;<br>&gt; &nbsp; &nbsp; compatible = "fsl-i2c";<br>&gt; &nbsp; &nbsp; reg = &lt;0x3000 0x100&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;14 0x8&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp; dfsrr;<br>&gt; &nbsp; &nbsp; sensor@48 {<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;compatible = "national,lm75";<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;reg = &lt;0x48&gt;;<br>&gt; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; rtc@68 {<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;compatible = "dallas,ds1339";<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;reg = &lt;0x68&gt;;<br>&gt; &nbsp; &nbsp; };<br>&gt;
 &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;spi@7000 {<br>&gt; &nbsp; &nbsp; device_type = "spi";<br>&gt; &nbsp; &nbsp; cell-index = &lt;0&gt;;<br>&gt; &nbsp; &nbsp; compatible =<br>&gt; "fsl,spi","fsl,mpc83xx-spi","fsl,mpc83xx_spi";<br>&gt; &nbsp; &nbsp; reg = &lt;0x7000 0x1000&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;21 0x8&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp; mode = "cpu";<br>&gt; &nbsp; &nbsp; <br>&gt; &nbsp; &nbsp; fsl_m25p80@0 {<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;compatible = "fsl,spi";<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;reg = &lt;0&gt;;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;voltage-ranges = &lt;3300<br>&gt; 3300&gt;;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;spi-max-frequency =<br>&gt; &lt;6000000&gt;;<br>&gt; &nbsp; &nbsp; };&nbsp; <br>&gt; &nbsp;&nbsp;&nbsp;}; <br>&gt; &nbsp;&nbsp;&nbsp;crypto@30000 {<br>&gt; &nbsp; &nbsp; compatible = "fsl,sec2.2",
 "fsl,sec2.1",<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>&gt; &nbsp;&nbsp;&nbsp;"fsl,sec2.0";<br>&gt; &nbsp; &nbsp; reg = &lt;0x30000 0x10000&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;11 0x8&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp; fsl,num-channels = &lt;1&gt;;<br>&gt; &nbsp; &nbsp; fsl,channel-fifo-len = &lt;24&gt;;<br>&gt; &nbsp; &nbsp; fsl,exec-units-mask = &lt;0x4c&gt;;<br>&gt; &nbsp; &nbsp; fsl,descriptor-types-mask =<br>&gt; &lt;0x0122003f&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp; };<br>&gt; &nbsp; i2c@3100 {<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl-i2c";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x3100 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;15 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent =
 &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;dfsrr;<br>&gt; &nbsp; };<br>&gt; &nbsp; spi@7000 {<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "spi";<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible =<br>&gt; "fsl,spi","fsl,mpc83xx_spi";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x7000 0x1000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;16 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;mode = "cpu";<br>&gt; &nbsp;&nbsp;&nbsp;<br>&gt; &nbsp;&nbsp;&nbsp;mp85p20@0 {<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;compatible = "fsl,spi";<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;reg = &lt;0&gt;;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;voltage-ranges = &lt;3300<br>&gt; 3300&gt;;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;spi-max-frequency =<br>&gt; &lt;6000000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};&nbsp; &nbsp; <br>&gt; &nbsp; };<br>&gt; &nbsp; dma@82a8 {<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt;
 &nbsp;&nbsp;&nbsp;#size-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl,mpc8313-dma",<br>&gt; "fsl,elo-dma";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x82a8 4&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;ranges = &lt;0 0x8100 0x1a8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;71 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;dma-channel@0 {<br>&gt; &nbsp; &nbsp; compatible = "fsl,mpc8313-dma-channel",<br>&gt; "fsl,elo-dma-channel";<br>&gt; &nbsp; &nbsp; reg = &lt;0 0x80&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;71 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;dma-channel@80 {<br>&gt; &nbsp; &nbsp; compatible = "fsl,mpc8313-dma-channel",<br>&gt; "fsl,elo-dma-channel";<br>&gt; &nbsp; &nbsp; reg = &lt;0x80 0x80&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt;
 &nbsp; &nbsp; interrupts = &lt;71 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;dma-channel@100 {<br>&gt; &nbsp; &nbsp; compatible = "fsl,mpc8313-dma-channel",<br>&gt; "fsl,elo-dma-channel";<br>&gt; &nbsp; &nbsp; reg = &lt;0x100 0x80&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;71 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp;&nbsp;&nbsp;dma-channel@180 {<br>&gt; &nbsp; &nbsp; compatible = "fsl,mpc8313-dma-channel",<br>&gt; "fsl,elo-dma-channel";<br>&gt; &nbsp; &nbsp; reg = &lt;0x180 0x28&gt;;<br>&gt; &nbsp; &nbsp; interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp; interrupts = &lt;71 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp; };<br>&gt; &nbsp; /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */<br>&gt; &nbsp; usb@23000 {<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl-usb2-dr";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x23000 0x1000&gt;;<br>&gt;
 &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;38 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;phy_type = "utmi_wide";<br>&gt; &nbsp;&nbsp;&nbsp;dr_mode = "peripheral";<br>&gt; &nbsp;&nbsp;&nbsp;sleep = &lt;&amp;pmc 0x00300000&gt;;<br>&gt; &nbsp; };<br>&gt; &nbsp; enet0: ethernet@24000 {<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;sleep = &lt;&amp;pmc 0x20000000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;ranges;<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "network";<br>&gt; &nbsp;&nbsp;&nbsp;model = "eTSEC";<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "gianfar", "simple-bus";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x24000 0x1000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;local-mac-address = [ 00 00 00 00 00
 00<br>&gt; ];<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;32 0x8 33 0x8 34<br>&gt; 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;phy-handle = &lt; &amp;phy3 &gt;;<br>&gt; &nbsp;&nbsp;&nbsp;fsl,magic-packet;<br>&gt; &nbsp;&nbsp;&nbsp;mdio@24520 {<br>&gt; &nbsp; &nbsp; #address-cells = &lt;1&gt;;<br>&gt; &nbsp; &nbsp; #size-cells = &lt;0&gt;;<br>&gt; &nbsp; &nbsp; compatible = "fsl,gianfar-mdio";<br>&gt; &nbsp; &nbsp; reg = &lt;0x24520 0x20&gt;;<br>&gt; &nbsp; &nbsp; phy3: ethernet-phy@3 {<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;interrupt-parent =<br>&gt; &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;reg = &lt;0x3&gt;;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;device_type = "ethernet-phy";<br>&gt; &nbsp; &nbsp; };<br>&gt; &nbsp; &nbsp; phy1: ethernet-phy@1 {<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;interrupt-parent =<br>&gt; &lt;&amp;ipic&gt;;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;reg = &lt;0x1&gt;;<br>&gt; &nbsp;
 &nbsp;&nbsp;&nbsp;device_type = "ethernet-phy";<br>&gt; &nbsp; &nbsp; };<br>&gt; &nbsp;&nbsp;&nbsp;};<br>&gt; &nbsp; };<br>&gt; &nbsp; enet1: ethernet@25000 {<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "network";<br>&gt; &nbsp;&nbsp;&nbsp;model = "eTSEC";<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "gianfar";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x25000 0x1000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;local-mac-address = [ 00 00 00 00 00 00<br>&gt; ];<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;35 0x8 36 0x8 37<br>&gt; 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;phy-handle = &lt; &amp;phy1 &gt;;<br>&gt; &nbsp;&nbsp;&nbsp;sleep = &lt;&amp;pmc 0x10000000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;fsl,magic-packet;<br>&gt; &nbsp; };<br>&gt; &nbsp; serial0: serial@4500 {<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "serial";<br>&gt;
 &nbsp;&nbsp;&nbsp;compatible = "ns16550";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x4500 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;clock-frequency = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;9 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; };<br>&gt; &nbsp; serial1: serial@4600 {<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "serial";<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "ns16550";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x4600 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;clock-frequency = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;10 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; };<br>&gt; &nbsp; /* IPIC<br>&gt; &nbsp;&nbsp;&nbsp;* interrupts cell = &lt;intr #,<br>&gt; sense&gt;<br>&gt; &nbsp;&nbsp;&nbsp;* sense values match linux<br>&gt; IORESOURCE_IRQ_* defines:<br>&gt; &nbsp;&nbsp;&nbsp;* sense == 8: Level, low
 assertion<br>&gt; &nbsp;&nbsp;&nbsp;* sense == 2: Edge, high-to-low change<br>&gt; &nbsp;&nbsp;&nbsp;*/<br>&gt; &nbsp; ipic: pic@700 {<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-controller;<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#interrupt-cells = &lt;2&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x700 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "ipic";<br>&gt; &nbsp; };<br>&gt; &nbsp; pmc: power@b00 {<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl,mpc8313-pmc",<br>&gt; "fsl,mpc8349-pmc";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0xb00 0x100 0xa00 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;80 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;fsl,mpc8313-wakeup-timer =<br>&gt; &lt;&amp;gtm1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;/* Remove this (or change to "okay") if<br>&gt; you have<br>&gt; &nbsp; &nbsp; * a REVA3 or later board, if you apply one of<br>&gt; the<br>&gt;
 &nbsp; &nbsp; * workarounds listed in section 8.5 of the<br>&gt; board<br>&gt; &nbsp; &nbsp; * manual, or if you are adapting this device<br>&gt; tree<br>&gt; &nbsp; &nbsp; * to a different board.<br>&gt; &nbsp; &nbsp; */<br>&gt; &nbsp;&nbsp;&nbsp;status = "fail";<br>&gt; &nbsp; };<br>&gt; &nbsp; gtm1: timer@500 {<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl,mpc8313-gtm",<br>&gt; "fsl,gtm";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x500 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;90 8 78 8 84 8 72<br>&gt; 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; };<br>&gt; &nbsp; timer@600 {<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl,mpc8313-gtm",<br>&gt; "fsl,gtm";<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0x600 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;91 8 79 8 85 8 73<br>&gt; 8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp; };<br>&gt;  };<br>&gt;  sleep-nexus {<br>&gt;
 &nbsp; #address-cells = &lt;1&gt;;<br>&gt; &nbsp; #size-cells = &lt;1&gt;;<br>&gt; &nbsp; compatible = "simple-bus";<br>&gt; &nbsp; sleep = &lt;&amp;pmc 0x00010000&gt;;<br>&gt; &nbsp; ranges;<br>&gt; &nbsp; pci0: pci@e0008500 {<br>&gt; &nbsp;&nbsp;&nbsp;cell-index = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-map-mask = &lt;0xf800 0x0 0x0<br>&gt; 0x7&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-map = &lt;<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;/* IDSEL 0x0E -mini PCI */<br>&gt; &nbsp; &nbsp; &nbsp; 0x7000 0x0 0x0 0x1 &amp;ipic 18 0x8<br>&gt; &nbsp; &nbsp; &nbsp; 0x7000 0x0 0x0 0x2 &amp;ipic 18 0x8<br>&gt; &nbsp; &nbsp; &nbsp; 0x7000 0x0 0x0 0x3 &amp;ipic 18 0x8<br>&gt; &nbsp; &nbsp; &nbsp; 0x7000 0x0 0x0 0x4 &amp;ipic 18 0x8<br>&gt; &nbsp; &nbsp;&nbsp;&nbsp;/* IDSEL 0x0F - PCI slot */<br>&gt; &nbsp; &nbsp; &nbsp; 0x7800 0x0 0x0 0x1 &amp;ipic 17 0x8<br>&gt; &nbsp; &nbsp; &nbsp; 0x7800 0x0 0x0 0x2 &amp;ipic 18 0x8<br>&gt; &nbsp; &nbsp; &nbsp; 0x7800 0x0 0x0 0x3
 &amp;ipic 17 0x8<br>&gt; &nbsp; &nbsp; &nbsp; 0x7800 0x0 0x0 0x4 &amp;ipic 18<br>&gt; 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupt-parent = &lt;&amp;ipic&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;interrupts = &lt;66 0x8&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;bus-range = &lt;0x0 0x0&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;ranges = &lt;0x02000000 0x0 0x90000000<br>&gt; 0x90000000 0x0 0x10000000<br>&gt; &nbsp; &nbsp; &nbsp; 0x42000000 0x0 0x80000000 0x80000000<br>&gt; 0x0 0x10000000<br>&gt; &nbsp; &nbsp; &nbsp; 0x01000000 0x0 0x00000000 0xe2000000<br>&gt; 0x0 0x00100000&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;clock-frequency = &lt;66666666&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#interrupt-cells = &lt;1&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#size-cells = &lt;2&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;#address-cells = &lt;3&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;reg = &lt;0xe0008500 0x100&gt;;<br>&gt; &nbsp;&nbsp;&nbsp;compatible = "fsl,mpc8349-pci";<br>&gt; &nbsp;&nbsp;&nbsp;device_type = "pci";<br>&gt; &nbsp; };<br>&gt; 
 };<br>&gt; };<br>&gt; <br>&gt; <br>&gt; <br>&gt; &nbsp; &nbsp; &nbsp; <br>&gt; </td></tr></table><br>