Skip to content

Commit ee3f77a

Browse files
committed
ASoC: dt-bindings: convert qcom sound bindings to
Merge series from Rayyan Ansari <[email protected]>: These patches convert the remaining plain text bindings for Qualcomm sound drivers to dt schema, so device trees can be validated against them.
2 parents 1ee45e6 + 3cbda25 commit ee3f77a

File tree

4 files changed

+56
-148
lines changed

4 files changed

+56
-148
lines changed

Documentation/devicetree/bindings/sound/qcom,apq8096.txt

Lines changed: 0 additions & 128 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/qcom,msm8916-wcd-digital-codec.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm MSM8916 WCD Digital Audio Codec
8+
9+
maintainers:
10+
- Srinivas Kandagatla <[email protected]>
11+
12+
description:
13+
The digital WCD audio codec found on Qualcomm MSM8916 LPASS.
14+
15+
properties:
16+
compatible:
17+
const: qcom,msm8916-wcd-digital-codec
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 2
24+
25+
clock-names:
26+
items:
27+
- const: ahbix-clk
28+
- const: mclk
29+
30+
'#sound-dai-cells':
31+
const: 1
32+
33+
required:
34+
- compatible
35+
- reg
36+
- clocks
37+
- clock-names
38+
- '#sound-dai-cells'
39+
40+
allOf:
41+
- $ref: dai-common.yaml#
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/clock/qcom,gcc-msm8916.h>
48+
audio-codec@771c000 {
49+
compatible = "qcom,msm8916-wcd-digital-codec";
50+
reg = <0x0771c000 0x400>;
51+
clocks = <&gcc GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK>,
52+
<&gcc GCC_CODEC_DIGCODEC_CLK>;
53+
clock-names = "ahbix-clk", "mclk";
54+
#sound-dai-cells = <1>;
55+
};

Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

Documentation/devicetree/bindings/sound/qcom,sm8250.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ properties:
2828
- const: qcom,sm8450-sndcard
2929
- enum:
3030
- qcom,apq8016-sbc-sndcard
31+
- qcom,apq8096-sndcard
3132
- qcom,msm8916-qdsp6-sndcard
3233
- qcom,qcm6490-idp-sndcard
3334
- qcom,qcs6490-rb3gen2-sndcard

0 commit comments

Comments
 (0)