xref: /freebsd/sys/contrib/device-tree/Bindings/sound/neofidelity,ntp8835.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5f62a964SEmmanuel Vadot%YAML 1.2
3*5f62a964SEmmanuel Vadot---
4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/neofidelity,ntp8835.yaml#
5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5f62a964SEmmanuel Vadot
7*5f62a964SEmmanuel Vadottitle: NeoFidelity NTP8835/NTP8835C Amplifiers
8*5f62a964SEmmanuel Vadot
9*5f62a964SEmmanuel Vadotmaintainers:
10*5f62a964SEmmanuel Vadot  - Igor Prusov <ivprusov@salutedevices.com>
11*5f62a964SEmmanuel Vadot
12*5f62a964SEmmanuel Vadotdescription: |
13*5f62a964SEmmanuel Vadot  The NTP8835 is a single chip full digital audio amplifier
14*5f62a964SEmmanuel Vadot  including power stages for stereo amplifier systems.
15*5f62a964SEmmanuel Vadot  NTP8835 is integrated with versatile digital audio signal
16*5f62a964SEmmanuel Vadot  processing functions, high-performance, high-fidelity fully
17*5f62a964SEmmanuel Vadot  digital PWM modulator and two high-power full-bridge MOSFET
18*5f62a964SEmmanuel Vadot  power stages. NTP8835C has identical programming interface,
19*5f62a964SEmmanuel Vadot  but has different output signal characteristics.
20*5f62a964SEmmanuel Vadot
21*5f62a964SEmmanuel VadotallOf:
22*5f62a964SEmmanuel Vadot  - $ref: dai-common.yaml#
23*5f62a964SEmmanuel Vadot
24*5f62a964SEmmanuel Vadotproperties:
25*5f62a964SEmmanuel Vadot  compatible:
26*5f62a964SEmmanuel Vadot    enum:
27*5f62a964SEmmanuel Vadot      - neofidelity,ntp8835
28*5f62a964SEmmanuel Vadot      - neofidelity,ntp8835c
29*5f62a964SEmmanuel Vadot
30*5f62a964SEmmanuel Vadot  reg:
31*5f62a964SEmmanuel Vadot    enum:
32*5f62a964SEmmanuel Vadot      - 0x2a
33*5f62a964SEmmanuel Vadot      - 0x2b
34*5f62a964SEmmanuel Vadot      - 0x2c
35*5f62a964SEmmanuel Vadot      - 0x2d
36*5f62a964SEmmanuel Vadot
37*5f62a964SEmmanuel Vadot  reset-gpios:
38*5f62a964SEmmanuel Vadot    maxItems: 1
39*5f62a964SEmmanuel Vadot
40*5f62a964SEmmanuel Vadot  '#sound-dai-cells':
41*5f62a964SEmmanuel Vadot    const: 0
42*5f62a964SEmmanuel Vadot
43*5f62a964SEmmanuel Vadot  clocks:
44*5f62a964SEmmanuel Vadot    maxItems: 4
45*5f62a964SEmmanuel Vadot
46*5f62a964SEmmanuel Vadot  clock-names:
47*5f62a964SEmmanuel Vadot    items:
48*5f62a964SEmmanuel Vadot      - const: wck
49*5f62a964SEmmanuel Vadot      - const: bck
50*5f62a964SEmmanuel Vadot      - const: scl
51*5f62a964SEmmanuel Vadot      - const: mclk
52*5f62a964SEmmanuel Vadot
53*5f62a964SEmmanuel Vadotrequired:
54*5f62a964SEmmanuel Vadot  - compatible
55*5f62a964SEmmanuel Vadot  - reg
56*5f62a964SEmmanuel Vadot
57*5f62a964SEmmanuel VadotunevaluatedProperties: false
58*5f62a964SEmmanuel Vadot
59*5f62a964SEmmanuel Vadotexamples:
60*5f62a964SEmmanuel Vadot  - |
61*5f62a964SEmmanuel Vadot   #include <dt-bindings/gpio/gpio.h>
62*5f62a964SEmmanuel Vadot    i2c {
63*5f62a964SEmmanuel Vadot      #address-cells = <1>;
64*5f62a964SEmmanuel Vadot      #size-cells = <0>;
65*5f62a964SEmmanuel Vadot      audio-codec@2b {
66*5f62a964SEmmanuel Vadot        compatible = "neofidelity,ntp8835";
67*5f62a964SEmmanuel Vadot        #sound-dai-cells = <0>;
68*5f62a964SEmmanuel Vadot        reg = <0x2b>;
69*5f62a964SEmmanuel Vadot        reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
70*5f62a964SEmmanuel Vadot        clocks = <&clkc 551>, <&clkc 552>, <&clkc 553>, <&clkc 554>;
71*5f62a964SEmmanuel Vadot        clock-names = "wck", "bck", "scl", "mclk";
72*5f62a964SEmmanuel Vadot      };
73*5f62a964SEmmanuel Vadot    };
74