Commit cfad8170 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

ASoC: dt-bindings: qcom,lpass-va-macro: Add missing NPL clock

Several devices (e.g. SC8280XP and SM8450) expect a NPL (Near Pad Logic)
clock.  Add the clock and customize allowed clocks per each variant.
The clocks are also required by ADSP in all variants.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230330113405.55722-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 59257015
......@@ -9,9 +9,6 @@ title: LPASS(Low Power Audio Subsystem) VA Macro audio codec
maintainers:
- Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
allOf:
- $ref: dai-common.yaml#
properties:
compatible:
enum:
......@@ -31,16 +28,12 @@ properties:
const: 0
clocks:
maxItems: 3
minItems: 1
maxItems: 4
clock-names:
oneOf:
- items: #for ADSP based platforms
- const: mclk
- const: macro
- const: dcodec
- items: #for ADSP bypass based platforms
- const: mclk
minItems: 1
maxItems: 4
clock-output-names:
maxItems: 1
......@@ -64,6 +57,59 @@ required:
- compatible
- reg
- "#sound-dai-cells"
- clock-names
- clocks
allOf:
- $ref: dai-common.yaml#
- if:
properties:
compatible:
contains:
const: qcom,sc7280-lpass-va-macro
then:
properties:
clocks:
maxItems: 1
clock-names:
items:
- const: mclk
- if:
properties:
compatible:
contains:
const: qcom,sm8250-lpass-va-macro
then:
properties:
clocks:
minItems: 3
maxItems: 3
clock-names:
items:
- const: mclk
- const: macro
- const: dcodec
- if:
properties:
compatible:
contains:
enum:
- qcom,sc8280xp-lpass-va-macro
- qcom,sm8450-lpass-va-macro
then:
properties:
clocks:
minItems: 4
maxItems: 4
clock-names:
items:
- const: mclk
- const: macro
- const: dcodec
- const: npl
- if:
properties:
......
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