Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / spi / allwinner,sun6i-a31-spi.yaml
blob7866a655d81c77c9fd2a8bea8c1609a63b8ba560
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spi/allwinner,sun6i-a31-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner A31 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     oneOf:
22       - const: allwinner,sun6i-a31-spi
23       - const: allwinner,sun8i-h3-spi
24       - items:
25           - enum:
26               - allwinner,sun8i-r40-spi
27               - allwinner,sun50i-h6-spi
28           - const: allwinner,sun8i-h3-spi
30   reg:
31     maxItems: 1
33   interrupts:
34     maxItems: 1
36   clocks:
37     items:
38       - description: Bus Clock
39       - description: Module Clock
41   clock-names:
42     items:
43       - const: ahb
44       - const: mod
46   resets:
47     maxItems: 1
49   dmas:
50     items:
51       - description: RX DMA Channel
52       - description: TX DMA Channel
54   dma-names:
55     items:
56       - const: rx
57       - const: tx
59   num-cs: true
61 patternProperties:
62   "^.*@[0-9a-f]+":
63     type: object
64     properties:
65       reg:
66         items:
67           minimum: 0
68           maximum: 4
70       spi-rx-bus-width:
71         const: 1
73       spi-tx-bus-width:
74         const: 1
76 required:
77   - compatible
78   - reg
79   - interrupts
80   - clocks
81   - clock-names
83 additionalProperties: false
85 examples:
86   - |
87     spi1: spi@1c69000 {
88         compatible = "allwinner,sun6i-a31-spi";
89         reg = <0x01c69000 0x1000>;
90         interrupts = <0 66 4>;
91         clocks = <&ahb1_gates 21>, <&spi1_clk>;
92         clock-names = "ahb", "mod";
93         resets = <&ahb1_rst 21>;
94         #address-cells = <1>;
95         #size-cells = <0>;
96     };
98   - |
99     spi0: spi@1c68000 {
100         compatible = "allwinner,sun8i-h3-spi";
101         reg = <0x01c68000 0x1000>;
102         interrupts = <0 65 4>;
103         clocks = <&ccu 30>, <&ccu 82>;
104         clock-names = "ahb", "mod";
105         dmas = <&dma 23>, <&dma 23>;
106         dma-names = "rx", "tx";
107         resets = <&ccu 15>;
108         #address-cells = <1>;
109         #size-cells = <0>;
110     };