1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/spi/spi-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SPI Controller Generic Binding
10 - Mark Brown <broonie@kernel.org>
13 SPI busses can be described with a node for the SPI controller device
14 and a set of child nodes for each SPI slave on the bus. The system SPI
15 controller may be described for use in SPI master mode or in SPI slave mode,
16 but not for both at the same time.
20 pattern: "^spi(@.*|-[0-9a-f])*$"
30 GPIOs used as chip selects.
31 If that property is used, the number of chip selects will be
32 increased automatically with max(cs-gpios, hardware chip selects).
34 So if, for example, the controller has 4 CS lines, and the
35 cs-gpios looks like this
36 cs-gpios = <&gpio1 0 0>, <0>, <&gpio1 1 0>, <&gpio1 2 0>;
38 Then it should be configured so that num_chipselect = 4, with
46 $ref: /schemas/types.yaml#/definitions/uint32
48 Total number of chip selects.
51 $ref: /schemas/types.yaml#/definitions/flag
53 The SPI controller acts as a slave, instead of a master.
62 Compatible of the SPI device.
73 Compatible of the SPI device.
79 Chip select used by the device.
82 $ref: /schemas/types.yaml#/definitions/flag
84 The device requires 3-wire mode.
87 $ref: /schemas/types.yaml#/definitions/flag
89 The device requires shifted clock phase (CPHA) mode.
92 $ref: /schemas/types.yaml#/definitions/flag
94 The device requires inverse clock polarity (CPOL) mode.
97 $ref: /schemas/types.yaml#/definitions/flag
99 The device requires the chip select active high.
102 $ref: /schemas/types.yaml#/definitions/flag
104 The device requires the LSB first mode.
107 $ref: /schemas/types.yaml#/definitions/uint32
109 Maximum SPI clocking speed of the device in Hz.
113 - $ref: /schemas/types.yaml#/definitions/uint32
114 - enum: [ 1, 2, 4, 8 ]
117 Bus width to the SPI bus used for MISO.
121 Delay, in microseconds, after a read transfer.
125 - $ref: /schemas/types.yaml#/definitions/uint32
126 - enum: [ 1, 2, 4, 8 ]
129 Bus width to the SPI bus used for MOSI.
133 Delay, in microseconds, after a write transfer.
142 #address-cells = <1>;
144 compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
146 interrupts = <2 13 0 2 14 0>;
147 interrupt-parent = <&mpc5200_pic>;
150 compatible = "micrel,ks8995m";
151 spi-max-frequency = <1000000>;
156 compatible = "ti,tlv320aic26";
157 spi-max-frequency = <100000>;