1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MMC Controller Generic Binding
10 - Ulf Hansson <ulf.hansson@linaro.org>
13 These properties are common to multiple MMC host controllers. Any host
14 that requires the respective functionality should implement them using
19 pattern: "^mmc(@.*)?$"
24 The cell is the slot ID if a function subnode is used.
30 # If none of these properties are supplied, the host native card
31 # detect will be used. Only one of them should be provided.
34 $ref: /schemas/types.yaml#/definitions/flag
36 There is no card detection available; polling must be used.
40 The card detection will be done using the GPIO provided.
43 $ref: /schemas/types.yaml#/definitions/flag
45 Non-removable slot (like eMMC); assume always present.
47 # *NOTE* on CD and WP polarity. To use common for all SD/MMC host
48 # controllers line polarity properties, we have to fix the meaning
49 # of the "normal" and "inverted" line levels. We choose to follow
50 # the SDHCI standard, which specifies both those lines as "active
51 # low." Therefore, using the "cd-inverted" property means, that the
52 # CD line is active high, i.e. it is high, when a card is
53 # inserted. Similar logic applies to the "wp-inverted" property.
55 # CD and WP lines can be implemented on the hardware in one of two
56 # ways: as GPIOs, specified in cd-gpios and wp-gpios properties, or
57 # as dedicated pins. Polarity of dedicated pins can be specified,
58 # using *-inverted properties. GPIO polarity can also be specified
59 # using the GPIO_ACTIVE_LOW flag. This creates an ambiguity in the
60 # latter case. We choose to use the XOR logic for GPIO CD and WP
61 # lines. This means, the two properties are "superimposed," for
62 # example leaving the GPIO_ACTIVE_LOW flag clear and specifying the
63 # respective *-inverted property property results in a
64 # double-inversion and actually means the "normal" line polarity is
67 $ref: /schemas/types.yaml#/definitions/flag
69 The Write Protect line polarity is inverted.
72 $ref: /schemas/types.yaml#/definitions/flag
74 The CD line polarity is inverted.
80 - $ref: /schemas/types.yaml#/definitions/uint32
88 - $ref: /schemas/types.yaml#/definitions/uint32
92 Maximum operating frequency of the bus.
95 $ref: /schemas/types.yaml#/definitions/flag
97 When set, no physical write-protect line is present. This
98 property should only be specified when the controller has a
99 dedicated write-protect detection logic. If a GPIO is always
100 used for the write-protect detection. If a GPIO is always used
101 for the write-protect detection logic, it is sufficient to not
102 specify the wp-gpios property in the absence of a write-protect
107 GPIO to use for the write-protect detection.
109 cd-debounce-delay-ms:
111 Set delay time before detecting card after card insert
115 $ref: /schemas/types.yaml#/definitions/flag
117 When specified, denotes that 1.8V card voltage is not supported
118 on this system, even if the controller claims it.
121 $ref: /schemas/types.yaml#/definitions/flag
123 SD high-speed timing is supported.
126 $ref: /schemas/types.yaml#/definitions/flag
128 MMC high-speed timing is supported.
131 $ref: /schemas/types.yaml#/definitions/flag
133 SD UHS SDR12 speed is supported.
136 $ref: /schemas/types.yaml#/definitions/flag
138 SD UHS SDR25 speed is supported.
141 $ref: /schemas/types.yaml#/definitions/flag
143 SD UHS SDR50 speed is supported.
146 $ref: /schemas/types.yaml#/definitions/flag
148 SD UHS SDR104 speed is supported.
151 $ref: /schemas/types.yaml#/definitions/flag
153 SD UHS DDR50 speed is supported.
156 $ref: /schemas/types.yaml#/definitions/flag
158 Powering off the card is safe.
161 $ref: /schemas/types.yaml#/definitions/flag
163 eMMC hardware reset is supported
166 $ref: /schemas/types.yaml#/definitions/flag
168 enable SDIO IRQ signalling on this interface
171 $ref: /schemas/types.yaml#/definitions/flag
173 Full power cycle of the card is supported.
176 $ref: /schemas/types.yaml#/definitions/flag
178 eMMC high-speed DDR mode (1.2V I/O) is supported.
181 $ref: /schemas/types.yaml#/definitions/flag
183 eMMC high-speed DDR mode (1.8V I/O) is supported.
186 $ref: /schemas/types.yaml#/definitions/flag
188 eMMC high-speed DDR mode (3.3V I/O) is supported.
191 $ref: /schemas/types.yaml#/definitions/flag
193 eMMC HS200 mode (1.2V I/O) is supported.
196 $ref: /schemas/types.yaml#/definitions/flag
198 eMMC HS200 mode (1.8V I/O) is supported.
201 $ref: /schemas/types.yaml#/definitions/flag
203 eMMC HS400 mode (1.2V I/O) is supported.
206 $ref: /schemas/types.yaml#/definitions/flag
208 eMMC HS400 mode (1.8V I/O) is supported.
210 mmc-hs400-enhanced-strobe:
211 $ref: /schemas/types.yaml#/definitions/flag
213 eMMC HS400 enhanced strobe mode is supported
217 - $ref: /schemas/types.yaml#/definitions/uint32
221 Value the card Driver Stage Register (DSR) should be programmed
225 $ref: /schemas/types.yaml#/definitions/flag
227 Controller is limited to send SDIO commands during
231 $ref: /schemas/types.yaml#/definitions/flag
233 Controller is limited to send SD commands during initialization.
236 $ref: /schemas/types.yaml#/definitions/flag
238 Controller is limited to send MMC commands during
241 fixed-emmc-driver-type:
243 - $ref: /schemas/types.yaml#/definitions/uint32
247 For non-removable eMMC, enforce this driver type. The value is
248 the driver type as specified in the eMMC specification (table
249 206 in spec version 5.1)
251 post-power-on-delay-ms:
253 - $ref: /schemas/types.yaml#/definitions/uint32
256 It was invented for MMC pwrseq-simple which could be referred to
257 mmc-pwrseq-simple.txt. But now it\'s reused as a tunable delay
258 waiting for I/O signalling and card power supply to be stable,
259 regardless of whether pwrseq-simple is used. Default to 10ms if
263 $ref: /schemas/types.yaml#/definitions/flag
265 The presence of this property indicates that the corresponding
266 MMC host controller supports HW command queue feature.
269 $ref: /schemas/types.yaml#/definitions/flag
271 The presence of this property indicates that the MMC
272 controller\'s command queue engine (CQE) does not support direct
275 keep-power-in-suspend:
276 $ref: /schemas/types.yaml#/definitions/flag
278 SDIO only. Preserves card power during a suspend/resume cycle.
280 # Deprecated: enable-sdio-wakeup
282 $ref: /schemas/types.yaml#/definitions/flag
284 SDIO only. Enables wake up of host system on SDIO IRQ assertion.
288 Supply for the card power
292 Supply for the bus IO line power
295 $ref: /schemas/types.yaml#/definitions/phandle
297 System-on-Chip designs may specify a specific MMC power
298 sequence. To successfully detect an (e)MMC/SD/SDIO card, that
299 power sequence must be maintained while initializing the card.
305 On embedded systems the cards connected to a host may need
306 additional properties. These can be specified in subnodes to the
307 host controller node. The subnodes are identified by the
308 standard \'reg\' property. Which information exactly can be
309 specified depends on the bindings for the SDIO function driver
310 for the subnode, as specified by the compatible string.
315 Name of SDIO function following generic names recommended
323 Must contain the SDIO function number of the function this
324 subnode describes. A value of 0 denotes the memory SD
325 function, values from 1 to 7 denote the SDIO functions.
328 $ref: /schemas/types.yaml#/definitions/flag
330 Use this to indicate that the mmc-card has a broken hpi
331 implementation, and that hpi should not be used.
337 cd-debounce-delay-ms: [ cd-gpios ]
338 fixed-emmc-driver-type: [ non-removable ]
343 compatible = "sdhci";
344 reg = <0xab000000 0x200>;
347 cd-gpios = <&gpio 69 0>;
349 wp-gpios = <&gpio 70 0>;
350 max-frequency = <50000000>;
351 keep-power-in-suspend;
353 mmc-pwrseq = <&sdhci0_pwrseq>;
358 #address-cells = <1>;
360 pinctrl-names = "default";
361 pinctrl-0 = <&mmc3_pins_a>;
362 vmmc-supply = <®_vmmc3>;
365 mmc-pwrseq = <&sdhci0_pwrseq>;
369 compatible = "brcm,bcm43xx-fmac";
370 interrupt-parent = <&pio>;
372 interrupt-names = "host-wake";