1# Copyright (c) 2018, qianfan Zhao
2# SPDX-License-Identifier: Apache-2.0
3
4description: Atmel SAM SPI controller
5
6compatible: "atmel,sam-spi"
7
8include:
9  - name: spi-controller.yaml
10  - name: pinctrl-device.yaml
11
12properties:
13  reg:
14    required: true
15
16  interrupts:
17    required: true
18
19  clocks:
20    required: true
21
22  loopback:
23    type: boolean
24    description: |
25      Connects TX to RX internally creating a loop back connection. Useful
26      for testing.
27
28  dmas:
29    description: |
30      TX & RX dma specifiers.  Each specifier will have a phandle
31      reference to the dma controller, the channel number, and peripheral
32      trigger source. The channel number is arbitrary but must not be
33      reused. The number of channels available is device dependent.
34
35      For example dmas for TX and RX may look like
36         dmas = <&xdmac 1 DMA_PERID_SPI0_TX>, <&xdmac 2 DMA_PERID_SPI0_RX>;
37
38  dma-names:
39    description: |
40      This should be "tx" and "rx" and should match the order given for
41      dmas.
42
43      For example using the example dmas, an example dma-names would be
44         dma-names = "tx", "rx";
45