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