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