Unverified Commit 289f6e3b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: dt-bindings: renesas,rsnd.yaml: add common port-def



renesas,rsnd uses both "ports" has "port", and these are very similar.
To avoid duplicated definitions, this patch adds common port-def.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87sf9eb1ln.wl-kuninori.morimoto.gx@renesas.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 547b02f7
Loading
Loading
Loading
Loading
+16 −22
Original line number Diff line number Diff line
@@ -9,6 +9,20 @@ title: Renesas R-Car Sound Driver
maintainers:
  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

definitions:
  port-def:
    $ref: audio-graph-port.yaml#/definitions/port-base
    unevaluatedProperties: false
    patternProperties:
      "^endpoint(@[0-9a-f]+)?":
        $ref: audio-graph-port.yaml#/definitions/endpoint-base
        properties:
          playback:
            $ref: /schemas/types.yaml#/definitions/phandle-array
          capture:
            $ref: /schemas/types.yaml#/definitions/phandle-array
        unevaluatedProperties: false

properties:

  compatible:
@@ -108,30 +122,10 @@ properties:
    unevaluatedProperties: false
    patternProperties:
      '^port(@[0-9a-f]+)?$':
        $ref: audio-graph-port.yaml#/definitions/port-base
        unevaluatedProperties: false
        patternProperties:
          "^endpoint(@[0-9a-f]+)?":
            $ref: audio-graph-port.yaml#/definitions/endpoint-base
            properties:
              playback:
                $ref: /schemas/types.yaml#/definitions/phandle-array
              capture:
                $ref: /schemas/types.yaml#/definitions/phandle-array
            unevaluatedProperties: false
        $ref: "#/definitions/port-def"

  port:
    $ref: audio-graph-port.yaml#/definitions/port-base
    unevaluatedProperties: false
    patternProperties:
      "^endpoint(@[0-9a-f]+)?":
        $ref: audio-graph-port.yaml#/definitions/endpoint-base
        properties:
          playback:
            $ref: /schemas/types.yaml#/definitions/phandle-array
          capture:
            $ref: /schemas/types.yaml#/definitions/phandle-array
        unevaluatedProperties: false
    $ref: "#/definitions/port-def"

  rcar_sound,dvc:
    description: DVC subnode.