WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / spi / allwinner,sun4i-a10-spi.yaml
blob8036499112f5a858e00f8edf0fa425eacf7db76f
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#
7 title: Allwinner A10 SPI Controller Device Tree Bindings
9 allOf:
10   - $ref: "spi-controller.yaml"
12 maintainers:
13   - Chen-Yu Tsai <wens@csie.org>
14   - Maxime Ripard <mripard@kernel.org>
16 properties:
17   "#address-cells": true
18   "#size-cells": true
20   compatible:
21     const: allwinner,sun4i-a10-spi
23   reg:
24     maxItems: 1
26   interrupts:
27     maxItems: 1
29   clocks:
30     items:
31       - description: Bus Clock
32       - description: Module Clock
34   clock-names:
35     items:
36       - const: ahb
37       - const: mod
39   dmas:
40     items:
41       - description: RX DMA Channel
42       - description: TX DMA Channel
44   dma-names:
45     items:
46       - const: rx
47       - const: tx
49   num-cs: true
51 patternProperties:
52   "^.*@[0-9a-f]+":
53     type: object
54     properties:
55       reg:
56         items:
57           minimum: 0
58           maximum: 4
60       spi-rx-bus-width:
61         const: 1
63       spi-tx-bus-width:
64         const: 1
66 required:
67   - compatible
68   - reg
69   - interrupts
70   - clocks
71   - clock-names
73 additionalProperties: false
75 examples:
76   - |
77     spi1: spi@1c06000 {
78         compatible = "allwinner,sun4i-a10-spi";
79         reg = <0x01c06000 0x1000>;
80         interrupts = <11>;
81         clocks = <&ahb_gates 21>, <&spi1_clk>;
82         clock-names = "ahb", "mod";
83         #address-cells = <1>;
84         #size-cells = <0>;
85     };
87 ...