From: Neil Armstrong <neil.armstrong@linaro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/4] arm64: dts: qcom: sm8550: move Soundwire pinctrl to its nodes
Date: Wed, 13 Dec 2023 17:46:01 +0100 [thread overview]
Message-ID: <c21ace70-12c0-4fdc-9316-341876b871a6@linaro.org> (raw)
In-Reply-To: <20231213162856.188566-4-krzysztof.kozlowski@linaro.org>
Le 13/12/2023 à 17:28, Krzysztof Kozlowski a écrit :
> Pin configuration for Soundwire bus should be set in Soundwire
> controller nodes, not in the associated macro codec node. This
> placement change should not have big impact in general, because macro
> codec is a clock provider for Soundwire controller, thus its devices is
> probed first. However it will have impact for disabled Soundwire buses,
> e.g. WSA2, because after this change the pins will be left in default
> state.
>
> We also follow similar approach in newer SoCs, like Qualcomm SM8650.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8550.dtsi | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> index 1f06fd33d1ce..d8f79b5895f5 100644
> --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> @@ -2050,8 +2050,6 @@ lpass_wsa2macro: codec@6aa0000 {
>
> #clock-cells = <0>;
> clock-output-names = "wsa2-mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&wsa2_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2063,6 +2061,9 @@ swr3: soundwire-controller@6ab0000 {
> clock-names = "iface";
> label = "WSA2";
>
> + pinctrl-0 = <&wsa2_swr_active>;
> + pinctrl-names = "default";
> +
> qcom,din-ports = <4>;
> qcom,dout-ports = <9>;
>
> @@ -2096,8 +2097,6 @@ lpass_rxmacro: codec@6ac0000 {
>
> #clock-cells = <0>;
> clock-output-names = "mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&rx_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2109,6 +2108,9 @@ swr1: soundwire-controller@6ad0000 {
> clock-names = "iface";
> label = "RX";
>
> + pinctrl-0 = <&rx_swr_active>;
> + pinctrl-names = "default";
> +
> qcom,din-ports = <1>;
> qcom,dout-ports = <11>;
>
> @@ -2142,8 +2144,6 @@ lpass_txmacro: codec@6ae0000 {
>
> #clock-cells = <0>;
> clock-output-names = "mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&tx_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2161,8 +2161,6 @@ lpass_wsamacro: codec@6b00000 {
>
> #clock-cells = <0>;
> clock-output-names = "mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&wsa_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2174,6 +2172,9 @@ swr0: soundwire-controller@6b10000 {
> clock-names = "iface";
> label = "WSA";
>
> + pinctrl-0 = <&wsa_swr_active>;
> + pinctrl-names = "default";
> +
> qcom,din-ports = <4>;
> qcom,dout-ports = <9>;
>
> @@ -2203,6 +2204,9 @@ swr2: soundwire-controller@6d30000 {
> clock-names = "iface";
> label = "TX";
>
> + pinctrl-0 = <&tx_swr_active>;
> + pinctrl-names = "default";
> +
> qcom,din-ports = <4>;
> qcom,dout-ports = <0>;
> qcom,ports-sinterval-low = /bits/ 8 <0x01 0x01 0x03 0x03>;
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
next prev parent reply other threads:[~2023-12-13 16:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-13 16:28 [PATCH v2 0/4] arm64: dts: qcom: few improvements Krzysztof Kozlowski
2023-12-13 16:28 ` [PATCH v2 1/4] arm64: dts: qcom: sm8450: move Soundwire pinctrl to its nodes Krzysztof Kozlowski
2023-12-13 16:45 ` Neil Armstrong
2023-12-13 16:28 ` [PATCH v2 2/4] arm64: dts: qcom: sm8450: drop unneeded assigned-clocks from codec macros Krzysztof Kozlowski
2023-12-13 16:45 ` Neil Armstrong
2023-12-13 16:28 ` [PATCH v2 3/4] arm64: dts: qcom: sm8550: move Soundwire pinctrl to its nodes Krzysztof Kozlowski
2023-12-13 16:46 ` Neil Armstrong [this message]
2023-12-13 16:28 ` [PATCH v2 4/4] arm64: dts: qcom: sm8550: drop unneeded assigned-clocks from codec macros Krzysztof Kozlowski
2023-12-13 16:46 ` Neil Armstrong
2023-12-17 17:21 ` [PATCH v2 0/4] arm64: dts: qcom: few improvements Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c21ace70-12c0-4fdc-9316-341876b871a6@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).