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>
29 Chip select used by the device.
32 $ref: /schemas/types.yaml#/definitions/flag
34 The device requires 3-wire mode.
37 $ref: /schemas/types.yaml#/definitions/flag
39 The device requires shifted clock phase (CPHA) mode.
42 $ref: /schemas/types.yaml#/definitions/flag
44 The device requires inverse clock polarity (CPOL) mode.
47 $ref: /schemas/types.yaml#/definitions/flag
49 The device requires the chip select active high.
52 $ref: /schemas/types.yaml#/definitions/flag
54 The device requires the LSB first mode.
57 $ref: /schemas/types.yaml#/definitions/uint32
59 Maximum SPI clocking speed of the device in Hz.
63 Bus width to the SPI bus used for read transfers.
64 If 0 is provided, then no RX will be possible on this device.
65 $ref: /schemas/types.yaml#/definitions/uint32
71 Delay, in microseconds, after a read transfer.
75 Bus width to the SPI bus used for write transfers.
76 If 0 is provided, then no TX will be possible on this device.
77 $ref: /schemas/types.yaml#/definitions/uint32
83 Delay, in microseconds, after a write transfer.
85 # The controller specific properties go here.
87 - $ref: cdns,qspi-nor-peripheral-props.yaml#
89 additionalProperties: true