118 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/mmc/socionext,uniphier-sd.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: UniPhier SD/SDIO/eMMC controller8 9maintainers:10 - Masahiro Yamada <yamada.masahiro@socionext.com>11 12properties:13 compatible:14 description: version 2.91, 3.1, 3.1.1, respectively15 enum:16 - socionext,uniphier-sd-v2.9117 - socionext,uniphier-sd-v3.118 - socionext,uniphier-sd-v3.1.119 20 reg:21 maxItems: 122 23 interrupts:24 maxItems: 125 26 clocks:27 maxItems: 128 29 dmas:30 maxItems: 131 32 dma-names:33 const: rx-tx34 35 reset-names:36 description: |37 There are three reset signals at maximum38 host: mandatory for all variants39 bridge: exist only for version 2.9140 hw: optional. exist if eMMC hw reset line is available41 oneOf:42 - const: host43 - items:44 - const: host45 - const: bridge46 - items:47 - const: host48 - const: hw49 - items:50 - const: host51 - const: bridge52 - const: hw53 54 resets:55 minItems: 156 maxItems: 357 58 socionext,syscon-uhs-mode:59 $ref: /schemas/types.yaml#/definitions/phandle-array60 items:61 - items:62 - description: phandle to syscon that configures UHS mode63 - description: ID of SD instance64 description:65 A phandle to syscon with one argument that configures UHS mode.66 The argument is the ID of SD instance.67 68allOf:69 - $ref: mmc-controller.yaml70 71 - if:72 properties:73 compatible:74 contains:75 const: socionext,uniphier-sd-v2.9176 then:77 properties:78 reset-names:79 contains:80 const: bridge81 else:82 properties:83 reset-names:84 not:85 contains:86 const: bridge87 88required:89 - compatible90 - reg91 - interrupts92 - clocks93 - reset-names94 - resets95 96unevaluatedProperties: false97 98examples:99 - |100 sd: mmc@5a400000 {101 compatible = "socionext,uniphier-sd-v2.91";102 reg = <0x5a400000 0x200>;103 interrupts = <0 76 4>;104 pinctrl-names = "default", "uhs";105 pinctrl-0 = <&pinctrl_sd>;106 pinctrl-1 = <&pinctrl_sd_uhs>;107 clocks = <&mio_clk 0>;108 reset-names = "host", "bridge";109 resets = <&mio_rst 0>, <&mio_rst 3>;110 dma-names = "rx-tx";111 dmas = <&dmac 4>;112 bus-width = <4>;113 cap-sd-highspeed;114 sd-uhs-sdr12;115 sd-uhs-sdr25;116 sd-uhs-sdr50;117 };118