18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/sound/rohm,bd28623.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: ROHM BD28623MUV Class D speaker amplifier for digital input
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cidescription:
108c2ecf20Sopenharmony_ci  This codec does not have any control buses such as I2C, it detect
118c2ecf20Sopenharmony_ci  format and rate of I2S signal automatically. It has two signals
128c2ecf20Sopenharmony_ci  that can be connected to GPIOs reset and mute.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cimaintainers:
158c2ecf20Sopenharmony_ci  - Katsuhiro Suzuki <katsuhiro@katsuster.net>
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciproperties:
188c2ecf20Sopenharmony_ci  compatible:
198c2ecf20Sopenharmony_ci    const: rohm,bd28623
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci  "#sound-dai-cells":
228c2ecf20Sopenharmony_ci    const: 0
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci  VCCA-supply:
258c2ecf20Sopenharmony_ci    description:
268c2ecf20Sopenharmony_ci      regulator phandle for the VCCA (for analog) power supply
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci  VCCP1-supply:
298c2ecf20Sopenharmony_ci    description:
308c2ecf20Sopenharmony_ci      regulator phandle for the VCCP1 (for ch1) power supply
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci  VCCP2-supply:
338c2ecf20Sopenharmony_ci    description:
348c2ecf20Sopenharmony_ci      regulator phandle for the VCCP2 (for ch2) power supply
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci  reset-gpios:
378c2ecf20Sopenharmony_ci    maxItems: 1
388c2ecf20Sopenharmony_ci    description:
398c2ecf20Sopenharmony_ci      GPIO specifier for the active low reset line
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci  mute-gpios:
428c2ecf20Sopenharmony_ci    maxItems: 1
438c2ecf20Sopenharmony_ci    description:
448c2ecf20Sopenharmony_ci      GPIO specifier for the active low mute line
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_cirequired:
478c2ecf20Sopenharmony_ci  - compatible
488c2ecf20Sopenharmony_ci  - VCCA-supply
498c2ecf20Sopenharmony_ci  - VCCP1-supply
508c2ecf20Sopenharmony_ci  - VCCP2-supply
518c2ecf20Sopenharmony_ci  - "#sound-dai-cells"
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ciadditionalProperties: false
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ciexamples:
568c2ecf20Sopenharmony_ci  - |
578c2ecf20Sopenharmony_ci    #include <dt-bindings/gpio/gpio.h>
588c2ecf20Sopenharmony_ci    codec {
598c2ecf20Sopenharmony_ci      compatible = "rohm,bd28623";
608c2ecf20Sopenharmony_ci      #sound-dai-cells = <0>;
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci      VCCA-supply = <&vcc_reg>;
638c2ecf20Sopenharmony_ci      VCCP1-supply = <&vcc_reg>;
648c2ecf20Sopenharmony_ci      VCCP2-supply = <&vcc_reg>;
658c2ecf20Sopenharmony_ci      reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
668c2ecf20Sopenharmony_ci      mute-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
678c2ecf20Sopenharmony_ci    };
68