diff options
author | Murali Karicheri <m-karicheri2@ti.com> | 2013-04-03 10:09:07 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2013-04-17 12:49:18 -0400 |
commit | eed48556a789d2c7fd2dacbc0060e463ed72e449 (patch) | |
tree | 90d60263b959b269fccc6c2a13833a95d3395ac8 /Documentation | |
parent | 804413f2dd0bcef6d1aef7c8b3be749be9024eee (diff) |
spi/davinci: add DT binding documentation
Add binding documentation for spi-davinci module.
[prakash.pm@ti.com: Follow DT naming convention for compatible property]
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/spi/spi-davinci.txt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-davinci.txt b/Documentation/devicetree/bindings/spi/spi-davinci.txt new file mode 100644 index 000000000000..6d0ac8d0ad9b --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-davinci.txt | |||
@@ -0,0 +1,51 @@ | |||
1 | Davinci SPI controller device bindings | ||
2 | |||
3 | Required properties: | ||
4 | - #address-cells: number of cells required to define a chip select | ||
5 | address on the SPI bus. Should be set to 1. | ||
6 | - #size-cells: should be zero. | ||
7 | - compatible: | ||
8 | - "ti,dm6441-spi" for SPI used similar to that on DM644x SoC family | ||
9 | - "ti,da830-spi" for SPI used similar to that on DA8xx SoC family | ||
10 | - reg: Offset and length of SPI controller register space | ||
11 | - num-cs: Number of chip selects | ||
12 | - ti,davinci-spi-intr-line: interrupt line used to connect the SPI | ||
13 | IP to the interrupt controller within the SoC. Possible values | ||
14 | are 0 and 1. Manual says one of the two possible interrupt | ||
15 | lines can be tied to the interrupt controller. Set this | ||
16 | based on a specifc SoC configuration. | ||
17 | - interrupts: interrupt number mapped to CPU. | ||
18 | - clocks: spi clk phandle | ||
19 | |||
20 | Example of a NOR flash slave device (n25q032) connected to DaVinci | ||
21 | SPI controller device over the SPI bus. | ||
22 | |||
23 | spi0:spi@20BF0000 { | ||
24 | #address-cells = <1>; | ||
25 | #size-cells = <0>; | ||
26 | compatible = "ti,dm6446-spi"; | ||
27 | reg = <0x20BF0000 0x1000>; | ||
28 | num-cs = <4>; | ||
29 | ti,davinci-spi-intr-line = <0>; | ||
30 | interrupts = <338>; | ||
31 | clocks = <&clkspi>; | ||
32 | |||
33 | flash: n25q032@0 { | ||
34 | #address-cells = <1>; | ||
35 | #size-cells = <1>; | ||
36 | compatible = "st,m25p32"; | ||
37 | spi-max-frequency = <25000000>; | ||
38 | reg = <0>; | ||
39 | |||
40 | partition@0 { | ||
41 | label = "u-boot-spl"; | ||
42 | reg = <0x0 0x80000>; | ||
43 | read-only; | ||
44 | }; | ||
45 | |||
46 | partition@1 { | ||
47 | label = "test"; | ||
48 | reg = <0x80000 0x380000>; | ||
49 | }; | ||
50 | }; | ||
51 | }; | ||