1# Copyright (c) 2018 Synopsys, Inc. All rights reserved.
2# Copyright (c) 2023 Meta Platforms All rights reserved.
3# SPDX-License-Identifier: Apache-2.0
4
5description: Synopsys DesignWare SPI node
6
7compatible: "snps,designware-spi"
8
9include: [spi-controller.yaml, pinctrl-device.yaml]
10
11properties:
12  reg:
13    required: true
14
15  interrupts:
16    required: true
17
18  aux-reg:
19    type: boolean
20    description: |
21      This value is used for auxiliary register access. For
22      other platform, this value should be default 0.
23
24  fifo-depth:
25    type: int
26    description: |
27      RX/TX FIFO depth. Corresponds to the SSI_TX_FIFO_DEPTH
28      and SSI_RX_FIFO_DEPTH of the DesignWare Synchronous
29      Serial Interface. Depth ranges from 2-256.
30
31  serial-target:
32    type: boolean
33    description: |
34      True if it is a Serial Target. False if it is a Serial
35      Master. Corresponds to SSI_IS_MASTER of the Designware
36      Synchronous Serial Interface.
37
38  max-xfer-size:
39    type: int
40    description: |
41      Maximum transfer size. Corresponds to SPI_MAX_XFER_SIZE
42      of the DesignWare Synchronous Serial Interface. Only
43      values of 16 and 32 are supported.
44    enum:
45      - 16
46      - 32
47