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


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
# 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>;
    };