Lines Matching +full:spi +full:- +full:cs +full:- +full:high
1 # SPDX-License-Identifier: GPL-2.0
3 ---
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,
20 pattern: "^spi(@.*|-[0-9a-f])*$"
22 "#address-cells":
25 "#size-cells":
28 cs-gpios:
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>;
49 cs-gpio with the optional spi-cs-high flag for SPI slaves.
51 Each table entry defines how the CS pin is to be physically
54 device node | cs-gpio | CS pin state active | Note
56 spi-cs-high | - | H |
57 - | - | L |
58 spi-cs-high | ACTIVE_HIGH | H |
59 - | ACTIVE_HIGH | L | 1
60 spi-cs-high | ACTIVE_LOW | H | 2
61 - | ACTIVE_LOW | L |
68 because ACTIVE_LOW is overridden by spi-cs-high.
70 spi-cs-high + ACTIVE_HIGH.
72 num-cs:
77 spi-slave:
80 The SPI controller acts as a slave, instead of a master.
88 Compatible of the SPI device.
91 - compatible
94 "^.*@[0-9a-f]+$":
96 $ref: spi-peripheral-props.yaml
99 spi-3wire:
102 The device requires 3-wire mode.
104 spi-cpha:
109 spi-cpol:
115 - compatible
116 - reg
119 - if:
122 - spi-slave
125 "#address-cells":
129 "#address-cells":
135 - |
136 spi@80010000 {
137 #address-cells = <1>;
138 #size-cells = <0>;
139 compatible = "fsl,imx28-spi";
143 dma-names = "rx-tx";
147 spi-max-frequency = <1000000>;
153 spi-max-frequency = <100000>;
158 compatible = "jedec,spi-nor";
159 spi-max-frequency = <50000000>;
161 stacked-memories = /bits/ 64 <0x10000000 0x10000000>;