Merge tag 'docs-4.15-2' of git://git.lwn.net/linux
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / spi / spi-fsl-dspi.txt
1 ARM Freescale DSPI controller
2
3 Required properties:
4 - compatible : "fsl,vf610-dspi", "fsl,ls1021a-v1.0-dspi",
5                 "fsl,ls2085a-dspi"
6                 or
7                 "fsl,ls2080a-dspi" followed by "fsl,ls2085a-dspi"
8                 "fsl,ls1012a-dspi" followed by "fsl,ls1021a-v1.0-dspi"
9 - reg : Offset and length of the register set for the device
10 - interrupts : Should contain SPI controller interrupt
11 - clocks: from common clock binding: handle to dspi clock.
12 - clock-names: from common clock binding: Shall be "dspi".
13 - pinctrl-0: pin control group to be used for this controller.
14 - pinctrl-names: must contain a "default" entry.
15 - spi-num-chipselects : the number of the chipselect signals.
16 - bus-num : the slave chip chipselect signal number.
17
18 Optional property:
19 - big-endian: If present the dspi device's registers are implemented
20   in big endian mode.
21
22 Optional SPI slave node properties:
23 - fsl,spi-cs-sck-delay: a delay in nanoseconds between activating chip
24   select and the start of clock signal, at the start of a transfer.
25 - fsl,spi-sck-cs-delay: a delay in nanoseconds between stopping the clock
26   signal and deactivating chip select, at the end of a transfer.
27
28 Example:
29
30 dspi0@4002c000 {
31         #address-cells = <1>;
32         #size-cells = <0>;
33         compatible = "fsl,vf610-dspi";
34         reg = <0x4002c000 0x1000>;
35         interrupts = <0 67 0x04>;
36         clocks = <&clks VF610_CLK_DSPI0>;
37         clock-names = "dspi";
38         spi-num-chipselects = <5>;
39         bus-num = <0>;
40         pinctrl-names = "default";
41         pinctrl-0 = <&pinctrl_dspi0_1>;
42         big-endian;
43
44         sflash: at26df081a@0 {
45                 #address-cells = <1>;
46                 #size-cells = <1>;
47                 compatible = "atmel,at26df081a";
48                 spi-max-frequency = <16000000>;
49                 spi-cpol;
50                 spi-cpha;
51                 reg = <0>;
52                 linux,modalias = "m25p80";
53                 modal = "at26df081a";
54                 fsl,spi-cs-sck-delay = <100>;
55                 fsl,spi-sck-cs-delay = <50>;
56         };
57 };
58
59