99 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/maxim,max98925.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Maxim Integrated MAX98925/MAX98926/MAX98927 speaker amplifier8 9maintainers:10 - Ryan Lee <ryans.lee@maximintegrated.com>11 12properties:13 compatible:14 enum:15 - maxim,max9892516 - maxim,max9892617 - maxim,max9892718 19 reg:20 maxItems: 121 22 reset-gpios:23 maxItems: 124 25 '#sound-dai-cells':26 const: 027 28 vmon-slot-no:29 $ref: /schemas/types.yaml#/definitions/uint3230 minimum: 031 maximum: 3032 default: 033 description:34 Slot number used to send voltage information or in inteleave mode this35 will be used as interleave slot.36 37 imon-slot-no:38 $ref: /schemas/types.yaml#/definitions/uint3239 minimum: 040 maximum: 3041 default: 042 description:43 Slot number used to send current information.44 45 maxim,interleave-mode:46 type: boolean47 description:48 When using two MAX9892X in a system it is possible to create ADC data49 that will overflow the frame size. When enabled, the Digital Audio50 Interleave mode provides a means to output VMON and IMON data from two51 devices on a single DOUT line when running smaller frames sizes such as52 32 BCLKS per LRCLK or 48 BCLKS per LRCLK.53 54required:55 - compatible56 - reg57 58allOf:59 - $ref: dai-common.yaml#60 - if:61 properties:62 compatible:63 contains:64 enum:65 - maxim,max9892766 then:67 properties:68 vmon-slot-no:69 minimum: 070 maximum: 1571 72 imon-slot-no:73 minimum: 074 maximum: 1575 76additionalProperties: false77 78examples:79 - |80 i2c {81 #address-cells = <1>;82 #size-cells = <0>;83 84 #include <dt-bindings/gpio/gpio.h>85 audio-codec@3a {86 compatible = "maxim,max98927";87 reg = <0x3a>;88 #sound-dai-cells = <0>;89 90 pinctrl-0 = <&speaker_default>;91 pinctrl-names = "default";92 93 reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;94 95 vmon-slot-no = <1>;96 imon-slot-no = <0>;97 };98 };99