xref: /freebsd/sys/contrib/device-tree/Bindings/sound/wlf,wm8978.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/wlf,wm8978.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Wolfson WM8978 Codec
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - patches@opensource.cirrus.com
118cc087a1SEmmanuel Vadot
12*8bab661aSEmmanuel VadotallOf:
13*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
14*8bab661aSEmmanuel Vadot
158cc087a1SEmmanuel Vadotproperties:
168cc087a1SEmmanuel Vadot  '#sound-dai-cells':
178cc087a1SEmmanuel Vadot    const: 0
188cc087a1SEmmanuel Vadot
198cc087a1SEmmanuel Vadot  compatible:
208cc087a1SEmmanuel Vadot    const: wlf,wm8978
218cc087a1SEmmanuel Vadot
228cc087a1SEmmanuel Vadot  reg:
238cc087a1SEmmanuel Vadot    maxItems: 1
248cc087a1SEmmanuel Vadot
258cc087a1SEmmanuel Vadot  spi-max-frequency:
268cc087a1SEmmanuel Vadot    maximum: 526000
278cc087a1SEmmanuel Vadot
288cc087a1SEmmanuel Vadotrequired:
298cc087a1SEmmanuel Vadot  - '#sound-dai-cells'
308cc087a1SEmmanuel Vadot  - compatible
318cc087a1SEmmanuel Vadot  - reg
328cc087a1SEmmanuel Vadot
33*8bab661aSEmmanuel VadotunevaluatedProperties: false
348cc087a1SEmmanuel Vadot
358cc087a1SEmmanuel Vadotexamples:
368cc087a1SEmmanuel Vadot  - |
378cc087a1SEmmanuel Vadot    spi {
388cc087a1SEmmanuel Vadot        #address-cells = <1>;
398cc087a1SEmmanuel Vadot        #size-cells = <0>;
408cc087a1SEmmanuel Vadot
418cc087a1SEmmanuel Vadot        codec@0 {
428cc087a1SEmmanuel Vadot            #sound-dai-cells = <0>;
438cc087a1SEmmanuel Vadot            compatible = "wlf,wm8978";
448cc087a1SEmmanuel Vadot            reg = <0>;
458cc087a1SEmmanuel Vadot            spi-max-frequency = <500000>;
468cc087a1SEmmanuel Vadot        };
478cc087a1SEmmanuel Vadot    };
488cc087a1SEmmanuel Vadot
498cc087a1SEmmanuel Vadot  - |
508cc087a1SEmmanuel Vadot    i2c {
518cc087a1SEmmanuel Vadot        #address-cells = <1>;
528cc087a1SEmmanuel Vadot        #size-cells = <0>;
538cc087a1SEmmanuel Vadot
548cc087a1SEmmanuel Vadot        codec@1a {
558cc087a1SEmmanuel Vadot            #sound-dai-cells = <0>;
568cc087a1SEmmanuel Vadot            compatible = "wlf,wm8978";
578cc087a1SEmmanuel Vadot            reg = <0x1a>;
588cc087a1SEmmanuel Vadot        };
598cc087a1SEmmanuel Vadot    };
608cc087a1SEmmanuel Vadot
618cc087a1SEmmanuel Vadot...
62