devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] arm64: dts: qcom: msm8996: move WCD9335 audio codec to boards
Date: Mon, 20 Feb 2023 10:45:25 +0100	[thread overview]
Message-ID: <42f7d53b-a922-760a-4be2-7498ea0d560a@linaro.org> (raw)
In-Reply-To: <20230220094339.47370-1-krzysztof.kozlowski@linaro.org>



On 20.02.2023 10:43, Krzysztof Kozlowski wrote:
> The WCD9335 audio codec on Slimbus is a property of a board, not SoC,
> thus it should not be present in MSM8996 DTSI.  Keep it in specific
> boards, so it won't appear incomplete in the boards not having it.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/apq8096-db820c.dts   | 56 +++++++++++++----
>  .../boot/dts/qcom/msm8996-oneplus-common.dtsi | 56 +++++++++++++----
>  .../boot/dts/qcom/msm8996-xiaomi-common.dtsi  | 60 ++++++++++++++-----
>  arch/arm64/boot/dts/qcom/msm8996.dtsi         | 30 +---------
>  4 files changed, 135 insertions(+), 67 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dts b/arch/arm64/boot/dts/qcom/apq8096-db820c.dts
> index fe6c415e8229..ce189dea2760 100644
> --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dts
> +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dts
> @@ -974,6 +974,50 @@ dai@2 {
>  	};
>  };
>  
> +&slim_msm {
> +	status = "okay";
> +
> +	slim@1 {
> +		reg = <1>;
> +		#address-cells = <2>;
> +		#size-cells = <0>;
> +
> +		tasha_ifd: tas-ifd@0,0 {
> +			compatible = "slim217,1a0";
> +			reg = <0 0>;
> +		};
> +
> +		wcd9335: codec@1,0 {
> +			compatible = "slim217,1a0";
> +			reg = <1 0>;
> +
> +			clock-names = "mclk", "slimbus";
> +			clocks = <&div1_mclk>,
> +				 <&rpmcc RPM_SMD_BB_CLK1>;
> +			interrupt-parent = <&tlmm>;
> +			interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
> +				     <53 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "intr1", "intr2";
> +			interrupt-controller;
> +			#interrupt-cells = <1>;
> +
> +			pinctrl-0 = <&cdc_reset_active &wcd_intr_default>;
> +			pinctrl-names = "default";
> +
> +			reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
> +			slim-ifc-dev = <&tasha_ifd>;
> +
> +			#sound-dai-cells = <1>;
> +
> +			vdd-buck-supply = <&vreg_s4a_1p8>;
> +			vdd-buck-sido-supply = <&vreg_s4a_1p8>;
> +			vdd-tx-supply = <&vreg_s4a_1p8>;
> +			vdd-rx-supply = <&vreg_s4a_1p8>;
> +			vdd-io-supply = <&vreg_s4a_1p8>;
> +		};
> +	};
> +};
> +
>  &sound {
>  	compatible = "qcom,apq8096-sndcard";
>  	model = "DB820c";
> @@ -1101,15 +1145,3 @@ &usb3phy {
>  &venus {
>  	status = "okay";
>  };
> -
> -&wcd9335 {
> -	clock-names = "mclk", "slimbus";
> -	clocks = <&div1_mclk>,
> -		 <&rpmcc RPM_SMD_BB_CLK1>;
> -
> -	vdd-buck-supply = <&vreg_s4a_1p8>;
> -	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
> -	vdd-tx-supply = <&vreg_s4a_1p8>;
> -	vdd-rx-supply = <&vreg_s4a_1p8>;
> -	vdd-io-supply = <&vreg_s4a_1p8>;
> -};
> diff --git a/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi
> index 2994337c6046..104deaee74e5 100644
> --- a/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi
> @@ -504,6 +504,50 @@ vreg_l32a_1p8: l32 {
>  	};
>  };
>  
> +&slim_msm {
> +	status = "okay";
> +
> +	slim@1 {
> +		reg = <1>;
> +		#address-cells = <2>;
> +		#size-cells = <0>;
> +
> +		tasha_ifd: tas-ifd@0,0 {
> +			compatible = "slim217,1a0";
> +			reg = <0 0>;
> +		};
> +
> +		wcd9335: codec@1,0 {
> +			compatible = "slim217,1a0";
> +			reg = <1 0>;
> +
> +			clock-names = "mclk", "slimbus";
> +			clocks = <&div1_mclk>,
> +				 <&rpmcc RPM_SMD_BB_CLK1>;
> +			interrupt-parent = <&tlmm>;
> +			interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
> +				     <53 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "intr1", "intr2";
> +			interrupt-controller;
> +			#interrupt-cells = <1>;
> +
> +			pinctrl-0 = <&cdc_reset_active &wcd_intr_default>;
> +			pinctrl-names = "default";
> +
> +			reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
> +			slim-ifc-dev = <&tasha_ifd>;
> +
> +			#sound-dai-cells = <1>;
> +
> +			vdd-buck-supply = <&vreg_s4a_1p8>;
> +			vdd-buck-sido-supply = <&vreg_s4a_1p8>;
> +			vdd-tx-supply = <&vreg_s4a_1p8>;
> +			vdd-rx-supply = <&vreg_s4a_1p8>;
> +			vdd-io-supply = <&vreg_s4a_1p8>;
> +		};
> +	};
> +};
> +
>  &slpi_pil {
>  	status = "okay";
>  };
> @@ -772,15 +816,3 @@ &usb3_dwc3 {
>  &venus {
>  	status = "okay";
>  };
> -
> -&wcd9335 {
> -	clock-names = "mclk", "slimbus";
> -	clocks = <&div1_mclk>,
> -		 <&rpmcc RPM_SMD_BB_CLK1>;
> -
> -	vdd-buck-supply = <&vreg_s4a_1p8>;
> -	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
> -	vdd-tx-supply = <&vreg_s4a_1p8>;
> -	vdd-rx-supply = <&vreg_s4a_1p8>;
> -	vdd-io-supply = <&vreg_s4a_1p8>;
> -};
> diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi
> index 2acfed28e3cb..446b1d23dec0 100644
> --- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi
> @@ -337,6 +337,52 @@ led@3 {
>  	};
>  };
>  
> +&slim_msm {
> +	status = "okay";
> +
> +	slim@1 {
> +		reg = <1>;
> +		#address-cells = <2>;
> +		#size-cells = <0>;
> +
> +		tasha_ifd: tas-ifd@0,0 {
> +			compatible = "slim217,1a0";
> +			reg = <0 0>;
> +		};
> +
> +		wcd9335: codec@1,0 {
> +			compatible = "slim217,1a0";
> +			reg = <1 0>;
> +
> +			clock-names = "mclk", "slimbus";
> +			clocks = <&divclk1_cdc>,
> +				 <&rpmcc RPM_SMD_BB_CLK1>;
> +			interrupt-parent = <&tlmm>;
> +			interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
> +				     <53 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "intr1", "intr2";
> +			interrupt-controller;
> +			#interrupt-cells = <1>;
> +
> +			pinctrl-0 = <&cdc_reset_active &wcd_intr_default>;
> +			pinctrl-names = "default";
> +
> +			reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
> +			slim-ifc-dev = <&tasha_ifd>;
> +
> +			#sound-dai-cells = <1>;
> +
> +			vdd-buck-supply = <&vreg_s4a_1p8>;
> +			vdd-buck-sido-supply = <&vreg_s4a_1p8>;
> +			vdd-rx-supply = <&vreg_s4a_1p8>;
> +			vdd-tx-supply = <&vreg_s4a_1p8>;
> +			vdd-vbat-supply = <&vph_pwr>;
> +			vdd-micbias-supply = <&vph_pwr_bbyp>;
> +			vdd-io-supply = <&vreg_s4a_1p8>;
> +		};
> +	};
> +};
> +
>  &slpi_pil {
>  	status = "okay";
>  
> @@ -395,20 +441,6 @@ &venus {
>  	status = "okay";
>  };
>  
> -&wcd9335 {
> -	clock-names = "mclk", "slimbus";
> -	clocks = <&divclk1_cdc>,
> -		 <&rpmcc RPM_SMD_BB_CLK1>;
> -
> -	vdd-buck-supply = <&vreg_s4a_1p8>;
> -	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
> -	vdd-rx-supply = <&vreg_s4a_1p8>;
> -	vdd-tx-supply = <&vreg_s4a_1p8>;
> -	vdd-vbat-supply = <&vph_pwr>;
> -	vdd-micbias-supply = <&vph_pwr_bbyp>;
> -	vdd-io-supply = <&vreg_s4a_1p8>;
> -};
> -
>  &rpm_requests {
>  	regulators-0 {
>  		compatible = "qcom,rpm-pm8994-regulators";
> diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi
> index 6f180a8efe77..dfc7153c9d8a 100644
> --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi
> @@ -3383,36 +3383,8 @@ slim_msm: slim-ngd@91c0000 {
>  			dma-names = "rx", "tx";
>  			#address-cells = <1>;
>  			#size-cells = <0>;
> -			slim@1 {
> -				reg = <1>;
> -				#address-cells = <2>;
> -				#size-cells = <0>;
> -
> -				tasha_ifd: tas-ifd@0,0 {
> -					compatible = "slim217,1a0";
> -					reg = <0 0>;
> -				};
> -
> -				wcd9335: codec@1,0 {
> -					pinctrl-0 = <&cdc_reset_active &wcd_intr_default>;
> -					pinctrl-names = "default";
> -
> -					compatible = "slim217,1a0";
> -					reg = <1 0>;
>  
> -					interrupt-parent = <&tlmm>;
> -					interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
> -						     <53 IRQ_TYPE_LEVEL_HIGH>;
> -					interrupt-names = "intr1", "intr2";
> -					interrupt-controller;
> -					#interrupt-cells = <1>;
> -					reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
> -
> -					slim-ifc-dev = <&tasha_ifd>;
> -
> -					#sound-dai-cells = <1>;
> -				};
> -			};
> +			status = "disabled";
>  		};
>  
>  		adsp_pil: remoteproc@9300000 {

  parent reply	other threads:[~2023-02-20  9:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-20  9:43 [PATCH 1/2] arm64: dts: qcom: msm8996: move WCD9335 audio codec to boards Krzysztof Kozlowski
2023-02-20  9:43 ` [PATCH 2/2] arm64: dts: qcom: apq8096-db820c: fix indentation Krzysztof Kozlowski
2023-02-20  9:45   ` Konrad Dybcio
2023-02-20  9:45 ` Konrad Dybcio [this message]
2023-03-15 23:35 ` (subset) [PATCH 1/2] arm64: dts: qcom: msm8996: move WCD9335 audio codec to boards 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=42f7d53b-a922-760a-4be2-7498ea0d560a@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.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).