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 1/4] arm64: dts: qcom: sm8450: move Soundwire pinctrl to its nodes
Date: Wed, 13 Dec 2023 17:45:32 +0100 [thread overview]
Message-ID: <ce71647f-a21e-4df2-9f62-19de7da09728@linaro.org> (raw)
In-Reply-To: <20231213162856.188566-2-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>
>
> ---
>
> Not tested on HW.
> ---
> arch/arm64/boot/dts/qcom/sm8450.dtsi | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi
> index 12e55a0c7417..3b6ea9653d2a 100644
> --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi
> @@ -2160,8 +2160,6 @@ wsa2macro: codec@31e0000 {
>
> #clock-cells = <0>;
> clock-output-names = "wsa2-mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&wsa2_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2173,6 +2171,9 @@ swr4: soundwire-controller@31f0000 {
> clock-names = "iface";
> label = "WSA2";
>
> + pinctrl-0 = <&wsa2_swr_active>;
> + pinctrl-names = "default";
> +
> qcom,din-ports = <2>;
> qcom,dout-ports = <6>;
>
> @@ -2208,8 +2209,6 @@ rxmacro: codec@3200000 {
>
> #clock-cells = <0>;
> clock-output-names = "mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&rx_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2223,6 +2222,9 @@ swr1: soundwire-controller@3210000 {
> qcom,din-ports = <0>;
> qcom,dout-ports = <5>;
>
> + pinctrl-0 = <&rx_swr_active>;
> + pinctrl-names = "default";
> +
> qcom,ports-sinterval-low = /bits/ 8 <0x03 0x1f 0x1f 0x07 0x00>;
> qcom,ports-offset1 = /bits/ 8 <0x00 0x00 0x0b 0x01 0x00>;
> qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x0b 0x00 0x00>;
> @@ -2254,8 +2256,6 @@ txmacro: codec@3220000 {
>
> #clock-cells = <0>;
> clock-output-names = "mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&tx_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2275,8 +2275,6 @@ wsamacro: codec@3240000 {
>
> #clock-cells = <0>;
> clock-output-names = "mclk";
> - pinctrl-names = "default";
> - pinctrl-0 = <&wsa_swr_active>;
> #sound-dai-cells = <1>;
> };
>
> @@ -2288,6 +2286,9 @@ swr0: soundwire-controller@3250000 {
> clock-names = "iface";
> label = "WSA";
>
> + pinctrl-0 = <&wsa_swr_active>;
> + pinctrl-names = "default";
> +
> qcom,din-ports = <2>;
> qcom,dout-ports = <6>;
>
> @@ -2318,6 +2319,9 @@ swr2: soundwire-controller@33b0000 {
> 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:45 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 [this message]
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
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=ce71647f-a21e-4df2-9f62-19de7da09728@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
all inboxes | Powered by JetHome®