xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/rohm,bd28623.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/sound/rohm,bd28623.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: ROHM BD28623MUV Class D speaker amplifier for digital input
8*4882a593Smuzhiyun
9*4882a593Smuzhiyundescription:
10*4882a593Smuzhiyun  This codec does not have any control buses such as I2C, it detect
11*4882a593Smuzhiyun  format and rate of I2S signal automatically. It has two signals
12*4882a593Smuzhiyun  that can be connected to GPIOs reset and mute.
13*4882a593Smuzhiyun
14*4882a593Smuzhiyunmaintainers:
15*4882a593Smuzhiyun  - Katsuhiro Suzuki <katsuhiro@katsuster.net>
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunproperties:
18*4882a593Smuzhiyun  compatible:
19*4882a593Smuzhiyun    const: rohm,bd28623
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun  "#sound-dai-cells":
22*4882a593Smuzhiyun    const: 0
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun  VCCA-supply:
25*4882a593Smuzhiyun    description:
26*4882a593Smuzhiyun      regulator phandle for the VCCA (for analog) power supply
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun  VCCP1-supply:
29*4882a593Smuzhiyun    description:
30*4882a593Smuzhiyun      regulator phandle for the VCCP1 (for ch1) power supply
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun  VCCP2-supply:
33*4882a593Smuzhiyun    description:
34*4882a593Smuzhiyun      regulator phandle for the VCCP2 (for ch2) power supply
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun  reset-gpios:
37*4882a593Smuzhiyun    maxItems: 1
38*4882a593Smuzhiyun    description:
39*4882a593Smuzhiyun      GPIO specifier for the active low reset line
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun  mute-gpios:
42*4882a593Smuzhiyun    maxItems: 1
43*4882a593Smuzhiyun    description:
44*4882a593Smuzhiyun      GPIO specifier for the active low mute line
45*4882a593Smuzhiyun
46*4882a593Smuzhiyunrequired:
47*4882a593Smuzhiyun  - compatible
48*4882a593Smuzhiyun  - VCCA-supply
49*4882a593Smuzhiyun  - VCCP1-supply
50*4882a593Smuzhiyun  - VCCP2-supply
51*4882a593Smuzhiyun  - "#sound-dai-cells"
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunadditionalProperties: false
54*4882a593Smuzhiyun
55*4882a593Smuzhiyunexamples:
56*4882a593Smuzhiyun  - |
57*4882a593Smuzhiyun    #include <dt-bindings/gpio/gpio.h>
58*4882a593Smuzhiyun    codec {
59*4882a593Smuzhiyun      compatible = "rohm,bd28623";
60*4882a593Smuzhiyun      #sound-dai-cells = <0>;
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun      VCCA-supply = <&vcc_reg>;
63*4882a593Smuzhiyun      VCCP1-supply = <&vcc_reg>;
64*4882a593Smuzhiyun      VCCP2-supply = <&vcc_reg>;
65*4882a593Smuzhiyun      reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
66*4882a593Smuzhiyun      mute-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
67*4882a593Smuzhiyun    };
68