* [PATCH v7 0/2] Qualcomm's lpass device tree changes for I2s dai
@ 2021-03-14 6:10 Srinivasa Rao Mandadapu
2021-03-14 6:10 ` [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Srinivasa Rao Mandadapu
2021-03-14 6:10 ` [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz Srinivasa Rao Mandadapu
0 siblings, 2 replies; 9+ messages in thread
From: Srinivasa Rao Mandadapu @ 2021-03-14 6:10 UTC (permalink / raw)
To: agross, bjorn.andersson, robh+dt, linux-arm-msm, devicetree,
linux-kernel, rohitkr, srinivas.kandagatla, dianders, swboyd,
judyhsiao
Cc: Srinivasa Rao Mandadapu
These patches are device tree changes to support audio over I2S.
Changes Since v6:
-- Changed mi2s node names
Changes Since v5:
-- Removed lpass macro in codec dai cell
-- Renamed multimedia dai codec alias name
Changes Since v4:
-- Removed duplication of dai-link in sound node.
-- Replaced reg values with common dt-bindings macros in coachz dtsi
-- Included sc7180-lpass.h instead of qcom,lpass.h
-- Sound node placement change in coachz dtsi.
Changes Since v3:
-- Compatible name changed as per trogdor
Changes Since v2:
-- Sound node variable is added in sc7180-trogdor-coachz.dtsi.
-- Audio-jack property is removed, as it may create conflicts with the boards
having different codecs.
-- Replaced reg values with common dt-bindings macros
Changes Since v1:
-- Ajith's Certification is added.
-- Alias name added for sound dai link node
Ajit Pandey (1):
arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver
Srinivasa Rao Mandadapu (1):
arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz
.../boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 10 ++++
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 58 +++++++++++++++++++
2 files changed, 68 insertions(+)
--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc.,
is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver 2021-03-14 6:10 [PATCH v7 0/2] Qualcomm's lpass device tree changes for I2s dai Srinivasa Rao Mandadapu @ 2021-03-14 6:10 ` Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson ` (2 more replies) 2021-03-14 6:10 ` [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz Srinivasa Rao Mandadapu 1 sibling, 3 replies; 9+ messages in thread From: Srinivasa Rao Mandadapu @ 2021-03-14 6:10 UTC (permalink / raw) To: agross, bjorn.andersson, robh+dt, linux-arm-msm, devicetree, linux-kernel, rohitkr, srinivas.kandagatla, dianders, swboyd, judyhsiao Cc: Ajit Pandey, V Sujith Kumar Reddy, Srinivasa Rao Mandadapu From: Ajit Pandey <ajitp@codeaurora.org> Add dai link for supporting lpass I2S driver, which is used for audio capture and playback. Add lpass-cpu node with pin controls and i2s primary and secondary dai-links Signed-off-by: Ajit Pandey <ajitp@codeaurora.org> Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org> Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 58 ++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index 436582279dad..fd345972a361 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -9,6 +9,7 @@ #include <dt-bindings/input/gpio-keys.h> #include <dt-bindings/input/input.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> +#include <dt-bindings/sound/sc7180-lpass.h> /* PMICs depend on spmi_bus label and so must come after SoC */ #include "pm6150.dtsi" @@ -283,6 +284,42 @@ keyboard_backlight: keyboard-backlight { max-brightness = <1023>; }; }; + + sound: sound { + compatible = "google,sc7180-trogdor"; + model = "sc7180-rt5682-max98357a-1mic"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + link-name = "MultiMedia0"; + reg = <MI2S_PRIMARY>; + cpu { + sound-dai = <&lpass_cpu MI2S_PRIMARY>; + }; + + sound_multimedia0_codec: codec { + sound-dai = <&alc5682 0 /* aif1 */>; + }; + }; + + dai-link@1 { + link-name = "MultiMedia1"; + reg = <MI2S_SECONDARY>; + cpu { + sound-dai = <&lpass_cpu MI2S_SECONDARY>; + }; + + sound_multimedia1_codec: codec { + sound-dai = <&max98357a>; + }; + }; + }; }; &qfprom { @@ -720,6 +757,27 @@ &ipa { modem-init; }; +&lpass_cpu { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&sec_mi2s_active>, <&pri_mi2s_active>, <&pri_mi2s_mclk_active>; + + #address-cells = <1>; + #size-cells = <0>; + + mi2s@0 { + reg = <MI2S_PRIMARY>; + qcom,playback-sd-lines = <1>; + qcom,capture-sd-lines = <0>; + }; + + mi2s@1 { + reg = <MI2S_SECONDARY>; + qcom,playback-sd-lines = <0>; + }; +}; + &mdp { status = "okay"; }; -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project. ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver 2021-03-14 6:10 ` [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Srinivasa Rao Mandadapu @ 2021-03-15 19:37 ` Doug Anderson 2021-03-17 1:01 ` Stephen Boyd 2021-03-31 8:48 ` Srinivas Kandagatla 2 siblings, 0 replies; 9+ messages in thread From: Doug Anderson @ 2021-03-15 19:37 UTC (permalink / raw) To: Srinivasa Rao Mandadapu Cc: Andy Gross, Bjorn Andersson, Rob Herring, linux-arm-msm, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, LKML, Rohit kumar, Srinivas Kandagatla, Stephen Boyd, Judy Hsiao, Ajit Pandey, V Sujith Kumar Reddy Hi, On Sat, Mar 13, 2021 at 10:11 PM Srinivasa Rao Mandadapu <srivasam@codeaurora.org> wrote: > > From: Ajit Pandey <ajitp@codeaurora.org> > > Add dai link for supporting lpass I2S driver, which is used > for audio capture and playback. > Add lpass-cpu node with pin controls and i2s primary > and secondary dai-links You missed Stephen's comments on your commit message [1] [1] https://lore.kernel.org/r/161566899554.1478170.1265435102634351195@swboyd.mtv.corp.google.com/ > Signed-off-by: Ajit Pandey <ajitp@codeaurora.org> > Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org> > Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> > --- > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 58 ++++++++++++++++++++ > 1 file changed, 58 insertions(+) The commit message nits aren't terribly important and Bjorn can presumably just fix them when applying if he cares. IMO you don't need to re-spin. Reviewed-by: Douglas Anderson <dianders@chromium.org> With these two patches plus commit 9922f50f7178 ("ASoC: qcom: lpass-cpu: Fix lpass dai ids parse") in the sound tree I get audio on sc7180-trogdor-lazor! Thus: Tested-by: Douglas Anderson <dianders@chromium.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver 2021-03-14 6:10 ` [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson @ 2021-03-17 1:01 ` Stephen Boyd 2021-03-31 8:48 ` Srinivas Kandagatla 2 siblings, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2021-03-17 1:01 UTC (permalink / raw) To: Srinivasa Rao Mandadapu, agross, bjorn.andersson, devicetree, dianders, judyhsiao, linux-arm-msm, linux-kernel, robh+dt, rohitkr, srinivas.kandagatla Cc: Ajit Pandey, V Sujith Kumar Reddy, Srinivasa Rao Mandadapu Quoting Srinivasa Rao Mandadapu (2021-03-13 22:10:53) > From: Ajit Pandey <ajitp@codeaurora.org> > > Add dai link for supporting lpass I2S driver, which is used > for audio capture and playback. > Add lpass-cpu node with pin controls and i2s primary > and secondary dai-links > > Signed-off-by: Ajit Pandey <ajitp@codeaurora.org> > Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org> > Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> > --- Reviewed-by: Stephen Boyd <swboyd@chromium.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver 2021-03-14 6:10 ` [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson 2021-03-17 1:01 ` Stephen Boyd @ 2021-03-31 8:48 ` Srinivas Kandagatla 2 siblings, 0 replies; 9+ messages in thread From: Srinivas Kandagatla @ 2021-03-31 8:48 UTC (permalink / raw) To: Srinivasa Rao Mandadapu, agross, bjorn.andersson, robh+dt, linux-arm-msm, devicetree, linux-kernel, rohitkr, dianders, swboyd, judyhsiao Cc: Ajit Pandey, V Sujith Kumar Reddy On 14/03/2021 06:10, Srinivasa Rao Mandadapu wrote: > From: Ajit Pandey <ajitp@codeaurora.org> > > Add dai link for supporting lpass I2S driver, which is used > for audio capture and playback. > Add lpass-cpu node with pin controls and i2s primary > and secondary dai-links > > Signed-off-by: Ajit Pandey <ajitp@codeaurora.org> > Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org> > Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> > --- LGTM, Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 58 ++++++++++++++++++++ > 1 file changed, 58 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > index 436582279dad..fd345972a361 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > @@ -9,6 +9,7 @@ > #include <dt-bindings/input/gpio-keys.h> > #include <dt-bindings/input/input.h> > #include <dt-bindings/regulator/qcom,rpmh-regulator.h> > +#include <dt-bindings/sound/sc7180-lpass.h> > > /* PMICs depend on spmi_bus label and so must come after SoC */ > #include "pm6150.dtsi" > @@ -283,6 +284,42 @@ keyboard_backlight: keyboard-backlight { > max-brightness = <1023>; > }; > }; > + > + sound: sound { > + compatible = "google,sc7180-trogdor"; > + model = "sc7180-rt5682-max98357a-1mic"; > + > + audio-routing = > + "Headphone Jack", "HPOL", > + "Headphone Jack", "HPOR"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + dai-link@0 { > + link-name = "MultiMedia0"; > + reg = <MI2S_PRIMARY>; > + cpu { > + sound-dai = <&lpass_cpu MI2S_PRIMARY>; > + }; > + > + sound_multimedia0_codec: codec { > + sound-dai = <&alc5682 0 /* aif1 */>; > + }; > + }; > + > + dai-link@1 { > + link-name = "MultiMedia1"; > + reg = <MI2S_SECONDARY>; > + cpu { > + sound-dai = <&lpass_cpu MI2S_SECONDARY>; > + }; > + > + sound_multimedia1_codec: codec { > + sound-dai = <&max98357a>; > + }; > + }; > + }; > }; > > &qfprom { > @@ -720,6 +757,27 @@ &ipa { > modem-init; > }; > > +&lpass_cpu { > + status = "okay"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&sec_mi2s_active>, <&pri_mi2s_active>, <&pri_mi2s_mclk_active>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + mi2s@0 { > + reg = <MI2S_PRIMARY>; > + qcom,playback-sd-lines = <1>; > + qcom,capture-sd-lines = <0>; > + }; > + > + mi2s@1 { > + reg = <MI2S_SECONDARY>; > + qcom,playback-sd-lines = <0>; > + }; > +}; > + > &mdp { > status = "okay"; > }; > ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz 2021-03-14 6:10 [PATCH v7 0/2] Qualcomm's lpass device tree changes for I2s dai Srinivasa Rao Mandadapu 2021-03-14 6:10 ` [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Srinivasa Rao Mandadapu @ 2021-03-14 6:10 ` Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson ` (2 more replies) 1 sibling, 3 replies; 9+ messages in thread From: Srinivasa Rao Mandadapu @ 2021-03-14 6:10 UTC (permalink / raw) To: agross, bjorn.andersson, robh+dt, linux-arm-msm, devicetree, linux-kernel, rohitkr, srinivas.kandagatla, dianders, swboyd, judyhsiao Cc: Srinivasa Rao Mandadapu This is a trgodor variant, required to have sound node variable for coachz specific platform. Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> --- arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi index 4ad520f00485..e2ffe71c2d52 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi @@ -89,6 +89,16 @@ &sn65dsi86_out { data-lanes = <0 1 2 3>; }; +&sound { + compatible = "google,sc7180-coachz"; + model = "sc7180-adau7002-max98357a"; + audio-routing = "PDM_DAT", "DMIC"; +}; + +&sound_multimedia0_codec { + sound-dai = <&adau7002>; +}; + /* PINCTRL - modifications to sc7180-trogdor.dtsi */ &en_pp3300_dx_edp { -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project. ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz 2021-03-14 6:10 ` [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz Srinivasa Rao Mandadapu @ 2021-03-15 19:37 ` Doug Anderson 2021-03-17 1:01 ` Stephen Boyd 2021-03-31 8:48 ` Srinivas Kandagatla 2 siblings, 0 replies; 9+ messages in thread From: Doug Anderson @ 2021-03-15 19:37 UTC (permalink / raw) To: Srinivasa Rao Mandadapu Cc: Andy Gross, Bjorn Andersson, Rob Herring, linux-arm-msm, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, LKML, Rohit kumar, Srinivas Kandagatla, Stephen Boyd, Judy Hsiao Hi, On Sat, Mar 13, 2021 at 10:11 PM Srinivasa Rao Mandadapu <srivasam@codeaurora.org> wrote: > > This is a trgodor variant, required to have sound node variable > for coachz specific platform. > > Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> > Reviewed-by: Stephen Boyd <swboyd@chromium.org> > --- > arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) Reviewed-by: Douglas Anderson <dianders@chromium.org> With these two patches plus commit 9922f50f7178 ("ASoC: qcom: lpass-cpu: Fix lpass dai ids parse") in the sound tree I get audio on sc7180-trogdor-coachz! Thus: Tested-by: Douglas Anderson <dianders@chromium.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz 2021-03-14 6:10 ` [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson @ 2021-03-17 1:01 ` Stephen Boyd 2021-03-31 8:48 ` Srinivas Kandagatla 2 siblings, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2021-03-17 1:01 UTC (permalink / raw) To: Srinivasa Rao Mandadapu, agross, bjorn.andersson, devicetree, dianders, judyhsiao, linux-arm-msm, linux-kernel, robh+dt, rohitkr, srinivas.kandagatla Cc: Srinivasa Rao Mandadapu Quoting Srinivasa Rao Mandadapu (2021-03-13 22:10:54) > This is a trgodor variant, required to have sound node variable > for coachz specific platform. > > Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> > Reviewed-by: Stephen Boyd <swboyd@chromium.org> > --- Reviewed-by: Stephen Boyd <swboyd@chromium.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz 2021-03-14 6:10 ` [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson 2021-03-17 1:01 ` Stephen Boyd @ 2021-03-31 8:48 ` Srinivas Kandagatla 2 siblings, 0 replies; 9+ messages in thread From: Srinivas Kandagatla @ 2021-03-31 8:48 UTC (permalink / raw) To: Srinivasa Rao Mandadapu, agross, bjorn.andersson, robh+dt, linux-arm-msm, devicetree, linux-kernel, rohitkr, dianders, swboyd, judyhsiao On 14/03/2021 06:10, Srinivasa Rao Mandadapu wrote: > This is a trgodor variant, required to have sound node variable > for coachz specific platform. > > Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org> > Reviewed-by: Stephen Boyd <swboyd@chromium.org> > --- Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi > index 4ad520f00485..e2ffe71c2d52 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi > @@ -89,6 +89,16 @@ &sn65dsi86_out { > data-lanes = <0 1 2 3>; > }; > > +&sound { > + compatible = "google,sc7180-coachz"; > + model = "sc7180-adau7002-max98357a"; > + audio-routing = "PDM_DAT", "DMIC"; > +}; > + > +&sound_multimedia0_codec { > + sound-dai = <&adau7002>; > +}; > + > /* PINCTRL - modifications to sc7180-trogdor.dtsi */ > > &en_pp3300_dx_edp { > ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-03-31 8:48 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-03-14 6:10 [PATCH v7 0/2] Qualcomm's lpass device tree changes for I2s dai Srinivasa Rao Mandadapu 2021-03-14 6:10 ` [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson 2021-03-17 1:01 ` Stephen Boyd 2021-03-31 8:48 ` Srinivas Kandagatla 2021-03-14 6:10 ` [PATCH v7 2/2] arm64: dts: qcom: Add sound node for sc7180-trogdor-coachz Srinivasa Rao Mandadapu 2021-03-15 19:37 ` Doug Anderson 2021-03-17 1:01 ` Stephen Boyd 2021-03-31 8:48 ` Srinivas Kandagatla
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).