Debian Codegraph @

Documentation/devicetree/bindings/spi/andestech,ae350-spi.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spi/andestech,ae350-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Andes ATCSPI200 SPI controller
8
9 maintainers:
10 - CL Wang <[email protected]>
11
12 properties:
13 compatible:
14 oneOf:
15 - items:
16 - enum:
17 - andestech,qilai-spi
18 - const: andestech,ae350-spi
19 - const: andestech,ae350-spi
20
21 reg:
22 maxItems: 1
23
24 clocks:
25 maxItems: 1
26
27 num-cs:
28 description: Number of chip selects supported
29 maxItems: 1
30
31 dmas:
32 items:
33 - description: Transmit FIFO DMA channel
34 - description: Receive FIFO DMA channel
35
36 dma-names:
37 items:
38 - const: tx
39 - const: rx
40
41 patternProperties:
42 "@[0-9a-f]+$":
43 type: object
44 additionalProperties: true
45
46 properties:
47 spi-rx-bus-width:
48 items:
49 - enum: [1, 4]
50
51 spi-tx-bus-width:
52 items:
53 - enum: [1, 4]
54
55 allOf:
56 - $ref: spi-controller.yaml#
57
58 required:
59 - compatible
60 - reg
61 - clocks
62 - dmas
63 - dma-names
64
65 unevaluatedProperties: false
66
67 examples:
68 - |
69 spi@f0b00000 {
70 compatible = "andestech,ae350-spi";
71 reg = <0xf0b00000 0x100>;
72 clocks = <&clk_spi>;
73 dmas = <&dma0 0>, <&dma0 1>;
74 dma-names = "tx", "rx";
75
76 #address-cells = <1>;
77 #size-cells = <0>;
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-tx-bus-width = <4>;
83 spi-rx-bus-width = <4>;
84 spi-cpol;
85 spi-cpha;
86 };
87 };