just checked the code and the datasheet and there is a register init missing i think, i will dig into this during the week
On 01/09/2014 08:25, 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@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@b00 { >> >> >> status = "okay"; >> >> >> num-cs = <2>; >> >> >> m25p80@0 { snip.... >> >> here is the patch. >> >> --luis >> >> >> >> >> >> >> _______________________________________________ openwrt-devel >> mailing list openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >> > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel