Debian Codegraph @

Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spi/snps,dw-apb-ssi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Synopsys DesignWare AMBA 2.0 Synchronous Serial Interface
8
9 maintainers:
10 - Mark Brown <[email protected]>
11
12 allOf:
13 - $ref: spi-controller.yaml#
14 - if:
15 properties:
16 compatible:
17 contains:
18 enum:
19 - mscc,ocelot-spi
20 - mscc,jaguar2-spi
21 then:
22 properties:
23 reg:
24 minItems: 2
25 - if:
26 properties:
27 compatible:
28 contains:
29 const: amd,pensando-elba-spi
30 then:
31 required:
32 - amd,pensando-elba-syscon
33 else:
34 properties:
35 amd,pensando-elba-syscon: false
36
37 properties:
38 compatible:
39 oneOf:
40 - description: Generic DW SPI Controller
41 enum:
42 - snps,dw-apb-ssi
43 - snps,dwc-ssi-1.01a
44 - description: Microchip Sparx5 SoC SPI Controller
45 const: microchip,sparx5-spi
46 - description: Amazon Alpine SPI Controller
47 const: amazon,alpine-dw-apb-ssi
48 - description: Vendor controllers which use snps,dw-apb-ssi as fallback
49 items:
50 - enum:
51 - mscc,ocelot-spi
52 - mscc,jaguar2-spi
53 - renesas,rzn1-spi
54 - sophgo,sg2042-spi
55 - thead,th1520-spi
56 - const: snps,dw-apb-ssi
57 - description: Intel Keem Bay SPI Controller
58 const: intel,keembay-ssi
59 - description: Intel Mount Evans Integrated Management Complex SPI Controller
60 const: intel,mountevans-imc-ssi
61 - description: AMD Pensando Elba SoC SPI Controller
62 const: amd,pensando-elba-spi
63 - description: Canaan Kendryte K210 SoS SPI Controller
64 const: canaan,k210-spi
65 - description: Renesas RZ/N1 SPI Controller
66 items:
67 - const: renesas,r9a06g032-spi # RZ/N1D
68 - const: renesas,rzn1-spi # RZ/N1
69
70 reg:
71 minItems: 1
72 items:
73 - description: DW APB SSI controller memory mapped registers
74 - description: SPI MST region map or directly mapped SPI ROM
75
76 interrupts:
77 maxItems: 1
78
79 clocks:
80 minItems: 1
81 items:
82 - description: SPI Controller reference clock source
83 - description: APB interface clock source
84
85 clock-names:
86 minItems: 1
87 items:
88 - const: ssi_clk
89 - const: pclk
90
91 resets:
92 maxItems: 1
93
94 reset-names:
95 const: spi
96
97 reg-io-width:
98 description: I/O register width (in bytes) implemented by this device
99 default: 4
100 enum: [ 2, 4 ]
101
102 num-cs:
103 default: 4
104 minimum: 1
105 maximum: 16
106
107 dmas:
108 items:
109 - description: TX DMA Channel
110 - description: RX DMA Channel
111
112 dma-names:
113 items:
114 - const: tx
115 - const: rx
116
117 rx-sample-delay-ns:
118 default: 0
119 description: |
120 Default value of the rx-sample-delay-ns property.
121 This value will be used if the property is not explicitly defined
122 for a SPI slave device.
123
124 SPI Rx sample delay offset, unit is nanoseconds.
125 The delay from the default sample time before the actual sample of the
126 rxd input signal occurs. The "rx_sample_delay" is an optional feature
127 of the designware controller, and the upper limit is also subject to
128 controller configuration.
129
130 amd,pensando-elba-syscon:
131 $ref: /schemas/types.yaml#/definitions/phandle-array
132 description:
133 Block address to control SPI chip-selects. The Elba SoC system controller
134 provides an interface to override the native DWC SSI CS control.
135
136 patternProperties:
137 "@[0-9a-f]$":
138 type: object
139 additionalProperties: true
140
141 properties:
142 reg:
143 minimum: 0
144 maximum: 0xf
145
146 unevaluatedProperties: false
147
148 required:
149 - compatible
150 - reg
151 - "#address-cells"
152 - "#size-cells"
153 - clocks
154 - interrupts
155
156 examples:
157 - |
158 spi@fff00000 {
159 compatible = "snps,dw-apb-ssi";
160 reg = <0xfff00000 0x1000>;
161 #address-cells = <1>;
162 #size-cells = <0>;
163 interrupts = <0 154 4>;
164 clocks = <&spi_m_clk>;
165 num-cs = <2>;
166 cs-gpios = <&gpio0 13 0>,
167 <&gpio0 14 0>;
168 rx-sample-delay-ns = <3>;
169 flash@1 {
170 compatible = "spi-nand";
171 reg = <1>;
172 rx-sample-delay-ns = <7>;
173 };
174 };
175 ...