* [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml
@ 2024-07-10 11:36 Rayyan Ansari
2024-07-10 11:36 ` [PATCH v2 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema Rayyan Ansari
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Rayyan Ansari @ 2024-07-10 11:36 UTC (permalink / raw)
To: devicetree
Cc: Rayyan Ansari, alsa-devel, Banajit Goswami, Conor Dooley,
Krzysztof Kozlowski, Liam Girdwood, linux-arm-msm, linux-kernel,
linux-sound, Mark Brown, Rob Herring, Srinivas Kandagatla
Hi,
These patches convert the remaining plain text bindings for Qualcomm
sound drivers to dt schema, so device trees can be validated against
them.
v1: https://lore.kernel.org/all/20240709152808.155405-1-rayyan.ansari@linaro.org/
Thanks,
Rayyan
Rayyan Ansari (2):
ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema
ASoC: dt-bindings: qcom,apq8096-sndcard: use dtschema
.../bindings/sound/qcom,apq8096.txt | 128 ------------------
.../sound/qcom,msm8916-wcd-digital-codec.yaml | 55 ++++++++
.../sound/qcom,msm8916-wcd-digital.txt | 20 ---
.../bindings/sound/qcom,sm8250.yaml | 1 +
4 files changed, 56 insertions(+), 148 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8096.txt
create mode 100644 Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital-codec.yaml
delete mode 100644 Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital.txt
--
2.45.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema
2024-07-10 11:36 [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml Rayyan Ansari
@ 2024-07-10 11:36 ` Rayyan Ansari
2024-07-10 12:30 ` Krzysztof Kozlowski
2024-07-10 11:36 ` [PATCH v2 2/2] ASoC: dt-bindings: qcom,apq8096-sndcard: use dtschema Rayyan Ansari
2024-07-11 1:10 ` [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml Mark Brown
2 siblings, 1 reply; 5+ messages in thread
From: Rayyan Ansari @ 2024-07-10 11:36 UTC (permalink / raw)
To: devicetree
Cc: Rayyan Ansari, alsa-devel, Banajit Goswami, Conor Dooley,
Krzysztof Kozlowski, Liam Girdwood, linux-arm-msm, linux-kernel,
linux-sound, Mark Brown, Rob Herring, Srinivas Kandagatla
Convert the Qualcomm MSM8916 WCD Digital Audio Codec bindings from text
to yaml dt schema format.
Make bindings complete by adding #sound-dai-cells.
Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
---
v1 -> v2: removed unneeded minItems, added ref to dai-common.yaml
.../sound/qcom,msm8916-wcd-digital-codec.yaml | 55 +++++++++++++++++++
.../sound/qcom,msm8916-wcd-digital.txt | 20 -------
2 files changed, 55 insertions(+), 20 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital-codec.yaml
delete mode 100644 Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital.txt
diff --git a/Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital-codec.yaml b/Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital-codec.yaml
new file mode 100644
index 000000000000..a899c4e7c1c9
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital-codec.yaml
@@ -0,0 +1,55 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/qcom,msm8916-wcd-digital-codec.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm MSM8916 WCD Digital Audio Codec
+
+maintainers:
+ - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+description:
+ The digital WCD audio codec found on Qualcomm MSM8916 LPASS.
+
+properties:
+ compatible:
+ const: qcom,msm8916-wcd-digital-codec
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: ahbix-clk
+ - const: mclk
+
+ '#sound-dai-cells':
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - '#sound-dai-cells'
+
+allOf:
+ - $ref: dai-common.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,gcc-msm8916.h>
+ audio-codec@771c000 {
+ compatible = "qcom,msm8916-wcd-digital-codec";
+ reg = <0x0771c000 0x400>;
+ clocks = <&gcc GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK>,
+ <&gcc GCC_CODEC_DIGCODEC_CLK>;
+ clock-names = "ahbix-clk", "mclk";
+ #sound-dai-cells = <1>;
+ };
diff --git a/Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital.txt b/Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital.txt
deleted file mode 100644
index 1c8e4cb25176..000000000000
--- a/Documentation/devicetree/bindings/sound/qcom,msm8916-wcd-digital.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-msm8916 digital audio CODEC
-
-## Bindings for codec core in lpass:
-
-Required properties
- - compatible = "qcom,msm8916-wcd-digital-codec";
- - reg: address space for lpass codec.
- - clocks: Handle to mclk and ahbclk
- - clock-names: should be "mclk", "ahbix-clk".
-
-Example:
-
-audio-codec@771c000{
- compatible = "qcom,msm8916-wcd-digital-codec";
- reg = <0x0771c000 0x400>;
- clocks = <&gcc GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK>,
- <&gcc GCC_CODEC_DIGCODEC_CLK>;
- clock-names = "ahbix-clk", "mclk";
- #sound-dai-cells = <1>;
-};
--
2.45.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] ASoC: dt-bindings: qcom,apq8096-sndcard: use dtschema
2024-07-10 11:36 [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml Rayyan Ansari
2024-07-10 11:36 ` [PATCH v2 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema Rayyan Ansari
@ 2024-07-10 11:36 ` Rayyan Ansari
2024-07-11 1:10 ` [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Rayyan Ansari @ 2024-07-10 11:36 UTC (permalink / raw)
To: devicetree
Cc: Rayyan Ansari, Krzysztof Kozlowski, alsa-devel, Banajit Goswami,
Conor Dooley, Krzysztof Kozlowski, Liam Girdwood, linux-arm-msm,
linux-kernel, linux-sound, Mark Brown, Rob Herring,
Srinivas Kandagatla
Remove old txt bindings and add apq8096 soundcard entry to existing
dt schema.
Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
v1 -> v2: added r-b tag to commit message
.../bindings/sound/qcom,apq8096.txt | 128 ------------------
.../bindings/sound/qcom,sm8250.yaml | 1 +
2 files changed, 1 insertion(+), 128 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8096.txt
diff --git a/Documentation/devicetree/bindings/sound/qcom,apq8096.txt b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt
deleted file mode 100644
index e1b9fa8a5bf8..000000000000
--- a/Documentation/devicetree/bindings/sound/qcom,apq8096.txt
+++ /dev/null
@@ -1,128 +0,0 @@
-* Qualcomm Technologies APQ8096 ASoC sound card driver
-
-This binding describes the APQ8096 sound card, which uses qdsp for audio.
-
-- compatible:
- Usage: required
- Value type: <stringlist>
- Definition: must be "qcom,apq8096-sndcard"
-
-- audio-routing:
- Usage: Optional
- Value type: <stringlist>
- Definition: A list of the connections between audio components.
- Each entry is a pair of strings, the first being the
- connection's sink, the second being the connection's
- source. Valid names could be power supplies, MicBias
- of codec and the jacks on the board:
- Valid names include:
-
- Board Connectors:
- "Headphone Left"
- "Headphone Right"
- "Earphone"
- "Line Out1"
- "Line Out2"
- "Line Out3"
- "Line Out4"
- "Analog Mic1"
- "Analog Mic2"
- "Analog Mic3"
- "Analog Mic4"
- "Analog Mic5"
- "Analog Mic6"
- "Digital Mic2"
- "Digital Mic3"
-
- Audio pins and MicBias on WCD9335 Codec:
- "MIC_BIAS1"
- "MIC_BIAS2"
- "MIC_BIAS3"
- "MIC_BIAS4"
- "AMIC1"
- "AMIC2"
- "AMIC3"
- "AMIC4"
- "AMIC5"
- "AMIC6"
- "AMIC6"
- "DMIC1"
- "DMIC2"
- "DMIC3"
-
-- model:
- Usage: required
- Value type: <stringlist>
- Definition: The user-visible name of this sound card.
-
-- aux-devs
- Usage: optional
- Value type: <array of phandles>
- Definition: A list of phandles for auxiliary devices (e.g. analog
- amplifiers) that do not appear directly within the DAI
- links. Should be connected to another audio component
- using "audio-routing".
-
-= dailinks
-Each subnode of sndcard represents either a dailink, and subnodes of each
-dailinks would be cpu/codec/platform dais.
-
-- link-name:
- Usage: required
- Value type: <string>
- Definition: User friendly name for dai link
-
-= CPU, PLATFORM, CODEC dais subnodes
-- cpu:
- Usage: required
- Value type: <subnode>
- Definition: cpu dai sub-node
-
-- codec:
- Usage: Optional
- Value type: <subnode>
- Definition: codec dai sub-node
-
-- platform:
- Usage: Optional
- Value type: <subnode>
- Definition: platform dai sub-node
-
-- sound-dai:
- Usage: required
- Value type: <phandle with arguments>
- Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node.
-
-Obsolete:
- qcom,model: String for soundcard name (Use model instead)
- qcom,audio-routing: A list of the connections between audio components.
- (Use audio-routing instead)
-
-Example:
-
-audio {
- compatible = "qcom,apq8096-sndcard";
- model = "DB820c";
-
- mm1-dai-link {
- link-name = "MultiMedia1";
- cpu {
- sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
- };
- };
-
- hdmi-dai-link {
- link-name = "HDMI Playback";
- cpu {
- sound-dai = <&q6afe HDMI_RX>;
- };
-
- platform {
- sound-dai = <&q6adm>;
- };
-
- codec {
- sound-dai = <&hdmi 0>;
- };
- };
-};
diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
index b2e15ebbd1bc..c9076dcd44c1 100644
--- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
@@ -28,6 +28,7 @@ properties:
- const: qcom,sm8450-sndcard
- enum:
- qcom,apq8016-sbc-sndcard
+ - qcom,apq8096-sndcard
- qcom,msm8916-qdsp6-sndcard
- qcom,qcm6490-idp-sndcard
- qcom,qcs6490-rb3gen2-sndcard
--
2.45.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema
2024-07-10 11:36 ` [PATCH v2 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema Rayyan Ansari
@ 2024-07-10 12:30 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-10 12:30 UTC (permalink / raw)
To: Rayyan Ansari, devicetree
Cc: alsa-devel, Banajit Goswami, Conor Dooley, Krzysztof Kozlowski,
Liam Girdwood, linux-arm-msm, linux-kernel, linux-sound,
Mark Brown, Rob Herring, Srinivas Kandagatla
On 10/07/2024 13:36, Rayyan Ansari wrote:
> Convert the Qualcomm MSM8916 WCD Digital Audio Codec bindings from text
> to yaml dt schema format.
> Make bindings complete by adding #sound-dai-cells.
>
> Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
> ---
> v1 -> v2: removed unneeded minItems, added ref to dai-common.yaml
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml
2024-07-10 11:36 [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml Rayyan Ansari
2024-07-10 11:36 ` [PATCH v2 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema Rayyan Ansari
2024-07-10 11:36 ` [PATCH v2 2/2] ASoC: dt-bindings: qcom,apq8096-sndcard: use dtschema Rayyan Ansari
@ 2024-07-11 1:10 ` Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-07-11 1:10 UTC (permalink / raw)
To: devicetree, Rayyan Ansari
Cc: alsa-devel, Banajit Goswami, Conor Dooley, Krzysztof Kozlowski,
Liam Girdwood, linux-arm-msm, linux-kernel, linux-sound,
Rob Herring, Srinivas Kandagatla
On Wed, 10 Jul 2024 12:36:05 +0100, Rayyan Ansari wrote:
> These patches convert the remaining plain text bindings for Qualcomm
> sound drivers to dt schema, so device trees can be validated against
> them.
>
> v1: https://lore.kernel.org/all/20240709152808.155405-1-rayyan.ansari@linaro.org/
>
> Thanks,
> Rayyan
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema
commit: 054ac9c97c7d9eb55f471fc6f019b654d17332a7
[2/2] ASoC: dt-bindings: qcom,apq8096-sndcard: use dtschema
commit: 3cbda25e2db28b4352c73d4167f0dab10049ea54
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-11 1:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-10 11:36 [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml Rayyan Ansari
2024-07-10 11:36 ` [PATCH v2 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema Rayyan Ansari
2024-07-10 12:30 ` Krzysztof Kozlowski
2024-07-10 11:36 ` [PATCH v2 2/2] ASoC: dt-bindings: qcom,apq8096-sndcard: use dtschema Rayyan Ansari
2024-07-11 1:10 ` [PATCH v2 0/2] ASoC: dt-bindings: convert qcom sound bindings to yaml Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®