1# Copyright (c) 2018, Google LLC.
2# SPDX-License-Identifier: Apache-2.0
3
4description: Atmel SAM0 SERCOM SPI controller
5
6compatible: "atmel,sam0-spi"
7
8include:
9  - name: spi-controller.yaml
10  - name: pinctrl-device.yaml
11
12properties:
13  reg:
14    required: true
15
16  clocks:
17    required: true
18
19  clock-names:
20    required: true
21
22  dipo:
23    type: int
24    required: true
25    description: Data In Pinout
26
27  dopo:
28    type: int
29    required: true
30    description: Data Out Pinout
31
32  dmas:
33    description: |
34      Optional TX & RX dma specifiers.  Each specifier will have a phandle
35      reference to the dmac controller, the channel number, and peripheral
36      trigger source.
37
38      For example dmas for TX, RX on SERCOM3
39         dmas = <&dmac 0 0xb>, <&dmac 1 0xa>;
40
41  dma-names:
42    description: |
43      Required if the dmas property exists.  This should be "tx" and "rx"
44      to match the dmas property.
45
46      For example
47         dma-names = "tx", "rx";
48