xref: /freebsd/sys/contrib/device-tree/Bindings/sound/rohm,bd28623.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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
7title: ROHM BD28623MUV Class D speaker amplifier for digital input
8
9description:
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
14maintainers:
15  - Katsuhiro Suzuki <katsuhiro@katsuster.net>
16
17properties:
18  compatible:
19    const: rohm,bd28623
20
21  "#sound-dai-cells":
22    const: 0
23
24  VCCA-supply:
25    description:
26      regulator phandle for the VCCA (for analog) power supply
27
28  VCCP1-supply:
29    description:
30      regulator phandle for the VCCP1 (for ch1) power supply
31
32  VCCP2-supply:
33    description:
34      regulator phandle for the VCCP2 (for ch2) power supply
35
36  reset-gpios:
37    maxItems: 1
38    description:
39      GPIO specifier for the active low reset line
40
41  mute-gpios:
42    maxItems: 1
43    description:
44      GPIO specifier for the active low mute line
45
46required:
47  - compatible
48  - VCCA-supply
49  - VCCP1-supply
50  - VCCP2-supply
51  - "#sound-dai-cells"
52
53additionalProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/gpio/gpio.h>
58    codec {
59      compatible = "rohm,bd28623";
60      #sound-dai-cells = <0>;
61
62      VCCA-supply = <&vcc_reg>;
63      VCCP1-supply = <&vcc_reg>;
64      VCCP2-supply = <&vcc_reg>;
65      reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
66      mute-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
67    };
68