167d99b23SSrinivas Kandagatla# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 267d99b23SSrinivas Kandagatla%YAML 1.2 367d99b23SSrinivas Kandagatla--- 467d99b23SSrinivas Kandagatla$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# 567d99b23SSrinivas Kandagatla$schema: http://devicetree.org/meta-schemas/core.yaml# 667d99b23SSrinivas Kandagatla 7a612130cSKrzysztof Kozlowskititle: LPASS(Low Power Audio Subsystem) VA Macro audio codec 867d99b23SSrinivas Kandagatla 967d99b23SSrinivas Kandagatlamaintainers: 1067d99b23SSrinivas Kandagatla - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 1167d99b23SSrinivas Kandagatla 1267d99b23SSrinivas Kandagatlaproperties: 1367d99b23SSrinivas Kandagatla compatible: 14*f243ef74SKrzysztof Kozlowski oneOf: 15*f243ef74SKrzysztof Kozlowski - enum: 166e3b196eSSrinivasa Rao Mandadapu - qcom,sc7280-lpass-va-macro 176e3b196eSSrinivasa Rao Mandadapu - qcom,sm8250-lpass-va-macro 18473d218bSSrinivas Kandagatla - qcom,sm8450-lpass-va-macro 19f769fcefSKrzysztof Kozlowski - qcom,sm8550-lpass-va-macro 20473d218bSSrinivas Kandagatla - qcom,sc8280xp-lpass-va-macro 21*f243ef74SKrzysztof Kozlowski - items: 22*f243ef74SKrzysztof Kozlowski - const: qcom,sm8650-lpass-va-macro 23*f243ef74SKrzysztof Kozlowski - const: qcom,sm8550-lpass-va-macro 2467d99b23SSrinivas Kandagatla 2567d99b23SSrinivas Kandagatla reg: 2667d99b23SSrinivas Kandagatla maxItems: 1 2767d99b23SSrinivas Kandagatla 2867d99b23SSrinivas Kandagatla "#sound-dai-cells": 2967d99b23SSrinivas Kandagatla const: 1 3067d99b23SSrinivas Kandagatla 3167d99b23SSrinivas Kandagatla '#clock-cells': 3267d99b23SSrinivas Kandagatla const: 0 3367d99b23SSrinivas Kandagatla 3467d99b23SSrinivas Kandagatla clocks: 35cfad8170SKrzysztof Kozlowski minItems: 1 36cfad8170SKrzysztof Kozlowski maxItems: 4 3767d99b23SSrinivas Kandagatla 3867d99b23SSrinivas Kandagatla clock-names: 39cfad8170SKrzysztof Kozlowski minItems: 1 40cfad8170SKrzysztof Kozlowski maxItems: 4 4167d99b23SSrinivas Kandagatla 4267d99b23SSrinivas Kandagatla clock-output-names: 43bcdc73e1SKrzysztof Kozlowski maxItems: 1 4467d99b23SSrinivas Kandagatla 456619c7d4SSrinivasa Rao Mandadapu power-domains: 466619c7d4SSrinivasa Rao Mandadapu maxItems: 2 476619c7d4SSrinivasa Rao Mandadapu 486619c7d4SSrinivasa Rao Mandadapu power-domain-names: 496619c7d4SSrinivasa Rao Mandadapu items: 506619c7d4SSrinivasa Rao Mandadapu - const: macro 516619c7d4SSrinivasa Rao Mandadapu - const: dcodec 526619c7d4SSrinivasa Rao Mandadapu 5367d99b23SSrinivas Kandagatla qcom,dmic-sample-rate: 5467d99b23SSrinivas Kandagatla description: dmic sample rate 5567d99b23SSrinivas Kandagatla $ref: /schemas/types.yaml#/definitions/uint32 5667d99b23SSrinivas Kandagatla 5767d99b23SSrinivas Kandagatla vdd-micb-supply: 5867d99b23SSrinivas Kandagatla description: phandle to voltage regulator of MIC Bias 5967d99b23SSrinivas Kandagatla 6067d99b23SSrinivas Kandagatlarequired: 6167d99b23SSrinivas Kandagatla - compatible 6267d99b23SSrinivas Kandagatla - reg 6367d99b23SSrinivas Kandagatla - "#sound-dai-cells" 64cfad8170SKrzysztof Kozlowski - clock-names 65cfad8170SKrzysztof Kozlowski - clocks 66cfad8170SKrzysztof Kozlowski 67cfad8170SKrzysztof KozlowskiallOf: 68cfad8170SKrzysztof Kozlowski - $ref: dai-common.yaml# 69cfad8170SKrzysztof Kozlowski 70cfad8170SKrzysztof Kozlowski - if: 71cfad8170SKrzysztof Kozlowski properties: 72cfad8170SKrzysztof Kozlowski compatible: 73cfad8170SKrzysztof Kozlowski contains: 74cfad8170SKrzysztof Kozlowski const: qcom,sc7280-lpass-va-macro 75cfad8170SKrzysztof Kozlowski then: 76cfad8170SKrzysztof Kozlowski properties: 77cfad8170SKrzysztof Kozlowski clocks: 78cfad8170SKrzysztof Kozlowski maxItems: 1 79cfad8170SKrzysztof Kozlowski clock-names: 80cfad8170SKrzysztof Kozlowski items: 81cfad8170SKrzysztof Kozlowski - const: mclk 82cfad8170SKrzysztof Kozlowski 83cfad8170SKrzysztof Kozlowski - if: 84cfad8170SKrzysztof Kozlowski properties: 85cfad8170SKrzysztof Kozlowski compatible: 86cfad8170SKrzysztof Kozlowski contains: 87cfad8170SKrzysztof Kozlowski const: qcom,sm8250-lpass-va-macro 88cfad8170SKrzysztof Kozlowski then: 89cfad8170SKrzysztof Kozlowski properties: 90cfad8170SKrzysztof Kozlowski clocks: 91cfad8170SKrzysztof Kozlowski minItems: 3 92cfad8170SKrzysztof Kozlowski maxItems: 3 93cfad8170SKrzysztof Kozlowski clock-names: 94cfad8170SKrzysztof Kozlowski items: 95cfad8170SKrzysztof Kozlowski - const: mclk 96cfad8170SKrzysztof Kozlowski - const: macro 97cfad8170SKrzysztof Kozlowski - const: dcodec 98cfad8170SKrzysztof Kozlowski 99cfad8170SKrzysztof Kozlowski - if: 100cfad8170SKrzysztof Kozlowski properties: 101cfad8170SKrzysztof Kozlowski compatible: 102cfad8170SKrzysztof Kozlowski contains: 103cfad8170SKrzysztof Kozlowski enum: 104cfad8170SKrzysztof Kozlowski - qcom,sc8280xp-lpass-va-macro 105cfad8170SKrzysztof Kozlowski - qcom,sm8450-lpass-va-macro 106cfad8170SKrzysztof Kozlowski then: 107cfad8170SKrzysztof Kozlowski properties: 108cfad8170SKrzysztof Kozlowski clocks: 109cfad8170SKrzysztof Kozlowski minItems: 4 110cfad8170SKrzysztof Kozlowski maxItems: 4 111cfad8170SKrzysztof Kozlowski clock-names: 112cfad8170SKrzysztof Kozlowski items: 113cfad8170SKrzysztof Kozlowski - const: mclk 114cfad8170SKrzysztof Kozlowski - const: macro 115cfad8170SKrzysztof Kozlowski - const: dcodec 116cfad8170SKrzysztof Kozlowski - const: npl 11767d99b23SSrinivas Kandagatla 118f769fcefSKrzysztof Kozlowski - if: 119f769fcefSKrzysztof Kozlowski properties: 120f769fcefSKrzysztof Kozlowski compatible: 121f769fcefSKrzysztof Kozlowski contains: 122*f243ef74SKrzysztof Kozlowski contains: 123f769fcefSKrzysztof Kozlowski enum: 124f769fcefSKrzysztof Kozlowski - qcom,sm8550-lpass-va-macro 125f769fcefSKrzysztof Kozlowski then: 126f769fcefSKrzysztof Kozlowski properties: 127f769fcefSKrzysztof Kozlowski clocks: 128f769fcefSKrzysztof Kozlowski minItems: 3 129f769fcefSKrzysztof Kozlowski maxItems: 3 130f769fcefSKrzysztof Kozlowski clock-names: 131f769fcefSKrzysztof Kozlowski items: 132f769fcefSKrzysztof Kozlowski - const: mclk 133f769fcefSKrzysztof Kozlowski - const: macro 134f769fcefSKrzysztof Kozlowski - const: dcodec 135f769fcefSKrzysztof Kozlowski 13658ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false 13767d99b23SSrinivas Kandagatla 13867d99b23SSrinivas Kandagatlaexamples: 13967d99b23SSrinivas Kandagatla - | 14067d99b23SSrinivas Kandagatla #include <dt-bindings/sound/qcom,q6afe.h> 14167d99b23SSrinivas Kandagatla codec@3370000 { 14267d99b23SSrinivas Kandagatla compatible = "qcom,sm8250-lpass-va-macro"; 14367d99b23SSrinivas Kandagatla reg = <0x3370000 0x1000>; 14467d99b23SSrinivas Kandagatla #sound-dai-cells = <1>; 14567d99b23SSrinivas Kandagatla #clock-cells = <0>; 14667d99b23SSrinivas Kandagatla clocks = <&aoncc 0>, 14767d99b23SSrinivas Kandagatla <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, 14867d99b23SSrinivas Kandagatla <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; 1497a354989SSrinivasa Rao Mandadapu clock-names = "mclk", "macro", "dcodec"; 15067d99b23SSrinivas Kandagatla clock-output-names = "fsgen"; 15167d99b23SSrinivas Kandagatla qcom,dmic-sample-rate = <600000>; 15267d99b23SSrinivas Kandagatla vdd-micb-supply = <&vreg_s4a_1p8>; 15367d99b23SSrinivas Kandagatla }; 154