1# Copyright 2023 NXP 2# SPDX-License-Identifier: Apache-2.0 3# 4# Common fields for MIPI DBI devices using Mode C (SPI) 5 6include: [mipi-dbi-device.yaml] 7 8properties: 9 duplex: 10 type: int 11 default: 0 12 description: | 13 SPI Duplex mode, full or half. By default it's always full duplex thus 0 14 as this is, by far, the most common mode. 15 Selecting half duplex allows to use SPI MOSI as a bidirectional line, 16 typically used when only one data line is connected. 17 Use the macros, not the actual enum value. Here is the concordance 18 list (see dt-bindings/spi/spi.h) 19 0 SPI_FULL_DUPLEX 20 2048 SPI_HALF_DUPLEX 21 mipi-cpol: 22 type: boolean 23 description: | 24 SPI clock polarity which indicates the clock idle state. 25 If it is used, the clock idle state is logic high; otherwise, low. 26 mipi-cpha: 27 type: boolean 28 description: | 29 SPI clock phase that indicates on which edge data is sampled. 30 If it is used, data is sampled on the second edge; otherwise, on the first edge. 31 mipi-hold-cs: 32 type: boolean 33 description: | 34 In some cases, it is necessary for the master to manage SPI chip select 35 under software control, so that multiple spi transactions can be performed 36 without releasing it. A typical use case is variable length SPI packets 37 where the first spi transaction reads the length and the second spi transaction 38 reads length bytes. 39