AnsweredAssumed Answered

P2020 srio dtb setting,yocto1.7 ,help needed

Question asked by Li Tian on Jan 20, 2015
Latest reply on Jan 22, 2015 by Pavel Chubakov

dear experts!

I want to add srio to linux kernel for my customized P2020 board!

I am using yocto 1.7, my modification of  dtb are  as follows:

 

 

a)in p2020rdb-pc.dtsi, i added rmu:

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>;

    };

};

 

 

b) in p2020rdb-pc_32b.dts 

 

 

1.i added:

  rio: rapidio@ffe0c0000 {

  reg = <0xf 0xfe0c0000 0 0x11000>;

 

 

  port1 {

  ranges = <0 0 0xc 0x20000000 0 0x10000000>;

  };

 

 

  };

2. comment out pci0,pci1,and pci2.

 

 

 

 

c)in p2020si-post.dtsi

1. added:

&rio {

  compatible = "fsl,srio";

  interrupts = <48 2 0 0>;

  #address-cells = <2>;

  #size-cells = <2>;

  fsl,srio-rmu-handle = <&rmu>;

  /*sleep = <&pmc 0x00080000>;*/

  ranges;

 

 

  port1 {

  #address-cells = <2>;

  #size-cells = <2>;

  cell-index = <1>;

  };

 

 

because pmc is undefined ,so i comment out this line "sleep = <&pmc 0x00080000>;"

 

 

 

i guess linux kernel stoped at srio driver init, the console print are as follows:

 

 

fsl-l2ctlr ffe20000.l2-cache-controller: Entire L2 as cache, provide valid sram address and size

fsl-l2ctlr: probe of ffe20000.l2-cache-controller failed with error -22

Setting up RapidIO peer-to-peer network /rapidio@ffe0c0000

fsl-of-rio ffe0c0000.rapidio: Of-device full name /rapidio@ffe0c0000

fsl-of-rio ffe0c0000.rapidio: Regs: [mem 0xffe0c0000-0xffe0d0fff]

fsl-of-rio ffe0c0000.rapidio: bellirq: 57

fsl-of-rio ffe0c0000.rapidio: pwirq: 16

fsl-of-rio ffe0c0000.rapidio: /rapidio@ffe0c0000/port1: LAW start 0x0000000c20000000, size 0x0000000010000000.

Outcomes