devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support
@ 2024-05-20 16:09 Frank Li
  2024-05-20 16:09 ` [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string Frank Li
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Frank Li @ 2024-05-20 16:09 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel, Frank Li

Update binding doc to support imx8qxp NAND.
Add new compatible string "fsl,imx8qxp-gpmi-nand".
Update dts for imx8qxp and imx8dxl

Run dt_binding_check: fsl,mxs-dma.yaml
  SCHEMA  Documentation/devicetree/bindings/processed-schema.json
  DTEX    Documentation/devicetree/bindings/dma/fsl,mxs-dma.example.dts
  DTC_CHK Documentation/devicetree/bindings/dma/fsl,mxs-dma.example.dtb
Run dt_binding_check: gpmi-nand.yaml
  SCHEMA  Documentation/devicetree/bindings/processed-schema.json
  DTEX    Documentation/devicetree/bindings/mtd/gpmi-nand.example.dts
  DTC_CHK Documentation/devicetree/bindings/mtd/gpmi-nand.example.dtb

No warning:

make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-  -j8 CHECK_DTBS=y freescale/imx8dxl-evk.dtb
  SYNC    include/config/auto.conf.cmd
  UPD     include/config/kernel.release
  DTC_CHK arch/arm64/boot/dts/freescale/imx8dxl-evk.dtb

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Changes in v2:
- Add bool support_edo_timing to simple check logic.
- fix typo at commit message of mtd: rawnand: gpmi: add iMX8QXP support.
- Link to v1: https://lore.kernel.org/r/20240517-gpmi_nand-v1-0-73bb8d2cd441@nxp.com

---
Frank Li (5):
      dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string
      dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh"
      mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata
      arm64: dts: imx8-ss-conn: add gpmi nand node
      arm64: dts: imx8dxl-ss-conn: add gpmi nand

Han Xu (1):
      mtd: rawnand: gpmi: add iMX8QXP support.

 .../devicetree/bindings/dma/fsl,mxs-dma.yaml       | 15 +++++
 .../devicetree/bindings/mtd/gpmi-nand.yaml         | 22 +++++++
 arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi    | 69 ++++++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi | 11 ++++
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c         | 20 ++++++-
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h         |  6 +-
 6 files changed, 141 insertions(+), 2 deletions(-)
---
base-commit: dbd9e2e056d8577375ae4b31ada94f8aa3769e8a
change-id: 20240516-gpmi_nand-e11272cbdfae

Best regards,
---
Frank Li <Frank.Li@nxp.com>


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

* [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string
  2024-05-20 16:09 [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support Frank Li
@ 2024-05-20 16:09 ` Frank Li
  2024-05-21 13:56   ` Rob Herring
  2024-05-27 12:18   ` Miquel Raynal
  2024-05-20 16:09 ` [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh" Frank Li
                   ` (4 subsequent siblings)
  5 siblings, 2 replies; 20+ messages in thread
From: Frank Li @ 2024-05-20 16:09 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel, Frank Li

Add 'fsl,imx8qxp-gpmi-nand' compatible string and clock-names restriction.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 .../devicetree/bindings/mtd/gpmi-nand.yaml         | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml
index 021c0da0b072f..f9eb1868ca1f4 100644
--- a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml
+++ b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml
@@ -24,6 +24,7 @@ properties:
           - fsl,imx6q-gpmi-nand
           - fsl,imx6sx-gpmi-nand
           - fsl,imx7d-gpmi-nand
+          - fsl,imx8qxp-gpmi-nand
       - items:
           - enum:
               - fsl,imx8mm-gpmi-nand
@@ -151,6 +152,27 @@ allOf:
             - const: gpmi_io
             - const: gpmi_bch_apb
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - fsl,imx8qxp-gpmi-nand
+    then:
+      properties:
+        clocks:
+          items:
+            - description: SoC gpmi io clock
+            - description: SoC gpmi apb clock
+            - description: SoC gpmi bch clock
+            - description: SoC gpmi bch apb clock
+        clock-names:
+          items:
+            - const: gpmi_io
+            - const: gpmi_apb
+            - const: gpmi_bch
+            - const: gpmi_bch_apb
+
 examples:
   - |
     nand-controller@8000c000 {

-- 
2.34.1


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

* [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh"
  2024-05-20 16:09 [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support Frank Li
  2024-05-20 16:09 ` [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string Frank Li
@ 2024-05-20 16:09 ` Frank Li
  2024-05-21 13:56   ` Rob Herring (Arm)
  2024-05-27 12:18   ` Miquel Raynal
  2024-05-20 16:09 ` [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata Frank Li
                   ` (3 subsequent siblings)
  5 siblings, 2 replies; 20+ messages in thread
From: Frank Li @ 2024-05-20 16:09 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel, Frank Li

Add compatible string "fsl,imx8qxp-dma-apbh". It requires power-domains
compared with "fsl,imx28-dma-apbh".

Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
it.

Keep the same restriction about 'power-domains' for other compatible
strings.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml b/Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml
index add9c77e8b52a..a17cf2360dd4a 100644
--- a/Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml
@@ -11,6 +11,17 @@ maintainers:
 
 allOf:
   - $ref: dma-controller.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: fsl,imx8qxp-dma-apbh
+    then:
+      required:
+        - power-domains
+    else:
+      properties:
+        power-domains: false
 
 properties:
   compatible:
@@ -20,6 +31,7 @@ properties:
               - fsl,imx6q-dma-apbh
               - fsl,imx6sx-dma-apbh
               - fsl,imx7d-dma-apbh
+              - fsl,imx8qxp-dma-apbh
           - const: fsl,imx28-dma-apbh
       - enum:
           - fsl,imx23-dma-apbh
@@ -42,6 +54,9 @@ properties:
   dma-channels:
     enum: [4, 8, 16]
 
+  power-domains:
+    maxItems: 1
+
 required:
   - compatible
   - reg

-- 
2.34.1


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

* [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata
  2024-05-20 16:09 [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support Frank Li
  2024-05-20 16:09 ` [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string Frank Li
  2024-05-20 16:09 ` [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh" Frank Li
@ 2024-05-20 16:09 ` Frank Li
  2024-05-21  9:17   ` Miquel Raynal
  2024-05-27 12:18   ` Miquel Raynal
  2024-05-20 16:09 ` [PATCH v2 4/6] mtd: rawnand: gpmi: add iMX8QXP support Frank Li
                   ` (2 subsequent siblings)
  5 siblings, 2 replies; 20+ messages in thread
From: Frank Li @ 2024-05-20 16:09 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel, Frank Li

Introduce a boolean flag, 'support_edo_timing', within gpmi_devdata to
simplify the logic check in gpmi_setup_interface(). This is made in
preparation for adding support for imx8qxp gpmi.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 6 +++++-
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
index e71ad2fcec232..fbb1f243ef129 100644
--- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
@@ -983,7 +983,7 @@ static int gpmi_setup_interface(struct nand_chip *chip, int chipnr,
 		return PTR_ERR(sdr);
 
 	/* Only MX28/MX6 GPMI controller can reach EDO timings */
-	if (sdr->tRC_min <= 25000 && !GPMI_IS_MX28(this) && !GPMI_IS_MX6(this))
+	if (sdr->tRC_min <= 25000 && !this->devdata->support_edo_timing)
 		return -ENOTSUPP;
 
 	/* Stop here if this call was just a check */
@@ -1142,6 +1142,7 @@ static const struct gpmi_devdata gpmi_devdata_imx28 = {
 	.type = IS_MX28,
 	.bch_max_ecc_strength = 20,
 	.max_chain_delay = 16000,
+	.support_edo_timing = true,
 	.clks = gpmi_clks_for_mx2x,
 	.clks_count = ARRAY_SIZE(gpmi_clks_for_mx2x),
 };
@@ -1154,6 +1155,7 @@ static const struct gpmi_devdata gpmi_devdata_imx6q = {
 	.type = IS_MX6Q,
 	.bch_max_ecc_strength = 40,
 	.max_chain_delay = 12000,
+	.support_edo_timing = true,
 	.clks = gpmi_clks_for_mx6,
 	.clks_count = ARRAY_SIZE(gpmi_clks_for_mx6),
 };
@@ -1162,6 +1164,7 @@ static const struct gpmi_devdata gpmi_devdata_imx6sx = {
 	.type = IS_MX6SX,
 	.bch_max_ecc_strength = 62,
 	.max_chain_delay = 12000,
+	.support_edo_timing = true,
 	.clks = gpmi_clks_for_mx6,
 	.clks_count = ARRAY_SIZE(gpmi_clks_for_mx6),
 };
@@ -1174,6 +1177,7 @@ static const struct gpmi_devdata gpmi_devdata_imx7d = {
 	.type = IS_MX7D,
 	.bch_max_ecc_strength = 62,
 	.max_chain_delay = 12000,
+	.support_edo_timing = true,
 	.clks = gpmi_clks_for_mx7d,
 	.clks_count = ARRAY_SIZE(gpmi_clks_for_mx7d),
 };
diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h
index c3ff56ac62a7e..c8a662a497b60 100644
--- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h
+++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h
@@ -86,6 +86,7 @@ struct gpmi_devdata {
 	int max_chain_delay; /* See the SDR EDO mode */
 	const char * const *clks;
 	const int clks_count;
+	bool support_edo_timing;
 };
 
 /**

-- 
2.34.1


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

* [PATCH v2 4/6] mtd: rawnand: gpmi: add iMX8QXP support.
  2024-05-20 16:09 [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support Frank Li
                   ` (2 preceding siblings ...)
  2024-05-20 16:09 ` [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata Frank Li
@ 2024-05-20 16:09 ` Frank Li
  2024-05-27 12:18   ` Miquel Raynal
  2024-05-20 16:09 ` [PATCH v2 5/6] arm64: dts: imx8-ss-conn: add gpmi nand node Frank Li
  2024-05-20 16:09 ` [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand Frank Li
  5 siblings, 1 reply; 20+ messages in thread
From: Frank Li @ 2024-05-20 16:09 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel, Frank Li

From: Han Xu <han.xu@nxp.com>

Add "fsl,imx8qxp-gpmi-nand" compatible string. iMX8QXP gpmi nand is similar
to iMX7D. But it is using 4 clocks: "gpmi_io", "gpmi_apb", "gpmi_bch" and
"gpmi_bch_apb".

Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 14 ++++++++++++++
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h |  5 ++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
index fbb1f243ef129..e1b515304e3cd 100644
--- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
@@ -1182,6 +1182,19 @@ static const struct gpmi_devdata gpmi_devdata_imx7d = {
 	.clks_count = ARRAY_SIZE(gpmi_clks_for_mx7d),
 };
 
+static const char *gpmi_clks_for_mx8qxp[GPMI_CLK_MAX] = {
+	"gpmi_io", "gpmi_apb", "gpmi_bch", "gpmi_bch_apb",
+};
+
+static const struct gpmi_devdata gpmi_devdata_imx8qxp = {
+	.type = IS_MX8QXP,
+	.bch_max_ecc_strength = 62,
+	.max_chain_delay = 12000,
+	.support_edo_timing = true,
+	.clks = gpmi_clks_for_mx8qxp,
+	.clks_count = ARRAY_SIZE(gpmi_clks_for_mx8qxp),
+};
+
 static int acquire_register_block(struct gpmi_nand_data *this,
 				  const char *res_name)
 {
@@ -2725,6 +2738,7 @@ static const struct of_device_id gpmi_nand_id_table[] = {
 	{ .compatible = "fsl,imx6q-gpmi-nand", .data = &gpmi_devdata_imx6q, },
 	{ .compatible = "fsl,imx6sx-gpmi-nand", .data = &gpmi_devdata_imx6sx, },
 	{ .compatible = "fsl,imx7d-gpmi-nand", .data = &gpmi_devdata_imx7d,},
+	{ .compatible = "fsl,imx8qxp-gpmi-nand", .data = &gpmi_devdata_imx8qxp, },
 	{}
 };
 MODULE_DEVICE_TABLE(of, gpmi_nand_id_table);
diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h
index c8a662a497b60..3e9bc985e44a3 100644
--- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h
+++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h
@@ -78,6 +78,7 @@ enum gpmi_type {
 	IS_MX6Q,
 	IS_MX6SX,
 	IS_MX7D,
+	IS_MX8QXP,
 };
 
 struct gpmi_devdata {
@@ -173,8 +174,10 @@ struct gpmi_nand_data {
 #define GPMI_IS_MX6Q(x)		((x)->devdata->type == IS_MX6Q)
 #define GPMI_IS_MX6SX(x)	((x)->devdata->type == IS_MX6SX)
 #define GPMI_IS_MX7D(x)		((x)->devdata->type == IS_MX7D)
+#define GPMI_IS_MX8QXP(x)	((x)->devdata->type == IS_MX8QXP)
 
 #define GPMI_IS_MX6(x)		(GPMI_IS_MX6Q(x) || GPMI_IS_MX6SX(x) || \
-				 GPMI_IS_MX7D(x))
+				 GPMI_IS_MX7D(x) || GPMI_IS_MX8QXP(x))
+
 #define GPMI_IS_MXS(x)		(GPMI_IS_MX23(x) || GPMI_IS_MX28(x))
 #endif

-- 
2.34.1


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

* [PATCH v2 5/6] arm64: dts: imx8-ss-conn: add gpmi nand node
  2024-05-20 16:09 [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support Frank Li
                   ` (3 preceding siblings ...)
  2024-05-20 16:09 ` [PATCH v2 4/6] mtd: rawnand: gpmi: add iMX8QXP support Frank Li
@ 2024-05-20 16:09 ` Frank Li
  2024-06-27  6:28   ` Shawn Guo
  2024-05-20 16:09 ` [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand Frank Li
  5 siblings, 1 reply; 20+ messages in thread
From: Frank Li @ 2024-05-20 16:09 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel, Frank Li

Add gpmi nand support.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 69 +++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
index 4aaf5a0c1ed8a..a4a10ce03bfe0 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
@@ -28,6 +28,13 @@ conn_ipg_clk: clock-conn-ipg {
 	clock-output-names = "conn_ipg_clk";
 };
 
+conn_bch_clk: clock-conn-bch {
+	compatible = "fixed-clock";
+	#clock-cells = <0>;
+	clock-frequency = <400000000>;
+	clock-output-names = "conn_bch_clk";
+};
+
 conn_subsys: bus@5b000000 {
 	compatible = "simple-bus";
 	#address-cells = <1>;
@@ -302,4 +309,66 @@ usb3_lpcg: clock-controller@5b280000 {
 				     "usb3_aclk";
 		power-domains = <&pd IMX_SC_R_USB_2_PHY>;
 	};
+
+	rawnand_0_lpcg: clock-controller@5b290000 {
+		compatible = "fsl,imx8qxp-lpcg";
+		reg = <0x5b290000 0x4>;
+		#clock-cells = <1>;
+		clocks = <&clk IMX_SC_R_NAND IMX_SC_PM_CLK_PER>,
+			 <&clk IMX_SC_R_NAND IMX_SC_PM_CLK_MST_BUS>,
+			 <&conn_axi_clk>,
+			 <&conn_axi_clk>;
+		clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_1>,
+				<IMX_LPCG_CLK_4>, <IMX_LPCG_CLK_5>;
+		clock-output-names = "gpmi_bch",
+				     "gpmi_io",
+				     "gpmi_apb",
+				     "gpmi_bch_apb";
+		power-domains = <&pd IMX_SC_R_NAND>;
+	};
+
+	rawnand_4_lpcg: clock-controller@5b290004 {
+		compatible = "fsl,imx8qxp-lpcg";
+		reg = <0x5b290004 0x10000>;
+		#clock-cells = <1>;
+		clocks = <&conn_axi_clk>;
+		clock-indices = <IMX_LPCG_CLK_4>;
+		clock-output-names = "apbhdma_hclk";
+		power-domains = <&pd IMX_SC_R_NAND>;
+	};
+
+	dma_apbh: dma-controller@5b810000 {
+		compatible = "fsl,imx8qxp-dma-apbh", "fsl,imx28-dma-apbh";
+		reg = <0x5b810000 0x2000>;
+		interrupts = <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>;
+		#dma-cells = <1>;
+		dma-channels = <4>;
+		clocks = <&rawnand_4_lpcg IMX_LPCG_CLK_0>;
+		power-domains = <&pd IMX_SC_R_NAND>;
+	};
+
+	gpmi: nand-controller@5b812000{
+		compatible = "fsl,imx8qxp-gpmi-nand";
+		reg = <0x5b812000 0x2000>, <0x5b814000 0x2000>;
+		reg-names = "gpmi-nand", "bch";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "bch";
+		clocks = <&rawnand_0_lpcg IMX_LPCG_CLK_1>,
+			 <&rawnand_0_lpcg IMX_LPCG_CLK_4>,
+			 <&rawnand_0_lpcg IMX_LPCG_CLK_0>,
+			 <&rawnand_0_lpcg IMX_LPCG_CLK_5>;
+		clock-names = "gpmi_io", "gpmi_apb",
+			      "gpmi_bch", "gpmi_bch_apb";
+		dmas = <&dma_apbh 0>;
+		dma-names = "rx-tx";
+		power-domains = <&pd IMX_SC_R_NAND>;
+		assigned-clocks = <&clk IMX_SC_R_NAND IMX_SC_PM_CLK_MST_BUS>;
+		assigned-clock-rates = <50000000>;
+		status = "disabled";
+	};
 };

-- 
2.34.1


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

* [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand
  2024-05-20 16:09 [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support Frank Li
                   ` (4 preceding siblings ...)
  2024-05-20 16:09 ` [PATCH v2 5/6] arm64: dts: imx8-ss-conn: add gpmi nand node Frank Li
@ 2024-05-20 16:09 ` Frank Li
  2024-06-17 15:02   ` Frank Li
  2024-06-27  6:28   ` Shawn Guo
  5 siblings, 2 replies; 20+ messages in thread
From: Frank Li @ 2024-05-20 16:09 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel, Frank Li

Update gpmi nand and dma_apbh interrupt number for imx8dxl.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi
index 6d13e4fafb761..1e02b04494e94 100644
--- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi
@@ -108,6 +108,13 @@ usb2_2_lpcg: clock-controller@5b280000 {
 
 };
 
+&dma_apbh {
+	interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
+		     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
+		     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
+		     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
+};
+
 &enet0_lpcg {
 	clocks = <&conn_enet0_root_clk>,
 		 <&conn_enet0_root_clk>,
@@ -127,6 +134,10 @@ &fec1 {
 	assigned-clock-rates = <125000000>;
 };
 
+&gpmi {
+	interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+};
+
 &usdhc1 {
 	compatible = "fsl,imx8dxl-usdhc", "fsl,imx8qxp-usdhc";
 	interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;

-- 
2.34.1


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

* Re: [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata
  2024-05-20 16:09 ` [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata Frank Li
@ 2024-05-21  9:17   ` Miquel Raynal
  2024-05-27 12:18   ` Miquel Raynal
  1 sibling, 0 replies; 20+ messages in thread
From: Miquel Raynal @ 2024-05-21  9:17 UTC (permalink / raw)
  To: Frank Li
  Cc: Richard Weinberger, Vignesh Raghavendra, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Han Xu, Vinod Koul, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Marek Vasut,
	linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

Hi Frank,

Frank.Li@nxp.com wrote on Mon, 20 May 2024 12:09:14 -0400:

> Introduce a boolean flag, 'support_edo_timing', within gpmi_devdata to
> simplify the logic check in gpmi_setup_interface(). This is made in
> preparation for adding support for imx8qxp gpmi.

Excellent idea. I really prefer it compared to the former
implementation.

Thanks,
Miquèl

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

* Re: [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string
  2024-05-20 16:09 ` [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string Frank Li
@ 2024-05-21 13:56   ` Rob Herring
  2024-05-27 12:18   ` Miquel Raynal
  1 sibling, 0 replies; 20+ messages in thread
From: Rob Herring @ 2024-05-21 13:56 UTC (permalink / raw)
  To: Frank Li
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Krzysztof Kozlowski, Conor Dooley, Han Xu, Vinod Koul, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Marek Vasut,
	linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

On Mon, May 20, 2024 at 12:09:12PM -0400, Frank Li wrote:
> Add 'fsl,imx8qxp-gpmi-nand' compatible string and clock-names restriction.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
>  .../devicetree/bindings/mtd/gpmi-nand.yaml         | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>

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

* Re: [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh"
  2024-05-20 16:09 ` [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh" Frank Li
@ 2024-05-21 13:56   ` Rob Herring (Arm)
  2024-05-27 12:18   ` Miquel Raynal
  1 sibling, 0 replies; 20+ messages in thread
From: Rob Herring (Arm) @ 2024-05-21 13:56 UTC (permalink / raw)
  To: Frank Li
  Cc: Krzysztof Kozlowski, Shawn Guo, Sascha Hauer, Fabio Estevam,
	Richard Weinberger, Marek Vasut, dmaengine, linux-mtd,
	Miquel Raynal, Conor Dooley, Pengutronix Kernel Team,
	linux-kernel, imx, linux-arm-kernel, Vignesh Raghavendra,
	devicetree, Han Xu, Vinod Koul


On Mon, 20 May 2024 12:09:13 -0400, Frank Li wrote:
> Add compatible string "fsl,imx8qxp-dma-apbh". It requires power-domains
> compared with "fsl,imx28-dma-apbh".
> 
> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> it.
> 
> Keep the same restriction about 'power-domains' for other compatible
> strings.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
>  Documentation/devicetree/bindings/dma/fsl,mxs-dma.yaml | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>


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

* Re: [PATCH v2 4/6] mtd: rawnand: gpmi: add iMX8QXP support.
  2024-05-20 16:09 ` [PATCH v2 4/6] mtd: rawnand: gpmi: add iMX8QXP support Frank Li
@ 2024-05-27 12:18   ` Miquel Raynal
  0 siblings, 0 replies; 20+ messages in thread
From: Miquel Raynal @ 2024-05-27 12:18 UTC (permalink / raw)
  To: Frank Li, Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

On Mon, 2024-05-20 at 16:09:15 UTC, Frank Li wrote:
> From: Han Xu <han.xu@nxp.com>
> 
> Add "fsl,imx8qxp-gpmi-nand" compatible string. iMX8QXP gpmi nand is similar
> to iMX7D. But it is using 4 clocks: "gpmi_io", "gpmi_apb", "gpmi_bch" and
> "gpmi_bch_apb".
> 
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

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

* Re: [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata
  2024-05-20 16:09 ` [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata Frank Li
  2024-05-21  9:17   ` Miquel Raynal
@ 2024-05-27 12:18   ` Miquel Raynal
  1 sibling, 0 replies; 20+ messages in thread
From: Miquel Raynal @ 2024-05-27 12:18 UTC (permalink / raw)
  To: Frank Li, Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

On Mon, 2024-05-20 at 16:09:14 UTC, Frank Li wrote:
> Introduce a boolean flag, 'support_edo_timing', within gpmi_devdata to
> simplify the logic check in gpmi_setup_interface(). This is made in
> preparation for adding support for imx8qxp gpmi.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

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

* Re: [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh"
  2024-05-20 16:09 ` [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh" Frank Li
  2024-05-21 13:56   ` Rob Herring (Arm)
@ 2024-05-27 12:18   ` Miquel Raynal
  2024-07-12 14:35     ` Miquel Raynal
  1 sibling, 1 reply; 20+ messages in thread
From: Miquel Raynal @ 2024-05-27 12:18 UTC (permalink / raw)
  To: Frank Li, Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

On Mon, 2024-05-20 at 16:09:13 UTC, Frank Li wrote:
> Add compatible string "fsl,imx8qxp-dma-apbh". It requires power-domains
> compared with "fsl,imx28-dma-apbh".
> 
> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> it.
> 
> Keep the same restriction about 'power-domains' for other compatible
> strings.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

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

* Re: [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string
  2024-05-20 16:09 ` [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string Frank Li
  2024-05-21 13:56   ` Rob Herring
@ 2024-05-27 12:18   ` Miquel Raynal
  1 sibling, 0 replies; 20+ messages in thread
From: Miquel Raynal @ 2024-05-27 12:18 UTC (permalink / raw)
  To: Frank Li, Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

On Mon, 2024-05-20 at 16:09:12 UTC, Frank Li wrote:
> Add 'fsl,imx8qxp-gpmi-nand' compatible string and clock-names restriction.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

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

* Re: [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand
  2024-05-20 16:09 ` [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand Frank Li
@ 2024-06-17 15:02   ` Frank Li
  2024-06-27  6:28   ` Shawn Guo
  1 sibling, 0 replies; 20+ messages in thread
From: Frank Li @ 2024-06-17 15:02 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

On Mon, May 20, 2024 at 12:09:17PM -0400, Frank Li wrote:
> Update gpmi nand and dma_apbh interrupt number for imx8dxl.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Shawn:
    Driver and binding part already picked. Can you take care dts part?

Frank

> ---
>  arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi
> index 6d13e4fafb761..1e02b04494e94 100644
> --- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-conn.dtsi
> @@ -108,6 +108,13 @@ usb2_2_lpcg: clock-controller@5b280000 {
>  
>  };
>  
> +&dma_apbh {
> +	interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
> +		     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
> +		     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
> +		     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
>  &enet0_lpcg {
>  	clocks = <&conn_enet0_root_clk>,
>  		 <&conn_enet0_root_clk>,
> @@ -127,6 +134,10 @@ &fec1 {
>  	assigned-clock-rates = <125000000>;
>  };
>  
> +&gpmi {
> +	interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
>  &usdhc1 {
>  	compatible = "fsl,imx8dxl-usdhc", "fsl,imx8qxp-usdhc";
>  	interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
> 
> -- 
> 2.34.1
> 

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

* Re: [PATCH v2 5/6] arm64: dts: imx8-ss-conn: add gpmi nand node
  2024-05-20 16:09 ` [PATCH v2 5/6] arm64: dts: imx8-ss-conn: add gpmi nand node Frank Li
@ 2024-06-27  6:28   ` Shawn Guo
  0 siblings, 0 replies; 20+ messages in thread
From: Shawn Guo @ 2024-06-27  6:28 UTC (permalink / raw)
  To: Frank Li
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut, linux-mtd, devicetree, linux-kernel,
	dmaengine, imx, linux-arm-kernel

On Mon, May 20, 2024 at 12:09:16PM -0400, Frank Li wrote:
> Add gpmi nand support.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Applied, thanks!


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

* Re: [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand
  2024-05-20 16:09 ` [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand Frank Li
  2024-06-17 15:02   ` Frank Li
@ 2024-06-27  6:28   ` Shawn Guo
  1 sibling, 0 replies; 20+ messages in thread
From: Shawn Guo @ 2024-06-27  6:28 UTC (permalink / raw)
  To: Frank Li
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut, linux-mtd, devicetree, linux-kernel,
	dmaengine, imx, linux-arm-kernel

On Mon, May 20, 2024 at 12:09:17PM -0400, Frank Li wrote:
> Update gpmi nand and dma_apbh interrupt number for imx8dxl.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Applied, thanks!


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

* Re: [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh"
  2024-05-27 12:18   ` Miquel Raynal
@ 2024-07-12 14:35     ` Miquel Raynal
  2024-07-12 14:45       ` Frank Li
  2024-07-17  8:38       ` Miquel Raynal
  0 siblings, 2 replies; 20+ messages in thread
From: Miquel Raynal @ 2024-07-12 14:35 UTC (permalink / raw)
  To: Frank Li, Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

Hi Vinod,

miquel.raynal@bootlin.com wrote on Mon, 27 May 2024 14:18:36 +0200:

> On Mon, 2024-05-20 at 16:09:13 UTC, Frank Li wrote:
> > Add compatible string "fsl,imx8qxp-dma-apbh". It requires power-domains
> > compared with "fsl,imx28-dma-apbh".
> > 
> > Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> > it.
> > 
> > Keep the same restriction about 'power-domains' for other compatible
> > strings.
> > 
> > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>  
> 
> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

I just realize now I picked this up whereas it was not intended to be
merged through mtd. I'm fine keeping this patch for the next merge
window if I get your explicit agreement otherwise I'll drop it.

Thanks,
Miquèl

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

* Re: [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh"
  2024-07-12 14:35     ` Miquel Raynal
@ 2024-07-12 14:45       ` Frank Li
  2024-07-17  8:38       ` Miquel Raynal
  1 sibling, 0 replies; 20+ messages in thread
From: Frank Li @ 2024-07-12 14:45 UTC (permalink / raw)
  To: Miquel Raynal
  Cc: Richard Weinberger, Vignesh Raghavendra, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Han Xu, Vinod Koul, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Marek Vasut,
	linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

On Fri, Jul 12, 2024 at 04:35:03PM +0200, Miquel Raynal wrote:
> Hi Vinod,
> 
> miquel.raynal@bootlin.com wrote on Mon, 27 May 2024 14:18:36 +0200:
> 
> > On Mon, 2024-05-20 at 16:09:13 UTC, Frank Li wrote:
> > > Add compatible string "fsl,imx8qxp-dma-apbh". It requires power-domains
> > > compared with "fsl,imx28-dma-apbh".
> > > 
> > > Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> > > it.
> > > 
> > > Keep the same restriction about 'power-domains' for other compatible
> > > strings.
> > > 
> > > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>  
> > 
> > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
> 
> I just realize now I picked this up whereas it was not intended to be
> merged through mtd. I'm fine keeping this patch for the next merge
> window if I get your explicit agreement otherwise I'll drop it.

I think it is fine. Basically this dma is only used for GPMI NAND now.

Frank

> 
> Thanks,
> Miquèl

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

* Re: [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh"
  2024-07-12 14:35     ` Miquel Raynal
  2024-07-12 14:45       ` Frank Li
@ 2024-07-17  8:38       ` Miquel Raynal
  1 sibling, 0 replies; 20+ messages in thread
From: Miquel Raynal @ 2024-07-17  8:38 UTC (permalink / raw)
  To: Frank Li, Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Han Xu,
	Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Marek Vasut
  Cc: linux-mtd, devicetree, linux-kernel, dmaengine, imx,
	linux-arm-kernel

Hi,

miquel.raynal@bootlin.com wrote on Fri, 12 Jul 2024 16:35:03 +0200:

> Hi Vinod,
> 
> miquel.raynal@bootlin.com wrote on Mon, 27 May 2024 14:18:36 +0200:
> 
> > On Mon, 2024-05-20 at 16:09:13 UTC, Frank Li wrote:  
> > > Add compatible string "fsl,imx8qxp-dma-apbh". It requires power-domains
> > > compared with "fsl,imx28-dma-apbh".
> > > 
> > > Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> > > it.
> > > 
> > > Keep the same restriction about 'power-domains' for other compatible
> > > strings.
> > > 
> > > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>    
> > 
> > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.  
> 
> I just realize now I picked this up whereas it was not intended to be
> merged through mtd. I'm fine keeping this patch for the next merge
> window if I get your explicit agreement otherwise I'll drop it.

I need to send the PR to Linux, I will drop this patch which can anyway
be taken in the next cycle.

Thanks,
Miquèl

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

end of thread, other threads:[~2024-07-17  8:38 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-20 16:09 [PATCH v2 0/6] mtd: nand: gpmi-nand: add imx8qxp gpmi nand support Frank Li
2024-05-20 16:09 ` [PATCH v2 1/6] dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string Frank Li
2024-05-21 13:56   ` Rob Herring
2024-05-27 12:18   ` Miquel Raynal
2024-05-20 16:09 ` [PATCH v2 2/6] dt-bindings: dma: fsl-mxs-dma: Add compatible string "fsl,imx8qxp-dma-apbh" Frank Li
2024-05-21 13:56   ` Rob Herring (Arm)
2024-05-27 12:18   ` Miquel Raynal
2024-07-12 14:35     ` Miquel Raynal
2024-07-12 14:45       ` Frank Li
2024-07-17  8:38       ` Miquel Raynal
2024-05-20 16:09 ` [PATCH v2 3/6] mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata Frank Li
2024-05-21  9:17   ` Miquel Raynal
2024-05-27 12:18   ` Miquel Raynal
2024-05-20 16:09 ` [PATCH v2 4/6] mtd: rawnand: gpmi: add iMX8QXP support Frank Li
2024-05-27 12:18   ` Miquel Raynal
2024-05-20 16:09 ` [PATCH v2 5/6] arm64: dts: imx8-ss-conn: add gpmi nand node Frank Li
2024-06-27  6:28   ` Shawn Guo
2024-05-20 16:09 ` [PATCH v2 6/6] arm64: dts: imx8dxl-ss-conn: add gpmi nand Frank Li
2024-06-17 15:02   ` Frank Li
2024-06-27  6:28   ` Shawn Guo

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