brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · 024313b Raw
136 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/mmc/renesas,mmcif.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas Multi Media Card Interface (MMCIF) Controller8 9maintainers:10  - Wolfram Sang <wsa+renesas@sang-engineering.com>11 12allOf:13  - $ref: mmc-controller.yaml14 15properties:16  compatible:17    items:18      - enum:19          - renesas,mmcif-r7s72100 # RZ/A1H20          - renesas,mmcif-r8a73a4  # R-Mobile APE621          - renesas,mmcif-r8a7740  # R-Mobile A122          - renesas,mmcif-r8a7742  # RZ/G1H23          - renesas,mmcif-r8a7743  # RZ/G1M24          - renesas,mmcif-r8a7744  # RZ/G1N25          - renesas,mmcif-r8a7745  # RZ/G1E26          - renesas,mmcif-r8a7778  # R-Car M1A27          - renesas,mmcif-r8a7790  # R-Car H228          - renesas,mmcif-r8a7791  # R-Car M2-W29          - renesas,mmcif-r8a7793  # R-Car M2-N30          - renesas,mmcif-r8a7794  # R-Car E231          - renesas,mmcif-sh73a0   # SH-Mobile AG532      - const: renesas,sh-mmcif33 34  reg:35    maxItems: 136 37  interrupts: true38 39  clocks:40    maxItems: 141 42  power-domains:43    maxItems: 144 45  resets:46    maxItems: 147 48  dmas:49    minItems: 250    maxItems: 451    description:52      Must contain a list of pairs of references to DMA specifiers, one for53      transmission, and one for reception.54 55  dma-names:56    minItems: 257    maxItems: 458    items:59      enum:60        - tx61        - rx62 63  max-frequency: true64 65required:66  - compatible67  - reg68  - interrupts69  - clocks70  - power-domains71 72if:73  properties:74    compatible:75      contains:76        const: renesas,mmcif-r7s7210077then:78  properties:79    interrupts:80      items:81        - description: Error interrupt82        - description: Normal operation interrupt83        - description: Card detection interrupt84else:85  if:86    properties:87      compatible:88        contains:89          enum:90            - renesas,mmcif-r8a774091            - renesas,mmcif-sh73a092  then:93    properties:94      interrupts:95        items:96          - description: Error interrupt97          - description: Normal operation interrupt98  else:99    if:100      properties:101        compatible:102          contains:103            enum:104              - renesas,mmcif-r8a73a4105              - renesas,mmcif-r8a7778106    then:107      properties:108        interrupts:109          maxItems: 1110    else:111      properties:112        interrupts:113          maxItems: 1114      required:115        - resets116 117unevaluatedProperties: false118 119examples:120  - |121    #include <dt-bindings/clock/r8a7790-cpg-mssr.h>122    #include <dt-bindings/interrupt-controller/arm-gic.h>123    #include <dt-bindings/power/r8a7790-sysc.h>124 125    mmcif0: mmc@ee200000 {126            compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";127            reg = <0xee200000 0x80>;128            interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;129            clocks = <&cpg CPG_MOD 315>;130            power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;131            resets = <&cpg 315>;132            dmas = <&dmac0 0xd1>, <&dmac0 0xd2>, <&dmac1 0xd1>, <&dmac1 0xd2>;133            dma-names = "tx", "rx", "tx", "rx";134            max-frequency = <97500000>;135    };136