summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/mmc/samsung,s3c6410-sdhci.yaml
blob: 5d873a60f650aedbaa4ec7937d8ebbab2ed58b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/mmc/samsung,s3c6410-sdhci.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung SoC SDHCI Controller

maintainers:
  - Jaehoon Chung <jh80.chung@samsung.com>
  - Krzysztof Kozlowski <krzk@kernel.org>

properties:
  compatible:
    enum:
      - samsung,s3c6410-sdhci
      - samsung,exynos4210-sdhci

  reg:
    maxItems: 1

  clocks:
    minItems: 2
    maxItems: 5

  clock-names:
    minItems: 2
    items:
      - const: hsmmc
      - pattern: "^mmc_busclk.[0-3]$"
      - pattern: "^mmc_busclk.[0-3]$"
      - pattern: "^mmc_busclk.[0-3]$"
      - pattern: "^mmc_busclk.[0-3]$"

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

allOf:
  - $ref: mmc-controller.yaml#
  - if:
      properties:
        compatible:
          contains:
            enum:
              - samsung,exynos4210-sdhci
    then:
      properties:
        clocks:
          maxItems: 2
        clock-names:
          items:
            - const: hsmmc
            - const: mmc_busclk.2

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/exynos4.h>
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    mmc@12510000 {
        compatible = "samsung,exynos4210-sdhci";
        reg = <0x12510000 0x100>;
        interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clock CLK_SDMMC0>, <&clock CLK_SCLK_MMC0>;
        clock-names = "hsmmc", "mmc_busclk.2";
        bus-width = <4>;
        cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
        pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>;
        pinctrl-names = "default";
        vmmc-supply = <&ldo21_reg>;
    };