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

John Crispin blogic at openwrt.org
Mon Sep 1 11:03:01 EDT 2014


Hi Luis,

i am planning to look at this during the week as i need to fix up spi
support for mt7628 anyhow. i will look at this at the same time

	John



On 01/09/2014 16:51, Luis Soltero wrote:
> 
> Hello John,
> 
> OK. thanks for our comments.  So... is it worth pursuing this to
> get it right or is it so wrong that we should just forget it and
> retract the whole thing?  Your mesg is unclear.  Let me know what
> you want me to do.
> 
> Thanks,
> 
> --luis
> 
> On 9/1/14, 2:25 AM, John Crispin wrote:
>> Hi,
>> 
>> that patch subject is utterly wrong. the real desc would be
>> 
>> "add support for the 2nd CS line on mt7620a and add a special 
>> device_id for this."
>> 
>> however, as you only register the CS with the spi driver and are 
>> missing the actuall /cs1 mux init, this patch is wrong/incomplete
>> as it relies on the bootloader to have setup the cs line already
>> and has a misleading desription.
>> 
>> John
>> 
>> On 31/08/2014 22:55, Luis Soltero wrote:
>>> 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
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________ openwrt-devel 
>>> mailing list openwrt-devel at lists.openwrt.org 
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>>
>>
>>> 
_______________________________________________
>> openwrt-devel mailing list openwrt-devel at lists.openwrt.org 
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>> 
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list