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

powerpc/85xx: Rework P1023RDS 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:
* Moved to specifying interrupt-parent for mpic at root
* Moved to 4-cell mpic interrupt cells to support MPIC timers
* Dropping "fsl,p1023-IP..." from compatibles for standard blocks
* Removed incorrect power/pmc node, there are no etsec on P1023

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

+322 -358
+224
arch/powerpc/boot/dts/fsl/p1023si-post.dtsi
··· 1 + /* 2 + * P1023/P1017 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,p1023-elbc", "fsl,elbc", "simple-bus"; 39 + interrupts = <19 2 0 0>; 40 + }; 41 + 42 + /* controller at 0xa000 */ 43 + &pci0 { 44 + compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; 45 + device_type = "pci"; 46 + #size-cells = <2>; 47 + #address-cells = <3>; 48 + bus-range = <0x0 0xff>; 49 + clock-frequency = <33333333>; 50 + interrupts = <16 2 0 0>; 51 + pcie@0 { 52 + reg = <0 0 0 0 0>; 53 + #interrupt-cells = <1>; 54 + #size-cells = <2>; 55 + #address-cells = <3>; 56 + device_type = "pci"; 57 + interrupts = <16 2 0 0>; 58 + }; 59 + }; 60 + 61 + /* controller at 0x9000 */ 62 + &pci1 { 63 + compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; 64 + device_type = "pci"; 65 + #size-cells = <2>; 66 + #address-cells = <3>; 67 + bus-range = <0 0xff>; 68 + clock-frequency = <33333333>; 69 + interrupts = <16 2 0 0>; 70 + pcie@0 { 71 + reg = <0 0 0 0 0>; 72 + #interrupt-cells = <1>; 73 + #size-cells = <2>; 74 + #address-cells = <3>; 75 + device_type = "pci"; 76 + interrupts = <16 2 0 0>; 77 + }; 78 + }; 79 + 80 + /* controller at 0xb000 */ 81 + &pci2 { 82 + compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; 83 + device_type = "pci"; 84 + #size-cells = <2>; 85 + #address-cells = <3>; 86 + bus-range = <0x0 0xff>; 87 + clock-frequency = <33333333>; 88 + interrupts = <16 2 0 0>; 89 + pcie@0 { 90 + reg = <0 0 0 0 0>; 91 + #interrupt-cells = <1>; 92 + #size-cells = <2>; 93 + #address-cells = <3>; 94 + device_type = "pci"; 95 + interrupts = <16 2 0 0>; 96 + }; 97 + }; 98 + 99 + &soc { 100 + #address-cells = <1>; 101 + #size-cells = <1>; 102 + device_type = "soc"; 103 + compatible = "fsl,p1023-immr", "simple-bus"; 104 + bus-frequency = <0>; // Filled out by uboot. 105 + 106 + ecm-law@0 { 107 + compatible = "fsl,ecm-law"; 108 + reg = <0x0 0x1000>; 109 + fsl,num-laws = <12>; 110 + }; 111 + 112 + ecm@1000 { 113 + compatible = "fsl,p1023-ecm", "fsl,ecm"; 114 + reg = <0x1000 0x1000>; 115 + interrupts = <16 2 0 0>; 116 + }; 117 + 118 + memory-controller@2000 { 119 + compatible = "fsl,p1023-memory-controller"; 120 + reg = <0x2000 0x1000>; 121 + interrupts = <16 2 0 0>; 122 + }; 123 + 124 + /include/ "pq3-i2c-0.dtsi" 125 + /include/ "pq3-i2c-1.dtsi" 126 + /include/ "pq3-duart-0.dtsi" 127 + 128 + /include/ "pq3-espi-0.dtsi" 129 + spi@7000 { 130 + fsl,espi-num-chipselects = <4>; 131 + }; 132 + 133 + /include/ "pq3-gpio-0.dtsi" 134 + 135 + L2: l2-cache-controller@20000 { 136 + compatible = "fsl,p1023-l2-cache-controller"; 137 + reg = <0x20000 0x1000>; 138 + cache-line-size = <32>; // 32 bytes 139 + cache-size = <0x40000>; // L2,256K 140 + interrupts = <16 2 0 0>; 141 + }; 142 + 143 + /include/ "pq3-dma-0.dtsi" 144 + /include/ "pq3-usb2-dr-0.dtsi" 145 + 146 + crypto: crypto@300000 { 147 + compatible = "fsl,sec-v4.2", "fsl,sec-v4.0"; 148 + #address-cells = <1>; 149 + #size-cells = <1>; 150 + reg = <0x30000 0x10000>; 151 + ranges = <0 0x30000 0x10000>; 152 + interrupts = <58 2 0 0>; 153 + 154 + sec_jr0: jr@1000 { 155 + compatible = "fsl,sec-v4.2-job-ring", 156 + "fsl,sec-v4.0-job-ring"; 157 + reg = <0x1000 0x1000>; 158 + interrupts = <45 2 0 0>; 159 + }; 160 + 161 + sec_jr1: jr@2000 { 162 + compatible = "fsl,sec-v4.2-job-ring", 163 + "fsl,sec-v4.0-job-ring"; 164 + reg = <0x2000 0x1000>; 165 + interrupts = <45 2 0 0>; 166 + }; 167 + 168 + sec_jr2: jr@3000 { 169 + compatible = "fsl,sec-v4.2-job-ring", 170 + "fsl,sec-v4.0-job-ring"; 171 + reg = <0x3000 0x1000>; 172 + interrupts = <57 2 0 0>; 173 + }; 174 + 175 + sec_jr3: jr@4000 { 176 + compatible = "fsl,sec-v4.2-job-ring", 177 + "fsl,sec-v4.0-job-ring"; 178 + reg = <0x4000 0x1000>; 179 + interrupts = <57 2 0 0>; 180 + }; 181 + 182 + rtic@6000 { 183 + compatible = "fsl,sec-v4.2-rtic", 184 + "fsl,sec-v4.0-rtic"; 185 + #address-cells = <1>; 186 + #size-cells = <1>; 187 + reg = <0x6000 0x100>; 188 + ranges = <0x0 0x6100 0xe00>; 189 + 190 + rtic_a: rtic-a@0 { 191 + compatible = "fsl,sec-v4.2-rtic-memory", 192 + "fsl,sec-v4.0-rtic-memory"; 193 + reg = <0x00 0x20 0x100 0x80>; 194 + }; 195 + 196 + rtic_b: rtic-b@20 { 197 + compatible = "fsl,sec-v4.2-rtic-memory", 198 + "fsl,sec-v4.0-rtic-memory"; 199 + reg = <0x20 0x20 0x200 0x80>; 200 + }; 201 + 202 + rtic_c: rtic-c@40 { 203 + compatible = "fsl,sec-v4.2-rtic-memory", 204 + "fsl,sec-v4.0-rtic-memory"; 205 + reg = <0x40 0x20 0x300 0x80>; 206 + }; 207 + 208 + rtic_d: rtic-d@60 { 209 + compatible = "fsl,sec-v4.2-rtic-memory", 210 + "fsl,sec-v4.0-rtic-memory"; 211 + reg = <0x60 0x20 0x500 0x80>; 212 + }; 213 + }; 214 + }; 215 + 216 + /include/ "pq3-mpic.dtsi" 217 + /include/ "pq3-mpic-timer-B.dtsi" 218 + 219 + global-utilities@e0000 { 220 + compatible = "fsl,p1023-guts"; 221 + reg = <0xe0000 0x1000>; 222 + fsl,has-rstcr; 223 + }; 224 + };
+76
arch/powerpc/boot/dts/fsl/p1023si-pre.dtsi
··· 1 + /* 2 + * P1023/P1017 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,P1023"; 38 + #address-cells = <2>; 39 + #size-cells = <2>; 40 + interrupt-parent = <&mpic>; 41 + 42 + aliases { 43 + serial0 = &serial0; 44 + serial1 = &serial1; 45 + pci0 = &pci0; 46 + pci1 = &pci1; 47 + pci2 = &pci2; 48 + 49 + crypto = &crypto; 50 + sec_jr0 = &sec_jr0; 51 + sec_jr1 = &sec_jr1; 52 + sec_jr2 = &sec_jr2; 53 + sec_jr3 = &sec_jr3; 54 + rtic_a = &rtic_a; 55 + rtic_b = &rtic_b; 56 + rtic_c = &rtic_c; 57 + rtic_d = &rtic_d; 58 + }; 59 + 60 + cpus { 61 + #address-cells = <1>; 62 + #size-cells = <0>; 63 + 64 + PowerPC,P1023@0 { 65 + device_type = "cpu"; 66 + reg = <0x0>; 67 + next-level-cache = <&L2>; 68 + }; 69 + 70 + PowerPC,P1023@1 { 71 + device_type = "cpu"; 72 + reg = <0x1>; 73 + next-level-cache = <&L2>; 74 + }; 75 + }; 76 + };
+22 -358
arch/powerpc/boot/dts/p1023rds.dts
··· 34 34 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 35 */ 36 36 37 - /dts-v1/; 37 + /include/ "fsl/p1023si-pre.dtsi" 38 38 39 39 / { 40 40 model = "fsl,P1023"; 41 41 compatible = "fsl,P1023RDS"; 42 42 #address-cells = <2>; 43 43 #size-cells = <2>; 44 - 45 - aliases { 46 - serial0 = &serial0; 47 - serial1 = &serial1; 48 - pci0 = &pci0; 49 - pci1 = &pci1; 50 - pci2 = &pci2; 51 - 52 - crypto = &crypto; 53 - sec_jr0 = &sec_jr0; 54 - sec_jr1 = &sec_jr1; 55 - sec_jr2 = &sec_jr2; 56 - sec_jr3 = &sec_jr3; 57 - rtic_a = &rtic_a; 58 - rtic_b = &rtic_b; 59 - rtic_c = &rtic_c; 60 - rtic_d = &rtic_d; 61 - }; 62 - 63 - cpus { 64 - #address-cells = <1>; 65 - #size-cells = <0>; 66 - 67 - cpu0: PowerPC,P1023@0 { 68 - device_type = "cpu"; 69 - reg = <0x0>; 70 - next-level-cache = <&L2>; 71 - }; 72 - 73 - cpu1: PowerPC,P1023@1 { 74 - device_type = "cpu"; 75 - reg = <0x1>; 76 - next-level-cache = <&L2>; 77 - }; 78 - }; 44 + interrupt-parent = <&mpic>; 79 45 80 46 memory { 81 47 device_type = "memory"; 82 48 }; 83 49 84 - soc@ff600000 { 85 - #address-cells = <1>; 86 - #size-cells = <1>; 87 - device_type = "soc"; 88 - compatible = "fsl,p1023-immr", "simple-bus"; 50 + soc: soc@ff600000 { 89 51 ranges = <0x0 0x0 0xff600000 0x200000>; 90 - bus-frequency = <0>; // Filled out by uboot. 91 - 92 - ecm-law@0 { 93 - compatible = "fsl,ecm-law"; 94 - reg = <0x0 0x1000>; 95 - fsl,num-laws = <12>; 96 - }; 97 - 98 - ecm@1000 { 99 - compatible = "fsl,p1023-ecm", "fsl,ecm"; 100 - reg = <0x1000 0x1000>; 101 - interrupts = <16 2>; 102 - interrupt-parent = <&mpic>; 103 - }; 104 - 105 - memory-controller@2000 { 106 - compatible = "fsl,p1023-memory-controller"; 107 - reg = <0x2000 0x1000>; 108 - interrupt-parent = <&mpic>; 109 - interrupts = <16 2>; 110 - }; 111 52 112 53 i2c@3000 { 113 - #address-cells = <1>; 114 - #size-cells = <0>; 115 - cell-index = <0>; 116 - compatible = "fsl-i2c"; 117 - reg = <0x3000 0x100>; 118 - interrupts = <43 2>; 119 - interrupt-parent = <&mpic>; 120 - dfsrr; 121 54 rtc@68 { 122 55 compatible = "dallas,ds1374"; 123 56 reg = <0x68>; 124 57 }; 125 58 }; 126 59 127 - i2c@3100 { 128 - #address-cells = <1>; 129 - #size-cells = <0>; 130 - cell-index = <1>; 131 - compatible = "fsl-i2c"; 132 - reg = <0x3100 0x100>; 133 - interrupts = <43 2>; 134 - interrupt-parent = <&mpic>; 135 - dfsrr; 136 - }; 137 - 138 - serial0: serial@4500 { 139 - cell-index = <0>; 140 - device_type = "serial"; 141 - compatible = "ns16550"; 142 - reg = <0x4500 0x100>; 143 - clock-frequency = <0>; 144 - interrupts = <42 2>; 145 - interrupt-parent = <&mpic>; 146 - }; 147 - 148 - serial1: serial@4600 { 149 - cell-index = <1>; 150 - device_type = "serial"; 151 - compatible = "ns16550"; 152 - reg = <0x4600 0x100>; 153 - clock-frequency = <0>; 154 - interrupts = <42 2>; 155 - interrupt-parent = <&mpic>; 156 - }; 157 - 158 60 spi@7000 { 159 - cell-index = <0>; 160 - #address-cells = <1>; 161 - #size-cells = <0>; 162 - compatible = "fsl,p1023-espi", "fsl,mpc8536-espi"; 163 - reg = <0x7000 0x1000>; 164 - interrupts = <59 0x2>; 165 - interrupt-parent = <&mpic>; 166 - fsl,espi-num-chipselects = <4>; 167 - 168 61 fsl_dataflash@0 { 169 62 #address-cells = <1>; 170 63 #size-cells = <1>; ··· 79 186 }; 80 187 }; 81 188 82 - gpio: gpio-controller@f000 { 83 - #gpio-cells = <2>; 84 - compatible = "fsl,qoriq-gpio"; 85 - reg = <0xf000 0x100>; 86 - interrupts = <47 0x2>; 87 - interrupt-parent = <&mpic>; 88 - gpio-controller; 89 - }; 90 - 91 - L2: l2-cache-controller@20000 { 92 - compatible = "fsl,p1023-l2-cache-controller"; 93 - reg = <0x20000 0x1000>; 94 - cache-line-size = <32>; // 32 bytes 95 - cache-size = <0x40000>; // L2,256K 96 - interrupt-parent = <&mpic>; 97 - interrupts = <16 2>; 98 - }; 99 - 100 - dma@21300 { 101 - #address-cells = <1>; 102 - #size-cells = <1>; 103 - compatible = "fsl,eloplus-dma"; 104 - reg = <0x21300 0x4>; 105 - ranges = <0x0 0x21100 0x200>; 106 - cell-index = <0>; 107 - dma-channel@0 { 108 - compatible = "fsl,eloplus-dma-channel"; 109 - reg = <0x0 0x80>; 110 - cell-index = <0>; 111 - interrupt-parent = <&mpic>; 112 - interrupts = <20 2>; 113 - }; 114 - dma-channel@80 { 115 - compatible = "fsl,eloplus-dma-channel"; 116 - reg = <0x80 0x80>; 117 - cell-index = <1>; 118 - interrupt-parent = <&mpic>; 119 - interrupts = <21 2>; 120 - }; 121 - dma-channel@100 { 122 - compatible = "fsl,eloplus-dma-channel"; 123 - reg = <0x100 0x80>; 124 - cell-index = <2>; 125 - interrupt-parent = <&mpic>; 126 - interrupts = <22 2>; 127 - }; 128 - dma-channel@180 { 129 - compatible = "fsl,eloplus-dma-channel"; 130 - reg = <0x180 0x80>; 131 - cell-index = <3>; 132 - interrupt-parent = <&mpic>; 133 - interrupts = <23 2>; 134 - }; 135 - }; 136 - 137 189 usb@22000 { 138 - #address-cells = <1>; 139 - #size-cells = <0>; 140 - compatible = "fsl-usb2-dr"; 141 - reg = <0x22000 0x1000>; 142 - interrupt-parent = <&mpic>; 143 - interrupts = <28 0x2>; 144 190 dr_mode = "host"; 145 191 phy_type = "ulpi"; 146 192 }; 147 - 148 - crypto: crypto@300000 { 149 - compatible = "fsl,sec-v4.2", "fsl,sec-v4.0"; 150 - #address-cells = <1>; 151 - #size-cells = <1>; 152 - reg = <0x30000 0x10000>; 153 - ranges = <0 0x30000 0x10000>; 154 - interrupt-parent = <&mpic>; 155 - interrupts = <58 2>; 156 - 157 - sec_jr0: jr@1000 { 158 - compatible = "fsl,sec-v4.2-job-ring", 159 - "fsl,sec-v4.0-job-ring"; 160 - reg = <0x1000 0x1000>; 161 - interrupts = <45 2>; 162 - }; 163 - 164 - sec_jr1: jr@2000 { 165 - compatible = "fsl,sec-v4.2-job-ring", 166 - "fsl,sec-v4.0-job-ring"; 167 - reg = <0x2000 0x1000>; 168 - interrupts = <45 2>; 169 - }; 170 - 171 - sec_jr2: jr@3000 { 172 - compatible = "fsl,sec-v4.2-job-ring", 173 - "fsl,sec-v4.0-job-ring"; 174 - reg = <0x3000 0x1000>; 175 - interrupts = <57 2>; 176 - }; 177 - 178 - sec_jr3: jr@4000 { 179 - compatible = "fsl,sec-v4.2-job-ring", 180 - "fsl,sec-v4.0-job-ring"; 181 - reg = <0x4000 0x1000>; 182 - interrupts = <57 2>; 183 - }; 184 - 185 - rtic@6000 { 186 - compatible = "fsl,sec-v4.2-rtic", 187 - "fsl,sec-v4.0-rtic"; 188 - #address-cells = <1>; 189 - #size-cells = <1>; 190 - reg = <0x6000 0x100>; 191 - ranges = <0x0 0x6100 0xe00>; 192 - 193 - rtic_a: rtic-a@0 { 194 - compatible = "fsl,sec-v4.2-rtic-memory", 195 - "fsl,sec-v4.0-rtic-memory"; 196 - reg = <0x00 0x20 0x100 0x80>; 197 - }; 198 - 199 - rtic_b: rtic-b@20 { 200 - compatible = "fsl,sec-v4.2-rtic-memory", 201 - "fsl,sec-v4.0-rtic-memory"; 202 - reg = <0x20 0x20 0x200 0x80>; 203 - }; 204 - 205 - rtic_c: rtic-c@40 { 206 - compatible = "fsl,sec-v4.2-rtic-memory", 207 - "fsl,sec-v4.0-rtic-memory"; 208 - reg = <0x40 0x20 0x300 0x80>; 209 - }; 210 - 211 - rtic_d: rtic-d@60 { 212 - compatible = "fsl,sec-v4.2-rtic-memory", 213 - "fsl,sec-v4.0-rtic-memory"; 214 - reg = <0x60 0x20 0x500 0x80>; 215 - }; 216 - }; 217 - }; 218 - 219 - power@e0070{ 220 - compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc", 221 - "fsl,p1022-pmc"; 222 - reg = <0xe0070 0x20>; 223 - etsec1_clk: soc-clk@B0{ 224 - fsl,pmcdr-mask = <0x00000080>; 225 - }; 226 - etsec2_clk: soc-clk@B1{ 227 - fsl,pmcdr-mask = <0x00000040>; 228 - }; 229 - etsec3_clk: soc-clk@B2{ 230 - fsl,pmcdr-mask = <0x00000020>; 231 - }; 232 - }; 233 - 234 - mpic: pic@40000 { 235 - interrupt-controller; 236 - #address-cells = <0>; 237 - #interrupt-cells = <2>; 238 - reg = <0x40000 0x40000>; 239 - compatible = "chrp,open-pic"; 240 - device_type = "open-pic"; 241 - }; 242 - 243 - msi@41600 { 244 - compatible = "fsl,p1023-msi", "fsl,mpic-msi"; 245 - reg = <0x41600 0x80>; 246 - msi-available-ranges = <0 0x100>; 247 - interrupts = < 248 - 0xe0 0 249 - 0xe1 0 250 - 0xe2 0 251 - 0xe3 0 252 - 0xe4 0 253 - 0xe5 0 254 - 0xe6 0 255 - 0xe7 0>; 256 - interrupt-parent = <&mpic>; 257 - }; 258 - 259 - global-utilities@e0000 { //global utilities block 260 - compatible = "fsl,p1023-guts"; 261 - reg = <0xe0000 0x1000>; 262 - fsl,has-rstcr; 263 - }; 264 193 }; 265 194 266 - localbus@ff605000 { 267 - #address-cells = <2>; 268 - #size-cells = <1>; 269 - compatible = "fsl,p1023-elbc", "fsl,elbc", "simple-bus"; 195 + lbc: localbus@ff605000 { 270 196 reg = <0 0xff605000 0 0x1000>; 271 - interrupts = <19 2>; 272 - interrupt-parent = <&mpic>; 273 197 274 198 /* NOR Flash, BCSR */ 275 199 ranges = <0x0 0x0 0x0 0xee000000 0x02000000 ··· 138 428 }; 139 429 140 430 pci0: pcie@ff60a000 { 141 - compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; 142 - cell-index = <1>; 143 - device_type = "pci"; 144 - #size-cells = <2>; 145 - #address-cells = <3>; 146 431 reg = <0 0xff60a000 0 0x1000>; 147 - bus-range = <0 255>; 148 432 ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000 149 433 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>; 150 - clock-frequency = <33333333>; 151 - interrupt-parent = <&mpic>; 152 - interrupts = <16 2>; 153 434 pcie@0 { 154 - reg = <0x0 0x0 0x0 0x0 0x0>; 155 - #interrupt-cells = <1>; 156 - #size-cells = <2>; 157 - #address-cells = <3>; 158 - device_type = "pci"; 159 - interrupt-parent = <&mpic>; 160 - interrupts = <16 2>; 161 - interrupt-map-mask = <0xf800 0 0 7>; 162 435 /* IRQ[0:3] are pulled up on board, set to active-low */ 436 + interrupt-map-mask = <0xf800 0 0 7>; 163 437 interrupt-map = < 164 438 /* IDSEL 0x0 */ 165 - 0000 0 0 1 &mpic 0 1 166 - 0000 0 0 2 &mpic 1 1 167 - 0000 0 0 3 &mpic 2 1 168 - 0000 0 0 4 &mpic 3 1 439 + 0000 0 0 1 &mpic 0 1 0 0 440 + 0000 0 0 2 &mpic 1 1 0 0 441 + 0000 0 0 3 &mpic 2 1 0 0 442 + 0000 0 0 4 &mpic 3 1 0 0 169 443 >; 170 444 ranges = <0x2000000 0x0 0xc0000000 171 445 0x2000000 0x0 0xc0000000 ··· 161 467 }; 162 468 }; 163 469 164 - pci1: pcie@ff609000 { 165 - compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; 166 - cell-index = <2>; 167 - device_type = "pci"; 168 - #size-cells = <2>; 169 - #address-cells = <3>; 470 + board_pci1: pci1: pcie@ff609000 { 170 471 reg = <0 0xff609000 0 0x1000>; 171 - bus-range = <0 255>; 172 472 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 173 473 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; 174 - clock-frequency = <33333333>; 175 - interrupt-parent = <&mpic>; 176 - interrupts = <16 2>; 177 474 pcie@0 { 178 - reg = <0x0 0x0 0x0 0x0 0x0>; 179 - #interrupt-cells = <1>; 180 - #size-cells = <2>; 181 - #address-cells = <3>; 182 - device_type = "pci"; 183 - interrupt-parent = <&mpic>; 184 - interrupts = <16 2>; 185 - interrupt-map-mask = <0xf800 0 0 7>; 186 475 /* 187 476 * IRQ[4:6] only for PCIe, set to active-high, 188 477 * IRQ[7] is pulled up on board, set to active-low 189 478 */ 479 + interrupt-map-mask = <0xf800 0 0 7>; 190 480 interrupt-map = < 191 481 /* IDSEL 0x0 */ 192 - 0000 0 0 1 &mpic 4 2 193 - 0000 0 0 2 &mpic 5 2 194 - 0000 0 0 3 &mpic 6 2 195 - 0000 0 0 4 &mpic 7 1 482 + 0000 0 0 1 &mpic 4 2 0 0 483 + 0000 0 0 2 &mpic 5 2 0 0 484 + 0000 0 0 3 &mpic 6 2 0 0 485 + 0000 0 0 4 &mpic 7 1 0 0 196 486 >; 197 487 ranges = <0x2000000 0x0 0xa0000000 198 488 0x2000000 0x0 0xa0000000 ··· 189 511 }; 190 512 191 513 pci2: pcie@ff60b000 { 192 - cell-index = <3>; 193 - compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; 194 - device_type = "pci"; 195 - #size-cells = <2>; 196 - #address-cells = <3>; 197 514 reg = <0 0xff60b000 0 0x1000>; 198 - bus-range = <0 255>; 199 515 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 200 516 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; 201 - clock-frequency = <33333333>; 202 - interrupt-parent = <&mpic>; 203 - interrupts = <16 2>; 204 517 pcie@0 { 205 - reg = <0x0 0x0 0x0 0x0 0x0>; 206 - #interrupt-cells = <1>; 207 - #size-cells = <2>; 208 - #address-cells = <3>; 209 - device_type = "pci"; 210 - interrupt-parent = <&mpic>; 211 - interrupts = <16 2>; 212 - interrupt-map-mask = <0xf800 0 0 7>; 213 518 /* 214 519 * IRQ[8:10] are pulled up on board, set to active-low 215 520 * IRQ[11] only for PCIe, set to active-high, 216 521 */ 522 + interrupt-map-mask = <0xf800 0 0 7>; 217 523 interrupt-map = < 218 524 /* IDSEL 0x0 */ 219 - 0000 0 0 1 &mpic 8 1 220 - 0000 0 0 2 &mpic 9 1 221 - 0000 0 0 3 &mpic 10 1 222 - 0000 0 0 4 &mpic 11 2 525 + 0000 0 0 1 &mpic 8 1 0 0 526 + 0000 0 0 2 &mpic 9 1 0 0 527 + 0000 0 0 3 &mpic 10 1 0 0 528 + 0000 0 0 4 &mpic 11 2 0 0 223 529 >; 224 530 ranges = <0x2000000 0x0 0x80000000 225 531 0x2000000 0x0 0x80000000 ··· 215 553 }; 216 554 }; 217 555 }; 556 + 557 + /include/ "fsl/p1023si-post.dtsi"