summaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-08-25 06:35:42 +0000
committerJohn Crispin <john@openwrt.org>2014-08-25 06:35:42 +0000
commita3fd3dc7968629334b8f8ec76e3e020ef18cad85 (patch)
treee848e62ca253d8d828892ff3feeedca51864654c /target/linux/ramips/dts
parent75cbca0a4088dd6bffabe7657e7292e05f2fcd42 (diff)
downloadmtk-20170518-a3fd3dc7968629334b8f8ec76e3e020ef18cad85.zip
mtk-20170518-a3fd3dc7968629334b8f8ec76e3e020ef18cad85.tar.gz
mtk-20170518-a3fd3dc7968629334b8f8ec76e3e020ef18cad85.tar.bz2
ramips: second spi device on rt5350
This is based on Jon Smirl's patch with the following changes: - Set CS polarity as low by default. - Add support for changing CS polarity. - Add support for changing LSB/MSB. - Add support for changing SPI mode. - Fix indentations. I tested it on a VoCore. Works fine connected to a second flash, but fails to detect MMC/SD cards due to SPI clock speed. Signed-off-by: Jon Smirl <jonsmirl@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 42276
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/rt5350.dtsi4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi
index 722540b..8ba20bb 100644
--- a/target/linux/ramips/dts/rt5350.dtsi
+++ b/target/linux/ramips/dts/rt5350.dtsi
@@ -151,7 +151,7 @@
};
spi@b00 {
- compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
+ compatible = "ralink,rt5350-spi";
reg = <0xb00 0x100>;
resets = <&rstctrl 18>;
@@ -161,7 +161,7 @@
#size-cells = <1>;
pinctrl-names = "default";
- pinctrl-0 = <&spi_pins>;
+ pinctrl-0 = <&spi_pins &spi_cs1>;
status = "disabled";
};