Debian Codegraph @

Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/mmc/snps,dwcmshc-sdhci.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Synopsys Designware Mobile Storage Host Controller
8
9 maintainers:
10 - Ulf Hansson <[email protected]>
11 - Jisheng Zhang <[email protected]>
12
13 properties:
14 compatible:
15 oneOf:
16 - items:
17 - enum:
18 - rockchip,rk3528-dwcmshc
19 - rockchip,rk3562-dwcmshc
20 - rockchip,rk3576-dwcmshc
21 - const: rockchip,rk3588-dwcmshc
22 - items:
23 - const: sophgo,sg2044-dwcmshc
24 - const: sophgo,sg2042-dwcmshc
25 - enum:
26 - rockchip,rk3568-dwcmshc
27 - rockchip,rk3588-dwcmshc
28 - snps,dwcmshc-sdhci
29 - sophgo,cv1800b-dwcmshc
30 - sophgo,sg2002-dwcmshc
31 - sophgo,sg2042-dwcmshc
32 - thead,th1520-dwcmshc
33 - eswin,eic7700-dwcmshc
34
35 reg:
36 maxItems: 1
37
38 interrupts:
39 maxItems: 1
40
41 clocks:
42 minItems: 1
43 maxItems: 5
44
45 clock-names:
46 minItems: 1
47 maxItems: 5
48
49 power-domains:
50 maxItems: 1
51
52 resets:
53 minItems: 4
54 maxItems: 5
55
56 reset-names:
57 minItems: 4
58 maxItems: 5
59
60 rockchip,txclk-tapnum:
61 description: Specify the number of delay for tx sampling.
62 $ref: /schemas/types.yaml#/definitions/uint8
63
64 eswin,hsp-sp-csr:
65 $ref: /schemas/types.yaml#/definitions/phandle-array
66 items:
67 - items:
68 - description: Phandle to HSP(High-Speed Peripheral) device
69 - description: Offset of the stability status register for internal
70 clock.
71 - description: Offset of the stability register for host regulator
72 voltage.
73 description:
74 HSP CSR is to control and get status of different high-speed peripherals
75 (such as Ethernet, USB, SATA, etc.) via register, which can tune
76 board-level's parameters of PHY, etc.
77
78 eswin,drive-impedance-ohms:
79 description: Specifies the drive impedance in Ohm.
80 enum: [33, 40, 50, 66, 100]
81
82 required:
83 - compatible
84 - reg
85 - interrupts
86 - clocks
87 - clock-names
88
89 allOf:
90 - $ref: mmc-controller.yaml#
91
92 - if:
93 properties:
94 compatible:
95 contains:
96 const: sophgo,sg2042-dwcmshc
97
98 then:
99 properties:
100 clocks:
101 items:
102 - description: core clock
103 - description: bus clock
104 - description: timer clock
105 clock-names:
106 items:
107 - const: core
108 - const: bus
109 - const: timer
110 else:
111 properties:
112 clocks:
113 minItems: 1
114 items:
115 - description: core clock
116 - description: bus clock for optional
117 - description: axi clock for rockchip specified
118 - description: block clock for rockchip specified
119 - description: timer clock for rockchip specified
120 clock-names:
121 minItems: 1
122 items:
123 - const: core
124 - const: bus
125 - const: axi
126 - const: block
127 - const: timer
128
129 - if:
130 properties:
131 compatible:
132 contains:
133 const: eswin,eic7700-dwcmshc
134 then:
135 properties:
136 resets:
137 minItems: 4
138 maxItems: 4
139 reset-names:
140 items:
141 - const: axi
142 - const: phy
143 - const: prstn
144 - const: txrx
145 required:
146 - eswin,hsp-sp-csr
147 - eswin,drive-impedance-ohms
148 else:
149 properties:
150 resets:
151 minItems: 5
152 maxItems: 5
153 reset-names:
154 items:
155 - const: core
156 - const: bus
157 - const: axi
158 - const: block
159 - const: timer
160
161 - if:
162 properties:
163 compatible:
164 contains:
165 const: rockchip,rk3576-dwcmshc
166
167 then:
168 required:
169 - power-domains
170
171 unevaluatedProperties: false
172
173 examples:
174 - |
175 mmc@fe310000 {
176 compatible = "rockchip,rk3568-dwcmshc";
177 reg = <0xfe310000 0x10000>;
178 interrupts = <0 25 0x4>;
179 clocks = <&cru 17>, <&cru 18>, <&cru 19>, <&cru 20>, <&cru 21>;
180 clock-names = "core", "bus", "axi", "block", "timer";
181 bus-width = <8>;
182 #address-cells = <1>;
183 #size-cells = <0>;
184 };
185 - |
186 mmc@aa0000 {
187 compatible = "snps,dwcmshc-sdhci";
188 reg = <0xaa000 0x1000>;
189 interrupts = <0 25 0x4>;
190 clocks = <&cru 17>, <&cru 18>;
191 clock-names = "core", "bus";
192 bus-width = <8>;
193 #address-cells = <1>;
194 #size-cells = <0>;
195 };
196
197 ...