This patch set is to add power domains support for RX, TX and VA macros.
Changes since v3:
-- Add dt-bindings support.
Changes since v2:
-- Remove redundant local variable.
-- Update pds error handling sequence.
-- Update module description.
-- Clean up pds init function.
-- Remove redundant arguments.
Changes since v1:
-- Add missing macros in Kconfig.
Srinivasa Rao Mandadapu (2):
ASoC: codecs: Add power domains support in digital macro codecs
ASoC: qcom: dt-bindings: Add bindings for power domains in lpass
digital codecs
.../bindings/sound/qcom,lpass-rx-macro.yaml | 8 +++
.../bindings/sound/qcom,lpass-tx-macro.yaml | 8 +++
.../bindings/sound/qcom,lpass-va-macro.yaml | 8 +++
sound/soc/codecs/Kconfig | 7 +++
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/lpass-macro-common.c | 67 ++++++++++++++++++++++
sound/soc/codecs/lpass-macro-common.h | 17 ++++++
sound/soc/codecs/lpass-rx-macro.c | 12 +++-
sound/soc/codecs/lpass-tx-macro.c | 10 ++++
sound/soc/codecs/lpass-va-macro.c | 12 ++++
sound/soc/qcom/Kconfig | 1 +
11 files changed, 151 insertions(+), 1 deletion(-)
create mode 100644 sound/soc/codecs/lpass-macro-common.c
create mode 100644 sound/soc/codecs/lpass-macro-common.h
--
2.7.4
Include power domain dt-bindings for lpass digital codecs RX, TX and
VA macros, which are required for ADSP bypass architecture.
Signed-off-by: Srinivasa Rao Mandadapu <[email protected]>
Co-developed-by: Venkata Prasad Potturu <[email protected]>
Signed-off-by: Venkata Prasad Potturu <[email protected]>
---
Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml | 8 ++++++++
Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml | 8 ++++++++
Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml
index bc762b3..6127df5 100644
--- a/Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml
@@ -39,6 +39,14 @@ properties:
items:
- const: mclk
+ power-domains:
+ maxItems: 2
+
+ power-domain-names:
+ items:
+ - const: macro
+ - const: dcodec
+
required:
- compatible
- reg
diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml
index 74f5386..3f0f99c 100644
--- a/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml
@@ -39,6 +39,14 @@ properties:
items:
- const: mclk
+ power-domains:
+ maxItems: 2
+
+ power-domain-names:
+ items:
+ - const: macro
+ - const: dcodec
+
qcom,dmic-sample-rate:
description: dmic sample rate
$ref: /schemas/types.yaml#/definitions/uint32
diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
index 99f2c36..9868a5e 100644
--- a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
@@ -37,6 +37,14 @@ properties:
items:
- const: fsgen
+ power-domains:
+ maxItems: 2
+
+ power-domain-names:
+ items:
+ - const: macro
+ - const: dcodec
+
qcom,dmic-sample-rate:
description: dmic sample rate
$ref: /schemas/types.yaml#/definitions/uint32
--
2.7.4