summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/ak4375.yaml
blob: 5f0fc584bb38dca5c63611ae7e81686c76977c10 (plain)
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
56
57
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/ak4375.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: AK4375 DAC and headphones amplifier

maintainers:
  - Vincent Knecht <vincent.knecht@mailoo.org>

properties:
  compatible:
    const: asahi-kasei,ak4375

  reg:
    maxItems: 1

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

  avdd-supply:
    description: regulator phandle for the AVDD power supply.

  tvdd-supply:
    description: regulator phandle for the TVDD power supply.

  pdn-gpios:
    description: optional GPIO to set the PDN pin.

required:
  - compatible
  - reg
  - '#sound-dai-cells'
  - avdd-supply
  - tvdd-supply

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    i2c {
      #address-cells = <1>;
      #size-cells = <0>;

      headphones: audio-codec@10 {
        compatible = "asahi-kasei,ak4375";
        reg = <0x10>;
        avdd-supply = <&reg_headphones_avdd>;
        tvdd-supply = <&pm8916_l6>;
        pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
        pinctrl-names = "default";
        pinctrl-0 = <&headphones_pdn_default>;
        #sound-dai-cells = <0>;
      };
    };