xref: /freebsd/sys/contrib/device-tree/Bindings/mmc/socionext,uniphier-sd.yaml (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mmc/socionext,uniphier-sd.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: UniPhier SD/SDIO/eMMC controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Masahiro Yamada <yamada.masahiro@socionext.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotproperties:
13c66ec88fSEmmanuel Vadot  compatible:
14c66ec88fSEmmanuel Vadot    description: version 2.91, 3.1, 3.1.1, respectively
15c66ec88fSEmmanuel Vadot    enum:
16c66ec88fSEmmanuel Vadot      - socionext,uniphier-sd-v2.91
17c66ec88fSEmmanuel Vadot      - socionext,uniphier-sd-v3.1
18c66ec88fSEmmanuel Vadot      - socionext,uniphier-sd-v3.1.1
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel Vadot  reg:
21c66ec88fSEmmanuel Vadot    maxItems: 1
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  interrupts:
24c66ec88fSEmmanuel Vadot    maxItems: 1
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  clocks:
27c66ec88fSEmmanuel Vadot    maxItems: 1
28c66ec88fSEmmanuel Vadot
29*e67e8565SEmmanuel Vadot  dmas:
30*e67e8565SEmmanuel Vadot    maxItems: 1
31*e67e8565SEmmanuel Vadot
32*e67e8565SEmmanuel Vadot  dma-names:
33*e67e8565SEmmanuel Vadot    const: rx-tx
34*e67e8565SEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  reset-names:
36c66ec88fSEmmanuel Vadot    description: |
37c66ec88fSEmmanuel Vadot      There are three reset signals at maximum
38c66ec88fSEmmanuel Vadot        host:   mandatory for all variants
39c66ec88fSEmmanuel Vadot        bridge: exist only for version 2.91
40c66ec88fSEmmanuel Vadot        hw:     optional. exist if eMMC hw reset line is available
41c66ec88fSEmmanuel Vadot    oneOf:
42c66ec88fSEmmanuel Vadot      - const: host
43c66ec88fSEmmanuel Vadot      - items:
44c66ec88fSEmmanuel Vadot          - const: host
45c66ec88fSEmmanuel Vadot          - const: bridge
46c66ec88fSEmmanuel Vadot      - items:
47c66ec88fSEmmanuel Vadot          - const: host
48c66ec88fSEmmanuel Vadot          - const: hw
49c66ec88fSEmmanuel Vadot      - items:
50c66ec88fSEmmanuel Vadot          - const: host
51c66ec88fSEmmanuel Vadot          - const: bridge
52c66ec88fSEmmanuel Vadot          - const: hw
53c66ec88fSEmmanuel Vadot
54c66ec88fSEmmanuel Vadot  resets:
55c66ec88fSEmmanuel Vadot    minItems: 1
56c66ec88fSEmmanuel Vadot    maxItems: 3
57c66ec88fSEmmanuel Vadot
58c66ec88fSEmmanuel VadotallOf:
59c66ec88fSEmmanuel Vadot  - $ref: mmc-controller.yaml
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot  - if:
62c66ec88fSEmmanuel Vadot      properties:
63c66ec88fSEmmanuel Vadot        compatible:
64c66ec88fSEmmanuel Vadot          contains:
65c66ec88fSEmmanuel Vadot            const: socionext,uniphier-sd-v2.91
66c66ec88fSEmmanuel Vadot    then:
67c66ec88fSEmmanuel Vadot      properties:
68c66ec88fSEmmanuel Vadot        reset-names:
69c66ec88fSEmmanuel Vadot          contains:
70c66ec88fSEmmanuel Vadot            const: bridge
71c66ec88fSEmmanuel Vadot    else:
72c66ec88fSEmmanuel Vadot      properties:
73c66ec88fSEmmanuel Vadot        reset-names:
74c66ec88fSEmmanuel Vadot          not:
75c66ec88fSEmmanuel Vadot            contains:
76c66ec88fSEmmanuel Vadot              const: bridge
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadotrequired:
79c66ec88fSEmmanuel Vadot  - compatible
80c66ec88fSEmmanuel Vadot  - reg
81c66ec88fSEmmanuel Vadot  - interrupts
82c66ec88fSEmmanuel Vadot  - clocks
83c66ec88fSEmmanuel Vadot  - reset-names
84c66ec88fSEmmanuel Vadot  - resets
85c66ec88fSEmmanuel Vadot
866be33864SEmmanuel VadotunevaluatedProperties: false
876be33864SEmmanuel Vadot
88c66ec88fSEmmanuel Vadotexamples:
89c66ec88fSEmmanuel Vadot  - |
90c66ec88fSEmmanuel Vadot    sd: mmc@5a400000 {
91c66ec88fSEmmanuel Vadot        compatible = "socionext,uniphier-sd-v2.91";
92c66ec88fSEmmanuel Vadot        reg = <0x5a400000 0x200>;
93c66ec88fSEmmanuel Vadot        interrupts = <0 76 4>;
94c66ec88fSEmmanuel Vadot        pinctrl-names = "default", "uhs";
95c66ec88fSEmmanuel Vadot        pinctrl-0 = <&pinctrl_sd>;
96c66ec88fSEmmanuel Vadot        pinctrl-1 = <&pinctrl_sd_uhs>;
97c66ec88fSEmmanuel Vadot        clocks = <&mio_clk 0>;
98c66ec88fSEmmanuel Vadot        reset-names = "host", "bridge";
99c66ec88fSEmmanuel Vadot        resets = <&mio_rst 0>, <&mio_rst 3>;
100c66ec88fSEmmanuel Vadot        dma-names = "rx-tx";
101c66ec88fSEmmanuel Vadot        dmas = <&dmac 4>;
102c66ec88fSEmmanuel Vadot        bus-width = <4>;
103c66ec88fSEmmanuel Vadot        cap-sd-highspeed;
104c66ec88fSEmmanuel Vadot        sd-uhs-sdr12;
105c66ec88fSEmmanuel Vadot        sd-uhs-sdr25;
106c66ec88fSEmmanuel Vadot        sd-uhs-sdr50;
107c66ec88fSEmmanuel Vadot    };
108