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