1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mmc/arm,pl18x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM PrimeCell MultiMedia Card Interface (MMCI) PL180 and PL181
10 - Linus Walleij <linus.walleij@linaro.org>
11 - Ulf Hansson <ulf.hansson@linaro.org>
14 The ARM PrimeCells MMCI PL180 and PL181 provides an interface for
15 reading and writing to MultiMedia and SD cards alike. Over the years
16 vendors have use the VHDL code from ARM to create derivative MMC/SD/SDIO
17 host controllers with very similar characteristics.
20 - $ref: /schemas/arm/primecell.yaml#
21 - $ref: mmc-controller.yaml#
23 # We need a select here so we don't match all nodes with 'arm,primecell'
38 - description: The first version of the block, simply called
39 PL180 and found in the ARM Integrator IM/PD1 logic module.
42 - const: arm,primecell
43 - description: The improved version of the block, found in the
44 ARM Versatile and later reference designs. Further revisions
45 exist but get detected at runtime by reading some magic numbers
46 in the PrimeCell ID registers.
49 - const: arm,primecell
50 - description: Wildcard entry that will let the operating system
51 inspect the PrimeCell ID registers to determine which hardware
52 variant of PL180 or PL181 this is.
55 - const: arm,primecell
56 - description: Entries for STMicroelectronics variant of PL18x.
62 - const: arm,primecell
65 description: One or two clocks, the "apb_pclk" and the "MCLK"
66 which is the core block clock. The names are not compulsory.
88 description: the MMIO memory window must be exactly 4KB (0x1000) and the
89 layout should provide the PrimeCell ID registers so that the device can
90 be discovered. On ST Micro variants, a second register window may be
91 defined if a delay block is present and used for tuning.
94 description: The first interrupt is the command interrupt and corresponds
95 to the event at the end of a command. The second interrupt is the
96 PIO (polled I/O) interrupt and occurs when the FIFO needs to be
97 emptied as part of a bulk read from the card. Some variants have these
98 two interrupts wired into the same line (logic OR) and in that case
99 only one interrupt may be provided. The interrupt-names property is
100 not used due to inconsistency of existing DTs regarding its content.
106 $ref: /schemas/types.yaml#/definitions/flag
107 description: ST Micro-specific property, bus signal direction pins used for
111 $ref: /schemas/types.yaml#/definitions/flag
112 description: ST Micro-specific property, bus signal direction pins used for
116 $ref: /schemas/types.yaml#/definitions/flag
117 description: ST Micro-specific property, bus signal direction pins used for
121 $ref: /schemas/types.yaml#/definitions/flag
122 description: ST Micro-specific property, bus signal direction pins used for
126 $ref: /schemas/types.yaml#/definitions/flag
127 description: ST Micro-specific property, CMD signal direction used for
131 $ref: /schemas/types.yaml#/definitions/flag
132 description: ST Micro-specific property, feedback clock FBCLK signal pin
136 $ref: /schemas/types.yaml#/definitions/flag
137 description: ST Micro-specific property, signal direction polarity used for
138 pins CMD, DAT[0], DAT[1], DAT[2] and DAT[3].
141 $ref: /schemas/types.yaml#/definitions/flag
142 description: ST Micro-specific property, data and command phase relation,
143 generated on the sd clock falling edge.
146 $ref: /schemas/types.yaml#/definitions/flag
147 description: ST Micro-specific property, use CKIN pin from an external
148 driver to sample the receive data (for example with a voltage switch
154 The GPIO matching the CMD pin.
159 The GPIO matching the CK pin.
164 The GPIO matching the CKIN pin.
167 st,cmd-gpios: [ "st,use-ckin" ]
168 st,ck-gpios: [ "st,use-ckin" ]
169 st,ckin-gpios: [ "st,use-ckin" ]
171 unevaluatedProperties: false
180 #include <dt-bindings/interrupt-controller/irq.h>
181 #include <dt-bindings/gpio/gpio.h>
184 compatible = "arm,pl180", "arm,primecell";
185 reg = <0x5000 0x1000>;
186 interrupts-extended = <&vic 22 &sic 1>;
187 clocks = <&xtal24mhz>, <&pclk>;
188 clock-names = "mclk", "apb_pclk";
192 #include <dt-bindings/interrupt-controller/irq.h>
195 compatible = "arm,pl18x", "arm,primecell";
196 reg = <0x80126000 0x1000>;
197 interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>;
198 dmas = <&dma 29 0 0x2>, <&dma 29 0 0x0>;
199 dma-names = "rx", "tx";
200 clocks = <&prcc_kclk 1 5>, <&prcc_pclk 1 5>;
201 clock-names = "sdi", "apb_pclk";
202 max-frequency = <100000000>;
206 cd-gpios = <&gpio2 31 0x4>;
211 vmmc-supply = <&ab8500_ldo_aux3_reg>;
212 vqmmc-supply = <&vmmci>;
217 compatible = "arm,pl18x", "arm,primecell";
218 reg = <0x101f6000 0x1000>;
219 clocks = <&sdiclk>, <&pclksdi>;
220 clock-names = "mclk", "apb_pclk";
222 max-frequency = <400000>;
232 vmmc-supply = <&vmmc_regulator>;
237 compatible = "arm,pl18x", "arm,primecell";
238 arm,primecell-periphid = <0x10153180>;
239 reg = <0x52007000 0x1000>;
242 clock-names = "apb_pclk";
246 max-frequency = <120000000>;