aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-08-25 06:35:46 +0000
committerJohn Crispin <john@openwrt.org>2014-08-25 06:35:46 +0000
commitfdc41e2fd79dac12f3c18aadef077f0f140f464c (patch)
tree05d517d8cf9925d301d5f59681b0ccd7ff7624c0 /target/linux/ramips
parenta3fd3dc7968629334b8f8ec76e3e020ef18cad85 (diff)
downloadupstream-fdc41e2fd79dac12f3c18aadef077f0f140f464c.tar.gz
upstream-fdc41e2fd79dac12f3c18aadef077f0f140f464c.tar.bz2
upstream-fdc41e2fd79dac12f3c18aadef077f0f140f464c.zip
ramips: enable second SPI for VoCore
This patch enables the second SPI as spidev and also fixes some typos. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 42277
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/VOCORE.dts19
-rw-r--r--target/linux/ramips/rt305x/profiles/vocore.mk3
2 files changed, 11 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/VOCORE.dts b/target/linux/ramips/dts/VOCORE.dts
index e5df9abb42..e6288b03b8 100644
--- a/target/linux/ramips/dts/VOCORE.dts
+++ b/target/linux/ramips/dts/VOCORE.dts
@@ -22,14 +22,14 @@
#address-cells = <1>;
#size-cells = <1>;
compatible = "s25fl064k";
- reg = <0 0>;
+ reg = <0>;
linux,modalias = "m25p80", "s25fl064k";
spi-max-frequency = <10000000>;
partition@0 {
label = "uboot";
reg = <0x0 0x30000>;
- read_only;
+ read-only;
};
partition@30000 {
@@ -49,13 +49,19 @@
reg = <0x50000 0x7b0000>;
};
};
+
+ spidev@1 {
+ compatible = "linux,spidev";
+ spi-max-frequency = <10000000>;
+ reg = <1>;
+ };
};
};
pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "jtag", "uartf", "led", "spi_cs1";
+ ralink,group = "jtag", "uartf", "led";
ralink,function = "gpio";
};
};
@@ -192,13 +198,6 @@
gpio-export,direction_may_change = <1>;
gpios = <&gpio1 4 0>;
};
-
- /* SPI_CS1 */
- gpio27 {
- gpio-export,name = "gpio27";
- gpio-export,direction_may_change = <1>;
- gpios = <&gpio1 5 0>;
- };
};
gpio-leds {
diff --git a/target/linux/ramips/rt305x/profiles/vocore.mk b/target/linux/ramips/rt305x/profiles/vocore.mk
index 11fb634beb..92f3ce58ed 100644
--- a/target/linux/ramips/rt305x/profiles/vocore.mk
+++ b/target/linux/ramips/rt305x/profiles/vocore.mk
@@ -9,7 +9,8 @@ define Profile/VOCORE
NAME:=VoCore
PACKAGES:=\
kmod-usb-core kmod-usb-ohci kmod-usb2 \
- kmod-i2c-core kmod-i2c-ralink
+ kmod-i2c-core kmod-i2c-ralink \
+ kmod-spi-dev
endef
define Profile/VOCORE/Description