Unverified Commit 054ac9c9 authored by Rayyan Ansari's avatar Rayyan Ansari Committed by Mark Brown
Browse files

ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema



Convert the Qualcomm MSM8916 WCD Digital Audio Codec bindings from text
to yaml dt schema format.
Make bindings complete by adding #sound-dai-cells.

Signed-off-by: default avatarRayyan Ansari <rayyan.ansari@linaro.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240710113833.39859-2-rayyan.ansari@linaro.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a8915e2f
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/qcom,msm8916-wcd-digital-codec.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm MSM8916 WCD Digital Audio Codec

maintainers:
  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

description:
  The digital WCD audio codec found on Qualcomm MSM8916 LPASS.

properties:
  compatible:
    const: qcom,msm8916-wcd-digital-codec

  reg:
    maxItems: 1

  clocks:
    maxItems: 2

  clock-names:
    items:
      - const: ahbix-clk
      - const: mclk

  '#sound-dai-cells':
    const: 1

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - '#sound-dai-cells'

allOf:
  - $ref: dai-common.yaml#

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/qcom,gcc-msm8916.h>
    audio-codec@771c000 {
        compatible = "qcom,msm8916-wcd-digital-codec";
        reg = <0x0771c000 0x400>;
        clocks = <&gcc GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK>,
                 <&gcc GCC_CODEC_DIGCODEC_CLK>;
        clock-names = "ahbix-clk", "mclk";
        #sound-dai-cells = <1>;
    };
+0 −20
Original line number Diff line number Diff line
msm8916 digital audio CODEC

## Bindings for codec core in lpass:

Required properties
 - compatible = "qcom,msm8916-wcd-digital-codec";
 - reg: address space for lpass codec.
 - clocks: Handle to mclk and ahbclk
 - clock-names: should be "mclk", "ahbix-clk".

Example:

audio-codec@771c000{
	compatible = "qcom,msm8916-wcd-digital-codec";
	reg = <0x0771c000 0x400>;
	clocks = <&gcc GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK>,
		 <&gcc GCC_CODEC_DIGCODEC_CLK>;
	clock-names = "ahbix-clk", "mclk";
	#sound-dai-cells = <1>;
};