Unverified Commit 7fbc4f5e authored by Abdulrasaq Lawani's avatar Abdulrasaq Lawani Committed by Mark Brown
Browse files

dt-bindings: sound: Convert max98088 to dtschema

parent a9c8ca5d
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
MAX98088 audio CODEC

This device supports I2C only.

Required properties:

- compatible: "maxim,max98088" or "maxim,max98089".
- reg: The I2C address of the device.

Optional properties:

- clocks: the clock provider of MCLK, see ../clock/clock-bindings.txt section
  "consumer" for more information.
- clock-names: must be set to "mclk"

Example:

max98089: codec@10 {
	compatible = "maxim,max98089";
	reg = <0x10>;
	clocks = <&clks IMX6QDL_CLK_CKO2>;
	clock-names = "mclk";
};
+47 −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/maxim,max98088.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MAX98088 audio CODEC

maintainers:
  - Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>

properties:
  compatible:
    enum:
      - maxim,max98088
      - maxim,max98089

  reg:
    maxItems: 1

  clocks:
    items:
      - description: master clock

  clock-names:
    items:
      - const: mclk

required:
  - compatible
  - reg

additionalProperties: false

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

        audio-codec@10 {
            compatible = "maxim,max98089";
            reg = <0x10>;
            clocks = <&clks 0>;
            clock-names = "mclk";
        };
    };