Commit 5b5d939c authored by blogic's avatar blogic

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: default avatarJon Smirl <jonsmirl@gmail.com>
Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>

Backport of r42276

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42375 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent e848b54b
......@@ -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";
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment