15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 75def4c47SEmmanuel Vadottitle: LPASS(Low Power Audio Subsystem) VA Macro audio codec DT bindings 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 115def4c47SEmmanuel Vadot 125def4c47SEmmanuel Vadotproperties: 135def4c47SEmmanuel Vadot compatible: 148cc087a1SEmmanuel Vadot enum: 158cc087a1SEmmanuel Vadot - qcom,sc7280-lpass-va-macro 168cc087a1SEmmanuel Vadot - qcom,sm8250-lpass-va-macro 175def4c47SEmmanuel Vadot 185def4c47SEmmanuel Vadot reg: 195def4c47SEmmanuel Vadot maxItems: 1 205def4c47SEmmanuel Vadot 215def4c47SEmmanuel Vadot "#sound-dai-cells": 225def4c47SEmmanuel Vadot const: 1 235def4c47SEmmanuel Vadot 245def4c47SEmmanuel Vadot '#clock-cells': 255def4c47SEmmanuel Vadot const: 0 265def4c47SEmmanuel Vadot 275def4c47SEmmanuel Vadot clocks: 285def4c47SEmmanuel Vadot maxItems: 3 295def4c47SEmmanuel Vadot 305def4c47SEmmanuel Vadot clock-names: 31*d5b0e70fSEmmanuel Vadot oneOf: 32*d5b0e70fSEmmanuel Vadot - items: #for ADSP based platforms 335def4c47SEmmanuel Vadot - const: mclk 345def4c47SEmmanuel Vadot - const: core 355def4c47SEmmanuel Vadot - const: dcodec 36*d5b0e70fSEmmanuel Vadot - items: #for ADSP bypass based platforms 37*d5b0e70fSEmmanuel Vadot - const: mclk 385def4c47SEmmanuel Vadot 395def4c47SEmmanuel Vadot clock-output-names: 405def4c47SEmmanuel Vadot items: 415def4c47SEmmanuel Vadot - const: fsgen 425def4c47SEmmanuel Vadot 43c9ccf3a3SEmmanuel Vadot power-domains: 44c9ccf3a3SEmmanuel Vadot maxItems: 2 45c9ccf3a3SEmmanuel Vadot 46c9ccf3a3SEmmanuel Vadot power-domain-names: 47c9ccf3a3SEmmanuel Vadot items: 48c9ccf3a3SEmmanuel Vadot - const: macro 49c9ccf3a3SEmmanuel Vadot - const: dcodec 50c9ccf3a3SEmmanuel Vadot 515def4c47SEmmanuel Vadot qcom,dmic-sample-rate: 525def4c47SEmmanuel Vadot description: dmic sample rate 535def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 545def4c47SEmmanuel Vadot 555def4c47SEmmanuel Vadot vdd-micb-supply: 565def4c47SEmmanuel Vadot description: phandle to voltage regulator of MIC Bias 575def4c47SEmmanuel Vadot 585def4c47SEmmanuel Vadotrequired: 595def4c47SEmmanuel Vadot - compatible 605def4c47SEmmanuel Vadot - reg 615def4c47SEmmanuel Vadot - "#sound-dai-cells" 625def4c47SEmmanuel Vadot 635def4c47SEmmanuel VadotadditionalProperties: false 645def4c47SEmmanuel Vadot 655def4c47SEmmanuel Vadotexamples: 665def4c47SEmmanuel Vadot - | 675def4c47SEmmanuel Vadot #include <dt-bindings/sound/qcom,q6afe.h> 685def4c47SEmmanuel Vadot codec@3370000 { 695def4c47SEmmanuel Vadot compatible = "qcom,sm8250-lpass-va-macro"; 705def4c47SEmmanuel Vadot reg = <0x3370000 0x1000>; 715def4c47SEmmanuel Vadot #sound-dai-cells = <1>; 725def4c47SEmmanuel Vadot #clock-cells = <0>; 735def4c47SEmmanuel Vadot clocks = <&aoncc 0>, 745def4c47SEmmanuel Vadot <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, 755def4c47SEmmanuel Vadot <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; 765def4c47SEmmanuel Vadot clock-names = "mclk", "core", "dcodec"; 775def4c47SEmmanuel Vadot clock-output-names = "fsgen"; 785def4c47SEmmanuel Vadot qcom,dmic-sample-rate = <600000>; 795def4c47SEmmanuel Vadot vdd-micb-supply = <&vreg_s4a_1p8>; 805def4c47SEmmanuel Vadot }; 81