Debian Codegraph @

Documentation/devicetree/bindings/spi/spi-cadence.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/spi-cadence.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Cadence SPI controller
8
9 maintainers:
10 - Michal Simek <[email protected]>
11
12 allOf:
13 - $ref: spi-controller.yaml#
14
15 properties:
16 compatible:
17 oneOf:
18 - enum:
19 - xlnx,zynq-spi-r1p6
20 - items:
21 - enum:
22 - xlnx,zynqmp-spi-r1p6
23 - xlnx,versal-net-spi-r1p6
24 - cix,sky1-spi-r1p6
25 - const: cdns,spi-r1p6
26
27 reg:
28 maxItems: 1
29
30 interrupts:
31 maxItems: 1
32
33 clock-names:
34 items:
35 - const: ref_clk
36 - const: pclk
37
38 clocks:
39 maxItems: 2
40
41 num-cs:
42 description: |
43 Number of chip selects used. If a decoder is used,
44 this will be the number of chip selects after the
45 decoder.
46 $ref: /schemas/types.yaml#/definitions/uint32
47 minimum: 1
48 maximum: 4
49 default: 4
50
51 is-decoded-cs:
52 description: |
53 Flag to indicate whether decoder is used or not.
54 $ref: /schemas/types.yaml#/definitions/uint32
55 enum: [ 0, 1 ]
56 default: 0
57
58 power-domains:
59 maxItems: 1
60
61 label:
62 description: Descriptive name of the SPI controller.
63
64 resets:
65 maxItems: 1
66
67 reset-names:
68 items:
69 - const: spi
70
71 required:
72 - compatible
73 - reg
74 - interrupts
75 - clock-names
76 - clocks
77
78 unevaluatedProperties: false
79
80 examples:
81 - |
82 spi@e0007000 {
83 compatible = "xlnx,zynq-spi-r1p6";
84 clock-names = "ref_clk", "pclk";
85 clocks = <&clkc 26>, <&clkc 35>;
86 interrupt-parent = <&intc>;
87 interrupts = <0 49 4>;
88 num-cs = <4>;
89 is-decoded-cs = <0>;
90 reg = <0xe0007000 0x1000>;
91 };
92 ...