1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/adi,adau7118.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadottitle: Analog Devices ADAU7118 8 Channel PDM to I2S/TDM Converter 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadotmaintainers: 11c66ec88fSEmmanuel Vadot - Nuno Sá <nuno.sa@analog.com> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: | 14c66ec88fSEmmanuel Vadot Analog Devices ADAU7118 8 Channel PDM to I2S/TDM Converter over I2C or HW 15c66ec88fSEmmanuel Vadot standalone mode. 16c66ec88fSEmmanuel Vadot https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU7118.pdf 17c66ec88fSEmmanuel Vadot 18*8bab661aSEmmanuel VadotallOf: 19*8bab661aSEmmanuel Vadot - $ref: dai-common.yaml# 20*8bab661aSEmmanuel Vadot 21c66ec88fSEmmanuel Vadotproperties: 22c66ec88fSEmmanuel Vadot compatible: 23c66ec88fSEmmanuel Vadot enum: 24c66ec88fSEmmanuel Vadot - adi,adau7118 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot reg: 27c66ec88fSEmmanuel Vadot maxItems: 1 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot "#sound-dai-cells": 30c66ec88fSEmmanuel Vadot const: 0 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot iovdd-supply: 33c66ec88fSEmmanuel Vadot description: Digital Input/Output Power Supply. 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot dvdd-supply: 36c66ec88fSEmmanuel Vadot description: Internal Core Digital Power Supply. 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot adi,decimation-ratio: 39c66ec88fSEmmanuel Vadot description: | 40c66ec88fSEmmanuel Vadot This property set's the decimation ratio of PDM to PCM audio data. 41c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 42c66ec88fSEmmanuel Vadot enum: [64, 32, 16] 43c66ec88fSEmmanuel Vadot default: 64 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot adi,pdm-clk-map: 46c66ec88fSEmmanuel Vadot description: | 47c66ec88fSEmmanuel Vadot The ADAU7118 has two PDM clocks for the four Inputs. Each input must be 48c66ec88fSEmmanuel Vadot assigned to one of these two clocks. This property set's the mapping 49c66ec88fSEmmanuel Vadot between the clocks and the inputs. 50c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 51c66ec88fSEmmanuel Vadot minItems: 4 52c66ec88fSEmmanuel Vadot maxItems: 4 53c66ec88fSEmmanuel Vadot items: 54c66ec88fSEmmanuel Vadot maximum: 1 55c66ec88fSEmmanuel Vadot default: [0, 0, 1, 1] 56c66ec88fSEmmanuel Vadot 57c66ec88fSEmmanuel Vadotrequired: 58c66ec88fSEmmanuel Vadot - "#sound-dai-cells" 59c66ec88fSEmmanuel Vadot - compatible 60c66ec88fSEmmanuel Vadot - iovdd-supply 61c66ec88fSEmmanuel Vadot - dvdd-supply 62c66ec88fSEmmanuel Vadot 63*8bab661aSEmmanuel VadotunevaluatedProperties: false 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadotexamples: 66c66ec88fSEmmanuel Vadot - | 67c66ec88fSEmmanuel Vadot i2c { 68c66ec88fSEmmanuel Vadot /* example with i2c support */ 69c66ec88fSEmmanuel Vadot #address-cells = <1>; 70c66ec88fSEmmanuel Vadot #size-cells = <0>; 71c66ec88fSEmmanuel Vadot adau7118_codec: audio-codec@14 { 72c66ec88fSEmmanuel Vadot compatible = "adi,adau7118"; 73c66ec88fSEmmanuel Vadot reg = <0x14>; 74c66ec88fSEmmanuel Vadot #sound-dai-cells = <0>; 75c66ec88fSEmmanuel Vadot iovdd-supply = <&supply>; 76c66ec88fSEmmanuel Vadot dvdd-supply = <&supply>; 77c66ec88fSEmmanuel Vadot adi,pdm-clk-map = <1 1 0 0>; 78c66ec88fSEmmanuel Vadot adi,decimation-ratio = <16>; 79c66ec88fSEmmanuel Vadot }; 80c66ec88fSEmmanuel Vadot }; 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadot /* example with hw standalone mode */ 83c66ec88fSEmmanuel Vadot adau7118_codec_hw: adau7118-codec-hw { 84c66ec88fSEmmanuel Vadot compatible = "adi,adau7118"; 85c66ec88fSEmmanuel Vadot #sound-dai-cells = <0>; 86c66ec88fSEmmanuel Vadot iovdd-supply = <&supply>; 87c66ec88fSEmmanuel Vadot dvdd-supply = <&supply>; 88c66ec88fSEmmanuel Vadot }; 89