Unverified Commit 677e3ab7 authored by Kiseok Jo's avatar Kiseok Jo Committed by Mark Brown
Browse files

ASoC: dt-bindings: irondevice,sma1303: Rework binding and add missing properties



Add the missing properties as compatible, reg, sound-dai-cells.
And then check this file using 'make dt_binding_check'.

Signed-off-by: default avatarKiseok Jo <kiseok.jo@irondevice.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230208092420.5037-8-kiseok.jo@irondevice.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1f5ffd57
Loading
Loading
Loading
Loading
+20 −3
Original line number Diff line number Diff line
@@ -10,22 +10,39 @@ maintainers:
  - Kiseok Jo <kiseok.jo@irondevice.com>

description:
  SMA1303 digital class-D audio amplifier with an integrated boost converter.
  SMA1303 digital class-D audio amplifier
  with an integrated boost converter.

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

properties:
  compatible:
    enum:
      - irondevice,sma1303

  reg:
    maxItems: 1

  '#sound-dai-cells':
    const: 1

required:
  - compatible
  - reg
  - '#sound-dai-cells'

additionalProperties: false

examples:
  - |
    i2c_bus {
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        amplifier@1e {
            compatible = "irondevice,sma1303";
            reg = <0x1e>;
            #sound-dai-cells = <1>;
        };
    };