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 29e67e8565SEmmanuel Vadot dmas: 30e67e8565SEmmanuel Vadot maxItems: 1 31e67e8565SEmmanuel Vadot 32e67e8565SEmmanuel Vadot dma-names: 33e67e8565SEmmanuel Vadot const: rx-tx 34e67e8565SEmmanuel 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 58*cb7aa33aSEmmanuel Vadot socionext,syscon-uhs-mode: 59*cb7aa33aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 60*cb7aa33aSEmmanuel Vadot items: 61*cb7aa33aSEmmanuel Vadot - items: 62*cb7aa33aSEmmanuel Vadot - description: phandle to syscon that configures UHS mode 63*cb7aa33aSEmmanuel Vadot - description: ID of SD instance 64*cb7aa33aSEmmanuel Vadot description: 65*cb7aa33aSEmmanuel Vadot A phandle to syscon with one argument that configures UHS mode. 66*cb7aa33aSEmmanuel Vadot The argument is the ID of SD instance. 67*cb7aa33aSEmmanuel Vadot 68c66ec88fSEmmanuel VadotallOf: 69c66ec88fSEmmanuel Vadot - $ref: mmc-controller.yaml 70c66ec88fSEmmanuel Vadot 71c66ec88fSEmmanuel Vadot - if: 72c66ec88fSEmmanuel Vadot properties: 73c66ec88fSEmmanuel Vadot compatible: 74c66ec88fSEmmanuel Vadot contains: 75c66ec88fSEmmanuel Vadot const: socionext,uniphier-sd-v2.91 76c66ec88fSEmmanuel Vadot then: 77c66ec88fSEmmanuel Vadot properties: 78c66ec88fSEmmanuel Vadot reset-names: 79c66ec88fSEmmanuel Vadot contains: 80c66ec88fSEmmanuel Vadot const: bridge 81c66ec88fSEmmanuel Vadot else: 82c66ec88fSEmmanuel Vadot properties: 83c66ec88fSEmmanuel Vadot reset-names: 84c66ec88fSEmmanuel Vadot not: 85c66ec88fSEmmanuel Vadot contains: 86c66ec88fSEmmanuel Vadot const: bridge 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadotrequired: 89c66ec88fSEmmanuel Vadot - compatible 90c66ec88fSEmmanuel Vadot - reg 91c66ec88fSEmmanuel Vadot - interrupts 92c66ec88fSEmmanuel Vadot - clocks 93c66ec88fSEmmanuel Vadot - reset-names 94c66ec88fSEmmanuel Vadot - resets 95c66ec88fSEmmanuel Vadot 966be33864SEmmanuel VadotunevaluatedProperties: false 976be33864SEmmanuel Vadot 98c66ec88fSEmmanuel Vadotexamples: 99c66ec88fSEmmanuel Vadot - | 100c66ec88fSEmmanuel Vadot sd: mmc@5a400000 { 101c66ec88fSEmmanuel Vadot compatible = "socionext,uniphier-sd-v2.91"; 102c66ec88fSEmmanuel Vadot reg = <0x5a400000 0x200>; 103c66ec88fSEmmanuel Vadot interrupts = <0 76 4>; 104c66ec88fSEmmanuel Vadot pinctrl-names = "default", "uhs"; 105c66ec88fSEmmanuel Vadot pinctrl-0 = <&pinctrl_sd>; 106c66ec88fSEmmanuel Vadot pinctrl-1 = <&pinctrl_sd_uhs>; 107c66ec88fSEmmanuel Vadot clocks = <&mio_clk 0>; 108c66ec88fSEmmanuel Vadot reset-names = "host", "bridge"; 109c66ec88fSEmmanuel Vadot resets = <&mio_rst 0>, <&mio_rst 3>; 110c66ec88fSEmmanuel Vadot dma-names = "rx-tx"; 111c66ec88fSEmmanuel Vadot dmas = <&dmac 4>; 112c66ec88fSEmmanuel Vadot bus-width = <4>; 113c66ec88fSEmmanuel Vadot cap-sd-highspeed; 114c66ec88fSEmmanuel Vadot sd-uhs-sdr12; 115c66ec88fSEmmanuel Vadot sd-uhs-sdr25; 116c66ec88fSEmmanuel Vadot sd-uhs-sdr50; 117c66ec88fSEmmanuel Vadot }; 118