ramips: enable second SPI for VoCore
[openwrt/svn-archive/archive.git] / target / linux / ramips / patches-3.14 / 0049-DT-Add-documentation-for-spi-rt2880.patch
1 From 6ed8d03e5f4283b60dffea5c10ff1484141824e7 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Fri, 9 Aug 2013 20:12:59 +0200
4 Subject: [PATCH 49/57] DT: Add documentation for spi-rt2880
5
6 Describe the SPI master found on the MIPS based Ralink RT2880 SoC.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 ---
10 .../devicetree/bindings/spi/spi-rt2880.txt | 28 ++++++++++++++++++++
11 1 file changed, 28 insertions(+)
12 create mode 100644 Documentation/devicetree/bindings/spi/spi-rt2880.txt
13
14 diff --git a/Documentation/devicetree/bindings/spi/spi-rt2880.txt b/Documentation/devicetree/bindings/spi/spi-rt2880.txt
15 new file mode 100644
16 index 0000000..068bc90
17 --- /dev/null
18 +++ b/Documentation/devicetree/bindings/spi/spi-rt2880.txt
19 @@ -0,0 +1,28 @@
20 +Ralink SoC RT2880 SPI master controller.
21 +
22 +This SPI controller is found on most wireless SoCs made by ralink.
23 +
24 +Required properties:
25 +- compatible : "ralink,rt2880-spi"
26 +- reg : The register base for the controller.
27 +- #address-cells : <1>, as required by generic SPI binding.
28 +- #size-cells : <0>, also as required by generic SPI binding.
29 +
30 +Child nodes as per the generic SPI binding.
31 +
32 +Example:
33 +
34 + spi@b00 {
35 + compatible = "ralink,rt2880-spi";
36 + reg = <0xb00 0x100>;
37 +
38 + #address-cells = <1>;
39 + #size-cells = <0>;
40 +
41 + m25p80@0 {
42 + compatible = "m25p80";
43 + reg = <0>;
44 + spi-max-frequency = <10000000>;
45 + };
46 + };
47 +
48 --
49 1.7.10.4
50