On Mon, Jan 24, 2022 at 06:03:35PM +0100, Krzysztof Kozlowski wrote:
Convert the audio complex on Google Snow boards with Samsung Exynos SoC to DT schema format.
Signed-off-by: Krzysztof Kozlowski krzysztof.kozlowski@canonical.com
TODO: The DTS do not pass cleanly. cpu/sound-dai should be fixed.
.../bindings/sound/samsung,snow.yaml | 78 +++++++++++++++++++ .../devicetree/bindings/sound/snow.txt | 31 -------- 2 files changed, 78 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/samsung,snow.yaml delete mode 100644 Documentation/devicetree/bindings/sound/snow.txt
diff --git a/Documentation/devicetree/bindings/sound/samsung,snow.yaml b/Documentation/devicetree/bindings/sound/samsung,snow.yaml new file mode 100644 index 000000000000..df969b384839 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,snow.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,snow.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml#
+title: Google Snow audio complex with MAX9809x codec
+maintainers:
- Krzysztof Kozlowski krzysztof.kozlowski@canonical.com
- Sylwester Nawrocki s.nawrocki@samsung.com
+properties:
- compatible:
- enum:
- google,snow-audio-max98090
- google,snow-audio-max98091
- google,snow-audio-max98095
- codec:
- type: object
- properties:
sound-dai:
description: List of phandles to the CODEC and HDMI IP nodes.
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
- description: Phandle to the MAX98090, MAX98091 or MAX98095 CODEC.
- description: Phandle to the HDMI IP block node.
Thinking about this and the issue you raised some more, we should make sure there's a common definition for sound-dai. And then here, it should just be the number of entries ('maxItems: 1').
Rob