devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
@ 2025-02-09 23:09 Rudraksha Gupta
  2025-02-09 23:18 ` Dmitry Baryshkov
  2025-02-10 18:04 ` Konrad Dybcio
  0 siblings, 2 replies; 8+ messages in thread
From: Rudraksha Gupta @ 2025-02-09 23:09 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Sam Day, Rudraksha Gupta

Copy bam nodes from qcom-ipq8064.dtsi and change
the reg values to match msm8960.

Co-developed-by: Sam Day <me@samcday.com>
Signed-off-by: Sam Day <me@samcday.com>
Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
---
Changes in v2:
- Reorganize sdcc{3,1}bam to be after sdcc{3,1} respectively
- Link to v1: https://lore.kernel.org/r/20250208-expressatt-bam-v1-1-8794ec853442@gmail.com
---
 arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
index 865fe7cc39511d7cb9ec5c4b12100404f77e2989..a5ef9269b78b25b404e1ab11e6eff2639f16b446 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
@@ -279,7 +279,7 @@ sdcc3: mmc@12180000 {
 			compatible = "arm,pl18x", "arm,primecell";
 			arm,primecell-periphid = <0x00051180>;
 			status = "disabled";
-			reg = <0x12180000 0x8000>;
+			reg = <0x12180000 0x2000>;
 			interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
 			clock-names = "mclk", "apb_pclk";
@@ -289,13 +289,25 @@ sdcc3: mmc@12180000 {
 			max-frequency = <192000000>;
 			no-1-8-v;
 			vmmc-supply = <&vsdcc_fixed>;
+			dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
+			dma-names = "tx", "rx";
+		};
+
+		sdcc3bam: dma-controller@12182000 {
+			compatible = "qcom,bam-v1.3.0";
+			reg = <0x12182000 0x2000>;
+			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&gcc SDC3_H_CLK>;
+			clock-names = "bam_clk";
+			#dma-cells = <1>;
+			qcom,ee = <0>;
 		};
 
 		sdcc1: mmc@12400000 {
 			status = "disabled";
 			compatible = "arm,pl18x", "arm,primecell";
 			arm,primecell-periphid = <0x00051180>;
-			reg = <0x12400000 0x8000>;
+			reg = <0x12400000 0x2000>;
 			interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
 			clock-names = "mclk", "apb_pclk";
@@ -305,6 +317,18 @@ sdcc1: mmc@12400000 {
 			cap-sd-highspeed;
 			cap-mmc-highspeed;
 			vmmc-supply = <&vsdcc_fixed>;
+			dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
+			dma-names = "tx", "rx";
+		};
+
+		sdcc1bam: dma-controller@12402000 {
+			compatible = "qcom,bam-v1.3.0";
+			reg = <0x12402000 0x2000>;
+			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&gcc SDC1_H_CLK>;
+			clock-names = "bam_clk";
+			#dma-cells = <1>;
+			qcom,ee = <0>;
 		};
 
 		tcsr: syscon@1a400000 {

---
base-commit: ffd294d346d185b70e28b1a28abe367bbfe53c04
change-id: 20250208-expressatt-bam-d0ed9863a626

Best regards,
-- 
Rudraksha Gupta <guptarud@gmail.com>


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
  2025-02-09 23:09 [PATCH v2] ARM: dts: qcom: msm8960: Add BAM Rudraksha Gupta
@ 2025-02-09 23:18 ` Dmitry Baryshkov
  2025-02-10 18:04 ` Konrad Dybcio
  1 sibling, 0 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2025-02-09 23:18 UTC (permalink / raw)
  To: Rudraksha Gupta
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel, Sam Day

On Sun, Feb 09, 2025 at 03:09:12PM -0800, Rudraksha Gupta wrote:
> Copy bam nodes from qcom-ipq8064.dtsi and change
> the reg values to match msm8960.
> 
> Co-developed-by: Sam Day <me@samcday.com>
> Signed-off-by: Sam Day <me@samcday.com>
> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
> ---
> Changes in v2:
> - Reorganize sdcc{3,1}bam to be after sdcc{3,1} respectively
> - Link to v1: https://lore.kernel.org/r/20250208-expressatt-bam-v1-1-8794ec853442@gmail.com
> ---
>  arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 28 ++++++++++++++++++++++++++--
>  1 file changed, 26 insertions(+), 2 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
  2025-02-09 23:09 [PATCH v2] ARM: dts: qcom: msm8960: Add BAM Rudraksha Gupta
  2025-02-09 23:18 ` Dmitry Baryshkov
@ 2025-02-10 18:04 ` Konrad Dybcio
  2025-02-12  1:59   ` Rudraksha Gupta
  1 sibling, 1 reply; 8+ messages in thread
From: Konrad Dybcio @ 2025-02-10 18:04 UTC (permalink / raw)
  To: Rudraksha Gupta, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, Sam Day

On 10.02.2025 12:09 AM, Rudraksha Gupta wrote:
> Copy bam nodes from qcom-ipq8064.dtsi and change
> the reg values to match msm8960.
> 
> Co-developed-by: Sam Day <me@samcday.com>
> Signed-off-by: Sam Day <me@samcday.com>
> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
> ---
> Changes in v2:
> - Reorganize sdcc{3,1}bam to be after sdcc{3,1} respectively
> - Link to v1: https://lore.kernel.org/r/20250208-expressatt-bam-v1-1-8794ec853442@gmail.com
> ---
>  arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 28 ++++++++++++++++++++++++++--
>  1 file changed, 26 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
> index 865fe7cc39511d7cb9ec5c4b12100404f77e2989..a5ef9269b78b25b404e1ab11e6eff2639f16b446 100644
> --- a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
> +++ b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi
> @@ -279,7 +279,7 @@ sdcc3: mmc@12180000 {
>  			compatible = "arm,pl18x", "arm,primecell";
>  			arm,primecell-periphid = <0x00051180>;
>  			status = "disabled";
> -			reg = <0x12180000 0x8000>;
> +			reg = <0x12180000 0x2000>;
>  			interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
>  			clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
>  			clock-names = "mclk", "apb_pclk";
> @@ -289,13 +289,25 @@ sdcc3: mmc@12180000 {
>  			max-frequency = <192000000>;
>  			no-1-8-v;
>  			vmmc-supply = <&vsdcc_fixed>;
> +			dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
> +			dma-names = "tx", "rx";
> +		};
> +
> +		sdcc3bam: dma-controller@12182000 {
> +			compatible = "qcom,bam-v1.3.0";
> +			reg = <0x12182000 0x2000>;

The BAM controller is 0x4000-long

Otherwise, looks good

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
  2025-02-10 18:04 ` Konrad Dybcio
@ 2025-02-12  1:59   ` Rudraksha Gupta
  2025-02-12 23:45     ` Konrad Dybcio
  0 siblings, 1 reply; 8+ messages in thread
From: Rudraksha Gupta @ 2025-02-12  1:59 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel, Sam Day

> > +             sdcc3bam: dma-controller@12182000 {
> > +                     compatible = "qcom,bam-v1.3.0";
> > +                     reg = <0x12182000 0x2000>;
>
> The BAM controller is 0x4000-long


Seems like my device splats with this requested change:

Diff: https://pastebin.com/AwzHPCLG
Log: https://pastebin.com/WQswkndX



>
> Otherwise, looks good
>
> Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
  2025-02-12  1:59   ` Rudraksha Gupta
@ 2025-02-12 23:45     ` Konrad Dybcio
  2025-02-14  1:25       ` Rudraksha Gupta
  0 siblings, 1 reply; 8+ messages in thread
From: Konrad Dybcio @ 2025-02-12 23:45 UTC (permalink / raw)
  To: Rudraksha Gupta, Konrad Dybcio
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel, Sam Day

On 12.02.2025 2:59 AM, Rudraksha Gupta wrote:
>>> +             sdcc3bam: dma-controller@12182000 {
>>> +                     compatible = "qcom,bam-v1.3.0";
>>> +                     reg = <0x12182000 0x2000>;
>>
>> The BAM controller is 0x4000-long
> 
> 
> Seems like my device splats with this requested change:
> 
> Diff: https://pastebin.com/AwzHPCLG
> Log: https://pastebin.com/WQswkndX

Did you keep your changes that shortened the sd controllers address space?

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
  2025-02-12 23:45     ` Konrad Dybcio
@ 2025-02-14  1:25       ` Rudraksha Gupta
  2025-02-14  3:02         ` Dmitry Baryshkov
  0 siblings, 1 reply; 8+ messages in thread
From: Rudraksha Gupta @ 2025-02-14  1:25 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel, Sam Day

> Did you keep your changes that shortened the sd controllers address space?

No, I changed sdcc3, sdcc3bam, sdcc1, sdcc1bam from 0x2000 to 0x4000
(2nd param of reg) as you requested, however, I got a splat.

Please let me know if I did anything wrong. Thanks.

>
> Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
  2025-02-14  1:25       ` Rudraksha Gupta
@ 2025-02-14  3:02         ` Dmitry Baryshkov
  2025-02-14  6:33           ` Rudraksha Gupta
  0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Baryshkov @ 2025-02-14  3:02 UTC (permalink / raw)
  To: Rudraksha Gupta
  Cc: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel, Sam Day

On Thu, Feb 13, 2025 at 05:25:58PM -0800, Rudraksha Gupta wrote:
> > Did you keep your changes that shortened the sd controllers address space?
> 
> No, I changed sdcc3, sdcc3bam, sdcc1, sdcc1bam from 0x2000 to 0x4000
> (2nd param of reg) as you requested, however, I got a splat.
> 
> Please let me know if I did anything wrong. Thanks.

Konrad asked you to increase the size of the BAM devices. You've
increased it for both BAM and SDCC controllers. Please revert the size
of the arm,pl18x devices (sdcc1, sdcc3) to 0x2000.

> 
> >
> > Konrad

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] ARM: dts: qcom: msm8960: Add BAM
  2025-02-14  3:02         ` Dmitry Baryshkov
@ 2025-02-14  6:33           ` Rudraksha Gupta
  0 siblings, 0 replies; 8+ messages in thread
From: Rudraksha Gupta @ 2025-02-14  6:33 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel, Sam Day

> Konrad asked you to increase the size of the BAM devices. You've
> increased it for both BAM and SDCC controllers. Please revert the size
> of the arm,pl18x devices (sdcc1, sdcc3) to 0x2000.

Oh, I see now, thanks! Seems like I took Konrad's words literally. Sent in v3 :)

>
> >
> > >
> > > Konrad
>
> --
> With best wishes
> Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-02-14  6:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-09 23:09 [PATCH v2] ARM: dts: qcom: msm8960: Add BAM Rudraksha Gupta
2025-02-09 23:18 ` Dmitry Baryshkov
2025-02-10 18:04 ` Konrad Dybcio
2025-02-12  1:59   ` Rudraksha Gupta
2025-02-12 23:45     ` Konrad Dybcio
2025-02-14  1:25       ` Rudraksha Gupta
2025-02-14  3:02         ` Dmitry Baryshkov
2025-02-14  6:33           ` Rudraksha Gupta

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).