File Index
Files and directories
Sign in
FILE

asahi-kasei,ak4458.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/sound/asahi-kasei,ak4458.yaml YAML
 1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
 2%YAML 1.2
 3---
 4$id: http://devicetree.org/schemas/sound/asahi-kasei,ak4458.yaml#
 5$schema: http://devicetree.org/meta-schemas/core.yaml#
 6
 7title: AK4458 audio DAC
 8
 9maintainers:
10  - Shengjiu Wang <shengjiu.wang@nxp.com>
11
12properties:
13  compatible:
14    enum:
15      - asahi-kasei,ak4458
16      - asahi-kasei,ak4497
17
18  "#sound-dai-cells":
19    const: 0
20
21  reg:
22    maxItems: 1
23
24  AVDD-supply:
25    description: Analog power supply
26
27  DVDD-supply:
28    description: Digital power supply
29
30  reset-gpios:
31    maxItems: 1
32
33  mute-gpios:
34    maxItems: 1
35    description:
36      GPIO used to mute all the outputs
37
38  dsd-path:
39    description: Select DSD input pins for ak4497
40    $ref: /schemas/types.yaml#/definitions/uint32
41    oneOf:
42      - const: 0
43        description: "select #16, #17, #19 pins"
44      - const: 1
45        description: "select #3, #4, #5 pins"
46
47required:
48  - compatible
49  - reg
50
51allOf:
52  - $ref: dai-common.yaml#
53  - if:
54      properties:
55        compatible:
56          contains:
57            const: asahi-kasei,ak4458
58
59    then:
60      properties:
61        dsd-path: false
62
63unevaluatedProperties: false
64
65examples:
66  - |
67    #include <dt-bindings/gpio/gpio.h>
68    i2c {
69        #address-cells = <1>;
70        #size-cells = <0>;
71        codec@10 {
72            compatible = "asahi-kasei,ak4458";
73            reg = <0x10>;
74            reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
75            mute-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
76        };
77    };
~/ Read-only file preview.