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-rx-macro.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: LPASS(Low Power Audio Subsystem) RX Macro audio codec 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-rx-macro 168cc087a1SEmmanuel Vadot - qcom,sm8250-lpass-rx-macro 177ef62cebSEmmanuel Vadot - qcom,sm8450-lpass-rx-macro 18*fac71e4eSEmmanuel Vadot - qcom,sm8550-lpass-rx-macro 197ef62cebSEmmanuel Vadot - qcom,sc8280xp-lpass-rx-macro 205def4c47SEmmanuel Vadot 215def4c47SEmmanuel Vadot reg: 225def4c47SEmmanuel Vadot maxItems: 1 235def4c47SEmmanuel Vadot 245def4c47SEmmanuel Vadot "#sound-dai-cells": 255def4c47SEmmanuel Vadot const: 1 265def4c47SEmmanuel Vadot 275def4c47SEmmanuel Vadot '#clock-cells': 285def4c47SEmmanuel Vadot const: 0 295def4c47SEmmanuel Vadot 305def4c47SEmmanuel Vadot clocks: 31*fac71e4eSEmmanuel Vadot minItems: 3 325def4c47SEmmanuel Vadot maxItems: 5 335def4c47SEmmanuel Vadot 345def4c47SEmmanuel Vadot clock-names: 35*fac71e4eSEmmanuel Vadot minItems: 3 36*fac71e4eSEmmanuel Vadot maxItems: 5 375def4c47SEmmanuel Vadot 385def4c47SEmmanuel Vadot clock-output-names: 398bab661aSEmmanuel Vadot maxItems: 1 405def4c47SEmmanuel Vadot 41c9ccf3a3SEmmanuel Vadot power-domains: 42c9ccf3a3SEmmanuel Vadot maxItems: 2 43c9ccf3a3SEmmanuel Vadot 44c9ccf3a3SEmmanuel Vadot power-domain-names: 45c9ccf3a3SEmmanuel Vadot items: 46c9ccf3a3SEmmanuel Vadot - const: macro 47c9ccf3a3SEmmanuel Vadot - const: dcodec 48c9ccf3a3SEmmanuel Vadot 495def4c47SEmmanuel Vadotrequired: 505def4c47SEmmanuel Vadot - compatible 515def4c47SEmmanuel Vadot - reg 525def4c47SEmmanuel Vadot - "#sound-dai-cells" 535def4c47SEmmanuel Vadot 54*fac71e4eSEmmanuel VadotallOf: 55*fac71e4eSEmmanuel Vadot - $ref: dai-common.yaml# 56*fac71e4eSEmmanuel Vadot - if: 57*fac71e4eSEmmanuel Vadot properties: 58*fac71e4eSEmmanuel Vadot compatible: 59*fac71e4eSEmmanuel Vadot enum: 60*fac71e4eSEmmanuel Vadot - qcom,sc7280-lpass-rx-macro 61*fac71e4eSEmmanuel Vadot then: 62*fac71e4eSEmmanuel Vadot properties: 63*fac71e4eSEmmanuel Vadot clock-names: 64*fac71e4eSEmmanuel Vadot oneOf: 65*fac71e4eSEmmanuel Vadot - items: # for ADSP based platforms 66*fac71e4eSEmmanuel Vadot - const: mclk 67*fac71e4eSEmmanuel Vadot - const: npl 68*fac71e4eSEmmanuel Vadot - const: macro 69*fac71e4eSEmmanuel Vadot - const: dcodec 70*fac71e4eSEmmanuel Vadot - const: fsgen 71*fac71e4eSEmmanuel Vadot - items: # for ADSP bypass based platforms 72*fac71e4eSEmmanuel Vadot - const: mclk 73*fac71e4eSEmmanuel Vadot - const: npl 74*fac71e4eSEmmanuel Vadot - const: fsgen 75*fac71e4eSEmmanuel Vadot 76*fac71e4eSEmmanuel Vadot - if: 77*fac71e4eSEmmanuel Vadot properties: 78*fac71e4eSEmmanuel Vadot compatible: 79*fac71e4eSEmmanuel Vadot enum: 80*fac71e4eSEmmanuel Vadot - qcom,sc8280xp-lpass-rx-macro 81*fac71e4eSEmmanuel Vadot - qcom,sm8250-lpass-rx-macro 82*fac71e4eSEmmanuel Vadot - qcom,sm8450-lpass-rx-macro 83*fac71e4eSEmmanuel Vadot then: 84*fac71e4eSEmmanuel Vadot properties: 85*fac71e4eSEmmanuel Vadot clocks: 86*fac71e4eSEmmanuel Vadot minItems: 5 87*fac71e4eSEmmanuel Vadot maxItems: 5 88*fac71e4eSEmmanuel Vadot clock-names: 89*fac71e4eSEmmanuel Vadot items: 90*fac71e4eSEmmanuel Vadot - const: mclk 91*fac71e4eSEmmanuel Vadot - const: npl 92*fac71e4eSEmmanuel Vadot - const: macro 93*fac71e4eSEmmanuel Vadot - const: dcodec 94*fac71e4eSEmmanuel Vadot - const: fsgen 95*fac71e4eSEmmanuel Vadot 96*fac71e4eSEmmanuel Vadot - if: 97*fac71e4eSEmmanuel Vadot properties: 98*fac71e4eSEmmanuel Vadot compatible: 99*fac71e4eSEmmanuel Vadot enum: 100*fac71e4eSEmmanuel Vadot - qcom,sm8550-lpass-rx-macro 101*fac71e4eSEmmanuel Vadot then: 102*fac71e4eSEmmanuel Vadot properties: 103*fac71e4eSEmmanuel Vadot clocks: 104*fac71e4eSEmmanuel Vadot minItems: 4 105*fac71e4eSEmmanuel Vadot maxItems: 4 106*fac71e4eSEmmanuel Vadot clock-names: 107*fac71e4eSEmmanuel Vadot items: 108*fac71e4eSEmmanuel Vadot - const: mclk 109*fac71e4eSEmmanuel Vadot - const: macro 110*fac71e4eSEmmanuel Vadot - const: dcodec 111*fac71e4eSEmmanuel Vadot - const: fsgen 112*fac71e4eSEmmanuel Vadot 1138bab661aSEmmanuel VadotunevaluatedProperties: false 1145def4c47SEmmanuel Vadot 1155def4c47SEmmanuel Vadotexamples: 1165def4c47SEmmanuel Vadot - | 1175def4c47SEmmanuel Vadot #include <dt-bindings/sound/qcom,q6afe.h> 1185def4c47SEmmanuel Vadot codec@3200000 { 1195def4c47SEmmanuel Vadot compatible = "qcom,sm8250-lpass-rx-macro"; 1205def4c47SEmmanuel Vadot reg = <0x3200000 0x1000>; 1215def4c47SEmmanuel Vadot #sound-dai-cells = <1>; 1225def4c47SEmmanuel Vadot #clock-cells = <0>; 1235def4c47SEmmanuel Vadot clocks = <&audiocc 0>, 1245def4c47SEmmanuel Vadot <&audiocc 1>, 1255def4c47SEmmanuel Vadot <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, 1265def4c47SEmmanuel Vadot <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, 1275def4c47SEmmanuel Vadot <&vamacro>; 1285def4c47SEmmanuel Vadot clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; 1295def4c47SEmmanuel Vadot clock-output-names = "mclk"; 1305def4c47SEmmanuel Vadot }; 131