Commit 7ee35b6b authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

ASoC: dt-bindings: qcom,wcd934x: Allow usage as IFD device

The WCD9340 audio codec appears on Slimbus twice: as IFD device without
properties and the actual audio-codec referencing the former via
wcd9340_ifd.  Allow in the binding both versions to fix several warnings
like:

  sdm850-samsung-w737.dtb: ifd@0,0: 'reset-gpios' is a required property
  sdm850-samsung-w737.dtb: ifd@0,0: 'slim-ifc-dev' is a required property
  sdm850-samsung-w737.dtb: ifd@0,0: 'interrupt-controller' is a required property
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230206180805.6621-3-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 636caca3
...@@ -149,21 +149,49 @@ patternProperties: ...@@ -149,21 +149,49 @@ patternProperties:
required: required:
- compatible - compatible
- reg - reg
- reset-gpios
- slim-ifc-dev allOf:
- interrupts - if:
- interrupt-controller required:
- clock-frequency - slim-ifc-dev
- clock-output-names then:
- qcom,micbias1-microvolt required:
- qcom,micbias2-microvolt - reset-gpios
- qcom,micbias3-microvolt - slim-ifc-dev
- qcom,micbias4-microvolt - interrupt-controller
- "#interrupt-cells" - clock-frequency
- "#clock-cells" - clock-output-names
- "#sound-dai-cells" - qcom,micbias1-microvolt
- "#address-cells" - qcom,micbias2-microvolt
- "#size-cells" - qcom,micbias3-microvolt
- qcom,micbias4-microvolt
- "#interrupt-cells"
- "#clock-cells"
- "#sound-dai-cells"
- "#address-cells"
- "#size-cells"
oneOf:
- required:
- interrupts-extended
- required:
- interrupts
else:
properties:
reset-gpios: false
slim-ifc-dev: false
interrupts: false
interrupt-controller: false
clock-frequency: false
clock-output-names: false
qcom,micbias1-microvolt: false
qcom,micbias2-microvolt: false
qcom,micbias3-microvolt: false
qcom,micbias4-microvolt: false
"#interrupt-cells": false
"#clock-cells": false
"#sound-dai-cells": false
"#address-cells": false
"#size-cells": false
additionalProperties: false additionalProperties: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment