]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: dt-bindings: Add bindings for WCD9335 DAIs
authorYassine Oudjana <y.oudjana@protonmail.com>
Wed, 22 Jun 2022 16:13:20 +0000 (20:13 +0400)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2022 17:11:27 +0000 (18:11 +0100)
Add bindings for the DAIs available in WCD9335 to avoid
having to use unclear number indices in device trees.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220622161322.168017-2-y.oudjana@protonmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
MAINTAINERS
include/dt-bindings/sound/qcom,wcd9335.h [new file with mode: 0644]

index c4648e86dc14bb248674ba40efbb470c5a4e877f..e9d5b052cd418c62ba903128705c1e83855ad2f5 100644 (file)
@@ -16250,6 +16250,7 @@ M:      Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
 M:     Banajit Goswami <bgoswami@quicinc.com>
 L:     alsa-devel@alsa-project.org (moderated for non-subscribers)
 S:     Supported
+F:     include/dt-bindings/sound/qcom,wcd9335.h
 F:     sound/soc/codecs/lpass-rx-macro.*
 F:     sound/soc/codecs/lpass-tx-macro.*
 F:     sound/soc/codecs/lpass-va-macro.c
diff --git a/include/dt-bindings/sound/qcom,wcd9335.h b/include/dt-bindings/sound/qcom,wcd9335.h
new file mode 100644 (file)
index 0000000..f5e9f1d
--- /dev/null
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+
+#ifndef __DT_SOUND_QCOM_WCD9335_H
+#define __DT_SOUND_QCOM_WCD9335_H
+
+#define AIF1_PB                 0
+#define AIF1_CAP                1
+#define AIF2_PB                 2
+#define AIF2_CAP                3
+#define AIF3_PB                 4
+#define AIF3_CAP                5
+#define AIF4_PB                 6
+#define NUM_CODEC_DAIS          7
+
+#endif