1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2d5b0e70fSEmmanuel Vadot%YAML 1.2 3d5b0e70fSEmmanuel Vadot--- 4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/wlf,wm8731.yaml# 5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6d5b0e70fSEmmanuel Vadot 7d5b0e70fSEmmanuel Vadottitle: Wolfson Microelectromics WM8731 audio CODEC 8d5b0e70fSEmmanuel Vadot 9d5b0e70fSEmmanuel Vadotmaintainers: 10d5b0e70fSEmmanuel Vadot - patches@opensource.cirrus.com 11d5b0e70fSEmmanuel Vadot 12d5b0e70fSEmmanuel Vadotdescription: | 13d5b0e70fSEmmanuel Vadot Wolfson Microelectronics WM8731 audio CODEC 14d5b0e70fSEmmanuel Vadot 15d5b0e70fSEmmanuel Vadot Pins on the device (for linking into audio routes): 16d5b0e70fSEmmanuel Vadot * LOUT: Left Channel Line Output 17d5b0e70fSEmmanuel Vadot * ROUT: Right Channel Line Output 18d5b0e70fSEmmanuel Vadot * LHPOUT: Left Channel Headphone Output 19d5b0e70fSEmmanuel Vadot * RHPOUT: Right Channel Headphone Output 20d5b0e70fSEmmanuel Vadot * LLINEIN: Left Channel Line Input 21d5b0e70fSEmmanuel Vadot * RLINEIN: Right Channel Line Input 22d5b0e70fSEmmanuel Vadot * MICIN: Microphone Input 23d5b0e70fSEmmanuel Vadot 24d5b0e70fSEmmanuel Vadotproperties: 25d5b0e70fSEmmanuel Vadot compatible: 26d5b0e70fSEmmanuel Vadot enum: 27d5b0e70fSEmmanuel Vadot - wlf,wm8731 28d5b0e70fSEmmanuel Vadot 29d5b0e70fSEmmanuel Vadot reg: 30d5b0e70fSEmmanuel Vadot maxItems: 1 31d5b0e70fSEmmanuel Vadot 32d5b0e70fSEmmanuel Vadot "#sound-dai-cells": 33d5b0e70fSEmmanuel Vadot const: 0 34d5b0e70fSEmmanuel Vadot 35d5b0e70fSEmmanuel Vadot clocks: 36d5b0e70fSEmmanuel Vadot description: Clock provider for MCLK pin. 37d5b0e70fSEmmanuel Vadot maxItems: 1 38d5b0e70fSEmmanuel Vadot 39d5b0e70fSEmmanuel Vadot clock-names: 40d5b0e70fSEmmanuel Vadot items: 41d5b0e70fSEmmanuel Vadot - const: mclk 42d5b0e70fSEmmanuel Vadot 43d5b0e70fSEmmanuel Vadot AVDD-supply: 44d5b0e70fSEmmanuel Vadot description: Analog power supply regulator on the AVDD pin. 45d5b0e70fSEmmanuel Vadot 46d5b0e70fSEmmanuel Vadot HPVDD-supply: 47d5b0e70fSEmmanuel Vadot description: Headphone power supply regulator on the HPVDD pin. 48d5b0e70fSEmmanuel Vadot 49d5b0e70fSEmmanuel Vadot DBVDD-supply: 50d5b0e70fSEmmanuel Vadot description: Digital buffer supply regulator for the DBVDD pin. 51d5b0e70fSEmmanuel Vadot 52d5b0e70fSEmmanuel Vadot DCVDD-supply: 53d5b0e70fSEmmanuel Vadot description: Digital core supply regulator for the DCVDD pin. 54d5b0e70fSEmmanuel Vadot 55d5b0e70fSEmmanuel Vadotrequired: 56d5b0e70fSEmmanuel Vadot - reg 57d5b0e70fSEmmanuel Vadot - compatible 58d5b0e70fSEmmanuel Vadot - AVDD-supply 59d5b0e70fSEmmanuel Vadot - HPVDD-supply 60d5b0e70fSEmmanuel Vadot - DBVDD-supply 61d5b0e70fSEmmanuel Vadot - DCVDD-supply 62d5b0e70fSEmmanuel Vadot 63b97ee269SEmmanuel VadotallOf: 64*8bab661aSEmmanuel Vadot - $ref: dai-common.yaml# 65b97ee269SEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 66b97ee269SEmmanuel Vadot 67b97ee269SEmmanuel VadotunevaluatedProperties: false 68b97ee269SEmmanuel Vadot 69d5b0e70fSEmmanuel Vadotexamples: 70d5b0e70fSEmmanuel Vadot - | 71d5b0e70fSEmmanuel Vadot spi { 72d5b0e70fSEmmanuel Vadot #address-cells = <1>; 73d5b0e70fSEmmanuel Vadot #size-cells = <0>; 74d5b0e70fSEmmanuel Vadot wm8731_i2c: codec@0 { 75d5b0e70fSEmmanuel Vadot compatible = "wlf,wm8731"; 76d5b0e70fSEmmanuel Vadot reg = <0>; 77d5b0e70fSEmmanuel Vadot spi-max-frequency = <12500000>; 78d5b0e70fSEmmanuel Vadot 79d5b0e70fSEmmanuel Vadot AVDD-supply = <&avdd_reg>; 80d5b0e70fSEmmanuel Vadot HPVDD-supply = <&hpvdd_reg>; 81d5b0e70fSEmmanuel Vadot DCVDD-supply = <&dcvdd_reg>; 82d5b0e70fSEmmanuel Vadot DBVDD-supply = <&dbvdd_reg>; 83d5b0e70fSEmmanuel Vadot }; 84d5b0e70fSEmmanuel Vadot }; 85d5b0e70fSEmmanuel Vadot - | 86d5b0e70fSEmmanuel Vadot 87d5b0e70fSEmmanuel Vadot i2c { 88d5b0e70fSEmmanuel Vadot #address-cells = <1>; 89d5b0e70fSEmmanuel Vadot #size-cells = <0>; 90d5b0e70fSEmmanuel Vadot wm8731_spi: codec@1b { 91d5b0e70fSEmmanuel Vadot compatible = "wlf,wm8731"; 92d5b0e70fSEmmanuel Vadot reg = <0x1b>; 93d5b0e70fSEmmanuel Vadot 94d5b0e70fSEmmanuel Vadot AVDD-supply = <&avdd_reg>; 95d5b0e70fSEmmanuel Vadot HPVDD-supply = <&hpvdd_reg>; 96d5b0e70fSEmmanuel Vadot DCVDD-supply = <&dcvdd_reg>; 97d5b0e70fSEmmanuel Vadot DBVDD-supply = <&dbvdd_reg>; 98d5b0e70fSEmmanuel Vadot }; 99d5b0e70fSEmmanuel Vadot }; 100