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

Signed-off-by: Kumar Gala <ga...@kernel.crashing.org>
---
 arch/powerpc/boot/dts/mpc8568mds.dts   |   66 ++++++++++++++++++++++-------
 arch/powerpc/boot/dts/mpc8569mds.dts   |   72 +++++++++++++++++++++++++------
 arch/powerpc/boot/dts/mpc8641_hpcn.dts |   69 ++++++++++++++++++++++++-------
 arch/powerpc/boot/dts/p2041rdb.dts     |   11 +++++
 arch/powerpc/boot/dts/p2041si.dtsi     |   20 +++++++++
 arch/powerpc/boot/dts/p3041ds.dts      |   11 +++++
 arch/powerpc/boot/dts/p3041si.dtsi     |   26 ++++++++---
 arch/powerpc/boot/dts/p4080ds.dts      |   12 ++++-
 arch/powerpc/boot/dts/p4080si.dtsi     |   64 +++++++++++++++++++++++-----
 arch/powerpc/boot/dts/p5020ds.dts      |   11 +++++
 arch/powerpc/boot/dts/p5020si.dtsi     |   26 ++++++++---
 11 files changed, 314 insertions(+), 74 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8568mds.dts 
b/arch/powerpc/boot/dts/mpc8568mds.dts
index 647daf8..2ca5387 100644
--- a/arch/powerpc/boot/dts/mpc8568mds.dts
+++ b/arch/powerpc/boot/dts/mpc8568mds.dts
@@ -26,7 +26,6 @@
                serial1 = &serial1;
                pci0 = &pci0;
                pci1 = &pci1;
-               rapidio0 = &rio0;
        };
 
        cpus {
@@ -331,6 +330,41 @@
                        };
                };
 
+               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 /* msg1_tx_irq */
+                                       54 2>;/* msg1_rx_irq */
+                       };
+                       message-unit@100 {
+                               compatible = "fsl,srio-msg-unit";
+                               reg = <0x100 0x100>;
+                               interrupts = <
+                                       55 2  /* msg2_tx_irq */
+                                       56 2>;/* msg2_rx_irq */
+                       };
+                       doorbell-unit@400 {
+                               compatible = "fsl,srio-dbell-unit";
+                               reg = <0x400 0x80>;
+                               interrupts = <
+                                       49 2  /* bell_outb_irq */
+                                       50 2>;/* bell_inb_irq */
+                       };
+                       port-write-unit@4e0 {
+                               compatible = "fsl,srio-port-write-unit";
+                               reg = <0x4e0 0x20>;
+                               interrupts = <48 2>;
+                       };
+               };
+
                global-utilities@e0000 {
                        #address-cells = <1>;
                        #size-cells = <1>;
@@ -638,22 +672,22 @@
                };
        };
 
-       rio0: rapidio@e00c00000 {
-               #address-cells = <2>;
-               #size-cells = <2>;
-               compatible = "fsl,mpc8568-rapidio", "fsl,rapidio-delta";
-               reg = <0xe00c0000 0x20000>;
-               ranges = <0x0 0x0 0xc0000000 0x0 0x20000000>;
-               interrupts = <48 2 /* error     */
-                             49 2 /* bell_outb */
-                             50 2 /* bell_inb  */
-                             53 2 /* msg1_tx   */
-                             54 2 /* msg1_rx   */
-                             55 2 /* msg2_tx   */
-                             56 2 /* msg2_rx   */>;
+       rapidio@e00c0000 {
+               reg = <0xe00c0000 0x11000>;
+               compatible = "fsl,srio";
                interrupt-parent = <&mpic>;
-               sleep = <&pmc 0x00080000   /* controller */
-                        &pmc 0x00040000>; /* message unit */
+               interrupts = <48 2>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               fsl,srio-rmu-handle = <&rmu>;
+               ranges;
+
+               port1 {
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       cell-index = <1>;
+                       ranges = <0x0 0x0 0xc0000000 0x0 0x20000000>;
+               };
        };
 
        leds {
diff --git a/arch/powerpc/boot/dts/mpc8569mds.dts 
b/arch/powerpc/boot/dts/mpc8569mds.dts
index 8b72eaf..0d9d167 100644
--- a/arch/powerpc/boot/dts/mpc8569mds.dts
+++ b/arch/powerpc/boot/dts/mpc8569mds.dts
@@ -27,7 +27,6 @@
                ethernet5 = &enet5;
                ethernet7 = &enet7;
                pci1 = &pci1;
-               rapidio0 = &rio0;
        };
 
        cpus {
@@ -326,6 +325,41 @@
                        interrupt-parent = <&mpic>;
                };
 
+               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 /* msg1_tx_irq */
+                                       54 2>;/* msg1_rx_irq */
+                       };
+                       message-unit@100 {
+                               compatible = "fsl,srio-msg-unit";
+                               reg = <0x100 0x100>;
+                               interrupts = <
+                                       55 2  /* msg2_tx_irq */
+                                       56 2>;/* msg2_rx_irq */
+                       };
+                       doorbell-unit@400 {
+                               compatible = "fsl,srio-dbell-unit";
+                               reg = <0x400 0x80>;
+                               interrupts = <
+                                       49 2  /* bell_outb_irq */
+                                       50 2>;/* bell_inb_irq */
+                       };
+                       port-write-unit@4e0 {
+                               compatible = "fsl,srio-port-write-unit";
+                               reg = <0x4e0 0x20>;
+                               interrupts = <48 2>;
+                       };
+               };
+
                global-utilities@e0000 {
                        #address-cells = <1>;
                        #size-cells = <1>;
@@ -771,20 +805,30 @@
                };
        };
 
-       rio0: rapidio@e00c00000 {
-               #address-cells = <2>;
-               #size-cells = <2>;
-               compatible = "fsl,mpc8569-rapidio", "fsl,rapidio-delta";
-               reg = <0xe00c0000 0x20000>;
-               ranges = <0x0 0x0 0xc0000000 0x0 0x20000000>;
-               interrupts = <48 2 /* error     */
-                             49 2 /* bell_outb */
-                             50 2 /* bell_inb  */
-                             53 2 /* msg1_tx   */
-                             54 2 /* msg1_rx   */
-                             55 2 /* msg2_tx   */
-                             56 2 /* msg2_rx   */>;
+       rapidio@e00c0000 {
+               reg = <0xe00c0000 0x11000>;
+               compatible = "fsl,srio";
                interrupt-parent = <&mpic>;
+               interrupts = <48 2>;
                sleep = <&pmc 0x00080000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               fsl,srio-rmu-handle = <&rmu>;
+               ranges;
+
+               port1 {
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       cell-index = <1>;
+                       ranges = <0x0 0x0 0xc0000000 0x0 0x20000000>;
+               };
+
+               port2 {
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       cell-index = <2>;
+                       status = "disabled";
+               };
        };
+
 };
diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts 
b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
index 848320e..fb8640e 100644
--- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts
+++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
@@ -26,13 +26,6 @@
                serial1 = &serial1;
                pci0 = &pci0;
                pci1 = &pci1;
-/*
- * Only one of Rapid IO or PCI can be present due to HW limitations and
- * due to the fact that the 2 now share address space in the new memory
- * map.  The most likely case is that we have PCI, so comment out the
- * rapidio node.  Leave it here for reference.
- */
-               /* rapidio0 = &rapidio0; */
        };
 
        cpus {
@@ -361,6 +354,41 @@
                        device_type = "open-pic";
                };
 
+               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 /* msg1_tx_irq */
+                                       54 2>;/* msg1_rx_irq */
+                       };
+                       message-unit@100 {
+                               compatible = "fsl,srio-msg-unit";
+                               reg = <0x100 0x100>;
+                               interrupts = <
+                                       55 2  /* msg2_tx_irq */
+                                       56 2>;/* msg2_rx_irq */
+                       };
+                       doorbell-unit@400 {
+                               compatible = "fsl,srio-dbell-unit";
+                               reg = <0x400 0x80>;
+                               interrupts = <
+                                       49 2  /* bell_outb_irq */
+                                       50 2>;/* bell_inb_irq */
+                       };
+                       port-write-unit@4e0 {
+                               compatible = "fsl,srio-port-write-unit";
+                               reg = <0x4e0 0x20>;
+                               interrupts = <48 2>;
+                       };
+               };
+
                global-utilities@e0000 {
                        compatible = "fsl,mpc8641-guts";
                        reg = <0xe0000 0x1000>;
@@ -612,16 +640,27 @@
                };
        };
 /*
-       rapidio0: rapidio@ffec0000 {
+ * Only one of Rapid IO or PCI can be present due to HW limitations and
+ * due to the fact that the 2 now share address space in the new memory
+ * map.  The most likely case is that we have PCI, so comment out the
+ * rapidio node.  Leave it here for reference.
+
+       rapidio@ffec0000 {
+               reg = <0xffec0000 0x11000>;
+               compatible = "fsl,srio";
+               interrupt-parent = <&mpic>;
+               interrupts = <48 2>;
                #address-cells = <2>;
                #size-cells = <2>;
-               compatible = "fsl,rapidio-delta";
-               reg = <0xffec0000 0x20000>;
-               ranges = <0 0 0x80000000 0 0x20000000>;
-               interrupt-parent = <&mpic>;
-               // err_irq bell_outb_irq bell_inb_irq
-               //      msg1_tx_irq msg1_rx_irq msg2_tx_irq msg2_rx_irq
-               interrupts = <48 2 49 2 50 2 53 2 54 2 55 2 56 2>;
+               fsl,srio-rmu-handle = <&rmu>;
+               ranges;
+
+               port1 {
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       cell-index = <1>;
+                       ranges = <0 0 0x80000000 0 0x20000000>;
+               };
        };
 */
 
diff --git a/arch/powerpc/boot/dts/p2041rdb.dts 
b/arch/powerpc/boot/dts/p2041rdb.dts
index 47bb461..9141eea 100644
--- a/arch/powerpc/boot/dts/p2041rdb.dts
+++ b/arch/powerpc/boot/dts/p2041rdb.dts
@@ -102,6 +102,17 @@
                };
        };
 
+       rapidio@ffe0c0000 {
+               reg = <0xf 0xfe0c0000 0 0x11000>;
+
+               port1 {
+                       ranges = <0 0 0xc 0x20000000 0 0x10000000>;
+               };
+               port2 {
+                       ranges = <0 0 0xc 0x30000000 0 0x10000000>;
+               };
+       };
+
        localbus@ffe124000 {
                reg = <0xf 0xfe124000 0 0x1000>;
                ranges = <0 0 0xf 0xe8000000 0x08000000>;
diff --git a/arch/powerpc/boot/dts/p2041si.dtsi 
b/arch/powerpc/boot/dts/p2041si.dtsi
index 420cdb0..54413dd 100644
--- a/arch/powerpc/boot/dts/p2041si.dtsi
+++ b/arch/powerpc/boot/dts/p2041si.dtsi
@@ -533,6 +533,26 @@
 
        };
 
+       rapidio@ffe0c0000 {
+               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>;
+               };
+       };
+
        localbus@ffe124000 {
                compatible = "fsl,p2041-elbc", "fsl,elbc", "simple-bus";
                interrupts = <25 2 0 0>;
diff --git a/arch/powerpc/boot/dts/p3041ds.dts 
b/arch/powerpc/boot/dts/p3041ds.dts
index 69cae67..9232f40 100644
--- a/arch/powerpc/boot/dts/p3041ds.dts
+++ b/arch/powerpc/boot/dts/p3041ds.dts
@@ -95,6 +95,17 @@
                };
        };
 
+       rapidio@ffe0c0000 {
+               reg = <0xf 0xfe0c0000 0 0x11000>;
+
+               port1 {
+                       ranges = <0 0 0xc 0x20000000 0 0x10000000>;
+               };
+               port2 {
+                       ranges = <0 0 0xc 0x30000000 0 0x10000000>;
+               };
+       };
+
        localbus@ffe124000 {
                reg = <0xf 0xfe124000 0 0x1000>;
                ranges = <0 0 0xf 0xe8000000 0x08000000
diff --git a/arch/powerpc/boot/dts/p3041si.dtsi 
b/arch/powerpc/boot/dts/p3041si.dtsi
index 8b69580..635e7e9 100644
--- a/arch/powerpc/boot/dts/p3041si.dtsi
+++ b/arch/powerpc/boot/dts/p3041si.dtsi
@@ -70,10 +70,6 @@
                rtic_c = &rtic_c;
                rtic_d = &rtic_d;
                sec_mon = &sec_mon;
-
-/*
-               rio0 = &rapidio0;
- */
        };
 
        cpus {
@@ -538,9 +534,25 @@
                };
        };
 
-/*
-       rapidio0: rapidio@ffe0c0000
-*/
+       rapidio@ffe0c0000 {
+               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>;
+               };
+       };
 
        localbus@ffe124000 {
                compatible = "fsl,p3041-elbc", "fsl,elbc", "simple-bus";
diff --git a/arch/powerpc/boot/dts/p4080ds.dts 
b/arch/powerpc/boot/dts/p4080ds.dts
index eb11098..81d46a9 100644
--- a/arch/powerpc/boot/dts/p4080ds.dts
+++ b/arch/powerpc/boot/dts/p4080ds.dts
@@ -101,9 +101,15 @@
                };
        };
 
-       rapidio0: rapidio@ffe0c0000 {
-               reg = <0xf 0xfe0c0000 0 0x20000>;
-               ranges = <0 0 0xc 0x20000000 0 0x01000000>;
+       rapidio@ffe0c0000 {
+               reg = <0xf 0xfe0c0000 0 0x11000>;
+
+               port1 {
+                       ranges = <0 0 0xc 0x20000000 0 0x10000000>;
+               };
+               port2 {
+                       ranges = <0 0 0xc 0x30000000 0 0x10000000>;
+               };
        };
 
        localbus@ffe124000 {
diff --git a/arch/powerpc/boot/dts/p4080si.dtsi 
b/arch/powerpc/boot/dts/p4080si.dtsi
index b71051f..ff14d15 100644
--- a/arch/powerpc/boot/dts/p4080si.dtsi
+++ b/arch/powerpc/boot/dts/p4080si.dtsi
@@ -69,8 +69,6 @@
                rtic_c = &rtic_c;
                rtic_d = &rtic_d;
                sec_mon = &sec_mon;
-
-               rio0 = &rapidio0;
        };
 
        cpus {
@@ -253,6 +251,41 @@
                                0xf7 0 0 0>;
                };
 
+               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 = <
+                                       60 2 0 0  /* msg1_tx_irq */
+                                       61 2 0 0>;/* msg1_rx_irq */
+                       };
+                       message-unit@100 {
+                               compatible = "fsl,srio-msg-unit";
+                               reg = <0x100 0x100>;
+                               interrupts = <
+                                       62 2 0 0  /* msg2_tx_irq */
+                                       63 2 0 0>;/* msg2_rx_irq */
+                       };
+                       doorbell-unit@400 {
+                               compatible = "fsl,srio-dbell-unit";
+                               reg = <0x400 0x80>;
+                               interrupts = <
+                                       56 2 0 0  /* bell_outb_irq */
+                                       57 2 0 0>;/* bell_inb_irq */
+                       };
+                       port-write-unit@4e0 {
+                               compatible = "fsl,srio-port-write-unit";
+                               reg = <0x4e0 0x20>;
+                               interrupts = <16 2 1 11>;
+                       };
+               };
+
                guts: global-utilities@e0000 {
                        compatible = "fsl,qoriq-device-config-1.0";
                        reg = <0xe0000 0xe00>;
@@ -557,18 +590,25 @@
                };
        };
 
-       rapidio0: rapidio@ffe0c0000 {
+       rapidio@ffe0c0000 {
+               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>;
+               };
        };
 
        localbus@ffe124000 {
diff --git a/arch/powerpc/boot/dts/p5020ds.dts 
b/arch/powerpc/boot/dts/p5020ds.dts
index 8366e2f..3dc557c 100644
--- a/arch/powerpc/boot/dts/p5020ds.dts
+++ b/arch/powerpc/boot/dts/p5020ds.dts
@@ -95,6 +95,17 @@
                };
        };
 
+       rapidio@ffe0c0000 {
+               reg = <0xf 0xfe0c0000 0 0x11000>;
+
+               port1 {
+                       ranges = <0 0 0xc 0x20000000 0 0x10000000>;
+               };
+               port2 {
+                       ranges = <0 0 0xc 0x30000000 0 0x10000000>;
+               };
+       };
+
        localbus@ffe124000 {
                reg = <0xf 0xfe124000 0 0x1000>;
                ranges = <0 0 0xf 0xe8000000 0x08000000
diff --git a/arch/powerpc/boot/dts/p5020si.dtsi 
b/arch/powerpc/boot/dts/p5020si.dtsi
index 5e6048e..c4867fb 100644
--- a/arch/powerpc/boot/dts/p5020si.dtsi
+++ b/arch/powerpc/boot/dts/p5020si.dtsi
@@ -70,10 +70,6 @@
                rtic_c = &rtic_c;
                rtic_d = &rtic_d;
                sec_mon = &sec_mon;
-
-/*
-               rio0 = &rapidio0;
- */
        };
 
        cpus {
@@ -530,9 +526,25 @@
                };
        };
 
-/*
-       rapidio0: rapidio@ffe0c0000
-*/
+       rapidio@ffe0c0000 {
+               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>;
+               };
+       };
 
        localbus@ffe124000 {
                compatible = "fsl,p5020-elbc", "fsl,elbc", "simple-bus";
-- 
1.7.3.4

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to