brintos

brintos / linux-shallow public Read only

0
0
Text · 4.1 KiB · d1cbfc5 Raw
132 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/audio-graph-port.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Audio Graph Card 'port'8 9maintainers:10  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>11 12select: false13 14definitions:15  port-base:16    allOf:17      - $ref: /schemas/graph.yaml#/$defs/port-base18      - $ref: /schemas/sound/dai-params.yaml#19    properties:20      mclk-fs:21        $ref: simple-card.yaml#/definitions/mclk-fs22      playback-only:23        description: port connection used only for playback24        $ref: /schemas/types.yaml#/definitions/flag25      capture-only:26        description: port connection used only for capture27        $ref: /schemas/types.yaml#/definitions/flag28      link-trigger-order:29        description: trigger order for both start/stop30        $ref: /schemas/types.yaml#/definitions/uint32-array31      link-trigger-order-start:32        description: trigger order for start33        $ref: /schemas/types.yaml#/definitions/uint32-array34      link-trigger-order-stop:35        description: trigger order for stop36        $ref: /schemas/types.yaml#/definitions/uint32-array37 38  endpoint-base:39    allOf:40      - $ref: /schemas/graph.yaml#/$defs/endpoint-base41      - $ref: /schemas/sound/dai-params.yaml#42    properties:43      mclk-fs:44        $ref: simple-card.yaml#/definitions/mclk-fs45      frame-inversion:46        description: dai-link uses frame clock inversion47        $ref: /schemas/types.yaml#/definitions/flag48      bitclock-inversion:49        description: dai-link uses bit clock inversion50        $ref: /schemas/types.yaml#/definitions/flag51      frame-master:52        description: Indicates dai-link frame master.53        oneOf:54          - $ref: /schemas/types.yaml#/definitions/flag55          - $ref: /schemas/types.yaml#/definitions/phandle56      bitclock-master:57        description: Indicates dai-link bit clock master58        oneOf:59          - $ref: /schemas/types.yaml#/definitions/flag60          - $ref: /schemas/types.yaml#/definitions/phandle61      clocks:62        description: Indicates system clock63        maxItems: 164      system-clock-frequency:65        $ref: simple-card.yaml#/definitions/system-clock-frequency66      system-clock-direction-out:67        $ref: simple-card.yaml#/definitions/system-clock-direction-out68      system-clock-fixed:69        $ref: simple-card.yaml#/definitions/system-clock-fixed70 71      dai-format:72        description: audio format.73        items:74          enum:75            - i2s76            - right_j77            - left_j78            - dsp_a79            - dsp_b80            - ac9781            - pdm82            - msb83            - lsb84 85      dai-tdm-slot-num:86        description: Number of slots in use.87        $ref: /schemas/types.yaml#/definitions/uint3288      dai-tdm-slot-width:89        description: Width in bits for each slot.90        $ref: /schemas/types.yaml#/definitions/uint3291      dai-tdm-slot-width-map:92        description: Mapping of sample widths to slot widths. For hardware93          that cannot support a fixed slot width or a slot width always94          equal to sample width. A matrix of one or more 3-tuples.95        $ref: /schemas/types.yaml#/definitions/uint32-matrix96        items:97          items:98            -99              description: Sample width in bits100              minimum: 8101              maximum: 64102            -103              description: Slot width in bits104              minimum: 8105              maximum: 256106            -107              description: Slot count108              minimum: 1109              maximum: 64110 111  ports:112    $ref: "#/definitions/port-base"113    unevaluatedProperties: false114    patternProperties:115      "^port(@[0-9a-f]+)?$":116        $ref: "#/definitions/port-base"117        unevaluatedProperties: false118        patternProperties:119          "^endpoint(@[0-9a-f]+)?":120            $ref: "#/definitions/endpoint-base"121            unevaluatedProperties: false122 123allOf:124  - $ref: "#/definitions/port-base"125 126patternProperties:127  "^endpoint(@[0-9a-f]+)?":128    $ref: "#/definitions/endpoint-base"129    unevaluatedProperties: false130 131additionalProperties: true132