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
14properties:
15  port:
16    description: single OF-Graph subnode
17    type: object
18    properties:
19      reg:
20        maxItems: 1
21      prefix:
22        description: "device name prefix"
23        $ref: /schemas/types.yaml#/definitions/string
24      convert-rate:
25        description: CPU to Codec rate convert.
26        $ref: /schemas/types.yaml#/definitions/uint32
27      convert-channels:
28        description: CPU to Codec rate channels.
29        $ref: /schemas/types.yaml#/definitions/uint32
30    patternProperties:
31      "^endpoint(@[0-9a-f]+)?":
32        type: object
33        properties:
34          remote-endpoint:
35            maxItems: 1
36          mclk-fs:
37            description: |
38              Multiplication factor between stream rate and codec mclk.
39              When defined, mclk-fs property defined in dai-link sub nodes are
40              ignored.
41            $ref: /schemas/types.yaml#/definitions/uint32
42          frame-inversion:
43            description: dai-link uses frame clock inversion
44            $ref: /schemas/types.yaml#/definitions/flag
45          bitclock-inversion:
46            description: dai-link uses bit clock inversion
47            $ref: /schemas/types.yaml#/definitions/flag
48          frame-master:
49            description: Indicates dai-link frame master.
50            $ref: /schemas/types.yaml#/definitions/phandle
51          bitclock-master:
52            description: Indicates dai-link bit clock master
53            $ref: /schemas/types.yaml#/definitions/phandle
54          dai-format:
55            description: audio format.
56            items:
57              enum:
58                - i2s
59                - right_j
60                - left_j
61                - dsp_a
62                - dsp_b
63                - ac97
64                - pdm
65                - msb
66                - lsb
67          convert-rate:
68            description: CPU to Codec rate convert.
69            $ref: /schemas/types.yaml#/definitions/uint32
70          convert-channels:
71            description: CPU to Codec rate channels.
72            $ref: /schemas/types.yaml#/definitions/uint32
73
74  ports:
75    description: multi OF-Graph subnode
76    type: object
77    patternProperties:
78      "^port(@[0-9a-f]+)?":
79        $ref: "#/properties/port"
80
81additionalProperties: true
82