xref: /freebsd/sys/contrib/device-tree/Bindings/sound/audio-graph-port.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
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' Node Bindings
8
9maintainers:
10  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
11
12select: false
13
14allOf:
15  - $ref: /schemas/graph.yaml#/$defs/port-base
16
17properties:
18  prefix:
19    description: "device name prefix"
20    $ref: /schemas/types.yaml#/definitions/string
21  convert-rate:
22    description: CPU to Codec rate convert.
23    $ref: /schemas/types.yaml#/definitions/uint32
24  convert-channels:
25    description: CPU to Codec rate channels.
26    $ref: /schemas/types.yaml#/definitions/uint32
27patternProperties:
28  "^endpoint(@[0-9a-f]+)?":
29    $ref: /schemas/graph.yaml#/$defs/endpoint-base
30    properties:
31      mclk-fs:
32        description: |
33          Multiplication factor between stream rate and codec mclk.
34          When defined, mclk-fs property defined in dai-link sub nodes are
35          ignored.
36        $ref: /schemas/types.yaml#/definitions/uint32
37      frame-inversion:
38        description: dai-link uses frame clock inversion
39        $ref: /schemas/types.yaml#/definitions/flag
40      bitclock-inversion:
41        description: dai-link uses bit clock inversion
42        $ref: /schemas/types.yaml#/definitions/flag
43      frame-master:
44        description: Indicates dai-link frame master.
45        $ref: /schemas/types.yaml#/definitions/phandle
46      bitclock-master:
47        description: Indicates dai-link bit clock master
48        $ref: /schemas/types.yaml#/definitions/phandle
49      dai-format:
50        description: audio format.
51        items:
52          enum:
53            - i2s
54            - right_j
55            - left_j
56            - dsp_a
57            - dsp_b
58            - ac97
59            - pdm
60            - msb
61            - lsb
62      convert-rate:
63        description: CPU to Codec rate convert.
64        $ref: /schemas/types.yaml#/definitions/uint32
65      convert-channels:
66        description: CPU to Codec rate channels.
67        $ref: /schemas/types.yaml#/definitions/uint32
68
69additionalProperties: true
70