Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/85xx: Rework P1022DS device tree

Utilize new split between board & SoC, and new SoC device trees split
into pre & post utilizing 'template' includes for SoC IP blocks.

Other changes include:

* Reworked PCIe nodes to allow supportin IRQs for controller (errors)
and moved PCI device IRQs down to virtual bridge level
* Changed GPIO compatiable from 'fsl,mpc8572-gpio' to 'fsl,pq3-gpio' as the
'mpc8572' compatiable is to deal with a 'mpc8572' specific to an erratum
* Updated spi node to new espi binding specification
* Renamed SDHC node from 'sdhci' to 'sdhc'
* Added usb node for 2nd usb controller
* Dropping "fsl,p1022-IP..." from compatibles for standard blocks
* Fixed bug in local bus range node for CS2, was maping to
0x0 0x0xffa00000 instead of 0xf 0xffa00000
* Fixed localbus reg property should have been 0xf 0xffe05000

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Tested-by: Timur Tabi <timur@freescale.com>

+320 -418
+235
arch/powerpc/boot/dts/fsl/p1022si-post.dtsi
··· 1 + /* 2 + * P1022/P1013 Silicon/SoC Device Tree Source (post include) 3 + * 4 + * Copyright 2011 Freescale Semiconductor Inc. 5 + * 6 + * Redistribution and use in source and binary forms, with or without 7 + * modification, are permitted provided that the following conditions are met: 8 + * * Redistributions of source code must retain the above copyright 9 + * notice, this list of conditions and the following disclaimer. 10 + * * Redistributions in binary form must reproduce the above copyright 11 + * notice, this list of conditions and the following disclaimer in the 12 + * documentation and/or other materials provided with the distribution. 13 + * * Neither the name of Freescale Semiconductor nor the 14 + * names of its contributors may be used to endorse or promote products 15 + * derived from this software without specific prior written permission. 16 + * 17 + * 18 + * ALTERNATIVELY, this software may be distributed under the terms of the 19 + * GNU General Public License ("GPL") as published by the Free Software 20 + * Foundation, either version 2 of that License or (at your option) any 21 + * later version. 22 + * 23 + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 24 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26 + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 27 + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30 + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 + */ 34 + 35 + &lbc { 36 + #address-cells = <2>; 37 + #size-cells = <1>; 38 + compatible = "fsl,p1022-elbc", "fsl,elbc", "simple-bus"; 39 + interrupts = <19 2 0 0>; 40 + }; 41 + 42 + /* controller at 0x9000 */ 43 + &pci0 { 44 + compatible = "fsl,p1022-pcie"; 45 + device_type = "pci"; 46 + #size-cells = <2>; 47 + #address-cells = <3>; 48 + bus-range = <0 255>; 49 + clock-frequency = <33333333>; 50 + interrupts = <16 2 0 0>; 51 + 52 + pcie@0 { 53 + reg = <0 0 0 0 0>; 54 + #interrupt-cells = <1>; 55 + #size-cells = <2>; 56 + #address-cells = <3>; 57 + device_type = "pci"; 58 + interrupts = <16 2 0 0>; 59 + interrupt-map-mask = <0xf800 0 0 7>; 60 + interrupt-map = < 61 + /* IDSEL 0x0 */ 62 + 0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0 63 + 0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0 64 + 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0 65 + 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0 66 + >; 67 + }; 68 + }; 69 + 70 + /* controller at 0xa000 */ 71 + &pci1 { 72 + compatible = "fsl,p1022-pcie"; 73 + device_type = "pci"; 74 + #size-cells = <2>; 75 + #address-cells = <3>; 76 + bus-range = <0 255>; 77 + clock-frequency = <33333333>; 78 + interrupts = <16 2 0 0>; 79 + 80 + pcie@0 { 81 + reg = <0 0 0 0 0>; 82 + #interrupt-cells = <1>; 83 + #size-cells = <2>; 84 + #address-cells = <3>; 85 + device_type = "pci"; 86 + interrupts = <16 2 0 0>; 87 + interrupt-map-mask = <0xf800 0 0 7>; 88 + 89 + interrupt-map = < 90 + /* IDSEL 0x0 */ 91 + 0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0 92 + 0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0 93 + 0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0 94 + 0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0 95 + >; 96 + }; 97 + }; 98 + 99 + /* controller at 0xb000 */ 100 + &pci2 { 101 + compatible = "fsl,p1022-pcie"; 102 + device_type = "pci"; 103 + #size-cells = <2>; 104 + #address-cells = <3>; 105 + bus-range = <0 255>; 106 + clock-frequency = <33333333>; 107 + interrupts = <16 2 0 0>; 108 + 109 + pcie@0 { 110 + reg = <0 0 0 0 0>; 111 + #interrupt-cells = <1>; 112 + #size-cells = <2>; 113 + #address-cells = <3>; 114 + device_type = "pci"; 115 + interrupts = <16 2 0 0>; 116 + interrupt-map-mask = <0xf800 0 0 7>; 117 + 118 + interrupt-map = < 119 + /* IDSEL 0x0 */ 120 + 0000 0x0 0x0 0x1 &mpic 0x8 0x1 0x0 0x0 121 + 0000 0x0 0x0 0x2 &mpic 0x9 0x1 0x0 0x0 122 + 0000 0x0 0x0 0x3 &mpic 0xa 0x1 0x0 0x0 123 + 0000 0x0 0x0 0x4 &mpic 0xb 0x1 0x0 0x0 124 + >; 125 + }; 126 + }; 127 + 128 + &soc { 129 + #address-cells = <1>; 130 + #size-cells = <1>; 131 + device_type = "soc"; 132 + compatible = "fsl,p1022-immr", "simple-bus"; 133 + bus-frequency = <0>; // Filled out by uboot. 134 + 135 + ecm-law@0 { 136 + compatible = "fsl,ecm-law"; 137 + reg = <0x0 0x1000>; 138 + fsl,num-laws = <12>; 139 + }; 140 + 141 + ecm@1000 { 142 + compatible = "fsl,p1022-ecm", "fsl,ecm"; 143 + reg = <0x1000 0x1000>; 144 + interrupts = <16 2 0 0>; 145 + }; 146 + 147 + memory-controller@2000 { 148 + compatible = "fsl,p1022-memory-controller"; 149 + reg = <0x2000 0x1000>; 150 + interrupts = <16 2 0 0>; 151 + }; 152 + 153 + /include/ "pq3-i2c-0.dtsi" 154 + /include/ "pq3-i2c-1.dtsi" 155 + /include/ "pq3-duart-0.dtsi" 156 + /include/ "pq3-espi-0.dtsi" 157 + spi@7000 { 158 + fsl,espi-num-chipselects = <4>; 159 + }; 160 + 161 + /include/ "pq3-dma-1.dtsi" 162 + dma@c300 { 163 + dma00: dma-channel@0 { 164 + compatible = "fsl,ssi-dma-channel"; 165 + }; 166 + dma01: dma-channel@80 { 167 + compatible = "fsl,ssi-dma-channel"; 168 + }; 169 + }; 170 + 171 + /include/ "pq3-gpio-0.dtsi" 172 + 173 + display@10000 { 174 + compatible = "fsl,diu", "fsl,p1022-diu"; 175 + reg = <0x10000 1000>; 176 + interrupts = <64 2 0 0>; 177 + }; 178 + 179 + ssi@15000 { 180 + compatible = "fsl,mpc8610-ssi"; 181 + cell-index = <0>; 182 + reg = <0x15000 0x100>; 183 + interrupts = <75 2 0 0>; 184 + fsl,playback-dma = <&dma00>; 185 + fsl,capture-dma = <&dma01>; 186 + fsl,fifo-depth = <15>; 187 + }; 188 + 189 + /include/ "pq3-sata2-0.dtsi" 190 + /include/ "pq3-sata2-1.dtsi" 191 + 192 + L2: l2-cache-controller@20000 { 193 + compatible = "fsl,p1022-l2-cache-controller"; 194 + reg = <0x20000 0x1000>; 195 + cache-line-size = <32>; // 32 bytes 196 + cache-size = <0x40000>; // L2,256K 197 + interrupts = <16 2 0 0>; 198 + }; 199 + 200 + /include/ "pq3-dma-0.dtsi" 201 + /include/ "pq3-usb2-dr-0.dtsi" 202 + /include/ "pq3-usb2-dr-1.dtsi" 203 + 204 + /include/ "pq3-esdhc-0.dtsi" 205 + sdhc@2e000 { 206 + fsl,sdhci-auto-cmd12; 207 + }; 208 + 209 + /include/ "pq3-sec3.3-0.dtsi" 210 + /include/ "pq3-mpic.dtsi" 211 + /include/ "pq3-mpic-timer-B.dtsi" 212 + 213 + /include/ "pq3-etsec2-0.dtsi" 214 + enet0: enet0_grp2: ethernet@b0000 { 215 + }; 216 + 217 + /include/ "pq3-etsec2-1.dtsi" 218 + enet1: enet1_grp2: ethernet@b1000 { 219 + }; 220 + 221 + global-utilities@e0000 { 222 + compatible = "fsl,p1022-guts"; 223 + reg = <0xe0000 0x1000>; 224 + fsl,has-rstcr; 225 + }; 226 + 227 + power@e0070{ 228 + compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc"; 229 + reg = <0xe0070 0x20>; 230 + }; 231 + 232 + }; 233 + 234 + /include/ "pq3-etsec2-grp2-0.dtsi" 235 + /include/ "pq3-etsec2-grp2-1.dtsi"
+68
arch/powerpc/boot/dts/fsl/p1022si-pre.dtsi
··· 1 + /* 2 + * P1022/P1013 Silicon/SoC Device Tree Source (pre include) 3 + * 4 + * Copyright 2011 Freescale Semiconductor Inc. 5 + * 6 + * Redistribution and use in source and binary forms, with or without 7 + * modification, are permitted provided that the following conditions are met: 8 + * * Redistributions of source code must retain the above copyright 9 + * notice, this list of conditions and the following disclaimer. 10 + * * Redistributions in binary form must reproduce the above copyright 11 + * notice, this list of conditions and the following disclaimer in the 12 + * documentation and/or other materials provided with the distribution. 13 + * * Neither the name of Freescale Semiconductor nor the 14 + * names of its contributors may be used to endorse or promote products 15 + * derived from this software without specific prior written permission. 16 + * 17 + * 18 + * ALTERNATIVELY, this software may be distributed under the terms of the 19 + * GNU General Public License ("GPL") as published by the Free Software 20 + * Foundation, either version 2 of that License or (at your option) any 21 + * later version. 22 + * 23 + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 24 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26 + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 27 + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30 + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 + */ 34 + 35 + /dts-v1/; 36 + / { 37 + compatible = "fsl,P1022"; 38 + #address-cells = <2>; 39 + #size-cells = <2>; 40 + interrupt-parent = <&mpic>; 41 + 42 + aliases { 43 + serial0 = &serial0; 44 + serial1 = &serial1; 45 + ethernet0 = &enet0; 46 + ethernet1 = &enet1; 47 + pci0 = &pci0; 48 + pci1 = &pci1; 49 + pci2 = &pci2; 50 + }; 51 + 52 + cpus { 53 + #address-cells = <1>; 54 + #size-cells = <0>; 55 + 56 + PowerPC,P1022@0 { 57 + device_type = "cpu"; 58 + reg = <0x0>; 59 + next-level-cache = <&L2>; 60 + }; 61 + 62 + PowerPC,P1022@1 { 63 + device_type = "cpu"; 64 + reg = <0x1>; 65 + next-level-cache = <&L2>; 66 + }; 67 + }; 68 + };
+17 -418
arch/powerpc/boot/dts/p1022ds.dts
··· 8 8 * kind, whether express or implied. 9 9 */ 10 10 11 - /dts-v1/; 11 + /include/ "fsl/p1022si-pre.dtsi" 12 12 / { 13 - model = "fsl,P1022"; 13 + model = "fsl,P1022DS"; 14 14 compatible = "fsl,P1022DS"; 15 - #address-cells = <2>; 16 - #size-cells = <2>; 17 - interrupt-parent = <&mpic>; 18 - 19 - aliases { 20 - ethernet0 = &enet0; 21 - ethernet1 = &enet1; 22 - serial0 = &serial0; 23 - serial1 = &serial1; 24 - pci0 = &pci0; 25 - pci1 = &pci1; 26 - pci2 = &pci2; 27 - }; 28 - 29 - cpus { 30 - #address-cells = <1>; 31 - #size-cells = <0>; 32 - 33 - PowerPC,P1022@0 { 34 - device_type = "cpu"; 35 - reg = <0x0>; 36 - next-level-cache = <&L2>; 37 - }; 38 - 39 - PowerPC,P1022@1 { 40 - device_type = "cpu"; 41 - reg = <0x1>; 42 - next-level-cache = <&L2>; 43 - }; 44 - }; 45 15 46 16 memory { 47 17 device_type = "memory"; 48 18 }; 49 19 50 - localbus@fffe05000 { 51 - #address-cells = <2>; 52 - #size-cells = <1>; 53 - compatible = "fsl,p1022-elbc", "fsl,elbc", "simple-bus"; 54 - reg = <0 0xffe05000 0 0x1000>; 55 - interrupts = <19 2 0 0>; 56 - 20 + lbc: localbus@fffe05000 { 21 + reg = <0xf 0xffe05000 0 0x1000>; 57 22 ranges = <0x0 0x0 0xf 0xe8000000 0x08000000 58 23 0x1 0x0 0xf 0xe0000000 0x08000000 59 - 0x2 0x0 0x0 0xffa00000 0x00040000 24 + 0x2 0x0 0xf 0xffa00000 0x00040000 60 25 0x3 0x0 0xf 0xffdf0000 0x00008000>; 61 26 62 27 nor@0,0 { ··· 126 161 }; 127 162 }; 128 163 129 - soc@fffe00000 { 130 - #address-cells = <1>; 131 - #size-cells = <1>; 132 - device_type = "soc"; 133 - compatible = "fsl,p1022-immr", "simple-bus"; 164 + soc: soc@fffe00000 { 134 165 ranges = <0x0 0xf 0xffe00000 0x100000>; 135 - bus-frequency = <0>; // Filled out by uboot. 136 - 137 - ecm-law@0 { 138 - compatible = "fsl,ecm-law"; 139 - reg = <0x0 0x1000>; 140 - fsl,num-laws = <12>; 141 - }; 142 - 143 - ecm@1000 { 144 - compatible = "fsl,p1022-ecm", "fsl,ecm"; 145 - reg = <0x1000 0x1000>; 146 - interrupts = <16 2 0 0>; 147 - }; 148 - 149 - memory-controller@2000 { 150 - compatible = "fsl,p1022-memory-controller"; 151 - reg = <0x2000 0x1000>; 152 - interrupts = <16 2 0 0>; 153 - }; 154 - 155 - i2c@3000 { 156 - #address-cells = <1>; 157 - #size-cells = <0>; 158 - cell-index = <0>; 159 - compatible = "fsl-i2c"; 160 - reg = <0x3000 0x100>; 161 - interrupts = <43 2 0 0>; 162 - dfsrr; 163 - }; 164 166 165 167 i2c@3100 { 166 - #address-cells = <1>; 167 - #size-cells = <0>; 168 - cell-index = <1>; 169 - compatible = "fsl-i2c"; 170 - reg = <0x3100 0x100>; 171 - interrupts = <43 2 0 0>; 172 - dfsrr; 173 - 174 168 wm8776:codec@1a { 175 169 compatible = "wlf,wm8776"; 176 170 reg = <0x1a>; ··· 140 216 }; 141 217 }; 142 218 143 - serial0: serial@4500 { 144 - cell-index = <0>; 145 - device_type = "serial"; 146 - compatible = "ns16550"; 147 - reg = <0x4500 0x100>; 148 - clock-frequency = <0>; 149 - interrupts = <42 2 0 0>; 150 - }; 151 - 152 - serial1: serial@4600 { 153 - cell-index = <1>; 154 - device_type = "serial"; 155 - compatible = "ns16550"; 156 - reg = <0x4600 0x100>; 157 - clock-frequency = <0>; 158 - interrupts = <42 2 0 0>; 159 - }; 160 - 161 219 spi@7000 { 162 - cell-index = <0>; 163 - #address-cells = <1>; 164 - #size-cells = <0>; 165 - compatible = "fsl,espi"; 166 - reg = <0x7000 0x1000>; 167 - interrupts = <59 0x2 0 0>; 168 - espi,num-ss-bits = <4>; 169 - mode = "cpu"; 170 - 171 - fsl_m25p80@0 { 220 + flash@0 { 172 221 #address-cells = <1>; 173 222 #size-cells = <1>; 174 - compatible = "fsl,espi-flash"; 223 + compatible = "spansion,s25sl12801"; 175 224 reg = <0>; 176 - linux,modalias = "fsl_m25p80"; 177 225 spi-max-frequency = <40000000>; /* input clock */ 226 + 178 227 partition@0 { 179 228 label = "u-boot-spi"; 180 229 reg = <0x00000000 0x00100000>; ··· 171 274 }; 172 275 173 276 ssi@15000 { 174 - compatible = "fsl,mpc8610-ssi"; 175 - cell-index = <0>; 176 - reg = <0x15000 0x100>; 177 - interrupts = <75 2 0 0>; 178 277 fsl,mode = "i2s-slave"; 179 278 codec-handle = <&wm8776>; 180 - fsl,playback-dma = <&dma00>; 181 - fsl,capture-dma = <&dma01>; 182 - fsl,fifo-depth = <15>; 183 279 fsl,ssi-asynchronous; 184 280 }; 185 281 186 - dma@c300 { 187 - #address-cells = <1>; 188 - #size-cells = <1>; 189 - compatible = "fsl,eloplus-dma"; 190 - reg = <0xc300 0x4>; 191 - ranges = <0x0 0xc100 0x200>; 192 - cell-index = <1>; 193 - dma00: dma-channel@0 { 194 - compatible = "fsl,ssi-dma-channel"; 195 - reg = <0x0 0x80>; 196 - cell-index = <0>; 197 - interrupts = <76 2 0 0>; 198 - }; 199 - dma01: dma-channel@80 { 200 - compatible = "fsl,ssi-dma-channel"; 201 - reg = <0x80 0x80>; 202 - cell-index = <1>; 203 - interrupts = <77 2 0 0>; 204 - }; 205 - dma-channel@100 { 206 - compatible = "fsl,eloplus-dma-channel"; 207 - reg = <0x100 0x80>; 208 - cell-index = <2>; 209 - interrupts = <78 2 0 0>; 210 - }; 211 - dma-channel@180 { 212 - compatible = "fsl,eloplus-dma-channel"; 213 - reg = <0x180 0x80>; 214 - cell-index = <3>; 215 - interrupts = <79 2 0 0>; 216 - }; 217 - }; 218 - 219 - gpio: gpio-controller@f000 { 220 - #gpio-cells = <2>; 221 - compatible = "fsl,mpc8572-gpio"; 222 - reg = <0xf000 0x100>; 223 - interrupts = <47 0x2 0 0>; 224 - gpio-controller; 225 - }; 226 - 227 - L2: l2-cache-controller@20000 { 228 - compatible = "fsl,p1022-l2-cache-controller"; 229 - reg = <0x20000 0x1000>; 230 - cache-line-size = <32>; // 32 bytes 231 - cache-size = <0x40000>; // L2, 256K 232 - interrupts = <16 2 0 0>; 233 - }; 234 - 235 - dma@21300 { 236 - #address-cells = <1>; 237 - #size-cells = <1>; 238 - compatible = "fsl,eloplus-dma"; 239 - reg = <0x21300 0x4>; 240 - ranges = <0x0 0x21100 0x200>; 241 - cell-index = <0>; 242 - dma-channel@0 { 243 - compatible = "fsl,eloplus-dma-channel"; 244 - reg = <0x0 0x80>; 245 - cell-index = <0>; 246 - interrupts = <20 2 0 0>; 247 - }; 248 - dma-channel@80 { 249 - compatible = "fsl,eloplus-dma-channel"; 250 - reg = <0x80 0x80>; 251 - cell-index = <1>; 252 - interrupts = <21 2 0 0>; 253 - }; 254 - dma-channel@100 { 255 - compatible = "fsl,eloplus-dma-channel"; 256 - reg = <0x100 0x80>; 257 - cell-index = <2>; 258 - interrupts = <22 2 0 0>; 259 - }; 260 - dma-channel@180 { 261 - compatible = "fsl,eloplus-dma-channel"; 262 - reg = <0x180 0x80>; 263 - cell-index = <3>; 264 - interrupts = <23 2 0 0>; 265 - }; 266 - }; 267 - 268 282 usb@22000 { 269 - #address-cells = <1>; 270 - #size-cells = <0>; 271 - compatible = "fsl-usb2-dr"; 272 - reg = <0x22000 0x1000>; 273 - interrupts = <28 0x2 0 0>; 274 283 phy_type = "ulpi"; 275 284 }; 276 285 277 - mdio@24000 { 278 - #address-cells = <1>; 279 - #size-cells = <0>; 280 - compatible = "fsl,etsec2-mdio"; 281 - reg = <0x24000 0x1000 0xb0030 0x4>; 286 + usb@23000 { 287 + status = "disabled"; 288 + }; 282 289 290 + mdio@24000 { 283 291 phy0: ethernet-phy@0 { 284 292 interrupts = <3 1 0 0>; 285 293 reg = <0x1>; ··· 195 393 }; 196 394 }; 197 395 198 - mdio@25000 { 199 - #address-cells = <1>; 200 - #size-cells = <0>; 201 - compatible = "fsl,etsec2-mdio"; 202 - reg = <0x25000 0x1000 0xb1030 0x4>; 203 - }; 204 - 205 - enet0: ethernet@B0000 { 206 - #address-cells = <1>; 207 - #size-cells = <1>; 208 - cell-index = <0>; 209 - device_type = "network"; 210 - model = "eTSEC"; 211 - compatible = "fsl,etsec2"; 212 - fsl,num_rx_queues = <0x8>; 213 - fsl,num_tx_queues = <0x8>; 214 - fsl,magic-packet; 215 - fsl,wake-on-filer; 216 - local-mac-address = [ 00 00 00 00 00 00 ]; 396 + ethernet@b0000 { 217 397 phy-handle = <&phy0>; 218 398 phy-connection-type = "rgmii-id"; 219 - queue-group@0{ 220 - #address-cells = <1>; 221 - #size-cells = <1>; 222 - reg = <0xB0000 0x1000>; 223 - interrupts = <29 2 0 0 30 2 0 0 34 2 0 0>; 224 - }; 225 - queue-group@1{ 226 - #address-cells = <1>; 227 - #size-cells = <1>; 228 - reg = <0xB4000 0x1000>; 229 - interrupts = <17 2 0 0 18 2 0 0 24 2 0 0>; 230 - }; 231 399 }; 232 400 233 - enet1: ethernet@B1000 { 234 - #address-cells = <1>; 235 - #size-cells = <1>; 236 - cell-index = <0>; 237 - device_type = "network"; 238 - model = "eTSEC"; 239 - compatible = "fsl,etsec2"; 240 - fsl,num_rx_queues = <0x8>; 241 - fsl,num_tx_queues = <0x8>; 242 - local-mac-address = [ 00 00 00 00 00 00 ]; 401 + ethernet@b1000 { 243 402 phy-handle = <&phy1>; 244 403 phy-connection-type = "rgmii-id"; 245 - queue-group@0{ 246 - #address-cells = <1>; 247 - #size-cells = <1>; 248 - reg = <0xB1000 0x1000>; 249 - interrupts = <35 2 0 0 36 2 0 0 40 2 0 0>; 250 - }; 251 - queue-group@1{ 252 - #address-cells = <1>; 253 - #size-cells = <1>; 254 - reg = <0xB5000 0x1000>; 255 - interrupts = <51 2 0 0 52 2 0 0 67 2 0 0>; 256 - }; 257 - }; 258 - 259 - sdhci@2e000 { 260 - compatible = "fsl,p1022-esdhc", "fsl,esdhc"; 261 - reg = <0x2e000 0x1000>; 262 - interrupts = <72 0x2 0 0>; 263 - fsl,sdhci-auto-cmd12; 264 - /* Filled in by U-Boot */ 265 - clock-frequency = <0>; 266 - }; 267 - 268 - crypto@30000 { 269 - compatible = "fsl,sec3.3", "fsl,sec3.1", "fsl,sec3.0", 270 - "fsl,sec2.4", "fsl,sec2.2", "fsl,sec2.1", 271 - "fsl,sec2.0"; 272 - reg = <0x30000 0x10000>; 273 - interrupts = <45 2 0 0 58 2 0 0>; 274 - fsl,num-channels = <4>; 275 - fsl,channel-fifo-len = <24>; 276 - fsl,exec-units-mask = <0x97c>; 277 - fsl,descriptor-types-mask = <0x3a30abf>; 278 - }; 279 - 280 - sata@18000 { 281 - compatible = "fsl,p1022-sata", "fsl,pq-sata-v2"; 282 - reg = <0x18000 0x1000>; 283 - cell-index = <1>; 284 - interrupts = <74 0x2 0 0>; 285 - }; 286 - 287 - sata@19000 { 288 - compatible = "fsl,p1022-sata", "fsl,pq-sata-v2"; 289 - reg = <0x19000 0x1000>; 290 - cell-index = <2>; 291 - interrupts = <41 0x2 0 0>; 292 - }; 293 - 294 - power@e0070{ 295 - compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc"; 296 - reg = <0xe0070 0x20>; 297 - }; 298 - 299 - display@10000 { 300 - compatible = "fsl,diu", "fsl,p1022-diu"; 301 - reg = <0x10000 1000>; 302 - interrupts = <64 2 0 0>; 303 - }; 304 - 305 - timer@41100 { 306 - compatible = "fsl,mpic-global-timer"; 307 - reg = <0x41100 0x100 0x41300 4>; 308 - interrupts = <0 0 3 0 309 - 1 0 3 0 310 - 2 0 3 0 311 - 3 0 3 0>; 312 - }; 313 - 314 - timer@42100 { 315 - compatible = "fsl,mpic-global-timer"; 316 - reg = <0x42100 0x100 0x42300 4>; 317 - interrupts = <4 0 3 0 318 - 5 0 3 0 319 - 6 0 3 0 320 - 7 0 3 0>; 321 - }; 322 - 323 - mpic: pic@40000 { 324 - interrupt-controller; 325 - #address-cells = <0>; 326 - #interrupt-cells = <4>; 327 - reg = <0x40000 0x40000>; 328 - compatible = "fsl,mpic"; 329 - device_type = "open-pic"; 330 - }; 331 - 332 - msi@41600 { 333 - compatible = "fsl,p1022-msi", "fsl,mpic-msi"; 334 - reg = <0x41600 0x80>; 335 - msi-available-ranges = <0 0x100>; 336 - interrupts = < 337 - 0xe0 0 0 0 338 - 0xe1 0 0 0 339 - 0xe2 0 0 0 340 - 0xe3 0 0 0 341 - 0xe4 0 0 0 342 - 0xe5 0 0 0 343 - 0xe6 0 0 0 344 - 0xe7 0 0 0>; 345 - }; 346 - 347 - global-utilities@e0000 { //global utilities block 348 - compatible = "fsl,p1022-guts"; 349 - reg = <0xe0000 0x1000>; 350 - fsl,has-rstcr; 351 404 }; 352 405 }; 353 406 354 407 pci0: pcie@fffe09000 { 355 - compatible = "fsl,p1022-pcie"; 356 - device_type = "pci"; 357 - #interrupt-cells = <1>; 358 - #size-cells = <2>; 359 - #address-cells = <3>; 360 408 reg = <0xf 0xffe09000 0 0x1000>; 361 - bus-range = <0 255>; 362 409 ranges = <0x2000000 0x0 0xa0000000 0xc 0x20000000 0x0 0x20000000 363 410 0x1000000 0x0 0x00000000 0xf 0xffc10000 0x0 0x10000>; 364 - clock-frequency = <33333333>; 365 - interrupts = <16 2 0 0>; 366 - interrupt-map-mask = <0xf800 0 0 7>; 367 - interrupt-map = < 368 - /* IDSEL 0x0 */ 369 - 0000 0 0 1 &mpic 4 1 370 - 0000 0 0 2 &mpic 5 1 371 - 0000 0 0 3 &mpic 6 1 372 - 0000 0 0 4 &mpic 7 1 373 - >; 374 411 pcie@0 { 375 - reg = <0x0 0x0 0x0 0x0 0x0>; 376 - #size-cells = <2>; 377 - #address-cells = <3>; 378 - device_type = "pci"; 379 412 ranges = <0x2000000 0x0 0xe0000000 380 413 0x2000000 0x0 0xe0000000 381 414 0x0 0x20000000 ··· 222 585 }; 223 586 224 587 pci1: pcie@fffe0a000 { 225 - compatible = "fsl,p1022-pcie"; 226 - device_type = "pci"; 227 - #interrupt-cells = <1>; 228 - #size-cells = <2>; 229 - #address-cells = <3>; 230 588 reg = <0xf 0xffe0a000 0 0x1000>; 231 - bus-range = <0 255>; 232 589 ranges = <0x2000000 0x0 0xc0000000 0xc 0x40000000 0x0 0x20000000 233 590 0x1000000 0x0 0x00000000 0xf 0xffc20000 0x0 0x10000>; 234 - clock-frequency = <33333333>; 235 - interrupts = <16 2 0 0>; 236 - interrupt-map-mask = <0xf800 0 0 7>; 237 - interrupt-map = < 238 - /* IDSEL 0x0 */ 239 - 0000 0 0 1 &mpic 0 1 240 - 0000 0 0 2 &mpic 1 1 241 - 0000 0 0 3 &mpic 2 1 242 - 0000 0 0 4 &mpic 3 1 243 - >; 244 591 pcie@0 { 245 592 reg = <0x0 0x0 0x0 0x0 0x0>; 246 - #size-cells = <2>; 247 - #address-cells = <3>; 248 - device_type = "pci"; 249 593 ranges = <0x2000000 0x0 0xe0000000 250 594 0x2000000 0x0 0xe0000000 251 595 0x0 0x20000000 ··· 237 619 }; 238 620 }; 239 621 240 - 241 622 pci2: pcie@fffe0b000 { 242 - compatible = "fsl,p1022-pcie"; 243 - device_type = "pci"; 244 - #interrupt-cells = <1>; 245 - #size-cells = <2>; 246 - #address-cells = <3>; 247 623 reg = <0xf 0xffe0b000 0 0x1000>; 248 - bus-range = <0 255>; 249 624 ranges = <0x2000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000 250 625 0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>; 251 - clock-frequency = <33333333>; 252 - interrupts = <16 2 0 0>; 253 - interrupt-map-mask = <0xf800 0 0 7>; 254 - interrupt-map = < 255 - /* IDSEL 0x0 */ 256 - 0000 0 0 1 &mpic 8 1 257 - 0000 0 0 2 &mpic 9 1 258 - 0000 0 0 3 &mpic 10 1 259 - 0000 0 0 4 &mpic 11 1 260 - >; 261 626 pcie@0 { 262 - reg = <0x0 0x0 0x0 0x0 0x0>; 263 - #size-cells = <2>; 264 - #address-cells = <3>; 265 - device_type = "pci"; 266 627 ranges = <0x2000000 0x0 0xe0000000 267 628 0x2000000 0x0 0xe0000000 268 629 0x0 0x20000000 ··· 252 655 }; 253 656 }; 254 657 }; 658 + 659 + /include/ "fsl/p1022si-post.dtsi"