1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/spi/spi-peripheral-props.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Peripheral-specific properties for a SPI bus.
10 Many SPI controllers need to add properties to peripheral devices. They could
11 be common properties like spi-max-frequency, spi-cpha, etc. or they could be
12 controller specific like delay in clock or data lines, etc. These properties
13 need to be defined in the peripheral node because they are per-peripheral and
14 there can be multiple peripherals attached to a controller. All those
15 properties are listed here. The controller specific properties should go in
16 their own separate schema that should be referenced from here.
19 - Pratyush Yadav <p.yadav@ti.com>
30 Chip select used by the device.
33 $ref: /schemas/types.yaml#/definitions/flag
35 The device requires 3-wire mode.
38 $ref: /schemas/types.yaml#/definitions/flag
40 The device requires shifted clock phase (CPHA) mode.
43 $ref: /schemas/types.yaml#/definitions/flag
45 The device requires inverse clock polarity (CPOL) mode.
48 $ref: /schemas/types.yaml#/definitions/flag
50 The device requires the chip select active high.
53 $ref: /schemas/types.yaml#/definitions/flag
55 The device requires the LSB first mode.
58 $ref: /schemas/types.yaml#/definitions/uint32
60 Maximum SPI clocking speed of the device in Hz.
64 Bus width to the SPI bus used for read transfers.
65 If 0 is provided, then no RX will be possible on this device.
66 $ref: /schemas/types.yaml#/definitions/uint32
72 Delay, in microseconds, after a read transfer.
76 Bus width to the SPI bus used for write transfers.
77 If 0 is provided, then no TX will be possible on this device.
78 $ref: /schemas/types.yaml#/definitions/uint32
84 Delay, in microseconds, after a write transfer.
86 # The controller specific properties go here.
88 - $ref: cdns,qspi-nor-peripheral-props.yaml#
90 additionalProperties: true