Documentation: fsl: dspi: Add fsl,ls2080a-dspi compatible string
[cascardo/linux.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 - reg : Offset and length of the register set for the device
9 - interrupts : Should contain SPI controller interrupt
10 - clocks: from common clock binding: handle to dspi clock.
11 - clock-names: from common clock binding: Shall be "dspi".
12 - pinctrl-0: pin control group to be used for this controller.
13 - pinctrl-names: must contain a "default" entry.
14 - spi-num-chipselects : the number of the chipselect signals.
15 - bus-num : the slave chip chipselect signal number.
16
17 Optional property:
18 - big-endian: If present the dspi device's registers are implemented
19   in big endian mode, otherwise in native mode(same with CPU), for more
20   detail please see: Documentation/devicetree/bindings/regmap/regmap.txt.
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         status = "okay";
44
45         sflash: at26df081a@0 {
46                 #address-cells = <1>;
47                 #size-cells = <1>;
48                 compatible = "atmel,at26df081a";
49                 spi-max-frequency = <16000000>;
50                 spi-cpol;
51                 spi-cpha;
52                 reg = <0>;
53                 linux,modalias = "m25p80";
54                 modal = "at26df081a";
55                 fsl,spi-cs-sck-delay = <100>;
56                 fsl,spi-sck-cs-delay = <50>;
57         };
58 };
59
60