[OpenWrt-Devel] compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";

Luis Soltero lsoltero at globalmarinenet.com
Sun Aug 31 16:55:22 EDT 2014


Hello All,

the mt7620a.dtsi makes reference to mt7620a-spi but this node does not exist in spi.c.  The following patch address this.

here is the entry in the dts file...
               spi at b00
{                                                                                                                                                               

                        compatible = "ralink,mt7620a-spi",
"ralink,rt2880-spi";                                                                                                         

                        reg = <0xb00
0x100>;                                                                                                                                            

                                                                                                                                                                                        

                        resets = <&rstctrl
18>;                                                                                                                                         

                        reset-names =
"spi";                                                                                                                                            

                                                                                                                                                                                        

                        #address-cells =
<1>;                                                                                                                                           

                        #size-cells =
<1>;                                                                                                                                              

                                                                                                                                                                                        

                        status =
"disabled";                                                                                                                                            

                                                                                                                                                                                        

                        pinctrl-names =
"default";                                                                                                                                      

                        pinctrl-0 =
<&spi_pins>;                                                                                                                                        

                };                                       


the following mus be added to the DTS file to use it.

              spi at b00
{                                                                                                                                                               

                        status =
"okay";                                                                                                                                                

                        num-cs =
<2>;                                                                                                                                                   

                        m25p80 at 0 {             
snip....

here is the patch.

--luis




-- 


Luis Soltero, Ph.D., MCS
Director of Software Development, CTO
Global Marine Networks, LLC
StarPilot, LLC
Tel: +1.865.379.8723
Fax: +1.865.681.5017
E-Mail: lsoltero at globalmarinenet.net
Web: http://www.globalmarinenet.net
Web: http://www.redportglobal.com
Web: http://www.starpilotllc.com



More information about the openwrt-devel mailing list