Commit bfadee45 authored by Biju Das's avatar Biju Das Committed by Ulf Hansson
Browse files

dt-bindings: mmc: renesas,sdhi: Document RZ/G2L bindings

parent 4aba5dc7
Loading
Loading
Loading
Loading
+52 −21
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ properties:
              - renesas,sdhi-r8a77990  # R-Car E3
              - renesas,sdhi-r8a77995  # R-Car D3
              - renesas,sdhi-r8a779a0  # R-Car V3U
              - renesas,sdhi-r9a07g044 # RZ/G2{L,LC}
          - const: renesas,rcar-gen3-sdhi # R-Car Gen3 or RZ/G2

  reg:
@@ -66,15 +67,9 @@ properties:
    minItems: 1
    maxItems: 3

  clocks:
    minItems: 1
    maxItems: 2
  clocks: true

  clock-names:
    minItems: 1
    items:
      - const: core
      - const: cd
  clock-names: true

  dmas:
    minItems: 4
@@ -108,6 +103,42 @@ properties:
allOf:
  - $ref: "mmc-controller.yaml"

  - if:
      properties:
        compatible:
          contains:
            const: renesas,sdhi-r9a07g044
    then:
      properties:
        clocks:
          items:
            - description: IMCLK, SDHI channel main clock1.
            - description: IMCLK2, SDHI channel main clock2. When this clock is
                           turned off, external SD card detection cannot be
                           detected.
            - description: CLK_HS, SDHI channel High speed clock which operates
                           4 times that of SDHI channel main clock1.
            - description: ACLK, SDHI channel bus clock.
        clock-names:
          items:
            - const: imclk
            - const: imclk2
            - const: clk_hs
            - const: aclk
      required:
        - clock-names
        - resets
    else:
      properties:
        clocks:
          minItems: 1
          maxItems: 2
        clock-names:
          minItems: 1
          items:
            - const: core
            - const: cd

  - if:
      properties:
        compatible: