xref: /freebsd/sys/contrib/device-tree/Bindings/mmc/socionext,uniphier-sd.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
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
29c66ec88fSEmmanuel Vadot  reset-names:
30c66ec88fSEmmanuel Vadot    description: |
31c66ec88fSEmmanuel Vadot      There are three reset signals at maximum
32c66ec88fSEmmanuel Vadot        host:   mandatory for all variants
33c66ec88fSEmmanuel Vadot        bridge: exist only for version 2.91
34c66ec88fSEmmanuel Vadot        hw:     optional. exist if eMMC hw reset line is available
35c66ec88fSEmmanuel Vadot    oneOf:
36c66ec88fSEmmanuel Vadot      - const: host
37c66ec88fSEmmanuel Vadot      - items:
38c66ec88fSEmmanuel Vadot          - const: host
39c66ec88fSEmmanuel Vadot          - const: bridge
40c66ec88fSEmmanuel Vadot      - items:
41c66ec88fSEmmanuel Vadot          - const: host
42c66ec88fSEmmanuel Vadot          - const: hw
43c66ec88fSEmmanuel Vadot      - items:
44c66ec88fSEmmanuel Vadot          - const: host
45c66ec88fSEmmanuel Vadot          - const: bridge
46c66ec88fSEmmanuel Vadot          - const: hw
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadot  resets:
49c66ec88fSEmmanuel Vadot    minItems: 1
50c66ec88fSEmmanuel Vadot    maxItems: 3
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel VadotallOf:
53c66ec88fSEmmanuel Vadot  - $ref: mmc-controller.yaml
54c66ec88fSEmmanuel Vadot
55c66ec88fSEmmanuel Vadot  - if:
56c66ec88fSEmmanuel Vadot      properties:
57c66ec88fSEmmanuel Vadot        compatible:
58c66ec88fSEmmanuel Vadot          contains:
59c66ec88fSEmmanuel Vadot            const: socionext,uniphier-sd-v2.91
60c66ec88fSEmmanuel Vadot    then:
61c66ec88fSEmmanuel Vadot      properties:
62c66ec88fSEmmanuel Vadot        reset-names:
63c66ec88fSEmmanuel Vadot          contains:
64c66ec88fSEmmanuel Vadot            const: bridge
65c66ec88fSEmmanuel Vadot    else:
66c66ec88fSEmmanuel Vadot      properties:
67c66ec88fSEmmanuel Vadot        reset-names:
68c66ec88fSEmmanuel Vadot          not:
69c66ec88fSEmmanuel Vadot            contains:
70c66ec88fSEmmanuel Vadot              const: bridge
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel Vadotrequired:
73c66ec88fSEmmanuel Vadot  - compatible
74c66ec88fSEmmanuel Vadot  - reg
75c66ec88fSEmmanuel Vadot  - interrupts
76c66ec88fSEmmanuel Vadot  - clocks
77c66ec88fSEmmanuel Vadot  - reset-names
78c66ec88fSEmmanuel Vadot  - resets
79c66ec88fSEmmanuel Vadot
80*6be33864SEmmanuel VadotunevaluatedProperties: false
81*6be33864SEmmanuel Vadot
82c66ec88fSEmmanuel Vadotexamples:
83c66ec88fSEmmanuel Vadot  - |
84c66ec88fSEmmanuel Vadot    sd: mmc@5a400000 {
85c66ec88fSEmmanuel Vadot        compatible = "socionext,uniphier-sd-v2.91";
86c66ec88fSEmmanuel Vadot        reg = <0x5a400000 0x200>;
87c66ec88fSEmmanuel Vadot        interrupts = <0 76 4>;
88c66ec88fSEmmanuel Vadot        pinctrl-names = "default", "uhs";
89c66ec88fSEmmanuel Vadot        pinctrl-0 = <&pinctrl_sd>;
90c66ec88fSEmmanuel Vadot        pinctrl-1 = <&pinctrl_sd_uhs>;
91c66ec88fSEmmanuel Vadot        clocks = <&mio_clk 0>;
92c66ec88fSEmmanuel Vadot        reset-names = "host", "bridge";
93c66ec88fSEmmanuel Vadot        resets = <&mio_rst 0>, <&mio_rst 3>;
94c66ec88fSEmmanuel Vadot        dma-names = "rx-tx";
95c66ec88fSEmmanuel Vadot        dmas = <&dmac 4>;
96c66ec88fSEmmanuel Vadot        bus-width = <4>;
97c66ec88fSEmmanuel Vadot        cap-sd-highspeed;
98c66ec88fSEmmanuel Vadot        sd-uhs-sdr12;
99c66ec88fSEmmanuel Vadot        sd-uhs-sdr25;
100c66ec88fSEmmanuel Vadot        sd-uhs-sdr50;
101c66ec88fSEmmanuel Vadot    };
102