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

John Crispin blogic at openwrt.org
Mon Sep 1 02:25:21 EDT 2014


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



More information about the openwrt-devel mailing list