1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/sound/wlf,wm8994.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Wolfson WM1811/WM8994/WM8958 audio codecs
10 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11 - patches@opensource.cirrus.com
14 These devices support both I2C and SPI (configured with pin strapping on the
17 Pins on the device (for linking into audio routes):
18 IN1LN, IN1LP, IN2LN, IN2LP:VXRN, IN1RN, IN1RP, IN2RN, IN2RP:VXRP, SPKOUTLP,
19 SPKOUTLN, SPKOUTRP, SPKOUTRN, HPOUT1L, HPOUT1R, HPOUT2P, HPOUT2N, LINEOUT1P,
20 LINEOUT1N, LINEOUT2P, LINEOUT2N.
50 interrupt-controller: true
55 The first cell is the IRQ number. The second cell is the flags, encoded
75 $ref: /schemas/types.yaml#/definitions/uint32-array
78 A list of GPIO configuration register values. If absent, no configuration
79 of these registers is performed. If any value is over 0xffff then the
80 register will be left as default. If present 11 values must be supplied.
83 $ref: /schemas/types.yaml#/definitions/uint32-array
86 Two MICBIAS register values for WM1811 or WM8958. If absent the register
87 defaults will be used.
92 Control of LDO1ENA input to device.
97 Control of LDO2ENA input to device.
102 LINEOUT1 is in single ended mode.
107 INEOUT2 is in single ended mode.
109 wlf,lineout1-feedback:
112 LINEOUT1 has common mode feedback connected.
114 wlf,lineout2-feedback:
117 LINEOUT2 has common mode feedback connected.
119 wlf,ldoena-always-driven:
122 LDOENA is always driven.
127 Enable the internal pull-up resistor on the SPKMODE pin.
132 Enable the internal pull-down resistor on the CS/ADDR pin.
143 - $ref: dai-common.yaml#
153 LDO2VDD-supply: false
166 unevaluatedProperties: false
170 #include <dt-bindings/gpio/gpio.h>
173 #address-cells = <1>;
177 compatible = "wlf,wm1811";
180 clock-names = "MCLK1";
182 AVDD2-supply = <&main_dc_reg>;
183 CPVDD-supply = <&main_dc_reg>;
184 DBVDD1-supply = <&main_dc_reg>;
185 DBVDD2-supply = <&main_dc_reg>;
186 DBVDD3-supply = <&main_dc_reg>;
187 LDO1VDD-supply = <&main_dc_reg>;
188 SPKVDD1-supply = <&main_dc_reg>;
189 SPKVDD2-supply = <&main_dc_reg>;
191 wlf,ldo1ena-gpios = <&gpb0 0 GPIO_ACTIVE_HIGH>;
192 wlf,ldo2ena-gpios = <&gpb0 1 GPIO_ACTIVE_HIGH>;