Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
60 i2c {
61 #address-cells = <1>;
62 #size-cells = <0>;
63
64 audio-codec@2a {
65 compatible = "neofidelity,ntp8918";
66 #sound-dai-cells = <0>;
67 reg = <0x2a>;
68 clocks = <&clkc 150>, <&clkc 151>, <&clkc 152>;
69 clock-names = "wck", "scl", "bck";
70 reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
71 };
72 };