linux-loongson/Documentation/devicetree/bindings/sound/everest,es8328.yaml
Krzysztof Kozlowski 8243a49145
ASoC: dt-bindings: everest,es8328: Require reg property
ES8328 and ES8388 codecs are I2C or SPI devices, thus they are
addressable on their bus and 'reg' property should be always provided.
Requiring 'reg' is pretty close to redundant, because the I2C and SPI
controller/bus bindings require it already, but the convention is to
mention 'reg' also in the device schemas.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250304103808.75236-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-03-04 12:27:13 +00:00

87 lines
1.7 KiB
YAML

# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/everest,es8328.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Everest ES8328 audio CODEC
description:
Everest Audio Codec, which can be connected via I2C or SPI.
Pins on the device (for linking into audio routes) are
* LOUT1
* LOUT2
* ROUT1
* ROUT2
* LINPUT1
* RINPUT1
* LINPUT2
* RINPUT2
* Mic Bias
maintainers:
- David Yang <yangxiaohua@everest-semi.com>
properties:
compatible:
oneOf:
- enum:
- everest,es8328
- items:
- enum:
- everest,es8388
- const: everest,es8328
reg:
maxItems: 1
"#sound-dai-cells":
const: 0
clocks:
items:
- description: A 22.5792 or 11.2896 MHz clock
DVDD-supply:
description: Regulator providing digital core supply voltage 1.8 - 3.6V
AVDD-supply:
description: Regulator providing analog supply voltage 3.3V
PVDD-supply:
description: Regulator providing digital IO supply voltage 1.8 - 3.6V
HPVDD-supply:
description: Regulator providing analog output voltage 3.3V
port:
$ref: audio-graph-port.yaml#
unevaluatedProperties: false
required:
- compatible
- reg
- clocks
- DVDD-supply
- AVDD-supply
- PVDD-supply
- HPVDD-supply
additionalProperties: false
examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
es8328: codec@11 {
compatible = "everest,es8328";
reg = <0x11>;
AVDD-supply = <&reg_3p3v>;
DVDD-supply = <&reg_3p3v>;
HPVDD-supply = <&reg_3p3v>;
PVDD-supply = <&reg_3p3v>;
clocks = <&clks 169>;
};
};