Skip to content

Commit

Permalink
powerpc/85xx: Update SRIO device tree nodes
Browse files Browse the repository at this point in the history
Update all dts files that support SRIO controllers to match the new
fsl,srio device tree binding.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
kumargala committed Nov 24, 2011
1 parent 03f4201 commit 5498696
Show file tree
Hide file tree
Showing 15 changed files with 285 additions and 49 deletions.
25 changes: 15 additions & 10 deletions arch/powerpc/boot/dts/fsl/mpc8568si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,19 @@
};

&rio {
compatible = "fsl,srio";
interrupts = <48 2 0 0>;
#address-cells = <2>;
#size-cells = <2>;
compatible = "fsl,mpc8568-rapidio", "fsl,rapidio-delta";
interrupts = <48 2 0 0 /* error */
49 2 0 0 /* bell_outb */
50 2 0 0 /* bell_inb */
53 2 0 0 /* msg1_tx */
54 2 0 0 /* msg1_rx */
55 2 0 0 /* msg2_tx */
56 2 0 0 /* msg2_rx */>;
sleep = <&pmc 0x00080000 /* controller */
&pmc 0x00040000>; /* message unit */
fsl,srio-rmu-handle = <&rmu>;
sleep = <&pmc 0x00080000>;
ranges;

port1 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <1>;
};
};

&soc {
Expand Down Expand Up @@ -178,6 +179,10 @@
};

/include/ "pq3-mpic.dtsi"
/include/ "pq3-rmu-0.dtsi"
rmu@d3000 {
sleep = <&pmc 0x00040000>;
};

global-utilities@e0000 {
#address-cells = <1>;
Expand Down
28 changes: 20 additions & 8 deletions arch/powerpc/boot/dts/fsl/mpc8569si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,25 @@
};

&rio {
compatible = "fsl,srio";
interrupts = <48 2 0 0>;
#address-cells = <2>;
#size-cells = <2>;
compatible = "fsl,mpc8569-rapidio", "fsl,rapidio-delta";
interrupts = <48 2 0 0 /* error */
49 2 0 0 /* bell_outb */
50 2 0 0 /* bell_inb */
53 2 0 0 /* msg1_tx */
54 2 0 0 /* msg1_rx */
55 2 0 0 /* msg2_tx */
56 2 0 0 /* msg2_rx */>;
fsl,srio-rmu-handle = <&rmu>;
sleep = <&pmc 0x00080000>;
ranges;

port1 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <1>;
};

port2 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <2>;
};
};

&soc {
Expand Down Expand Up @@ -159,6 +167,10 @@
};

/include/ "pq3-mpic.dtsi"
/include/ "pq3-rmu-0.dtsi"
rmu@d3000 {
sleep = <&pmc 0x00040000>;
};

global-utilities@e0000 {
#address-cells = <1>;
Expand Down
20 changes: 20 additions & 0 deletions arch/powerpc/boot/dts/fsl/p2041si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,26 @@
};
};

&rio {
compatible = "fsl,srio";
interrupts = <16 2 1 11>;
#address-cells = <2>;
#size-cells = <2>;
ranges;

port1 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <1>;
};

port2 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <2>;
};
};

&dcsr {
#address-cells = <1>;
#size-cells = <1>;
Expand Down
20 changes: 20 additions & 0 deletions arch/powerpc/boot/dts/fsl/p3041si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,26 @@
};
};

&rio {
compatible = "fsl,srio";
interrupts = <16 2 1 11>;
#address-cells = <2>;
#size-cells = <2>;
ranges;

port1 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <1>;
};

port2 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <2>;
};
};

&dcsr {
#address-cells = <1>;
#size-cells = <1>;
Expand Down
26 changes: 17 additions & 9 deletions arch/powerpc/boot/dts/fsl/p4080si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,24 @@
};

&rio {
compatible = "fsl,srio";
interrupts = <16 2 1 11>;
#address-cells = <2>;
#size-cells = <2>;
compatible = "fsl,rapidio-delta";
interrupts = <
16 2 1 11 /* err_irq */
56 2 0 0 /* bell_outb_irq */
57 2 0 0 /* bell_inb_irq */
60 2 0 0 /* msg1_tx_irq */
61 2 0 0 /* msg1_rx_irq */
62 2 0 0 /* msg2_tx_irq */
63 2 0 0>; /* msg2_rx_irq */
fsl,srio-rmu-handle = <&rmu>;
ranges;

port1 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <1>;
};

port2 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <2>;
};
};

&dcsr {
Expand Down Expand Up @@ -280,6 +287,7 @@
16 2 1 30>;
};

/include/ "qoriq-rmu-0.dtsi"
/include/ "qoriq-mpic.dtsi"

guts: global-utilities@e0000 {
Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/boot/dts/fsl/p4080si-pre.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
rtic_c = &rtic_c;
rtic_d = &rtic_d;
sec_mon = &sec_mon;

rio0 = &rapidio0;
};

cpus {
Expand Down
20 changes: 20 additions & 0 deletions arch/powerpc/boot/dts/fsl/p5020si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,26 @@
};
};

&rio {
compatible = "fsl,srio";
interrupts = <16 2 1 11>;
#address-cells = <2>;
#size-cells = <2>;
ranges;

port1 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <1>;
};

port2 {
#address-cells = <2>;
#size-cells = <2>;
cell-index = <2>;
};
};

&dcsr {
#address-cells = <1>;
#size-cells = <1>;
Expand Down
68 changes: 68 additions & 0 deletions arch/powerpc/boot/dts/fsl/pq3-rmu-0.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* PQ3 RIO Message Unit device tree stub [ controller @ offset 0xd3000 ]
*
* Copyright 2011 Freescale Semiconductor Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Freescale Semiconductor nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
*
* ALTERNATIVELY, this software may be distributed under the terms of the
* GNU General Public License ("GPL") as published by the Free Software
* Foundation, either version 2 of that License or (at your option) any
* later version.
*
* THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

rmu: rmu@d3000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "fsl,srio-rmu";
reg = <0xd3000 0x500>;
ranges = <0x0 0xd3000 0x500>;

message-unit@0 {
compatible = "fsl,srio-msg-unit";
reg = <0x0 0x100>;
interrupts = <
53 2 0 0 /* msg1_tx_irq */
54 2 0 0>;/* msg1_rx_irq */
};
message-unit@100 {
compatible = "fsl,srio-msg-unit";
reg = <0x100 0x100>;
interrupts = <
55 2 0 0 /* msg2_tx_irq */
56 2 0 0>;/* msg2_rx_irq */
};
doorbell-unit@400 {
compatible = "fsl,srio-dbell-unit";
reg = <0x400 0x80>;
interrupts = <
49 2 0 0 /* bell_outb_irq */
50 2 0 0>;/* bell_inb_irq */
};
port-write-unit@4e0 {
compatible = "fsl,srio-port-write-unit";
reg = <0x4e0 0x20>;
interrupts = <48 2 0 0>;
};
};
4 changes: 3 additions & 1 deletion arch/powerpc/boot/dts/mpc8568mds.dts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@

rio: rapidio@e00c00000 {
reg = <0x0 0xe00c0000 0x0 0x20000>;
ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>;
port1 {
ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>;
};
};

leds {
Expand Down
7 changes: 6 additions & 1 deletion arch/powerpc/boot/dts/mpc8569mds.dts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,12 @@

rio: rapidio@e00c00000 {
reg = <0x0 0xe00c0000 0x0 0x20000>;
ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>;
port1 {
ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>;
};
port2 {
status = "disabled";
};
};
};

Expand Down
Loading

0 comments on commit 5498696

Please sign in to comment.