blob: e1ab3f523ad6cb6f6477e68c9c30088675f9fad0 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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 compatible:
18 const: allwinner,sun4i-a10-spi
19
20 reg:
21 maxItems: 1
22
23 interrupts:
24 maxItems: 1
25
26 clocks:
27 items:
28 - description: Bus Clock
29 - description: Module Clock
30
31 clock-names:
32 items:
33 - const: ahb
34 - const: mod
35
36 dmas:
37 items:
38 - description: RX DMA Channel
39 - description: TX DMA Channel
40
41 dma-names:
42 items:
43 - const: rx
44 - const: tx
45
46patternProperties:
47 "^.*@[0-9a-f]+":
48 type: object
49 additionalProperties: true
50
51 properties:
52 reg:
53 items:
54 minimum: 0
55 maximum: 4
56
57 spi-rx-bus-width:
58 const: 1
59
60 spi-tx-bus-width:
61 const: 1
62
63required:
64 - compatible
65 - reg
66 - interrupts
67 - clocks
68 - clock-names
69
70unevaluatedProperties: false
71
72examples:
73 - |
74 spi1: spi@1c06000 {
75 compatible = "allwinner,sun4i-a10-spi";
76 reg = <0x01c06000 0x1000>;
77 interrupts = <11>;
78 clocks = <&ahb_gates 21>, <&spi1_clk>;
79 clock-names = "ahb", "mod";
80 #address-cells = <1>;
81 #size-cells = <0>;
82 };
83
84...