blob: 092cbcb2e5bb5657a893372fc7b63b1ef9fee71a [file] [log] [blame]
# Copyright (c) 2020 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0
description: Xilinx AXI Quad SPI IP node
compatible: "xlnx,xps-spi-2.00.a"
include: spi-controller.yaml
# Property names correspond to a subset of those generated by
# https://github.com/Xilinx/device-tree-xlnx
properties:
reg:
required: true
interrupts:
required: true
xlnx,num-ss-bits:
type: int
required: true
enum:
- 1
- 2
- 3
- 4
description: |
Number of slave select bits implemented
xlnx,num-transfer-bits:
type: int
required: true
enum:
- 8
- 16
- 32
description: |
Number of bits per transfer
xlnx,startup-block:
type: boolean
description: |
Indicates the core is instantiated with the STARTUP block option, as is
typically used when interfacing with the FPGA's configuration flash
device. In this configuration the SPI clock is routed through the
STARTUP block rather than normal signal routing.
In this case, a workaround is required to issue a dummy
transaction to the SPI flash device to ensure the STARTUP block is
disengaged and allow the SPI core to control the CCLK line properly.
The dummy READ_ID transaction will be issued to chip select 0.
fifo-size:
type: int
description: |
FIFO size configured in SPI core. 0 indicates no FIFO.
If not specified, 0 is assumed.
Used to optimize TX/RX read handling. If the FIFO size is 0, the driver
will check for FIFO full/empty after every word.