linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms
@ 2025-10-14 11:05 Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible Md Sadre Alam
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

v3:
 * Added Tested-by tag
 * Added Reviewed-by tag
 * Reformatted clocks, clock-names, dmas, and dma-names properties
   to one entry per line
 * Rename ipq5332 to ipq5332-rdp-common

v2:
 * Added Reviewed-by tag
 * Added Acked-by tag
 * Updated board name in commit message header
 * Added \n before status

v1:
 * Added support for spi nand for IPQ5424 and IPQ5332
 * Updated bam_prep_ce_le32() to set the mask field conditionally based
   on command
 * Removed eMMC node for IPQ5424 and IPQ5332

Md Sadre Alam (9):
  spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  spi: dt-bindings: spi-qpic-snand: Add IPQ5332 compatible
  dma: qcom: bam_dma: Fix command element mask field for BAM v1.6.0+
  arm64: dts: qcom: ipq5424: Add QPIC SPI NAND controller support
  arm64: dts: qcom: ipq5332: Add QPIC SPI NAND controller support
  arm64: dts: qcom: ipq5424-rdp466: Enable QPIC SPI NAND support
  arm64: dts: qcom: pq5332-rdp-common: Enable QPIC SPI NAND support
  arm64: dts: qcom: ipq5424-rdp466: Remove eMMC support
  arm64: dts: qcom: ipq5332-rdp442: Remove eMMC support

 .../bindings/spi/qcom,spi-qpic-snand.yaml     |  2 +
 .../boot/dts/qcom/ipq5332-rdp-common.dtsi     | 44 +++++++++++++++++++
 arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts   | 34 --------------
 arch/arm64/boot/dts/qcom/ipq5332.dtsi         | 33 ++++++++++++++
 arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts   | 44 ++++++++++++-------
 arch/arm64/boot/dts/qcom/ipq5424.dtsi         | 33 ++++++++++++++
 include/linux/dma/qcom_bam_dma.h              | 21 ++++++---
 7 files changed, 157 insertions(+), 54 deletions(-)

-- 
2.34.1


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

* [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-21 19:09   ` Mark Brown
  2025-10-14 11:05 ` [PATCH v3 2/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5332 compatible Md Sadre Alam
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
the one found in IPQ9574. So let's document the IPQ5424 compatible and
use IPQ9574 as the fallback.

Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* No Change

Change in [v2]

* Added Acked-by tag

Change in [v1]

* Added support for qcom,ipq5424-snand compatible string to the device
  tree bindings.

 Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
index cb1f15224b45..39e086ced891 100644
--- a/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
+++ b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
@@ -25,6 +25,7 @@ properties:
       - items:
           - enum:
               - qcom,ipq5018-snand
+              - qcom,ipq5424-snand
           - const: qcom,ipq9574-snand
       - const: qcom,ipq9574-snand
 
-- 
2.34.1


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

* [PATCH v3 2/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5332 compatible
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 3/9] dma: qcom: bam_dma: Fix command element mask field for BAM v1.6.0+ Md Sadre Alam
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

IPQ5332 contains the QPIC-SPI-NAND flash controller which is the same as
the one found in IPQ9574. So let's document the IPQ5332 compatible and
use IPQ9574 as the fallback.

Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* No Change

Change in [v2]

* Added Acked-by tag

Change in [v1]

* Added support for qcom,ipq5332-snand compatible string to the device
  tree bindings.

 Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
index 39e086ced891..7d0571feb46d 100644
--- a/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
+++ b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
@@ -25,6 +25,7 @@ properties:
       - items:
           - enum:
               - qcom,ipq5018-snand
+              - qcom,ipq5332-snand
               - qcom,ipq5424-snand
           - const: qcom,ipq9574-snand
       - const: qcom,ipq9574-snand
-- 
2.34.1


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

* [PATCH v3 3/9] dma: qcom: bam_dma: Fix command element mask field for BAM v1.6.0+
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 2/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5332 compatible Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 4/9] arm64: dts: qcom: ipq5424: Add QPIC SPI NAND controller support Md Sadre Alam
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

BAM version 1.6.0 and later changed the behavior of the mask field in
command elements for read operations. In newer BAM versions, the mask
field for read commands contains the upper 4 bits of the destination
address to support 36-bit addressing, while for write commands it
continues to function as a traditional write mask.

This change causes NAND enumeration failures on platforms like IPQ5424
that use BAM v1.6.0+, because the current code sets mask=0xffffffff
for all commands. For read commands on newer BAM versions, this results
in the hardware interpreting the destination address as 0xf_xxxxxxxx
(invalid high memory) instead of the intended 0x0_xxxxxxxx address.

Fixed this issue by:
1. Updating the bam_cmd_element structure documentation to reflect the
   dual purpose of the mask field
2. Modifying bam_prep_ce_le32() to set appropriate mask values based on
   command type:
   - For read commands: mask = 0 (32-bit addressing, upper bits = 0)
   - For write commands: mask = 0xffffffff (traditional write mask)
3. Maintaining backward compatibility with older BAM versions

This fix enables proper NAND functionality on IPQ5424 and other platforms
using BAM v1.6.0+ while preserving compatibility with existing systems.

Tested-by: Lakshmi Sowjanya D <quic_laksd@quicinc.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* Added Tested-by tag

Change in [v2]

* No change

Change in [v1]

* Updated bam_prep_ce_le32() to set the mask field conditionally based on
  command type

* Enhanced kernel-doc comments to clarify mask behavior for BAM v1.6.0+

 include/linux/dma/qcom_bam_dma.h | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/include/linux/dma/qcom_bam_dma.h b/include/linux/dma/qcom_bam_dma.h
index 68fc0e643b1b..d9d07a9ab313 100644
--- a/include/linux/dma/qcom_bam_dma.h
+++ b/include/linux/dma/qcom_bam_dma.h
@@ -13,9 +13,12 @@
  * supported by BAM DMA Engine.
  *
  * @cmd_and_addr - upper 8 bits command and lower 24 bits register address.
- * @data - for write command: content to be written into peripheral register.
- *	   for read command: dest addr to write peripheral register value.
- * @mask - register mask.
+ * @data - For write command: content to be written into peripheral register.
+ *	   For read command: lower 32 bits of destination address.
+ * @mask - For write command: register write mask.
+ *	   For read command on BAM v1.6.0+: upper 4 bits of destination address.
+ *	   For read command on BAM < v1.6.0: ignored by hardware.
+ *	   Setting to 0 ensures 32-bit addressing compatibility.
  * @reserved - for future usage.
  *
  */
@@ -42,6 +45,10 @@ enum bam_command_type {
  * @addr: target address
  * @cmd: BAM command
  * @data: actual data for write and dest addr for read in le32
+ *
+ * For BAM v1.6.0+, the mask field behavior depends on command type:
+ * - Write commands: mask = write mask (typically 0xffffffff)
+ * - Read commands: mask = upper 4 bits of destination address (0 for 32-bit)
  */
 static inline void
 bam_prep_ce_le32(struct bam_cmd_element *bam_ce, u32 addr,
@@ -50,7 +57,11 @@ bam_prep_ce_le32(struct bam_cmd_element *bam_ce, u32 addr,
 	bam_ce->cmd_and_addr =
 		cpu_to_le32((addr & 0xffffff) | ((cmd & 0xff) << 24));
 	bam_ce->data = data;
-	bam_ce->mask = cpu_to_le32(0xffffffff);
+	if (cmd == BAM_READ_COMMAND)
+		bam_ce->mask = cpu_to_le32(0x0); /* 32-bit addressing */
+	else
+		bam_ce->mask = cpu_to_le32(0xffffffff); /* Write mask */
+	bam_ce->reserved = 0;
 }
 
 /*
@@ -60,7 +71,7 @@ bam_prep_ce_le32(struct bam_cmd_element *bam_ce, u32 addr,
  * @bam_ce: BAM command element
  * @addr: target address
  * @cmd: BAM command
- * @data: actual data for write and dest addr for read
+ * @data: actual data for write and destination address for read
  */
 static inline void
 bam_prep_ce(struct bam_cmd_element *bam_ce, u32 addr,
-- 
2.34.1


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

* [PATCH v3 4/9] arm64: dts: qcom: ipq5424: Add QPIC SPI NAND controller support
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
                   ` (2 preceding siblings ...)
  2025-10-14 11:05 ` [PATCH v3 3/9] dma: qcom: bam_dma: Fix command element mask field for BAM v1.6.0+ Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-22 15:01   ` Konrad Dybcio
  2025-10-14 11:05 ` [PATCH v3 5/9] arm64: dts: qcom: ipq5332: " Md Sadre Alam
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

Add device tree nodes for QPIC SPI NAND flash controller support
on IPQ5424 SoC.

The IPQ5424 SoC includes a QPIC controller that supports SPI NAND flash
devices with hardware ECC capabilities and DMA support through BAM
(Bus Access Manager).

Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* Reformatted clocks, clock-names, dmas, and dma-names properties
  to one entry per line

Change in [v2]

* No change

Change in [v1]

* Added qpic_bam node to describe BAM DMA controller

* Added spi nand support for IPQ5424

 arch/arm64/boot/dts/qcom/ipq5424.dtsi | 33 +++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
index ef2b52f3597d..89a5bd7d2e3f 100644
--- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
@@ -567,6 +567,39 @@ sdhc: mmc@7804000 {
 			status = "disabled";
 		};
 
+		qpic_bam: dma-controller@7984000 {
+			compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
+			reg = <0x0 0x07984000 0x0 0x1c000>;
+			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&gcc GCC_QPIC_AHB_CLK>;
+			clock-names = "bam_clk";
+			#dma-cells = <1>;
+			qcom,ee = <0>;
+			status = "disabled";
+		};
+
+		qpic_nand: spi@79b0000 {
+			compatible = "qcom,ipq5424-snand", "qcom,ipq9574-snand";
+			reg = <0x0 0x079b0000 0x0 0x10000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			clocks = <&gcc GCC_QPIC_CLK>,
+				 <&gcc GCC_QPIC_AHB_CLK>,
+				 <&gcc GCC_QPIC_IO_MACRO_CLK>;
+			clock-names = "core",
+				      "aon",
+				      "iom";
+
+			dmas = <&qpic_bam 0>,
+			       <&qpic_bam 1>,
+			       <&qpic_bam 2>;
+			dma-names = "tx",
+				    "rx",
+				    "cmd";
+
+			status = "disabled";
+		};
+
 		intc: interrupt-controller@f200000 {
 			compatible = "arm,gic-v3";
 			reg = <0 0xf200000 0 0x10000>, /* GICD */
-- 
2.34.1


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

* [PATCH v3 5/9] arm64: dts: qcom: ipq5332: Add QPIC SPI NAND controller support
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
                   ` (3 preceding siblings ...)
  2025-10-14 11:05 ` [PATCH v3 4/9] arm64: dts: qcom: ipq5424: Add QPIC SPI NAND controller support Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-22 15:01   ` Konrad Dybcio
  2025-10-14 11:05 ` [PATCH v3 6/9] arm64: dts: qcom: ipq5424-rdp466: Enable QPIC SPI NAND support Md Sadre Alam
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

Add device tree nodes for QPIC SPI NAND flash controller support
on IPQ5332 SoC.

The IPQ5332 SoC includes a QPIC controller that supports SPI NAND flash
devices with hardware ECC capabilities and DMA support through BAM
(Bus Access Manager).

Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* Reformatted clocks, clock-names, dmas, and dma-names properties
  to one entry per line

Change in [v2]

* No change

Change in [v1]

* Added qpic_bam node to describe BAM DMA controller

* Added spi nand support for IPQ5332

 arch/arm64/boot/dts/qcom/ipq5332.dtsi | 33 +++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
index 45fc512a3bab..e227730d99a6 100644
--- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
@@ -423,6 +423,39 @@ blsp1_spi2: spi@78b7000 {
 			status = "disabled";
 		};
 
+		qpic_bam: dma-controller@7984000 {
+			compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
+			reg = <0x07984000 0x1c000>;
+			interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&gcc GCC_QPIC_AHB_CLK>;
+			clock-names = "bam_clk";
+			#dma-cells = <1>;
+			qcom,ee = <0>;
+			status = "disabled";
+		};
+
+		qpic_nand: spi@79b0000 {
+			compatible = "qcom,ipq5332-snand", "qcom,ipq9574-snand";
+			reg = <0x079b0000 0x10000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			clocks = <&gcc GCC_QPIC_CLK>,
+				 <&gcc GCC_QPIC_AHB_CLK>,
+				 <&gcc GCC_QPIC_IO_MACRO_CLK>;
+			clock-names = "core",
+				      "aon",
+				      "iom";
+
+			dmas = <&qpic_bam 0>,
+			       <&qpic_bam 1>,
+			       <&qpic_bam 2>;
+			dma-names = "tx",
+				    "rx",
+				    "cmd";
+
+			status = "disabled";
+		};
+
 		usb: usb@8af8800 {
 			compatible = "qcom,ipq5332-dwc3", "qcom,dwc3";
 			reg = <0x08af8800 0x400>;
-- 
2.34.1


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

* [PATCH v3 6/9] arm64: dts: qcom: ipq5424-rdp466: Enable QPIC SPI NAND support
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
                   ` (4 preceding siblings ...)
  2025-10-14 11:05 ` [PATCH v3 5/9] arm64: dts: qcom: ipq5332: " Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 7/9] arm64: dts: qcom: pq5332-rdp-common: " Md Sadre Alam
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

Enable QPIC SPI NAND flash controller support on the IPQ5424 RDP466
reference design platform.

The RDP466 board features a SPI NAND flash device connected to the QPIC
controller for primary storage. This patch enables the QPIC BAM DMA
controller and SPI NAND interface of QPIC, and configures the necessary
pin control settings for proper operation.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* No Change

Change in [v2]

* Added Reviewed-by tag

* Added \n before status in qpic_nand node

Change in [v1]

* Enable bam and spi nand for ipq5424

 arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts | 44 +++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts b/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts
index 738618551203..7c32fb8f9f73 100644
--- a/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts
+++ b/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts
@@ -224,6 +224,29 @@ data-pins {
 		};
 	};
 
+	qpic_snand_default_state: qpic-snand-default-state {
+		clock-pins {
+			pins = "gpio5";
+			function = "qspi_clk";
+			drive-strength = <8>;
+			bias-pull-down;
+		};
+
+		cs-pins {
+			pins = "gpio4";
+			function = "qspi_cs";
+			drive-strength = <8>;
+			bias-pull-up;
+		};
+
+		data-pins {
+			pins = "gpio0", "gpio1", "gpio2", "gpio3";
+			function = "qspi_data";
+			drive-strength = <8>;
+			bias-pull-down;
+		};
+	};
+
 	uart0_pins: uart0-default-state {
 		pins = "gpio10", "gpio11", "gpio12", "gpio13";
 		function = "uart0";
@@ -246,6 +269,27 @@ pcie3_default_state: pcie3-default-state {
 	};
 };
 
+&qpic_bam {
+	status = "okay";
+};
+
+&qpic_nand {
+	pinctrl-0 = <&qpic_snand_default_state>;
+	pinctrl-names = "default";
+
+	status = "okay";
+
+	flash@0 {
+		compatible = "spi-nand";
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		nand-ecc-engine = <&qpic_nand>;
+		nand-ecc-strength = <4>;
+		nand-ecc-step-size = <512>;
+	};
+};
+
 &uart0 {
 	pinctrl-0 = <&uart0_pins>;
 	pinctrl-names = "default";
-- 
2.34.1


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

* [PATCH v3 7/9] arm64: dts: qcom: pq5332-rdp-common: Enable QPIC SPI NAND support
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
                   ` (5 preceding siblings ...)
  2025-10-14 11:05 ` [PATCH v3 6/9] arm64: dts: qcom: ipq5424-rdp466: Enable QPIC SPI NAND support Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 8/9] arm64: dts: qcom: ipq5424-rdp466: Remove eMMC support Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 9/9] arm64: dts: qcom: ipq5332-rdp442: " Md Sadre Alam
  8 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

Enable QPIC SPI NAND flash controller support on the IPQ5332 reference
design platform.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* Added Reviewed-by tag

Change in [v2]

* No change

Change in [v1]

* Enable bam and spi nand for ipq5332

 .../boot/dts/qcom/ipq5332-rdp-common.dtsi     | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi b/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi
index b37ae7749083..8967861be5fd 100644
--- a/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi
@@ -78,4 +78,48 @@ gpio_leds_default: gpio-leds-default-state {
 		drive-strength = <8>;
 		bias-pull-down;
 	};
+
+	qpic_snand_default_state: qpic-snand-default-state {
+		clock-pins {
+			pins = "gpio13";
+			function = "qspi_clk";
+			drive-strength = <8>;
+			bias-disable;
+		};
+
+		cs-pins {
+			pins = "gpio12";
+			function = "qspi_cs";
+			drive-strength = <8>;
+			bias-disable;
+		};
+
+		data-pins {
+			pins = "gpio8", "gpio9", "gpio10", "gpio11";
+			function = "qspi_data";
+			drive-strength = <8>;
+			bias-disable;
+		};
+	};
+};
+
+&qpic_bam {
+	status = "okay";
+};
+
+&qpic_nand {
+	pinctrl-0 = <&qpic_snand_default_state>;
+	pinctrl-names = "default";
+
+	status = "okay";
+
+	flash@0 {
+		compatible = "spi-nand";
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		nand-ecc-engine = <&qpic_nand>;
+		nand-ecc-strength = <4>;
+		nand-ecc-step-size = <512>;
+	};
 };
-- 
2.34.1


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

* [PATCH v3 8/9] arm64: dts: qcom: ipq5424-rdp466: Remove eMMC support
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
                   ` (6 preceding siblings ...)
  2025-10-14 11:05 ` [PATCH v3 7/9] arm64: dts: qcom: pq5332-rdp-common: " Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  2025-10-14 11:05 ` [PATCH v3 9/9] arm64: dts: qcom: ipq5332-rdp442: " Md Sadre Alam
  8 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

Remove eMMC support from the IPQ5424 RDP466 board configuration to
resolve GPIO pin conflicts with SPI NAND interface.

The IPQ5424 RDP466 board is designed with NOR + NAND as the default boot
mode configuration. The eMMC controller and SPI NAND controller share
the same GPIO pins, creating a hardware conflict:

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* Added Reviewed-by tag

Change in [v2]

* updated board name commit message header

Change in [v1]

* Removed eMMC node

 arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts | 30 ---------------------
 1 file changed, 30 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts b/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts
index 7c32fb8f9f73..de71b72ae6dc 100644
--- a/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts
+++ b/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts
@@ -124,13 +124,6 @@ &qusb_phy_1 {
 	status = "okay";
 };
 
-&sdhc {
-	pinctrl-0 = <&sdc_default_state>;
-	pinctrl-names = "default";
-
-	status = "okay";
-};
-
 &sleep_clk {
 	clock-frequency = <32000>;
 };
@@ -201,29 +194,6 @@ mosi-pins {
 		};
 	};
 
-	sdc_default_state: sdc-default-state {
-		clk-pins {
-			pins = "gpio5";
-			function = "sdc_clk";
-			drive-strength = <8>;
-			bias-disable;
-		};
-
-		cmd-pins {
-			pins = "gpio4";
-			function = "sdc_cmd";
-			drive-strength = <8>;
-			bias-pull-up;
-		};
-
-		data-pins {
-			pins = "gpio0", "gpio1", "gpio2", "gpio3";
-			function = "sdc_data";
-			drive-strength = <8>;
-			bias-pull-up;
-		};
-	};
-
 	qpic_snand_default_state: qpic-snand-default-state {
 		clock-pins {
 			pins = "gpio5";
-- 
2.34.1


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

* [PATCH v3 9/9] arm64: dts: qcom: ipq5332-rdp442: Remove eMMC support
  2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
                   ` (7 preceding siblings ...)
  2025-10-14 11:05 ` [PATCH v3 8/9] arm64: dts: qcom: ipq5424-rdp466: Remove eMMC support Md Sadre Alam
@ 2025-10-14 11:05 ` Md Sadre Alam
  8 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-14 11:05 UTC (permalink / raw)
  To: broonie, robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine
  Cc: quic_varada, quic_mdalam

Remove eMMC support from the IPQ5332 RDP442 board configuration to
align with the board's default NOR+NAND boot mode design.

The IPQ5332 RDP442 board is designed with NOR+NAND as the default boot
mode configuration. The eMMC and SPI NAND interface share
same GPIO

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v3]

* Added Reviewed-by tag

Change in [v2]

* updated board name commit message header

Change in [v1]

* Removed eMMC node

 arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts | 34 ---------------------
 1 file changed, 34 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts b/arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts
index ed8a54eb95c0..6e2abde9ed89 100644
--- a/arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts
+++ b/arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts
@@ -35,17 +35,6 @@ flash@0 {
 	};
 };
 
-&sdhc {
-	bus-width = <4>;
-	max-frequency = <192000000>;
-	mmc-ddr-1_8v;
-	mmc-hs200-1_8v;
-	non-removable;
-	pinctrl-0 = <&sdc_default_state>;
-	pinctrl-names = "default";
-	status = "okay";
-};
-
 &tlmm {
 	i2c_1_pins: i2c-1-state {
 		pins = "gpio29", "gpio30";
@@ -54,29 +43,6 @@ i2c_1_pins: i2c-1-state {
 		bias-pull-up;
 	};
 
-	sdc_default_state: sdc-default-state {
-		clk-pins {
-			pins = "gpio13";
-			function = "sdc_clk";
-			drive-strength = <8>;
-			bias-disable;
-		};
-
-		cmd-pins {
-			pins = "gpio12";
-			function = "sdc_cmd";
-			drive-strength = <8>;
-			bias-pull-up;
-		};
-
-		data-pins {
-			pins = "gpio8", "gpio9", "gpio10", "gpio11";
-			function = "sdc_data";
-			drive-strength = <8>;
-			bias-pull-up;
-		};
-	};
-
 	spi_0_data_clk_pins: spi-0-data-clk-state {
 		pins = "gpio14", "gpio15", "gpio16";
 		function = "blsp0_spi";
-- 
2.34.1


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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-14 11:05 ` [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible Md Sadre Alam
@ 2025-10-21 19:09   ` Mark Brown
  2025-10-22  6:59     ` Md Sadre Alam
  0 siblings, 1 reply; 21+ messages in thread
From: Mark Brown @ 2025-10-21 19:09 UTC (permalink / raw)
  To: Md Sadre Alam
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
> the one found in IPQ9574. So let's document the IPQ5424 compatible and
> use IPQ9574 as the fallback.

This doesn't apply against current code, please check and resend.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-21 19:09   ` Mark Brown
@ 2025-10-22  6:59     ` Md Sadre Alam
  2025-10-22 10:42       ` Mark Brown
  2025-10-22 11:01       ` Krzysztof Kozlowski
  0 siblings, 2 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-22  6:59 UTC (permalink / raw)
  To: Mark Brown
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

Hi,

On 10/22/2025 12:39 AM, Mark Brown wrote:
> On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
>> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
>> the one found in IPQ9574. So let's document the IPQ5424 compatible and
>> use IPQ9574 as the fallback.
> 
> This doesn't apply against current code, please check and resend.
Thank you for the feedback. I’d appreciate a bit more clarity on what 
“doesn't apply against current code” refers to in this context. I’ve 
manually applied the patch against the latest mainline (torvalds/linux) 
and it applied cleanly without any conflicts. Please let me know if 
there’s a specific tree or integration point I should be checking against.

Thanks,
Alam.

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-22  6:59     ` Md Sadre Alam
@ 2025-10-22 10:42       ` Mark Brown
  2025-10-22 15:20         ` Md Sadre Alam
  2025-10-23 12:39         ` Md Sadre Alam
  2025-10-22 11:01       ` Krzysztof Kozlowski
  1 sibling, 2 replies; 21+ messages in thread
From: Mark Brown @ 2025-10-22 10:42 UTC (permalink / raw)
  To: Md Sadre Alam
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

On Wed, Oct 22, 2025 at 12:29:01PM +0530, Md Sadre Alam wrote:
> On 10/22/2025 12:39 AM, Mark Brown wrote:
> > On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
> > > IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
> > > the one found in IPQ9574. So let's document the IPQ5424 compatible and
> > > use IPQ9574 as the fallback.

> > This doesn't apply against current code, please check and resend.

> Thank you for the feedback. I’d appreciate a bit more clarity on what
> “doesn't apply against current code” refers to in this context. I’ve
> manually applied the patch against the latest mainline (torvalds/linux) and
> it applied cleanly without any conflicts. Please let me know if there’s a
> specific tree or integration point I should be checking against.

I tried to apply it to the spi tree

  https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-6.19

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-22  6:59     ` Md Sadre Alam
  2025-10-22 10:42       ` Mark Brown
@ 2025-10-22 11:01       ` Krzysztof Kozlowski
  2025-10-22 15:26         ` Md Sadre Alam
  1 sibling, 1 reply; 21+ messages in thread
From: Krzysztof Kozlowski @ 2025-10-22 11:01 UTC (permalink / raw)
  To: Md Sadre Alam, Mark Brown
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

On 22/10/2025 08:59, Md Sadre Alam wrote:
> Hi,
> 
> On 10/22/2025 12:39 AM, Mark Brown wrote:
>> On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
>>> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
>>> the one found in IPQ9574. So let's document the IPQ5424 compatible and
>>> use IPQ9574 as the fallback.
>>
>> This doesn't apply against current code, please check and resend.
> Thank you for the feedback. I’d appreciate a bit more clarity on what 
> “doesn't apply against current code” refers to in this context. I’ve 
> manually applied the patch against the latest mainline (torvalds/linux) 


You can easily answer this by yourself. Did you send it to Torvalds? No.
You sent it to someone else, so why do you assume someone else manages
Torvalds' tree?

> and it applied cleanly without any conflicts. Please let me know if 
> there’s a specific tree or integration point I should be checking against.


Please read submitting patches - it explains that. It also explains
where to find the tree.

Best regards,
Krzysztof

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

* Re: [PATCH v3 4/9] arm64: dts: qcom: ipq5424: Add QPIC SPI NAND controller support
  2025-10-14 11:05 ` [PATCH v3 4/9] arm64: dts: qcom: ipq5424: Add QPIC SPI NAND controller support Md Sadre Alam
@ 2025-10-22 15:01   ` Konrad Dybcio
  0 siblings, 0 replies; 21+ messages in thread
From: Konrad Dybcio @ 2025-10-22 15:01 UTC (permalink / raw)
  To: Md Sadre Alam, broonie, robh, krzk+dt, conor+dt, andersson,
	konradybcio, vkoul, linux-arm-msm, linux-spi, devicetree,
	linux-kernel, dmaengine
  Cc: quic_varada

On 10/14/25 1:05 PM, Md Sadre Alam wrote:
> Add device tree nodes for QPIC SPI NAND flash controller support
> on IPQ5424 SoC.
> 
> The IPQ5424 SoC includes a QPIC controller that supports SPI NAND flash
> devices with hardware ECC capabilities and DMA support through BAM
> (Bus Access Manager).
> 
> Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH v3 5/9] arm64: dts: qcom: ipq5332: Add QPIC SPI NAND controller support
  2025-10-14 11:05 ` [PATCH v3 5/9] arm64: dts: qcom: ipq5332: " Md Sadre Alam
@ 2025-10-22 15:01   ` Konrad Dybcio
  0 siblings, 0 replies; 21+ messages in thread
From: Konrad Dybcio @ 2025-10-22 15:01 UTC (permalink / raw)
  To: Md Sadre Alam, broonie, robh, krzk+dt, conor+dt, andersson,
	konradybcio, vkoul, linux-arm-msm, linux-spi, devicetree,
	linux-kernel, dmaengine
  Cc: quic_varada

On 10/14/25 1:05 PM, Md Sadre Alam wrote:
> Add device tree nodes for QPIC SPI NAND flash controller support
> on IPQ5332 SoC.
> 
> The IPQ5332 SoC includes a QPIC controller that supports SPI NAND flash
> devices with hardware ECC capabilities and DMA support through BAM
> (Bus Access Manager).
> 
> Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-22 10:42       ` Mark Brown
@ 2025-10-22 15:20         ` Md Sadre Alam
  2025-10-22 15:28           ` Konrad Dybcio
  2025-10-23 12:39         ` Md Sadre Alam
  1 sibling, 1 reply; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-22 15:20 UTC (permalink / raw)
  To: Mark Brown
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

Hi,

On 10/22/2025 4:12 PM, Mark Brown wrote:
> On Wed, Oct 22, 2025 at 12:29:01PM +0530, Md Sadre Alam wrote:
>> On 10/22/2025 12:39 AM, Mark Brown wrote:
>>> On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
>>>> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
>>>> the one found in IPQ9574. So let's document the IPQ5424 compatible and
>>>> use IPQ9574 as the fallback.
> 
>>> This doesn't apply against current code, please check and resend.
> 
>> Thank you for the feedback. I’d appreciate a bit more clarity on what
>> “doesn't apply against current code” refers to in this context. I’ve
>> manually applied the patch against the latest mainline (torvalds/linux) and
>> it applied cleanly without any conflicts. Please let me know if there’s a
>> specific tree or integration point I should be checking against.
> 
> I tried to apply it to the spi tree
> 
>    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-6.19
Thanks for letting me know — I’ll rebase the patch on the SPI tree 
(for-6.19) and resend it.

Thanks,
Alam.

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-22 11:01       ` Krzysztof Kozlowski
@ 2025-10-22 15:26         ` Md Sadre Alam
  0 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-22 15:26 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Mark Brown
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

Hi,

On 10/22/2025 4:31 PM, Krzysztof Kozlowski wrote:
> On 22/10/2025 08:59, Md Sadre Alam wrote:
>> Hi,
>>
>> On 10/22/2025 12:39 AM, Mark Brown wrote:
>>> On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
>>>> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
>>>> the one found in IPQ9574. So let's document the IPQ5424 compatible and
>>>> use IPQ9574 as the fallback.
>>>
>>> This doesn't apply against current code, please check and resend.
>> Thank you for the feedback. I’d appreciate a bit more clarity on what
>> “doesn't apply against current code” refers to in this context. I’ve
>> manually applied the patch against the latest mainline (torvalds/linux)
> 
> 
> You can easily answer this by yourself. Did you send it to Torvalds? No.
> You sent it to someone else, so why do you assume someone else manages
> Torvalds' tree?
Sorry about that — I’ll make sure to verify and align with the correct 
subsystem tree going forward.
> 
>> and it applied cleanly without any conflicts. Please let me know if
>> there’s a specific tree or integration point I should be checking against.
> 
> 
> Please read submitting patches - it explains that. It also explains
> where to find the tree.
Thanks, I’ll go through Submitting Patches again and make sure I follow 
the right tree and workflow.

Thanks,
Alam.

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-22 15:20         ` Md Sadre Alam
@ 2025-10-22 15:28           ` Konrad Dybcio
  2025-10-23  5:30             ` Md Sadre Alam
  0 siblings, 1 reply; 21+ messages in thread
From: Konrad Dybcio @ 2025-10-22 15:28 UTC (permalink / raw)
  To: Md Sadre Alam, Mark Brown
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

On 10/22/25 5:20 PM, Md Sadre Alam wrote:
> Hi,
> 
> On 10/22/2025 4:12 PM, Mark Brown wrote:
>> On Wed, Oct 22, 2025 at 12:29:01PM +0530, Md Sadre Alam wrote:
>>> On 10/22/2025 12:39 AM, Mark Brown wrote:
>>>> On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
>>>>> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
>>>>> the one found in IPQ9574. So let's document the IPQ5424 compatible and
>>>>> use IPQ9574 as the fallback.
>>
>>>> This doesn't apply against current code, please check and resend.
>>
>>> Thank you for the feedback. I’d appreciate a bit more clarity on what
>>> “doesn't apply against current code” refers to in this context. I’ve
>>> manually applied the patch against the latest mainline (torvalds/linux) and
>>> it applied cleanly without any conflicts. Please let me know if there’s a
>>> specific tree or integration point I should be checking against.
>>
>> I tried to apply it to the spi tree
>>
>>    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-6.19
> Thanks for letting me know — I’ll rebase the patch on the SPI tree (for-6.19) and resend it.

JFYI you can generally count on linux-next/master as a good base

Konrad

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-22 15:28           ` Konrad Dybcio
@ 2025-10-23  5:30             ` Md Sadre Alam
  0 siblings, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-23  5:30 UTC (permalink / raw)
  To: Konrad Dybcio, Mark Brown
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada



On 10/22/2025 8:58 PM, Konrad Dybcio wrote:
> On 10/22/25 5:20 PM, Md Sadre Alam wrote:
>> Hi,
>>
>> On 10/22/2025 4:12 PM, Mark Brown wrote:
>>> On Wed, Oct 22, 2025 at 12:29:01PM +0530, Md Sadre Alam wrote:
>>>> On 10/22/2025 12:39 AM, Mark Brown wrote:
>>>>> On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
>>>>>> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
>>>>>> the one found in IPQ9574. So let's document the IPQ5424 compatible and
>>>>>> use IPQ9574 as the fallback.
>>>
>>>>> This doesn't apply against current code, please check and resend.
>>>
>>>> Thank you for the feedback. I’d appreciate a bit more clarity on what
>>>> “doesn't apply against current code” refers to in this context. I’ve
>>>> manually applied the patch against the latest mainline (torvalds/linux) and
>>>> it applied cleanly without any conflicts. Please let me know if there’s a
>>>> specific tree or integration point I should be checking against.
>>>
>>> I tried to apply it to the spi tree
>>>
>>>     https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-6.19
>> Thanks for letting me know — I’ll rebase the patch on the SPI tree (for-6.19) and resend it.
> 
> JFYI you can generally count on linux-next/master as a good base
Thanks Konrad — noted! I’ll use linux-next/master as my base going forward.

Thanks,
Alam.

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

* Re: [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible
  2025-10-22 10:42       ` Mark Brown
  2025-10-22 15:20         ` Md Sadre Alam
@ 2025-10-23 12:39         ` Md Sadre Alam
  1 sibling, 0 replies; 21+ messages in thread
From: Md Sadre Alam @ 2025-10-23 12:39 UTC (permalink / raw)
  To: Mark Brown
  Cc: robh, krzk+dt, conor+dt, andersson, konradybcio, vkoul,
	linux-arm-msm, linux-spi, devicetree, linux-kernel, dmaengine,
	quic_varada

Hi,

On 10/22/2025 4:12 PM, Mark Brown wrote:
> On Wed, Oct 22, 2025 at 12:29:01PM +0530, Md Sadre Alam wrote:
>> On 10/22/2025 12:39 AM, Mark Brown wrote:
>>> On Tue, Oct 14, 2025 at 04:35:26PM +0530, Md Sadre Alam wrote:
>>>> IPQ5424 contains the QPIC-SPI-NAND flash controller which is the same as
>>>> the one found in IPQ9574. So let's document the IPQ5424 compatible and
>>>> use IPQ9574 as the fallback.
> 
>>> This doesn't apply against current code, please check and resend.
> 
>> Thank you for the feedback. I’d appreciate a bit more clarity on what
>> “doesn't apply against current code” refers to in this context. I’ve
>> manually applied the patch against the latest mainline (torvalds/linux) and
>> it applied cleanly without any conflicts. Please let me know if there’s a
>> specific tree or integration point I should be checking against.
> 
> I tried to apply it to the spi tree
> 
>    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-6.19
I had sent v3 on the 14th, but since v2 was already applied on the 15th 
and v3 was just a resend, the error on reapplying makes sense. 
Everything looks in order now, and no further action is needed.

Thanks,
Alam.

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

end of thread, other threads:[~2025-10-23 12:39 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14 11:05 [PATCH v3 0/9] Add QPIC SPI NAND support for IPQ5424 and IPQ5332 platforms Md Sadre Alam
2025-10-14 11:05 ` [PATCH v3 1/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5424 compatible Md Sadre Alam
2025-10-21 19:09   ` Mark Brown
2025-10-22  6:59     ` Md Sadre Alam
2025-10-22 10:42       ` Mark Brown
2025-10-22 15:20         ` Md Sadre Alam
2025-10-22 15:28           ` Konrad Dybcio
2025-10-23  5:30             ` Md Sadre Alam
2025-10-23 12:39         ` Md Sadre Alam
2025-10-22 11:01       ` Krzysztof Kozlowski
2025-10-22 15:26         ` Md Sadre Alam
2025-10-14 11:05 ` [PATCH v3 2/9] spi: dt-bindings: spi-qpic-snand: Add IPQ5332 compatible Md Sadre Alam
2025-10-14 11:05 ` [PATCH v3 3/9] dma: qcom: bam_dma: Fix command element mask field for BAM v1.6.0+ Md Sadre Alam
2025-10-14 11:05 ` [PATCH v3 4/9] arm64: dts: qcom: ipq5424: Add QPIC SPI NAND controller support Md Sadre Alam
2025-10-22 15:01   ` Konrad Dybcio
2025-10-14 11:05 ` [PATCH v3 5/9] arm64: dts: qcom: ipq5332: " Md Sadre Alam
2025-10-22 15:01   ` Konrad Dybcio
2025-10-14 11:05 ` [PATCH v3 6/9] arm64: dts: qcom: ipq5424-rdp466: Enable QPIC SPI NAND support Md Sadre Alam
2025-10-14 11:05 ` [PATCH v3 7/9] arm64: dts: qcom: pq5332-rdp-common: " Md Sadre Alam
2025-10-14 11:05 ` [PATCH v3 8/9] arm64: dts: qcom: ipq5424-rdp466: Remove eMMC support Md Sadre Alam
2025-10-14 11:05 ` [PATCH v3 9/9] arm64: dts: qcom: ipq5332-rdp442: " Md Sadre Alam

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