aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>2014-03-11 05:40:51 -0400
committerMark Brown <broonie@linaro.org>2014-03-11 06:38:41 -0400
commitc3003ce144fe0279e4299030b1cfad6f4b39116a (patch)
treebeee763e0cf9ee50b9a03b5a02abceba02acfae9
parente428a420078eac26039b53af464355332809be52 (diff)
spi: sh-spi: Improve bindings
- Add future-proof "renesas,hspi-<soctype>" compatible values, - Add missing "interrupt-parent", "#address-cells", and "#size-cells" properties, - Add reference to pinctrl documentation, - Add example bindings. Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/spi/sh-hspi.txt28
1 files changed, 25 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/spi/sh-hspi.txt b/Documentation/devicetree/bindings/spi/sh-hspi.txt
index 30b57b1c8a13..319bad4af875 100644
--- a/Documentation/devicetree/bindings/spi/sh-hspi.txt
+++ b/Documentation/devicetree/bindings/spi/sh-hspi.txt
@@ -1,7 +1,29 @@
1Renesas HSPI. 1Renesas HSPI.
2 2
3Required properties: 3Required properties:
4- compatible : "renesas,hspi" 4- compatible : "renesas,hspi-<soctype>", "renesas,hspi" as fallback.
5- reg : Offset and length of the register set for the device 5 Examples with soctypes are:
6- interrupts : interrupt line used by HSPI 6 - "renesas,hspi-r8a7778" (R-Car M1)
7 - "renesas,hspi-r8a7779" (R-Car H1)
8- reg : Offset and length of the register set for the device
9- interrupt-parent : The phandle for the interrupt controller that
10 services interrupts for this device
11- interrupts : Interrupt specifier
12- #address-cells : Must be <1>
13- #size-cells : Must be <0>
14
15Pinctrl properties might be needed, too. See
16Documentation/devicetree/bindings/pinctrl/renesas,*.
17
18Example:
19
20 hspi0: spi@fffc7000 {
21 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
22 reg = <0xfffc7000 0x18>;
23 interrupt-parent = <&gic>;
24 interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>;
25 #address-cells = <1>;
26 #size-cells = <0>;
27 status = "disabled";
28 };
7 29