15bd5699cSMaxime Ripard# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25bd5699cSMaxime Ripard%YAML 1.2
35bd5699cSMaxime Ripard---
45bd5699cSMaxime Ripard$id: http://devicetree.org/schemas/sound/wlf,wm8978.yaml#
55bd5699cSMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
65bd5699cSMaxime Ripard
75bd5699cSMaxime Ripardtitle: Wolfson WM8978 Codec Device Tree Bindings
85bd5699cSMaxime Ripard
95bd5699cSMaxime Ripardmaintainers:
105bd5699cSMaxime Ripard  - patches@opensource.cirrus.com
115bd5699cSMaxime Ripard
125bd5699cSMaxime Ripardproperties:
135bd5699cSMaxime Ripard  '#sound-dai-cells':
145bd5699cSMaxime Ripard    const: 0
155bd5699cSMaxime Ripard
165bd5699cSMaxime Ripard  compatible:
175bd5699cSMaxime Ripard    const: wlf,wm8978
185bd5699cSMaxime Ripard
195bd5699cSMaxime Ripard  reg:
205bd5699cSMaxime Ripard    maxItems: 1
215bd5699cSMaxime Ripard
225bd5699cSMaxime Ripard  spi-max-frequency:
235bd5699cSMaxime Ripard    maximum: 526000
245bd5699cSMaxime Ripard
255bd5699cSMaxime Ripardrequired:
265bd5699cSMaxime Ripard  - '#sound-dai-cells'
275bd5699cSMaxime Ripard  - compatible
285bd5699cSMaxime Ripard  - reg
295bd5699cSMaxime Ripard
305bd5699cSMaxime RipardadditionalProperties: false
315bd5699cSMaxime Ripard
325bd5699cSMaxime Ripardexamples:
335bd5699cSMaxime Ripard  - |
345bd5699cSMaxime Ripard    spi {
355bd5699cSMaxime Ripard        #address-cells = <1>;
365bd5699cSMaxime Ripard        #size-cells = <0>;
375bd5699cSMaxime Ripard
385bd5699cSMaxime Ripard        codec@0 {
395bd5699cSMaxime Ripard            #sound-dai-cells = <0>;
405bd5699cSMaxime Ripard            compatible = "wlf,wm8978";
415bd5699cSMaxime Ripard            reg = <0>;
425bd5699cSMaxime Ripard            spi-max-frequency = <500000>;
435bd5699cSMaxime Ripard        };
445bd5699cSMaxime Ripard    };
455bd5699cSMaxime Ripard
465bd5699cSMaxime Ripard  - |
475bd5699cSMaxime Ripard    i2c {
485bd5699cSMaxime Ripard        #address-cells = <1>;
495bd5699cSMaxime Ripard        #size-cells = <0>;
505bd5699cSMaxime Ripard
51*9208d3caSGeert Uytterhoeven        codec@1a {
525bd5699cSMaxime Ripard            #sound-dai-cells = <0>;
535bd5699cSMaxime Ripard            compatible = "wlf,wm8978";
54*9208d3caSGeert Uytterhoeven            reg = <0x1a>;
555bd5699cSMaxime Ripard        };
565bd5699cSMaxime Ripard    };
575bd5699cSMaxime Ripard
585bd5699cSMaxime Ripard...
59