Merge branch 'stable/for-linus-4.5' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / spi / ti_qspi.txt
1 TI QSPI controller.
2
3 Required properties:
4 - compatible : should be "ti,dra7xxx-qspi" or "ti,am4372-qspi".
5 - reg: Should contain QSPI registers location and length.
6 - reg-names: Should contain the resource reg names.
7         - qspi_base: Qspi configuration register Address space
8         - qspi_mmap: Memory mapped Address space
9         - (optional) qspi_ctrlmod: Control module Address space
10 - interrupts: should contain the qspi interrupt number.
11 - #address-cells, #size-cells : Must be present if the device has sub-nodes
12 - ti,hwmods: Name of the hwmod associated to the QSPI
13
14 Recommended properties:
15 - spi-max-frequency: Definition as per
16                      Documentation/devicetree/bindings/spi/spi-bus.txt
17
18 Optional properties:
19 - syscon-chipselects: Handle to system control region contains QSPI
20                       chipselect register and offset of that register.
21
22 Example:
23
24 For am4372:
25 qspi: qspi@4b300000 {
26         compatible = "ti,am4372-qspi";
27         reg = <0x47900000 0x100>, <0x30000000 0x4000000>;
28         reg-names = "qspi_base", "qspi_mmap";
29         #address-cells = <1>;
30         #size-cells = <0>;
31         spi-max-frequency = <25000000>;
32         ti,hwmods = "qspi";
33 };
34
35 For dra7xx:
36 qspi: qspi@4b300000 {
37         compatible = "ti,dra7xxx-qspi";
38         reg = <0x4b300000 0x100>,
39               <0x5c000000 0x4000000>,
40         reg-names = "qspi_base", "qspi_mmap";
41         syscon-chipselects = <&scm_conf 0x558>;
42         #address-cells = <1>;
43         #size-cells = <0>;
44         spi-max-frequency = <48000000>;
45         ti,hwmods = "qspi";
46 };