Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mmc/socionext,uniphier-sd.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: UniPhier SD/SDIO/eMMC controller
0008 
0009 maintainers:
0010   - Masahiro Yamada <yamada.masahiro@socionext.com>
0011 
0012 properties:
0013   compatible:
0014     description: version 2.91, 3.1, 3.1.1, respectively
0015     enum:
0016       - socionext,uniphier-sd-v2.91
0017       - socionext,uniphier-sd-v3.1
0018       - socionext,uniphier-sd-v3.1.1
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   interrupts:
0024     maxItems: 1
0025 
0026   clocks:
0027     maxItems: 1
0028 
0029   dmas:
0030     maxItems: 1
0031 
0032   dma-names:
0033     const: rx-tx
0034 
0035   reset-names:
0036     description: |
0037       There are three reset signals at maximum
0038         host:   mandatory for all variants
0039         bridge: exist only for version 2.91
0040         hw:     optional. exist if eMMC hw reset line is available
0041     oneOf:
0042       - const: host
0043       - items:
0044           - const: host
0045           - const: bridge
0046       - items:
0047           - const: host
0048           - const: hw
0049       - items:
0050           - const: host
0051           - const: bridge
0052           - const: hw
0053 
0054   resets:
0055     minItems: 1
0056     maxItems: 3
0057 
0058 allOf:
0059   - $ref: mmc-controller.yaml
0060 
0061   - if:
0062       properties:
0063         compatible:
0064           contains:
0065             const: socionext,uniphier-sd-v2.91
0066     then:
0067       properties:
0068         reset-names:
0069           contains:
0070             const: bridge
0071     else:
0072       properties:
0073         reset-names:
0074           not:
0075             contains:
0076               const: bridge
0077 
0078 required:
0079   - compatible
0080   - reg
0081   - interrupts
0082   - clocks
0083   - reset-names
0084   - resets
0085 
0086 unevaluatedProperties: false
0087 
0088 examples:
0089   - |
0090     sd: mmc@5a400000 {
0091         compatible = "socionext,uniphier-sd-v2.91";
0092         reg = <0x5a400000 0x200>;
0093         interrupts = <0 76 4>;
0094         pinctrl-names = "default", "uhs";
0095         pinctrl-0 = <&pinctrl_sd>;
0096         pinctrl-1 = <&pinctrl_sd_uhs>;
0097         clocks = <&mio_clk 0>;
0098         reset-names = "host", "bridge";
0099         resets = <&mio_rst 0>, <&mio_rst 3>;
0100         dma-names = "rx-tx";
0101         dmas = <&dmac 4>;
0102         bus-width = <4>;
0103         cap-sd-highspeed;
0104         sd-uhs-sdr12;
0105         sd-uhs-sdr25;
0106         sd-uhs-sdr50;
0107     };