Skip to content

Commit 46f5c98

Browse files
krzkbroonie
authored andcommitted
ASoC: dt-bindings: maxim,max98095: Convert to dtschema
Convert the Maxim Integrated MAX98095 audio codec bindings to DT schema. Add missing sound-dai-cells during conversion. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230211134755.86061-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 66dc3b9 commit 46f5c98

2 files changed

Lines changed: 54 additions & 22 deletions

File tree

Documentation/devicetree/bindings/sound/max98095.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/maxim,max98095.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Maxim Integrated MAX98095 audio codec
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11+
12+
allOf:
13+
- $ref: dai-common.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- maxim,max98095
19+
20+
reg:
21+
maxItems: 1
22+
23+
clocks:
24+
items:
25+
- description: master clock
26+
27+
clock-names:
28+
items:
29+
- const: mclk
30+
31+
'#sound-dai-cells':
32+
const: 1
33+
34+
required:
35+
- compatible
36+
- reg
37+
38+
unevaluatedProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/interrupt-controller/irq.h>
43+
44+
i2c {
45+
#address-cells = <1>;
46+
#size-cells = <0>;
47+
48+
audio-codec@11 {
49+
compatible = "maxim,max98095";
50+
reg = <0x11>;
51+
clocks = <&i2s0 0>;
52+
clock-names = "mclk";
53+
};
54+
};

0 commit comments

Comments
 (0)