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
--
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: [email protected]
Web: http://www.globalmarinenet.net
Web: http://www.redportglobal.com
Web: http://www.starpilotllc.com
>From 9d18142f0d91e50f0e2249ee4b42ad9da19f186a Mon Sep 17 00:00:00 2001 From: Luis Soltero <[email protected]> Date: Sun, 31 Aug 2014 13:50:32 -0700 Subject: [PATCH] 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.... --- .../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
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
