diff options
| author | Lee Jones <lee.jones@linaro.org> | 2014-12-09 15:21:31 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2014-12-22 13:16:57 -0500 |
| commit | f5bac70f4fec1fdc7798f025edd5666c17bcf51f (patch) | |
| tree | cd0718db2de3479aaa7fb3acf29a97291648d9a8 | |
| parent | 9e862375c5420a329521c458a3c808c127e9038f (diff) | |
spi: st: Provide Device Tree binding documentation
This patch adds DT documentation for the SPI portion of ST's SSC device.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | Documentation/devicetree/bindings/spi/spi-st-ssc.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-st-ssc.txt b/Documentation/devicetree/bindings/spi/spi-st-ssc.txt new file mode 100644 index 000000000000..fe54959ec957 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-st-ssc.txt | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | STMicroelectronics SSC (SPI) Controller | ||
| 2 | --------------------------------------- | ||
| 3 | |||
| 4 | Required properties: | ||
| 5 | - compatible : "st,comms-ssc4-spi" | ||
| 6 | - reg : Offset and length of the device's register set | ||
| 7 | - interrupts : The interrupt specifier | ||
| 8 | - clock-names : Must contain "ssc" | ||
| 9 | - clocks : Must contain an entry for each name in clock-names | ||
| 10 | See ../clk/* | ||
| 11 | - pinctrl-names : Uses "default", can use "sleep" if provided | ||
| 12 | See ../pinctrl/pinctrl-binding.txt | ||
| 13 | |||
| 14 | Optional properties: | ||
| 15 | - cs-gpios : List of GPIO chip selects | ||
| 16 | See ../spi/spi-bus.txt | ||
| 17 | |||
| 18 | Child nodes represent devices on the SPI bus | ||
| 19 | See ../spi/spi-bus.txt | ||
| 20 | |||
| 21 | Example: | ||
| 22 | spi@9840000 { | ||
| 23 | compatible = "st,comms-ssc4-spi"; | ||
| 24 | reg = <0x9840000 0x110>; | ||
| 25 | interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; | ||
| 26 | clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; | ||
| 27 | clock-names = "ssc"; | ||
| 28 | pinctrl-0 = <&pinctrl_spi0_default>; | ||
| 29 | pinctrl-names = "default"; | ||
| 30 | cs-gpios = <&pio17 5 0>; | ||
| 31 | #address-cells = <1>; | ||
| 32 | #size-cells = <0>; | ||
| 33 | |||
| 34 | st95hf@0{ | ||
| 35 | compatible = "st,st95hf"; | ||
| 36 | reg = <0>; | ||
| 37 | spi-max-frequency = <1000000>; | ||
| 38 | interrupts = <2 IRQ_TYPE_EDGE_FALLING>; | ||
| 39 | }; | ||
| 40 | }; | ||
