mirror of
https://github.com/torvalds/linux.git
synced 2026-04-24 09:35:52 -04:00
snd_soc_daifmt_parse_clock_provider_raw() is handling both bitclock/frame-master, and is supporting both flag/phandle. Current DT is assuming it is flag style. This patch allows both case. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20211216000018.2641925-1-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
75 lines
2.2 KiB
YAML
75 lines
2.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/audio-graph-port.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Audio Graph Card 'port' Node Bindings
|
|
|
|
maintainers:
|
|
- Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
|
|
|
select: false
|
|
|
|
allOf:
|
|
- $ref: /schemas/graph.yaml#/$defs/port-base
|
|
|
|
properties:
|
|
prefix:
|
|
description: "device name prefix"
|
|
$ref: /schemas/types.yaml#/definitions/string
|
|
convert-rate:
|
|
description: CPU to Codec rate convert.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
convert-channels:
|
|
description: CPU to Codec rate channels.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
patternProperties:
|
|
"^endpoint(@[0-9a-f]+)?":
|
|
$ref: /schemas/graph.yaml#/$defs/endpoint-base
|
|
properties:
|
|
mclk-fs:
|
|
description: |
|
|
Multiplication factor between stream rate and codec mclk.
|
|
When defined, mclk-fs property defined in dai-link sub nodes are
|
|
ignored.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
frame-inversion:
|
|
description: dai-link uses frame clock inversion
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
bitclock-inversion:
|
|
description: dai-link uses bit clock inversion
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
frame-master:
|
|
description: Indicates dai-link frame master.
|
|
oneOf:
|
|
- $ref: /schemas/types.yaml#/definitions/flag
|
|
- $ref: /schemas/types.yaml#/definitions/phandle
|
|
bitclock-master:
|
|
description: Indicates dai-link bit clock master
|
|
oneOf:
|
|
- $ref: /schemas/types.yaml#/definitions/flag
|
|
- $ref: /schemas/types.yaml#/definitions/phandle
|
|
|
|
dai-format:
|
|
description: audio format.
|
|
items:
|
|
enum:
|
|
- i2s
|
|
- right_j
|
|
- left_j
|
|
- dsp_a
|
|
- dsp_b
|
|
- ac97
|
|
- pdm
|
|
- msb
|
|
- lsb
|
|
convert-rate:
|
|
description: CPU to Codec rate convert.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
convert-channels:
|
|
description: CPU to Codec rate channels.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
additionalProperties: true
|