xref: /freebsd/sys/contrib/device-tree/Bindings/sound/richtek,rtq9128.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*84943d6fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*84943d6fSEmmanuel Vadot%YAML 1.2
3*84943d6fSEmmanuel Vadot---
4*84943d6fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/richtek,rtq9128.yaml#
5*84943d6fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*84943d6fSEmmanuel Vadot
7*84943d6fSEmmanuel Vadottitle: Richtek RTQ9128 Automative Audio Power Amplifier
8*84943d6fSEmmanuel Vadot
9*84943d6fSEmmanuel Vadotmaintainers:
10*84943d6fSEmmanuel Vadot  - ChiYuan Huang <cy_huang@richtek.com>
11*84943d6fSEmmanuel Vadot
12*84943d6fSEmmanuel Vadotdescription:
13*84943d6fSEmmanuel Vadot  The RTQ9128 is a ultra-low output noise, high-efficiency, four-channel
14*84943d6fSEmmanuel Vadot  class-D audio power amplifier and delivering 4x75W into 4OHm at 10%
15*84943d6fSEmmanuel Vadot  THD+N from a 25V supply in automotive applications.
16*84943d6fSEmmanuel Vadot
17*84943d6fSEmmanuel VadotallOf:
18*84943d6fSEmmanuel Vadot  - $ref: dai-common.yaml#
19*84943d6fSEmmanuel Vadot
20*84943d6fSEmmanuel Vadotproperties:
21*84943d6fSEmmanuel Vadot  compatible:
22*84943d6fSEmmanuel Vadot    enum:
23*84943d6fSEmmanuel Vadot      - richtek,rtq9128
24*84943d6fSEmmanuel Vadot
25*84943d6fSEmmanuel Vadot  reg:
26*84943d6fSEmmanuel Vadot    maxItems: 1
27*84943d6fSEmmanuel Vadot
28*84943d6fSEmmanuel Vadot  enable-gpios:
29*84943d6fSEmmanuel Vadot    maxItems: 1
30*84943d6fSEmmanuel Vadot
31*84943d6fSEmmanuel Vadot  richtek,tdm-input-data2-select:
32*84943d6fSEmmanuel Vadot    type: boolean
33*84943d6fSEmmanuel Vadot    description:
34*84943d6fSEmmanuel Vadot      By default, if TDM mode is used, TDM data input will select 'DATA1' pin
35*84943d6fSEmmanuel Vadot      as the data source. This option will configure TDM data input source from
36*84943d6fSEmmanuel Vadot      'DATA1' to 'DATA2' pin.
37*84943d6fSEmmanuel Vadot
38*84943d6fSEmmanuel Vadot  '#sound-dai-cells':
39*84943d6fSEmmanuel Vadot    const: 0
40*84943d6fSEmmanuel Vadot
41*84943d6fSEmmanuel Vadotrequired:
42*84943d6fSEmmanuel Vadot  - compatible
43*84943d6fSEmmanuel Vadot  - reg
44*84943d6fSEmmanuel Vadot  - '#sound-dai-cells'
45*84943d6fSEmmanuel Vadot
46*84943d6fSEmmanuel VadotunevaluatedProperties: false
47*84943d6fSEmmanuel Vadot
48*84943d6fSEmmanuel Vadotexamples:
49*84943d6fSEmmanuel Vadot  - |
50*84943d6fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
51*84943d6fSEmmanuel Vadot    i2c {
52*84943d6fSEmmanuel Vadot      #address-cells = <1>;
53*84943d6fSEmmanuel Vadot      #size-cells = <0>;
54*84943d6fSEmmanuel Vadot
55*84943d6fSEmmanuel Vadot      speaker@1a {
56*84943d6fSEmmanuel Vadot        compatible = "richtek,rtq9128";
57*84943d6fSEmmanuel Vadot        reg = <0x1a>;
58*84943d6fSEmmanuel Vadot        enable-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
59*84943d6fSEmmanuel Vadot        #sound-dai-cells = <0>;
60*84943d6fSEmmanuel Vadot      };
61*84943d6fSEmmanuel Vadot    };
62