Unverified Commit 457b6587 authored by Weidong Wang's avatar Weidong Wang Committed by Mark Brown
Browse files

ASoC: dt-bindings: Add schema for "awinic,aw87390"



Add a DT schema for describing awinic aw87390 audio amplifiers.
They are controlled using I2C.

Signed-off-by: default avatarWeidong Wang <wangweidong.a@awinic.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230928105727.47273-3-wangweidong.a@awinic.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b99d8d8a
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/awinic,aw87390.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Awinic Aw87390 Audio Amplifier

maintainers:
  - Weidong Wang <wangweidong.a@awinic.com>

description:
  The awinic aw87390 is specifically designed to improve
  the musical output dynamic range, enhance the overall
  sound quallity, which is a new high efficiency, low
  noise, constant large volume, 6th Smart K audio amplifier.

allOf:
  - $ref: dai-common.yaml#

properties:
  compatible:
    const: awinic,aw87390

  reg:
    maxItems: 1

  "#sound-dai-cells":
    const: 0

  awinic,audio-channel:
    description:
      It is used to distinguish multiple PA devices, so that different
      configurations can be loaded to different PA devices
    $ref: /schemas/types.yaml#/definitions/uint32
    minimum: 0
    maximum: 7

required:
  - compatible
  - reg
  - "#sound-dai-cells"
  - awinic,audio-channel

unevaluatedProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
        audio-codec@58 {
            compatible = "awinic,aw87390";
            reg = <0x58>;
            #sound-dai-cells = <0>;
            awinic,audio-channel = <0>;
        };
    };