xref: /linux/Documentation/devicetree/bindings/sound/neofidelity,ntp8918.yaml (revision 7f4f3b14e8079ecde096bd734af10e30d40c27b7)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/neofidelity,ntp8918.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NeoFidelity NTP8918 Amplifier
8
9maintainers:
10  - Igor Prusov <ivprusov@salutedevices.com>
11
12description:
13  The NTP8918 is a single chip full digital audio amplifier
14  including power stage for stereo amplifier system.
15  The NTP8918 is integrated with versatile digital audio signal
16  processing functions, high-performance, high-fidelity fully
17  digital PWM modulator and two high-power full-bridge MOSFET
18  power stages.
19
20allOf:
21  - $ref: dai-common.yaml#
22
23properties:
24  compatible:
25    enum:
26      - neofidelity,ntp8918
27
28  reg:
29    enum:
30      - 0x2a
31      - 0x2b
32      - 0x2c
33      - 0x2d
34
35  reset-gpios:
36    maxItems: 1
37
38  '#sound-dai-cells':
39    const: 0
40
41  clocks:
42    maxItems: 3
43
44  clock-names:
45    items:
46      - const: wck
47      - const: scl
48      - const: bck
49
50required:
51  - compatible
52  - reg
53
54unevaluatedProperties: false
55
56examples:
57  - |
58   #include <dt-bindings/gpio/gpio.h>
59   i2c {
60     #address-cells = <1>;
61     #size-cells = <0>;
62     audio-codec@2a {
63       compatible = "neofidelity,ntp8918";
64       #sound-dai-cells = <0>;
65       reg = <0x2a>;
66       clocks = <&clkc 150>, <&clkc 151>, <&clkc 152>;
67       clock-names =  "wck", "scl", "bck";
68       reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
69    };
70   };
71