1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/allwinner,sun4i-a10-spi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 SPI Controller
8
9allOf:
10  - $ref: spi-controller.yaml
11
12maintainers:
13  - Chen-Yu Tsai <wens@csie.org>
14  - Maxime Ripard <mripard@kernel.org>
15
16properties:
17  "#address-cells": true
18  "#size-cells": true
19
20  compatible:
21    const: allwinner,sun4i-a10-spi
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  clocks:
30    items:
31      - description: Bus Clock
32      - description: Module Clock
33
34  clock-names:
35    items:
36      - const: ahb
37      - const: mod
38
39  dmas:
40    items:
41      - description: RX DMA Channel
42      - description: TX DMA Channel
43
44  dma-names:
45    items:
46      - const: rx
47      - const: tx
48
49  num-cs: true
50
51patternProperties:
52  "^.*@[0-9a-f]+":
53    type: object
54    additionalProperties: true
55    properties:
56      reg:
57        items:
58          minimum: 0
59          maximum: 4
60
61      spi-rx-bus-width:
62        const: 1
63
64      spi-tx-bus-width:
65        const: 1
66
67required:
68  - compatible
69  - reg
70  - interrupts
71  - clocks
72  - clock-names
73
74additionalProperties: false
75
76examples:
77  - |
78    spi1: spi@1c06000 {
79        compatible = "allwinner,sun4i-a10-spi";
80        reg = <0x01c06000 0x1000>;
81        interrupts = <11>;
82        clocks = <&ahb_gates 21>, <&spi1_clk>;
83        clock-names = "ahb", "mod";
84        #address-cells = <1>;
85        #size-cells = <0>;
86    };
87
88...
89