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 17*7ef62cebSEmmanuel Vadot - qcom,sm8450-lpass-va-macro 18*7ef62cebSEmmanuel Vadot - qcom,sc8280xp-lpass-va-macro 195def4c47SEmmanuel Vadot 205def4c47SEmmanuel Vadot reg: 215def4c47SEmmanuel Vadot maxItems: 1 225def4c47SEmmanuel Vadot 235def4c47SEmmanuel Vadot "#sound-dai-cells": 245def4c47SEmmanuel Vadot const: 1 255def4c47SEmmanuel Vadot 265def4c47SEmmanuel Vadot '#clock-cells': 275def4c47SEmmanuel Vadot const: 0 285def4c47SEmmanuel Vadot 295def4c47SEmmanuel Vadot clocks: 305def4c47SEmmanuel Vadot maxItems: 3 315def4c47SEmmanuel Vadot 325def4c47SEmmanuel Vadot clock-names: 33d5b0e70fSEmmanuel Vadot oneOf: 34d5b0e70fSEmmanuel Vadot - items: #for ADSP based platforms 355def4c47SEmmanuel Vadot - const: mclk 365def4c47SEmmanuel Vadot - const: core 375def4c47SEmmanuel Vadot - const: dcodec 38d5b0e70fSEmmanuel Vadot - items: #for ADSP bypass based platforms 39d5b0e70fSEmmanuel Vadot - const: mclk 405def4c47SEmmanuel Vadot 415def4c47SEmmanuel Vadot clock-output-names: 425def4c47SEmmanuel Vadot items: 435def4c47SEmmanuel Vadot - const: fsgen 445def4c47SEmmanuel Vadot 45c9ccf3a3SEmmanuel Vadot power-domains: 46c9ccf3a3SEmmanuel Vadot maxItems: 2 47c9ccf3a3SEmmanuel Vadot 48c9ccf3a3SEmmanuel Vadot power-domain-names: 49c9ccf3a3SEmmanuel Vadot items: 50c9ccf3a3SEmmanuel Vadot - const: macro 51c9ccf3a3SEmmanuel Vadot - const: dcodec 52c9ccf3a3SEmmanuel Vadot 535def4c47SEmmanuel Vadot qcom,dmic-sample-rate: 545def4c47SEmmanuel Vadot description: dmic sample rate 555def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 565def4c47SEmmanuel Vadot 575def4c47SEmmanuel Vadot vdd-micb-supply: 585def4c47SEmmanuel Vadot description: phandle to voltage regulator of MIC Bias 595def4c47SEmmanuel Vadot 605def4c47SEmmanuel Vadotrequired: 615def4c47SEmmanuel Vadot - compatible 625def4c47SEmmanuel Vadot - reg 635def4c47SEmmanuel Vadot - "#sound-dai-cells" 645def4c47SEmmanuel Vadot 655def4c47SEmmanuel VadotadditionalProperties: false 665def4c47SEmmanuel Vadot 675def4c47SEmmanuel Vadotexamples: 685def4c47SEmmanuel Vadot - | 695def4c47SEmmanuel Vadot #include <dt-bindings/sound/qcom,q6afe.h> 705def4c47SEmmanuel Vadot codec@3370000 { 715def4c47SEmmanuel Vadot compatible = "qcom,sm8250-lpass-va-macro"; 725def4c47SEmmanuel Vadot reg = <0x3370000 0x1000>; 735def4c47SEmmanuel Vadot #sound-dai-cells = <1>; 745def4c47SEmmanuel Vadot #clock-cells = <0>; 755def4c47SEmmanuel Vadot clocks = <&aoncc 0>, 765def4c47SEmmanuel Vadot <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, 775def4c47SEmmanuel Vadot <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; 785def4c47SEmmanuel Vadot clock-names = "mclk", "core", "dcodec"; 795def4c47SEmmanuel Vadot clock-output-names = "fsgen"; 805def4c47SEmmanuel Vadot qcom,dmic-sample-rate = <600000>; 815def4c47SEmmanuel Vadot vdd-micb-supply = <&vreg_s4a_1p8>; 825def4c47SEmmanuel Vadot }; 83