ASoC: qcom: Add talos-lyra-evk audio support
Subsystems (6)
cover ASoC: qcom: Add talos-lyra-evk audio support
This series adds audio support for the talos-lyra-evk platform, which uses the MAX98091 codec over the Secondary MI2S interface for both playback and capture.
The talos-lyra-evk is based on the QCS615 SoC and uses the LPASS audio subsystem with APM-based routing. This series adds the necessary DT nodes for the LPASS LPI pinctrl, I2S pin states, MAX98091 codec, and sound card, along with the machine driver and DT binding updates.
Changes included in this series:
- Patch 1/3: Enable audio support in the talos-lyra-evk DTS, adding the sound card node with Secondary MI2S playback and capture DAI links, the max98091 codec node, lpass_tlmm pinctrl node, and LPI I2S pin states
- Patch 2/3: Add the talos-lyra-sndcard compatible to the sc8280xp machine driver with DAPM routes, widgets, kcontrols, and codec configuration for the MAX98091
- Patch 3/3: Add the qcom,talos-lyra-sndcard compatible string to the qcom,sm8250 DT binding
Dependencies:
- https://lore.kernel.org/all/[email protected]/
talos-lyra-evk board support (precon)
- https://lore.kernel.org/all/[email protected]/#t
pinctrl: qcom: add QCS615 LPASS LPI pinctrl driver
---
Karthik S (3):
arm64: dts: qcom: talos-lyra-evk: enable audio support
ASoC: qcom: sc8280xp: enable support for talos-lyra
dt-bindings: sound: qcom,sm8250: add talos-lyra-sndcard compatible
.../bindings/sound/qcom,sm8250.yaml | 1 + .../boot/dts/qcom/talos-lyra-evk-som.dtsi | 1 + arch/arm64/boot/dts/qcom/talos-lyra-evk.dts | 271 +++++++++++++----- sound/soc/qcom/sc8280xp.c | 32 ++- 4 files changed, 234 insertions(+), 71 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/3 arm64: dts: qcom: talos-lyra-evk: enable audio support
enable playback and capture over max98091 codec interfaces for talos-lyra-evk platform.
--- .../boot/dts/qcom/talos-lyra-evk-som.dtsi | 1 + arch/arm64/boot/dts/qcom/talos-lyra-evk.dts | 271 +++++++++++++----- 2 files changed, 202 insertions(+), 70 deletions(-)
arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi +1 -0
@@ -5,6 +5,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> +#include <dt-bindings/sound/qcom,q6afe.h> #include "talos.dtsi" #include "pm8150.dtsi" / {
arch/arm64/boot/dts/qcom/talos-lyra-evk.dts +201 -70
310 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v1 1/3] arm64: dts: qcom: talos-lyra-evk: enable audio support
Quoted 7 lines · Karthik S
enable playback and capture over max98091 codec interfaces for talos-lyra-evk platform.
Signed-off-by Karthik S <[email protected]>--- .../boot/dts/qcom/talos-lyra-evk-som.dtsi | 1 + arch/arm64/boot/dts/qcom/talos-lyra-evk.dts | 271 +++++++++++++-----
Please order your patches as documented in submitting patches or just look how people do it.
Quoted 19 lines
2 files changed, 202 insertions(+), 70 deletions(-)arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi +1
-0@@ -5,6 +5,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> +#include <dt-bindings/sound/qcom,q6afe.h> #include "talos.dtsi" #include "pm8150.dtsi" / {arch/arm64/boot/dts/qcom/talos-lyra-evk.dts +0
-0
arch/arm64/boot/dts/qcom/talos-lyra-evk.dts line 12
Quoted 6 lines
arch/arm64/boot/dts/qcom/talos-lyra-evk.dts +0
-3@@ -7,109 +7,240 @@ #include "talos-lyra-evk-som.dtsi" / { - model = "Qualcomm Technologies, Inc. QCS615 Talos Lyra EVK"; - compatible = "qcom,talos-lyra-evk", "qcom,qcs615", "qcom,sm6150"; - chassis-type = "embedded";
What is happening here?
Best regards,
Krzysztof
Re: [PATCH v1 1/3] arm64: dts: qcom: talos-lyra-evk: enable audio support
Quoted 1 line · Krzysztof Kozlowski
What is happening here?
hi krszyztof,
git send-email seems to have picked the wrong patchsets, i will resend V1, sorry for the confusion
Thanks and regards,
karthik
PATCH 2/3 ASoC: qcom: sc8280xp: enable support for talos-lyra
In reply to Karthik SAdd the necessary board widgets, kcontrols and DAPM routes for max98091 codec support. Enable required DAI format, sysclk and other required configs.
--- sound/soc/qcom/sc8280xp.c | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-)
sound/soc/qcom/sc8280xp.c +31 -1
@@ -44,8 +44,9 @@ static struct snd_soc_dapm_widget sc8280xp_dapm_widgets[] = {static const struct snd_kcontrol_new max98090_controls[] = {SOC_DAPM_PIN_SWITCH ("Headset Mic12" ), -SOC_DAPM_PIN_SWITCH ("Headphone" ), +SOC_DAPM_PIN_SWITCH ("Headset Mic34" ),SOC_DAPM_PIN_SWITCH ("Headset Mic56" ), +SOC_DAPM_PIN_SWITCH ("Headphone" ),SOC_DAPM_PIN_SWITCH ("Speaker" ),SOC_DAPM_PIN_SWITCH ("Receiver" ),SOC_DAPM_PIN_SWITCH ("Int Mic" ),
@@ -56,12 +57,28 @@ static const struct snd_soc_dapm_widget max98090_dapm_widgets[] = {SND_SOC_DAPM_MIC ("Mic Jack" ,NULL ),SND_SOC_DAPM_HP ("Headphone" ,NULL ),SND_SOC_DAPM_MIC ("Headset Mic12" ,NULL ), +SND_SOC_DAPM_MIC ("Headset Mic34" ,NULL ),SND_SOC_DAPM_MIC ("Headset Mic56" ,NULL ),SND_SOC_DAPM_MIC ("Int Mic" ,NULL ),SND_SOC_DAPM_SPK ("Receiver" ,NULL ), SND_SOC_DAPM_SPK("Speaker", NULL), }; +static const struct snd_soc_dapm_route talos_lyra_dapm_routes[] = { + {"IN12" ,NULL ,"Headset Mic12" }, + {"Headset Mic12" ,NULL ,"MICBIAS" }, + {"IN34" ,NULL ,"Headset Mic34" }, + {"Headset Mic34" ,NULL ,"MICBIAS" }, + {"IN56" ,NULL ,"Headset Mic56" }, + {"Headset Mic56" ,NULL ,"MICBIAS" }, + {"Headphone" ,NULL ,"HPL" }, + {"Headphone" ,NULL ,"HPR" }, + {"Receiver" ,NULL ,"RCVL" }, + {"Receiver" ,NULL ,"RCVR" }, + {"Speaker" ,NULL ,"SPKL" }, + {"Speaker" ,NULL ,"SPKR" }, +}; +enum sc8280xp_jack_setup {SC8280XP_JACK_SETUP_NONE , SC8280XP_JACK_SETUP_CODEC,
@@ -624,6 +641,18 @@ static const struct qcom_snd_soc_common qcs615_priv_data = { .codec_sysclk_set = true, }; +static const struct qcom_snd_soc_common talos_lyra_priv_data = { + .driver_name ="qcs615" , + .dapm_widgets = max98090_dapm_widgets, + .num_dapm_widgets =ARRAY_SIZE (max98090_dapm_widgets), + .dapm_routes = talos_lyra_dapm_routes, + .num_dapm_routes =ARRAY_SIZE (talos_lyra_dapm_routes), + .controls = max98090_controls, + .num_controls =ARRAY_SIZE (max98090_controls), + .codec_dai_fmt =SND_SOC_DAIFMT_NB_NF |SND_SOC_DAIFMT_I2S |SND_SOC_DAIFMT_BC_FC , + .codec_sysclk_set = true, +}; +static const struct qcom_snd_soc_common qcm6490_priv_data = { .driver_name ="qcm6490" , .dapm_widgets = sc8280xp_dapm_widgets,
@@ -750,6 +779,7 @@ static const struct of_device_id snd_sc8280xp_dt_match[] = { { .compatible = "qcom,sm8550-sndcard", .data = &sm8550_priv_data }, { .compatible = "qcom,sm8650-sndcard", .data = &sm8650_priv_data }, { .compatible = "qcom,sm8750-sndcard", .data = &sm8750_priv_data }, + { .compatible = "qcom,talos-lyra-sndcard", .data = &talos_lyra_priv_data }, {} };
Signature · 1 line
2.34.1
PATCH 3/3 dt-bindings: sound: qcom,sm8250: add talos-lyra-sndcard compatible
In reply to Karthik SAdd the qcom,talos-lyra-sndcard compatible string to the qcom,sm8250 sound bindings.
--- Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +1 -0
@@ -55,6 +55,7 @@ properties: - qcom,sdm845-sndcard - qcom,sm8250-sndcard - qcom,sm8450-sndcard + - qcom,talos-lyra-sndcard - qcom,x1e80100-sndcard - thundercomm,qcs6490-rubikpi3-sndcard
Signature · 1 line
2.34.1
Quoted 6 lines · Karthik S
Dependencies:
- https://lore.kernel.org/all/[email protected]/
talos-lyra-evk board support (precon)
- https://lore.kernel.org/all/[email protected]/#t
pinctrl: qcom: add QCS615 LPASS LPI pinctrl driver
No, stop. How did you solve the complains/problems that such patches have unnecessary too many dependencies?
Best regards,
Krzysztof