All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65
@ 2022-05-02 17:08 Kaushal Kumar
  2022-05-02 17:08 ` [PATCH v3 1/4] ARM: dts: qcom: sdx65: Add QPIC BAM support Kaushal Kumar
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Kaushal Kumar @ 2022-05-02 17:08 UTC (permalink / raw)
  To: agross, bjorn.andersson, robh+dt, krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, manivannan.sadhasivam,
	Kaushal Kumar

Hello,

This series adds and enables devicetree nodes for QPIC BAM
and QPIC NAND for Qualcomm SDX65 platform.

Changes since v2:
 - Modify status as "okay" for the nodes added for sdx65-mtp.

Changes since v1:
 - Sort the nodes added for sdx65-mtp in alphabetical order.
 - Rebased on top of 5.18-rc5.

Kaushal Kumar (4):
  ARM: dts: qcom: sdx65: Add QPIC BAM support
  ARM: dts: qcom: sdx65: Add QPIC NAND support
  ARM: dts: qcom: sdx65-mtp: Enable QPIC BAM support
  ARM: dts: qcom: sdx65-mtp: Enable QPIC NAND support

 arch/arm/boot/dts/qcom-sdx65-mtp.dts | 27 +++++++++++++++++++++++----
 arch/arm/boot/dts/qcom-sdx65.dtsi    | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+), 4 deletions(-)

--
2.7.4


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

* [PATCH v3 1/4] ARM: dts: qcom: sdx65: Add QPIC BAM support
  2022-05-02 17:08 [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Kaushal Kumar
@ 2022-05-02 17:08 ` Kaushal Kumar
  2022-05-02 17:08 ` [PATCH v3 2/4] ARM: dts: qcom: sdx65: Add QPIC NAND support Kaushal Kumar
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kaushal Kumar @ 2022-05-02 17:08 UTC (permalink / raw)
  To: agross, bjorn.andersson, robh+dt, krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, manivannan.sadhasivam,
	Kaushal Kumar

Add devicetree node to enable support for QPIC
BAM DMA controller on Qualcomm SDX65 platform.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
---
 arch/arm/boot/dts/qcom-sdx65.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi
index a64be20..d6a6087 100644
--- a/arch/arm/boot/dts/qcom-sdx65.dtsi
+++ b/arch/arm/boot/dts/qcom-sdx65.dtsi
@@ -199,6 +199,18 @@
 			qcom,bcm-voters = <&apps_bcm_voter>;
 		};
 
+		qpic_bam: dma-controller@1b04000 {
+			compatible = "qcom,bam-v1.7.0";
+			reg = <0x01b04000 0x1c000>;
+			interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&rpmhcc RPMH_QPIC_CLK>;
+			clock-names = "bam_clk";
+			#dma-cells = <1>;
+			qcom,ee = <0>;
+			qcom,controlled-remotely;
+			status = "disabled";
+		};
+
 		tcsr_mutex: hwlock@1f40000 {
 			compatible = "qcom,tcsr-mutex";
 			reg = <0x01f40000 0x40000>;
-- 
2.7.4


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

* [PATCH v3 2/4] ARM: dts: qcom: sdx65: Add QPIC NAND support
  2022-05-02 17:08 [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Kaushal Kumar
  2022-05-02 17:08 ` [PATCH v3 1/4] ARM: dts: qcom: sdx65: Add QPIC BAM support Kaushal Kumar
@ 2022-05-02 17:08 ` Kaushal Kumar
  2022-05-02 17:08 ` [PATCH v3 3/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC BAM support Kaushal Kumar
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kaushal Kumar @ 2022-05-02 17:08 UTC (permalink / raw)
  To: agross, bjorn.andersson, robh+dt, krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, manivannan.sadhasivam,
	Kaushal Kumar

Add devicetree node to enable support for QPIC
NAND controller on Qualcomm SDX65 platform.
Since there is no "aon" clock in SDX65, a dummy
clock is provided.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
---
 arch/arm/boot/dts/qcom-sdx65.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi
index d6a6087..a75e9f1 100644
--- a/arch/arm/boot/dts/qcom-sdx65.dtsi
+++ b/arch/arm/boot/dts/qcom-sdx65.dtsi
@@ -37,6 +37,12 @@
 			clock-output-names = "sleep_clk";
 			#clock-cells = <0>;
 		};
+
+		nand_clk_dummy: nand-clk-dummy {
+			compatible = "fixed-clock";
+			clock-frequency = <32764>;
+			#clock-cells = <0>;
+		};
 	};
 
 	cpus {
@@ -211,6 +217,22 @@
 			status = "disabled";
 		};
 
+		qpic_nand: nand-controller@1b30000 {
+			compatible = "qcom,sdx55-nand";
+			reg = <0x01b30000 0x10000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			clocks = <&rpmhcc RPMH_QPIC_CLK>,
+				 <&nand_clk_dummy>;
+			clock-names = "core", "aon";
+
+			dmas = <&qpic_bam 0>,
+			       <&qpic_bam 1>,
+			       <&qpic_bam 2>;
+			dma-names = "tx", "rx", "cmd";
+			status = "disabled";
+		};
+
 		tcsr_mutex: hwlock@1f40000 {
 			compatible = "qcom,tcsr-mutex";
 			reg = <0x01f40000 0x40000>;
-- 
2.7.4


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

* [PATCH v3 3/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC BAM support
  2022-05-02 17:08 [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Kaushal Kumar
  2022-05-02 17:08 ` [PATCH v3 1/4] ARM: dts: qcom: sdx65: Add QPIC BAM support Kaushal Kumar
  2022-05-02 17:08 ` [PATCH v3 2/4] ARM: dts: qcom: sdx65: Add QPIC NAND support Kaushal Kumar
@ 2022-05-02 17:08 ` Kaushal Kumar
  2022-05-02 17:08 ` [PATCH v3 4/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC NAND support Kaushal Kumar
  2022-06-28 20:19 ` [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Bjorn Andersson
  4 siblings, 0 replies; 6+ messages in thread
From: Kaushal Kumar @ 2022-05-02 17:08 UTC (permalink / raw)
  To: agross, bjorn.andersson, robh+dt, krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, manivannan.sadhasivam,
	Kaushal Kumar

Enable QPIC BAM devicetree node for Qualcomm SDX65-MTP board.
While at it, sort the blsp1_uart3 node in alphabetical order
and set it's status as "okay".

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
---
 arch/arm/boot/dts/qcom-sdx65-mtp.dts | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/qcom-sdx65-mtp.dts b/arch/arm/boot/dts/qcom-sdx65-mtp.dts
index 6920524..e9c8df9 100644
--- a/arch/arm/boot/dts/qcom-sdx65-mtp.dts
+++ b/arch/arm/boot/dts/qcom-sdx65-mtp.dts
@@ -64,10 +64,6 @@
 	};
 };
 
-&blsp1_uart3 {
-	status = "ok";
-};
-
 &apps_rsc {
 	pmx65-rpmh-regulators {
 		compatible = "qcom,pmx65-rpmh-regulators";
@@ -245,6 +241,14 @@
 	};
 };
 
+&blsp1_uart3 {
+	status = "okay";
+};
+
+&qpic_bam {
+	status = "okay";
+};
+
 &usb {
 	status = "okay";
 };
-- 
2.7.4


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

* [PATCH v3 4/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC NAND support
  2022-05-02 17:08 [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Kaushal Kumar
                   ` (2 preceding siblings ...)
  2022-05-02 17:08 ` [PATCH v3 3/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC BAM support Kaushal Kumar
@ 2022-05-02 17:08 ` Kaushal Kumar
  2022-06-28 20:19 ` [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Bjorn Andersson
  4 siblings, 0 replies; 6+ messages in thread
From: Kaushal Kumar @ 2022-05-02 17:08 UTC (permalink / raw)
  To: agross, bjorn.andersson, robh+dt, krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, manivannan.sadhasivam,
	Kaushal Kumar

Enable QPIC NAND devicetree node for Qualcomm SDX65-MTP board.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
---
 arch/arm/boot/dts/qcom-sdx65-mtp.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-sdx65-mtp.dts b/arch/arm/boot/dts/qcom-sdx65-mtp.dts
index e9c8df9..e747ec0 100644
--- a/arch/arm/boot/dts/qcom-sdx65-mtp.dts
+++ b/arch/arm/boot/dts/qcom-sdx65-mtp.dts
@@ -249,6 +249,21 @@
 	status = "okay";
 };
 
+&qpic_nand {
+	status = "okay";
+
+	nand@0 {
+		reg = <0>;
+
+		nand-ecc-strength = <4>;
+		nand-ecc-step-size = <512>;
+		nand-bus-width = <8>;
+		/* ico and efs2 partitions are secured */
+		secure-regions = /bits/ 64 <0x500000 0x500000
+					    0xa00000 0xb00000>;
+	};
+};
+
 &usb {
 	status = "okay";
 };
-- 
2.7.4


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

* Re: [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65
  2022-05-02 17:08 [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Kaushal Kumar
                   ` (3 preceding siblings ...)
  2022-05-02 17:08 ` [PATCH v3 4/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC NAND support Kaushal Kumar
@ 2022-06-28 20:19 ` Bjorn Andersson
  4 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2022-06-28 20:19 UTC (permalink / raw)
  To: Kaushal Kumar, krzysztof.kozlowski+dt, robh+dt, agross
  Cc: linux-arm-msm, linux-kernel, manivannan.sadhasivam, devicetree

On Mon, 2 May 2022 10:08:02 -0700, Kaushal Kumar wrote:
> This series adds and enables devicetree nodes for QPIC BAM
> and QPIC NAND for Qualcomm SDX65 platform.
> 
> Changes since v2:
>  - Modify status as "okay" for the nodes added for sdx65-mtp.
> 
> Changes since v1:
>  - Sort the nodes added for sdx65-mtp in alphabetical order.
>  - Rebased on top of 5.18-rc5.
> 
> [...]

Applied, thanks!

[1/4] ARM: dts: qcom: sdx65: Add QPIC BAM support
      commit: ab11b74d87ddadb1e6e6d8dc36f3145a26158ef2
[2/4] ARM: dts: qcom: sdx65: Add QPIC NAND support
      commit: 0ec15b6f7621c2e5ded3d3d1a67361da1895c26b
[3/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC BAM support
      commit: eae61fddd64861fc496a7786b02449abe8188145
[4/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC NAND support
      commit: 59e73f67e14b95eddbbff2f009c98a55cef47f8a

Best regards,
-- 
Bjorn Andersson <bjorn.andersson@linaro.org>

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

end of thread, other threads:[~2022-06-28 20:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 17:08 [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Kaushal Kumar
2022-05-02 17:08 ` [PATCH v3 1/4] ARM: dts: qcom: sdx65: Add QPIC BAM support Kaushal Kumar
2022-05-02 17:08 ` [PATCH v3 2/4] ARM: dts: qcom: sdx65: Add QPIC NAND support Kaushal Kumar
2022-05-02 17:08 ` [PATCH v3 3/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC BAM support Kaushal Kumar
2022-05-02 17:08 ` [PATCH v3 4/4] ARM: dts: qcom: sdx65-mtp: Enable QPIC NAND support Kaushal Kumar
2022-06-28 20:19 ` [PATCH v3 0/4] Add QPIC BAM and QPIC NAND devicetree support for SDX65 Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.