[PATCH] the mt7620a.dtsi makes reference to mt7620a-spi but this node does not exist in spi.c. The following patch address this.
Luis Soltero
lsoltero at globalmarinenet.com
Sun Aug 31 16:50:32 EDT 2014
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....
---
.../0403-SPI-ralink-add-mt7620a-support.patch | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 target/linux/ramips/patches-3.10/0403-SPI-ralink-add-mt7620a-support.patch
diff --git a/target/linux/ramips/patches-3.10/0403-SPI-ralink-add-mt7620a-support.patch b/target/linux/ramips/patches-3.10/0403-SPI-ralink-add-mt7620a-support.patch
new file mode 100644
index 0000000..4f8f61f
--- /dev/null
+++ b/target/linux/ramips/patches-3.10/0403-SPI-ralink-add-mt7620a-support.patch
@@ -0,0 +1,9 @@
+--- a/drivers/spi/spi-rt2880.c 2014-08-25 12:55:09.217949252 -0700
++++ b/drivers/spi/spi-rt2880.c 2014-08-31 09:21:02.000000000 -0700
+@@ -601,6 +601,7 @@
+ static const struct of_device_id rt2880_spi_match[] = {
+ { .compatible = "ralink,rt2880-spi", .data = &spi_ops[0]},
+ { .compatible = "ralink,rt5350-spi", .data = &spi_ops[1]},
++ { .compatible = "ralink,rt7620a-spi", .data = &spi_ops[1]}, // chip select=2
+ { .compatible = "ralink,mt7621-spi", .data = &spi_ops[2] },
+ {},
--
1.7.9.5
--------------080309080306060306000509
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
--------------080309080306060306000509--
More information about the openwrt-devel
mailing list