summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/asahi-kasei,ak4458.yaml
blob: 4477f84b7acc0e86dfb0087d4f4f2990ce5036f4 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/asahi-kasei,ak4458.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: AK4458 audio DAC

maintainers:
  - Shengjiu Wang <shengjiu.wang@nxp.com>

properties:
  compatible:
    enum:
      - asahi-kasei,ak4458
      - asahi-kasei,ak4497

  reg:
    maxItems: 1

  avdd-supply:
    description: Analog power supply

  dvdd-supply:
    description: Digital power supply

  reset-gpios:
    maxItems: 1

  mute-gpios:
    maxItems: 1
    description:
      GPIO used to mute all the outputs

  dsd-path:
    description: Select DSD input pins for ak4497
    $ref: /schemas/types.yaml#/definitions/uint32
    oneOf:
      - const: 0
        description: "select #16, #17, #19 pins"
      - const: 1
        description: "select #3, #4, #5 pins"

required:
  - compatible
  - reg

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: asahi-kasei,ak4458

    then:
      properties:
        dsd-path: false

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
        codec@10 {
            compatible = "asahi-kasei,ak4458";
            reg = <0x10>;
            reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
            mute-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
        };
    };