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

powerpc/85xx: Update SRIO device tree nodes

Update all dts files that support SRIO controllers to match the new
fsl,srio device tree binding.

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

+285 -49
+15 -10
arch/powerpc/boot/dts/fsl/mpc8568si-post.dtsi
··· 82 82 }; 83 83 84 84 &rio { 85 + compatible = "fsl,srio"; 86 + interrupts = <48 2 0 0>; 85 87 #address-cells = <2>; 86 88 #size-cells = <2>; 87 - compatible = "fsl,mpc8568-rapidio", "fsl,rapidio-delta"; 88 - interrupts = <48 2 0 0 /* error */ 89 - 49 2 0 0 /* bell_outb */ 90 - 50 2 0 0 /* bell_inb */ 91 - 53 2 0 0 /* msg1_tx */ 92 - 54 2 0 0 /* msg1_rx */ 93 - 55 2 0 0 /* msg2_tx */ 94 - 56 2 0 0 /* msg2_rx */>; 95 - sleep = <&pmc 0x00080000 /* controller */ 96 - &pmc 0x00040000>; /* message unit */ 89 + fsl,srio-rmu-handle = <&rmu>; 90 + sleep = <&pmc 0x00080000>; 91 + ranges; 92 + 93 + port1 { 94 + #address-cells = <2>; 95 + #size-cells = <2>; 96 + cell-index = <1>; 97 + }; 97 98 }; 98 99 99 100 &soc { ··· 179 178 }; 180 179 181 180 /include/ "pq3-mpic.dtsi" 181 + /include/ "pq3-rmu-0.dtsi" 182 + rmu@d3000 { 183 + sleep = <&pmc 0x00040000>; 184 + }; 182 185 183 186 global-utilities@e0000 { 184 187 #address-cells = <1>;
+20 -8
arch/powerpc/boot/dts/fsl/mpc8569si-post.dtsi
··· 70 70 }; 71 71 72 72 &rio { 73 + compatible = "fsl,srio"; 74 + interrupts = <48 2 0 0>; 73 75 #address-cells = <2>; 74 76 #size-cells = <2>; 75 - compatible = "fsl,mpc8569-rapidio", "fsl,rapidio-delta"; 76 - interrupts = <48 2 0 0 /* error */ 77 - 49 2 0 0 /* bell_outb */ 78 - 50 2 0 0 /* bell_inb */ 79 - 53 2 0 0 /* msg1_tx */ 80 - 54 2 0 0 /* msg1_rx */ 81 - 55 2 0 0 /* msg2_tx */ 82 - 56 2 0 0 /* msg2_rx */>; 77 + fsl,srio-rmu-handle = <&rmu>; 83 78 sleep = <&pmc 0x00080000>; 79 + ranges; 80 + 81 + port1 { 82 + #address-cells = <2>; 83 + #size-cells = <2>; 84 + cell-index = <1>; 85 + }; 86 + 87 + port2 { 88 + #address-cells = <2>; 89 + #size-cells = <2>; 90 + cell-index = <2>; 91 + }; 84 92 }; 85 93 86 94 &soc { ··· 167 159 }; 168 160 169 161 /include/ "pq3-mpic.dtsi" 162 + /include/ "pq3-rmu-0.dtsi" 163 + rmu@d3000 { 164 + sleep = <&pmc 0x00040000>; 165 + }; 170 166 171 167 global-utilities@e0000 { 172 168 #address-cells = <1>;
+20
arch/powerpc/boot/dts/fsl/p2041si-post.dtsi
··· 120 120 }; 121 121 }; 122 122 123 + &rio { 124 + compatible = "fsl,srio"; 125 + interrupts = <16 2 1 11>; 126 + #address-cells = <2>; 127 + #size-cells = <2>; 128 + ranges; 129 + 130 + port1 { 131 + #address-cells = <2>; 132 + #size-cells = <2>; 133 + cell-index = <1>; 134 + }; 135 + 136 + port2 { 137 + #address-cells = <2>; 138 + #size-cells = <2>; 139 + cell-index = <2>; 140 + }; 141 + }; 142 + 123 143 &dcsr { 124 144 #address-cells = <1>; 125 145 #size-cells = <1>;
+20
arch/powerpc/boot/dts/fsl/p3041si-post.dtsi
··· 147 147 }; 148 148 }; 149 149 150 + &rio { 151 + compatible = "fsl,srio"; 152 + interrupts = <16 2 1 11>; 153 + #address-cells = <2>; 154 + #size-cells = <2>; 155 + ranges; 156 + 157 + port1 { 158 + #address-cells = <2>; 159 + #size-cells = <2>; 160 + cell-index = <1>; 161 + }; 162 + 163 + port2 { 164 + #address-cells = <2>; 165 + #size-cells = <2>; 166 + cell-index = <2>; 167 + }; 168 + }; 169 + 150 170 &dcsr { 151 171 #address-cells = <1>; 152 172 #size-cells = <1>;
+17 -9
arch/powerpc/boot/dts/fsl/p4080si-post.dtsi
··· 121 121 }; 122 122 123 123 &rio { 124 + compatible = "fsl,srio"; 125 + interrupts = <16 2 1 11>; 124 126 #address-cells = <2>; 125 127 #size-cells = <2>; 126 - compatible = "fsl,rapidio-delta"; 127 - interrupts = < 128 - 16 2 1 11 /* err_irq */ 129 - 56 2 0 0 /* bell_outb_irq */ 130 - 57 2 0 0 /* bell_inb_irq */ 131 - 60 2 0 0 /* msg1_tx_irq */ 132 - 61 2 0 0 /* msg1_rx_irq */ 133 - 62 2 0 0 /* msg2_tx_irq */ 134 - 63 2 0 0>; /* msg2_rx_irq */ 128 + fsl,srio-rmu-handle = <&rmu>; 129 + ranges; 130 + 131 + port1 { 132 + #address-cells = <2>; 133 + #size-cells = <2>; 134 + cell-index = <1>; 135 + }; 136 + 137 + port2 { 138 + #address-cells = <2>; 139 + #size-cells = <2>; 140 + cell-index = <2>; 141 + }; 135 142 }; 136 143 137 144 &dcsr { ··· 287 280 16 2 1 30>; 288 281 }; 289 282 283 + /include/ "qoriq-rmu-0.dtsi" 290 284 /include/ "qoriq-mpic.dtsi" 291 285 292 286 guts: global-utilities@e0000 {
-2
arch/powerpc/boot/dts/fsl/p4080si-pre.dtsi
··· 69 69 rtic_c = &rtic_c; 70 70 rtic_d = &rtic_d; 71 71 sec_mon = &sec_mon; 72 - 73 - rio0 = &rapidio0; 74 72 }; 75 73 76 74 cpus {
+20
arch/powerpc/boot/dts/fsl/p5020si-post.dtsi
··· 147 147 }; 148 148 }; 149 149 150 + &rio { 151 + compatible = "fsl,srio"; 152 + interrupts = <16 2 1 11>; 153 + #address-cells = <2>; 154 + #size-cells = <2>; 155 + ranges; 156 + 157 + port1 { 158 + #address-cells = <2>; 159 + #size-cells = <2>; 160 + cell-index = <1>; 161 + }; 162 + 163 + port2 { 164 + #address-cells = <2>; 165 + #size-cells = <2>; 166 + cell-index = <2>; 167 + }; 168 + }; 169 + 150 170 &dcsr { 151 171 #address-cells = <1>; 152 172 #size-cells = <1>;
+68
arch/powerpc/boot/dts/fsl/pq3-rmu-0.dtsi
··· 1 + /* 2 + * PQ3 RIO Message Unit device tree stub [ controller @ offset 0xd3000 ] 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 + rmu: rmu@d3000 { 36 + #address-cells = <1>; 37 + #size-cells = <1>; 38 + compatible = "fsl,srio-rmu"; 39 + reg = <0xd3000 0x500>; 40 + ranges = <0x0 0xd3000 0x500>; 41 + 42 + message-unit@0 { 43 + compatible = "fsl,srio-msg-unit"; 44 + reg = <0x0 0x100>; 45 + interrupts = < 46 + 53 2 0 0 /* msg1_tx_irq */ 47 + 54 2 0 0>;/* msg1_rx_irq */ 48 + }; 49 + message-unit@100 { 50 + compatible = "fsl,srio-msg-unit"; 51 + reg = <0x100 0x100>; 52 + interrupts = < 53 + 55 2 0 0 /* msg2_tx_irq */ 54 + 56 2 0 0>;/* msg2_rx_irq */ 55 + }; 56 + doorbell-unit@400 { 57 + compatible = "fsl,srio-dbell-unit"; 58 + reg = <0x400 0x80>; 59 + interrupts = < 60 + 49 2 0 0 /* bell_outb_irq */ 61 + 50 2 0 0>;/* bell_inb_irq */ 62 + }; 63 + port-write-unit@4e0 { 64 + compatible = "fsl,srio-port-write-unit"; 65 + reg = <0x4e0 0x20>; 66 + interrupts = <48 2 0 0>; 67 + }; 68 + };
+3 -1
arch/powerpc/boot/dts/mpc8568mds.dts
··· 297 297 298 298 rio: rapidio@e00c00000 { 299 299 reg = <0x0 0xe00c0000 0x0 0x20000>; 300 - ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>; 300 + port1 { 301 + ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>; 302 + }; 301 303 }; 302 304 303 305 leds {
+6 -1
arch/powerpc/boot/dts/mpc8569mds.dts
··· 440 440 441 441 rio: rapidio@e00c00000 { 442 442 reg = <0x0 0xe00c0000 0x0 0x20000>; 443 - ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>; 443 + port1 { 444 + ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>; 445 + }; 446 + port2 { 447 + status = "disabled"; 448 + }; 444 449 }; 445 450 }; 446 451
+54 -15
arch/powerpc/boot/dts/mpc8641_hpcn.dts
··· 26 26 serial1 = &serial1; 27 27 pci0 = &pci0; 28 28 pci1 = &pci1; 29 - /* 30 - * Only one of Rapid IO or PCI can be present due to HW limitations and 31 - * due to the fact that the 2 now share address space in the new memory 32 - * map. The most likely case is that we have PCI, so comment out the 33 - * rapidio node. Leave it here for reference. 34 - */ 35 - /* rapidio0 = &rapidio0; */ 36 29 }; 37 30 38 31 cpus { ··· 354 361 device_type = "open-pic"; 355 362 }; 356 363 364 + rmu: rmu@d3000 { 365 + #address-cells = <1>; 366 + #size-cells = <1>; 367 + compatible = "fsl,srio-rmu"; 368 + reg = <0xd3000 0x500>; 369 + ranges = <0x0 0xd3000 0x500>; 370 + 371 + message-unit@0 { 372 + compatible = "fsl,srio-msg-unit"; 373 + reg = <0x0 0x100>; 374 + interrupts = < 375 + 53 2 /* msg1_tx_irq */ 376 + 54 2>;/* msg1_rx_irq */ 377 + }; 378 + message-unit@100 { 379 + compatible = "fsl,srio-msg-unit"; 380 + reg = <0x100 0x100>; 381 + interrupts = < 382 + 55 2 /* msg2_tx_irq */ 383 + 56 2>;/* msg2_rx_irq */ 384 + }; 385 + doorbell-unit@400 { 386 + compatible = "fsl,srio-dbell-unit"; 387 + reg = <0x400 0x80>; 388 + interrupts = < 389 + 49 2 /* bell_outb_irq */ 390 + 50 2>;/* bell_inb_irq */ 391 + }; 392 + port-write-unit@4e0 { 393 + compatible = "fsl,srio-port-write-unit"; 394 + reg = <0x4e0 0x20>; 395 + interrupts = <48 2>; 396 + }; 397 + }; 398 + 357 399 global-utilities@e0000 { 358 400 compatible = "fsl,mpc8641-guts"; 359 401 reg = <0xe0000 0x1000>; ··· 640 612 }; 641 613 }; 642 614 /* 643 - rapidio0: rapidio@ffec0000 { 615 + * Only one of Rapid IO or PCI can be present due to HW limitations and 616 + * due to the fact that the 2 now share address space in the new memory 617 + * map. The most likely case is that we have PCI, so comment out the 618 + * rapidio node. Leave it here for reference. 619 + 620 + rapidio@ffec0000 { 621 + reg = <0xffec0000 0x11000>; 622 + compatible = "fsl,srio"; 623 + interrupt-parent = <&mpic>; 624 + interrupts = <48 2>; 644 625 #address-cells = <2>; 645 626 #size-cells = <2>; 646 - compatible = "fsl,rapidio-delta"; 647 - reg = <0xffec0000 0x20000>; 648 - ranges = <0 0 0x80000000 0 0x20000000>; 649 - interrupt-parent = <&mpic>; 650 - // err_irq bell_outb_irq bell_inb_irq 651 - // msg1_tx_irq msg1_rx_irq msg2_tx_irq msg2_rx_irq 652 - interrupts = <48 2 49 2 50 2 53 2 54 2 55 2 56 2>; 627 + fsl,srio-rmu-handle = <&rmu>; 628 + ranges; 629 + 630 + port1 { 631 + #address-cells = <2>; 632 + #size-cells = <2>; 633 + cell-index = <1>; 634 + ranges = <0 0 0x80000000 0 0x20000000>; 635 + }; 653 636 }; 654 637 */ 655 638
+11
arch/powerpc/boot/dts/p2041rdb.dts
··· 108 108 }; 109 109 }; 110 110 111 + rio: rapidio@ffe0c0000 { 112 + reg = <0xf 0xfe0c0000 0 0x11000>; 113 + 114 + port1 { 115 + ranges = <0 0 0xc 0x20000000 0 0x10000000>; 116 + }; 117 + port2 { 118 + ranges = <0 0 0xc 0x30000000 0 0x10000000>; 119 + }; 120 + }; 121 + 111 122 lbc: localbus@ffe124000 { 112 123 reg = <0xf 0xfe124000 0 0x1000>; 113 124 ranges = <0 0 0xf 0xe8000000 0x08000000>;
+11
arch/powerpc/boot/dts/p3041ds.dts
··· 101 101 }; 102 102 }; 103 103 104 + rio: rapidio@ffe0c0000 { 105 + reg = <0xf 0xfe0c0000 0 0x11000>; 106 + 107 + port1 { 108 + ranges = <0 0 0xc 0x20000000 0 0x10000000>; 109 + }; 110 + port2 { 111 + ranges = <0 0 0xc 0x30000000 0 0x10000000>; 112 + }; 113 + }; 114 + 104 115 lbc: localbus@ffe124000 { 105 116 reg = <0xf 0xfe124000 0 0x1000>; 106 117 ranges = <0 0 0xf 0xe8000000 0x08000000
+9 -3
arch/powerpc/boot/dts/p4080ds.dts
··· 108 108 }; 109 109 }; 110 110 111 - rio: rapidio0: rapidio@ffe0c0000 { 112 - reg = <0xf 0xfe0c0000 0 0x20000>; 113 - ranges = <0 0 0xc 0x20000000 0 0x01000000>; 111 + rio: rapidio@ffe0c0000 { 112 + reg = <0xf 0xfe0c0000 0 0x11000>; 113 + 114 + port1 { 115 + ranges = <0 0 0xc 0x20000000 0 0x10000000>; 116 + }; 117 + port2 { 118 + ranges = <0 0 0xc 0x30000000 0 0x10000000>; 119 + }; 114 120 }; 115 121 116 122 lbc: localbus@ffe124000 {
+11
arch/powerpc/boot/dts/p5020ds.dts
··· 101 101 }; 102 102 }; 103 103 104 + rio: rapidio@ffe0c0000 { 105 + reg = <0xf 0xfe0c0000 0 0x11000>; 106 + 107 + port1 { 108 + ranges = <0 0 0xc 0x20000000 0 0x10000000>; 109 + }; 110 + port2 { 111 + ranges = <0 0 0xc 0x30000000 0 0x10000000>; 112 + }; 113 + }; 114 + 104 115 lbc: localbus@ffe124000 { 105 116 reg = <0xf 0xfe124000 0 0x1000>; 106 117 ranges = <0 0 0xf 0xe8000000 0x08000000