* [PATCH v2] ASoC: dt-bindings: qcom,sm8250: add SDM845 sound
@ 2022-07-05 17:47 Krzysztof Kozlowski
2022-07-05 18:21 ` Stephan Gerhold
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-05 17:47 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
Mark Brown, Rob Herring, Krzysztof Kozlowski, Srinivas Kandagatla,
linux-arm-msm, alsa-devel, devicetree, linux-kernel
Cc: Krzysztof Kozlowski, Stephan Gerhold
The Qualcomm SDM845 sound card bindings are almost the same as SM8250,
except "pin-switches" and "widgets" properties. These were not
documented in SDM845 text bindings but are actually valid for SDM845.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Changes since v1:
1. Integrate into SM8250 instead of creating new file (Stephan).
Cc: Stephan Gerhold <stephan@gerhold.net>
---
.../devicetree/bindings/sound/qcom,sdm845.txt | 91 -------------------
.../bindings/sound/qcom,sm8250.yaml | 1 +
2 files changed, 1 insertion(+), 91 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/qcom,sdm845.txt
diff --git a/Documentation/devicetree/bindings/sound/qcom,sdm845.txt b/Documentation/devicetree/bindings/sound/qcom,sdm845.txt
deleted file mode 100644
index de4c604641da..000000000000
--- a/Documentation/devicetree/bindings/sound/qcom,sdm845.txt
+++ /dev/null
@@ -1,91 +0,0 @@
-* Qualcomm Technologies Inc. SDM845 ASoC sound card driver
-
-This binding describes the SDM845 sound card, which uses qdsp for audio.
-
-- compatible:
- Usage: required
- Value type: <stringlist>
- Definition: must be one of this
- "qcom,sdm845-sndcard"
- "qcom,db845c-sndcard"
- "lenovo,yoga-c630-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.
-
-- 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: required
- 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>
- Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node.
-
-Example:
-
-audio {
- compatible = "qcom,sdm845-sndcard";
- model = "sdm845-snd-card";
- pinctrl-names = "default", "sleep";
- pinctrl-0 = <&pri_mi2s_active &pri_mi2s_ws_active>;
- pinctrl-1 = <&pri_mi2s_sleep &pri_mi2s_ws_sleep>;
-
- mm1-dai-link {
- link-name = "MultiMedia1";
- cpu {
- sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
- };
- };
-
- pri-mi2s-dai-link {
- link-name = "PRI MI2S Playback";
- cpu {
- sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
- };
-
- platform {
- sound-dai = <&q6routing>;
- };
- };
-};
diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
index 4ecd4080bb96..7cdf9e9f4dd3 100644
--- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
@@ -18,6 +18,7 @@ properties:
enum:
- qcom,apq8016-sbc-sndcard
- qcom,msm8916-qdsp6-sndcard
+ - qcom,sdm845-sndcard
- qcom,sm8250-sndcard
- qcom,qrb5165-rb5-sndcard
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] ASoC: dt-bindings: qcom,sm8250: add SDM845 sound
2022-07-05 17:47 [PATCH v2] ASoC: dt-bindings: qcom,sm8250: add SDM845 sound Krzysztof Kozlowski
@ 2022-07-05 18:21 ` Stephan Gerhold
2022-07-05 18:25 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Stephan Gerhold @ 2022-07-05 18:21 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
Mark Brown, Rob Herring, Krzysztof Kozlowski, Srinivas Kandagatla,
linux-arm-msm, alsa-devel, devicetree, linux-kernel
On Tue, Jul 05, 2022 at 07:47:02PM +0200, Krzysztof Kozlowski wrote:
> The Qualcomm SDM845 sound card bindings are almost the same as SM8250,
> except "pin-switches" and "widgets" properties. These were not
> documented in SDM845 text bindings but are actually valid for SDM845.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Changes since v1:
> 1. Integrate into SM8250 instead of creating new file (Stephan).
>
> Cc: Stephan Gerhold <stephan@gerhold.net>
> ---
> .../devicetree/bindings/sound/qcom,sdm845.txt | 91 -------------------
> .../bindings/sound/qcom,sm8250.yaml | 1 +
> 2 files changed, 1 insertion(+), 91 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/sound/qcom,sdm845.txt
>
> diff --git a/Documentation/devicetree/bindings/sound/qcom,sdm845.txt b/Documentation/devicetree/bindings/sound/qcom,sdm845.txt
> deleted file mode 100644
> index de4c604641da..000000000000
> --- a/Documentation/devicetree/bindings/sound/qcom,sdm845.txt
> +++ /dev/null
> @@ -1,91 +0,0 @@
[...]
> -- compatible:
> - Usage: required
> - Value type: <stringlist>
> - Definition: must be one of this
> - "qcom,sdm845-sndcard"
> - "qcom,db845c-sndcard"
> - "lenovo,yoga-c630-sndcard"
[...]
> diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> index 4ecd4080bb96..7cdf9e9f4dd3 100644
> --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> @@ -18,6 +18,7 @@ properties:
> enum:
> - qcom,apq8016-sbc-sndcard
> - qcom,msm8916-qdsp6-sndcard
> + - qcom,sdm845-sndcard
> - qcom,sm8250-sndcard
> - qcom,qrb5165-rb5-sndcard
>
Looks like you forgot the db845c and lenovo compatible? :)
If you add them feel free to add my:
Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Thanks!
Stephan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] ASoC: dt-bindings: qcom,sm8250: add SDM845 sound
2022-07-05 18:21 ` Stephan Gerhold
@ 2022-07-05 18:25 ` Krzysztof Kozlowski
0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-05 18:25 UTC (permalink / raw)
To: Stephan Gerhold
Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
Mark Brown, Rob Herring, Krzysztof Kozlowski, Srinivas Kandagatla,
linux-arm-msm, alsa-devel, devicetree, linux-kernel
On 05/07/2022 20:21, Stephan Gerhold wrote:
> [...]
>> diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
>> index 4ecd4080bb96..7cdf9e9f4dd3 100644
>> --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
>> +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
>> @@ -18,6 +18,7 @@ properties:
>> enum:
>> - qcom,apq8016-sbc-sndcard
>> - qcom,msm8916-qdsp6-sndcard
>> + - qcom,sdm845-sndcard
>> - qcom,sm8250-sndcard
>> - qcom,qrb5165-rb5-sndcard
>>
>
> Looks like you forgot the db845c and lenovo compatible? :)
>
> If you add them feel free to add my:
> Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Argh, of course. Thanks.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-05 18:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05 17:47 [PATCH v2] ASoC: dt-bindings: qcom,sm8250: add SDM845 sound Krzysztof Kozlowski
2022-07-05 18:21 ` Stephan Gerhold
2022-07-05 18:25 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).