Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/mmc/fsl-imx-mmc.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Freescale Secure Digital Host Controller for i.MX2/3 series |
| 8 | |
| 9 | maintainers: |
| 10 | - Markus Pargmann <mpa@pengutronix.de> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: mmc-controller.yaml |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | oneOf: |
| 18 | - const: fsl,imx21-mmc |
| 19 | - const: fsl,imx31-mmc |
| 20 | - items: |
| 21 | - const: fsl,imx27-mmc |
| 22 | - const: fsl,imx21-mmc |
| 23 | |
| 24 | reg: |
| 25 | maxItems: 1 |
| 26 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 27 | clocks: |
| 28 | maxItems: 2 |
| 29 | |
| 30 | clock-names: |
| 31 | items: |
| 32 | - const: ipg |
| 33 | - const: per |
| 34 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 35 | interrupts: |
| 36 | maxItems: 1 |
| 37 | |
| 38 | dmas: |
| 39 | maxItems: 1 |
| 40 | |
| 41 | dma-names: |
| 42 | const: rx-tx |
| 43 | |
| 44 | required: |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 45 | - clocks |
| 46 | - clock-names |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 47 | - compatible |
| 48 | - reg |
| 49 | - interrupts |
| 50 | |
| 51 | unevaluatedProperties: false |
| 52 | |
| 53 | examples: |
| 54 | - | |
| 55 | mmc@10014000 { |
| 56 | compatible = "fsl,imx27-mmc", "fsl,imx21-mmc"; |
| 57 | reg = <0x10014000 0x1000>; |
| 58 | interrupts = <11>; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 59 | clocks = <&clks 29>, <&clks 60>; |
| 60 | clock-names = "ipg", "per"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 61 | dmas = <&dma 7>; |
| 62 | dma-names = "rx-tx"; |
| 63 | bus-width = <4>; |
| 64 | cd-gpios = <&gpio3 29>; |
| 65 | }; |