how to config srio and spi dts for p2020

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to config srio and spi dts for p2020

919 Views
jiajianhuang
Contributor I

dear friend,

       We drived SRIO(connect IDT cpt1848) and SPI(master,connect mcu spi slave) error, no /dev/nodeFs  in the linux;

       Please tell me how to dts config, thanks!

ENV   P2020 rdb-pc-sdkV1.5-201309

Labels (1)
0 Kudos
1 Reply

346 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to SRIO example from MPC8569.

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

        };

        port2 {

                #address-cells = <2>;

                #size-cells = <2>;

                cell-index = <2>;

        };

};

For rmu definition, please refer to pq3-rmu-0.dtsi.

SPI controller dts node is added by default in pq3-espi-0.dtsi.

The following example  is SPI devices definition in device tree.

spi@7000 {

                flash@0 {

                        #address-cells = <1>;

                        #size-cells = <1>;

                        compatible = "spansion,s25sl12801";

                        reg = <0>;

                        spi-max-frequency = <40000000>; /* input clock */

                        partition@u-boot {

                                /* 512KB for u-boot Bootloader Image */

                                reg = <0x0 0x00080000>;

                                label = "u-boot";

                                read-only;

                        };

                        partition@dtb {

                                /* 512KB for DTB Image*/

                                reg = <0x00080000 0x00080000>;

                                label = "dtb";

                        };

                        partition@kernel {

                                /* 4MB for Linux Kernel Image */

                                reg = <0x00100000 0x00400000>;

                                label = "kernel";

                        };

                        partition@fs {

                                /* 4MB for Compressed RFS Image */

                                reg = <0x00500000 0x00400000>;

                                label = "file system";

                        };

                        partition@jffs-fs {

                                /* 7MB for JFFS2 based RFS */

                                reg = <0x00900000 0x00700000>;

                                label = "file system jffs2";

                        };

                };

                slic@0 {

                        compatible = "zarlink,le88266";

                        reg = <1>;

                        spi-max-frequency = <8000000>;

                };

                slic@1 {

                        compatible = "zarlink,le88266";

                        reg = <2>;

                        spi-max-frequency = <8000000>;

                };

};

Please make sure the device drivers are valid and enabled in Kernel.


Have a great day,
Yiping Wang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos