3fda85324b
Rename name-prefix.yaml into common DAI schema and document '#sound-dai-cells' for completeness. The '#sound-dai-cells' cannot be really constrained, as there are users with value of 0, 1 and 2, but at least it brings definition to one common place. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221203160442.69594-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
71 lines
1.2 KiB
YAML
71 lines
1.2 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/amlogic,t9015.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Amlogic T9015 Internal Audio DAC
|
|
|
|
maintainers:
|
|
- Jerome Brunet <jbrunet@baylibre.com>
|
|
|
|
allOf:
|
|
- $ref: dai-common.yaml#
|
|
|
|
properties:
|
|
$nodename:
|
|
pattern: "^audio-controller@.*"
|
|
|
|
"#sound-dai-cells":
|
|
const: 0
|
|
|
|
compatible:
|
|
items:
|
|
- const: amlogic,t9015
|
|
|
|
clocks:
|
|
items:
|
|
- description: Peripheral clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: pclk
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
AVDD-supply:
|
|
description:
|
|
Analogue power supply.
|
|
|
|
sound-name-prefix: true
|
|
|
|
required:
|
|
- "#sound-dai-cells"
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
- clock-names
|
|
- resets
|
|
- AVDD-supply
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/g12a-clkc.h>
|
|
#include <dt-bindings/reset/amlogic,meson-g12a-reset.h>
|
|
|
|
acodec: audio-controller@32000 {
|
|
compatible = "amlogic,t9015";
|
|
reg = <0x32000 0x14>;
|
|
#sound-dai-cells = <0>;
|
|
clocks = <&clkc CLKID_AUDIO_CODEC>;
|
|
clock-names = "pclk";
|
|
resets = <&reset RESET_AUDIO_CODEC>;
|
|
AVDD-supply = <&vddao_1v8>;
|
|
};
|