1 Qualcomm Universal Peripheral (QUP) Serial Peripheral Interface (SPI)
3 The QUP core is an AHB slave that provides a common data path (an output FIFO
4 and an input FIFO) for serial peripheral interface (SPI) mini-core.
6 SPI in master mode supports up to 50MHz, up to four chip selects, programmable
7 data path from 4 bits to 32 bits and numerous protocol variants.
10 - compatible: Should contain:
11 "qcom,spi-qup-v1.1.1" for 8660, 8960 and 8064.
12 "qcom,spi-qup-v2.1.1" for 8974 and later
13 "qcom,spi-qup-v2.2.1" for 8974 v2 and later.
15 - reg: Should contain base register location and length
16 - interrupts: Interrupt number used by this controller
18 - clocks: Should contain the core clock and the AHB clock.
19 - clock-names: Should be "core" for the core clock and "iface" for the
22 - #address-cells: Number of cells required to define a chip select
23 address on the SPI bus. Should be set to 1.
24 - #size-cells: Should be zero.
27 - spi-max-frequency: Specifies maximum SPI clock frequency,
28 Units - Hz. Definition as per
29 Documentation/devicetree/bindings/spi/spi-bus.txt
30 - num-cs: total number of chipselects
31 - cs-gpios: should specify GPIOs used for chipselects.
32 The gpios will be referred to as reg = <index> in the SPI child
33 nodes. If unspecified, a single SPI device without a chip
36 - dmas: Two DMA channel specifiers following the convention outlined
37 in bindings/dma/dma.txt
38 - dma-names: Names for the dma channels, if present. There must be at
39 least one channel named "tx" for transmit and named "rx" for
42 SPI slave nodes must be children of the SPI master node and can contain
43 properties described in Documentation/devicetree/bindings/spi/spi-bus.txt
47 spi_8: spi@f9964000 { /* BLSP2 QUP2 */
49 compatible = "qcom,spi-qup-v2";
52 reg = <0xf9964000 0x1000>;
53 interrupts = <0 102 0>;
54 spi-max-frequency = <19200000>;
56 clocks = <&gcc GCC_BLSP2_QUP2_SPI_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
57 clock-names = "core", "iface";
59 dmas = <&blsp1_bam 13>, <&blsp1_bam 12>;
60 dma-names = "rx", "tx";
62 pinctrl-names = "default";
63 pinctrl-0 = <&spi8_default>;
66 compatible = "arm,pl022-dummy";
69 reg = <0>; /* Chip select 0 */
70 spi-max-frequency = <19200000>;
75 compatible = "arm,pl022-dummy";
78 reg = <1>; /* Chip select 1 */
79 spi-max-frequency = <9600000>;
84 compatible = "arm,pl022-dummy";
87 reg = <2>; /* Chip select 2 */
88 spi-max-frequency = <19200000>;
94 compatible = "arm,pl022-dummy";
97 reg = <3>; /* Chip select 3 */
98 spi-max-frequency = <19200000>;