1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*d5b0e70fSEmmanuel Vadot%YAML 1.2 3*d5b0e70fSEmmanuel Vadot--- 4*d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/wlf,wm8940.yaml# 5*d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*d5b0e70fSEmmanuel Vadot 7*d5b0e70fSEmmanuel Vadottitle: Wolfson WM8940 Codec Device Tree Bindings 8*d5b0e70fSEmmanuel Vadot 9*d5b0e70fSEmmanuel Vadotmaintainers: 10*d5b0e70fSEmmanuel Vadot - patches@opensource.cirrus.com 11*d5b0e70fSEmmanuel Vadot 12*d5b0e70fSEmmanuel Vadotproperties: 13*d5b0e70fSEmmanuel Vadot '#sound-dai-cells': 14*d5b0e70fSEmmanuel Vadot const: 0 15*d5b0e70fSEmmanuel Vadot 16*d5b0e70fSEmmanuel Vadot compatible: 17*d5b0e70fSEmmanuel Vadot const: wlf,wm8940 18*d5b0e70fSEmmanuel Vadot 19*d5b0e70fSEmmanuel Vadot reg: 20*d5b0e70fSEmmanuel Vadot maxItems: 1 21*d5b0e70fSEmmanuel Vadot 22*d5b0e70fSEmmanuel Vadot spi-max-frequency: 23*d5b0e70fSEmmanuel Vadot maximum: 526000 24*d5b0e70fSEmmanuel Vadot 25*d5b0e70fSEmmanuel Vadotrequired: 26*d5b0e70fSEmmanuel Vadot - '#sound-dai-cells' 27*d5b0e70fSEmmanuel Vadot - compatible 28*d5b0e70fSEmmanuel Vadot - reg 29*d5b0e70fSEmmanuel Vadot 30*d5b0e70fSEmmanuel VadotadditionalProperties: false 31*d5b0e70fSEmmanuel Vadot 32*d5b0e70fSEmmanuel Vadotexamples: 33*d5b0e70fSEmmanuel Vadot - | 34*d5b0e70fSEmmanuel Vadot spi { 35*d5b0e70fSEmmanuel Vadot #address-cells = <1>; 36*d5b0e70fSEmmanuel Vadot #size-cells = <0>; 37*d5b0e70fSEmmanuel Vadot 38*d5b0e70fSEmmanuel Vadot codec@0 { 39*d5b0e70fSEmmanuel Vadot #sound-dai-cells = <0>; 40*d5b0e70fSEmmanuel Vadot compatible = "wlf,wm8940"; 41*d5b0e70fSEmmanuel Vadot reg = <0>; 42*d5b0e70fSEmmanuel Vadot spi-max-frequency = <500000>; 43*d5b0e70fSEmmanuel Vadot }; 44*d5b0e70fSEmmanuel Vadot }; 45*d5b0e70fSEmmanuel Vadot - | 46*d5b0e70fSEmmanuel Vadot i2c { 47*d5b0e70fSEmmanuel Vadot #address-cells = <1>; 48*d5b0e70fSEmmanuel Vadot #size-cells = <0>; 49*d5b0e70fSEmmanuel Vadot 50*d5b0e70fSEmmanuel Vadot codec@1a { 51*d5b0e70fSEmmanuel Vadot #sound-dai-cells = <0>; 52*d5b0e70fSEmmanuel Vadot compatible = "wlf,wm8940"; 53*d5b0e70fSEmmanuel Vadot reg = <0x1a>; 54*d5b0e70fSEmmanuel Vadot }; 55*d5b0e70fSEmmanuel Vadot }; 56*d5b0e70fSEmmanuel Vadot 57*d5b0e70fSEmmanuel Vadot... 58