Skip to contentSkip to conversation

Renesas RSPI/QSPI DT support

PATCH New Geert Uytterhoeven 3 participants 19 messages Jan 12, 2014 – Jan 15, 2014

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

cover Renesas RSPI/QSPI DT support

This patches series adds DT support to the Renesas RSPI/QSPI driver, and to the r7s72100/genmai and r8a7791/koelsch development boards:

[1/9] spi: rspi: Add missing clk_disable() calls in error and cleanup paths [2/9] spi: rspi: Convert to clk_prepare_enable/disable_unprepare [3/9] spi: rspi: Use NULL as the clock ID
[4/9][V3] spi: rspi: Add DT support
[5/9] ARM: shmobile: r7s72100: Add RSPI clocks for DT [6/9][V3] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes [7/9][V3] ARM: shmobile: genmai reference: Add RSPI nodes [8/9] ARM: shmobile: r8a7791 dtsi: Add QSPI node
[9/9] ARM: shmobile: koelsch: Add QSPI nodes

[4/9], [6/9], and [7/9] have been sent before in the series "[PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H".
[4/9] received some updates, cfr. its changelog.

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#1 lore raw

PATCH 1/9 spi: rspi: Add missing clk_disable() calls in error and cleanup paths

From: Geert Uytterhoeven <[email protected]>

---
 drivers/spi/spi-rspi.c |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
drivers/spi/spi-rspi.c +9 -6
index 04d512e1e894..5ce2127b2b43 100644
@@ -1066,6 +1066,7 @@ static int rspi_remove(struct platform_device *pdev)
 	struct rspi_data *rspi = platform_get_drvdata(pdev);
 
 	rspi_release_dma(rspi);
+	clk_disable(rspi->clk);
 
 	return 0;
 }
@@ -1135,7 +1136,7 @@ static int rspi_probe(struct platform_device *pdev)
 	ret = ops->parse_platform_data(rspi, rspi_pd);
 	if (ret < 0) {
 		dev_err(&pdev->dev, "rspi invalid platform data.\n");
-		goto error1;
+		goto error2;
 	}
 
 	for (i = 0; i < MAX_NUM_IRQ; i++) {
@@ -1145,13 +1146,13 @@ static int rspi_probe(struct platform_device *pdev)
 				break;
 			dev_err(&pdev->dev, "platform_get_irq error\n");
 			ret = -ENODEV;
-			goto error1;
+			goto error2;
 		}
 		ret = devm_request_irq(&pdev->dev, irq, rspi_irq, 0,
 				       dev_name(&pdev->dev), rspi);
 		if (ret < 0) {
 			dev_err(&pdev->dev, "request_irq %d error\n", irq);
-			goto error1;
+			goto error2;
 		}
 		rspi->irqs[i] = irq;
 		rspi->num_irqs++;
@@ -1160,21 +1161,23 @@ static int rspi_probe(struct platform_device *pdev)
 	ret = rspi_request_dma(rspi, pdev);
 	if (ret < 0) {
 		dev_err(&pdev->dev, "rspi_request_dma failed.\n");
-		goto error2;
+		goto error3;
 	}
 
 	ret = devm_spi_register_master(&pdev->dev, master);
 	if (ret < 0) {
 		dev_err(&pdev->dev, "spi_register_master error.\n");
-		goto error2;
+		goto error3;
 	}
 
 	dev_info(&pdev->dev, "probed\n");
 
 	return 0;
 
-error2:
+error3:
 	rspi_release_dma(rspi);
+error2:
+	clk_disable(rspi->clk);
 error1:
 	spi_master_put(master);
 
Signature · 1 line
1.7.9.5
maintainer
#2 lore raw

PATCH 1/9 spi: rspi: Add missing clk_disable() calls in error and cleanup paths

Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

This doesn't seem to apply to current code, please check and resend.
The fact that there's multiple patch serieses in flight from you for
this driver plus development work (again mostly from you) in git is
probably not helping here...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140113/17e90256/attachment.sig>

#3 lore raw

PATCH 1/9 spi: rspi: Add missing clk_disable() calls in error and cleanup paths

Hi Mark,

Quoted 9 lines · Mark Brown
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

This doesn't seem to apply to current code, please check and resend. The fact that there's multiple patch serieses in flight from you for this driver plus development work (again mostly from you) in git is probably not helping here...

This depends on the series:

[PATCH V2 0/8] spi: rspi: Add support for RZ/A1H

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

maintainer
#4 lore raw

PATCH 1/9 spi: rspi: Add missing clk_disable() calls in error and cleanup paths

Quoted 10 lines · Geert Uytterhoeven
Quoted 4 lines · Mark Brown

This doesn't seem to apply to current code, please check and resend. The fact that there's multiple patch serieses in flight from you for this driver plus development work (again mostly from you) in git is probably not helping here...

This depends on the series:

[PATCH V2 0/8] spi: rspi: Add support for RZ/A1H

Please say if you're doing things like that, or ideally just send one
patch series since everything needs to be applied as one series - in
this case since the patch is a bug fix it ought to be going in before
anything else anyway.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140113/db0c5e63/attachment.sig>

#5 lore raw

PATCH 2/9 spi: rspi: Convert to clk_prepare_enable/disable_unprepare

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

Get the driver ready for the migration to the common clock framework by calling clk_prepare_enable() and clk_disable_unprepare().

---
 drivers/spi/spi-rspi.c |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
drivers/spi/spi-rspi.c +8 -3
index 5ce2127b2b43..b6439c9505ac 100644
@@ -1066,7 +1066,7 @@ static int rspi_remove(struct platform_device *pdev)
 	struct rspi_data *rspi = platform_get_drvdata(pdev);
 
 	rspi_release_dma(rspi);
-	clk_disable(rspi->clk);
+	clk_disable_unprepare(rspi->clk);
 
 	return 0;
 }
@@ -1115,7 +1115,12 @@ static int rspi_probe(struct platform_device *pdev)
 		ret = PTR_ERR(rspi->clk);
 		goto error1;
 	}
-	clk_enable(rspi->clk);
+
+	ret = clk_prepare_enable(rspi->clk);
+	if (ret < 0) {
+		dev_err(&pdev->dev, "unable to prepare/enable clock\n");
+		goto error1;
+	}
 
 	INIT_LIST_HEAD(&rspi->queue);
 	spin_lock_init(&rspi->lock);
@@ -1177,7 +1182,7 @@ static int rspi_probe(struct platform_device *pdev)
 error3:
 	rspi_release_dma(rspi);
 error2:
-	clk_disable(rspi->clk);
+	clk_disable_unprepare(rspi->clk);
 error1:
 	spi_master_put(master);
 
Signature · 1 line
1.7.9.5
#6 lore raw

PATCH 3/9 spi: rspi: Use NULL as the clock ID

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

There's only one RSPI/QSPI clock, so we can use NULL as the clock ID

---
 drivers/spi/spi-rspi.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/spi/spi-rspi.c +1 -3
index b6439c9505ac..6fd4770d22bd 100644
@@ -1078,7 +1078,6 @@ static int rspi_probe(struct platform_device *pdev)
 	struct rspi_data *rspi;
 	int ret, irq;
 	unsigned int i;
-	char clk_name[16];
 	const struct rspi_plat_data *rspi_pd = dev_get_platdata(&pdev->dev);
 	const struct spi_ops *ops;
 	const struct platform_device_id *id_entry = pdev->id_entry;
@@ -1108,8 +1107,7 @@ static int rspi_probe(struct platform_device *pdev)
 		goto error1;
 	}
 
-	snprintf(clk_name, sizeof(clk_name), "%s%d", id_entry->name, pdev->id);
-	rspi->clk = devm_clk_get(&pdev->dev, clk_name);
+	rspi->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(rspi->clk)) {
 		dev_err(&pdev->dev, "cannot get clock\n");
 		ret = PTR_ERR(rspi->clk);
Signature · 1 line
1.7.9.5
#7 lore raw

PATCH v3 4/9 spi: rspi: Add DT support

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

---
V2:
- Clarify RSPI/QSPI
- Add interrupt-parent
- s/should/must/ for #address-cells and #size-cells
V3:
- Add renesas,rspi-sh
- Drop -rcar suffix for QSPI
- Clarify num-cs
- Implement DT support in driver
- Changed one-line summary from "Documentation: dt: Add Renesas RSPI/QSPI bindings" to "spi: rspi: Add DT support"

---
 Documentation/devicetree/bindings/spi/spi-rspi.txt |   33 +++++
 drivers/spi/spi-rspi.c                             |  131 +++++++++++++++++---
 2 files changed, 145 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-rspi.txt
Documentation/devicetree/bindings/spi/spi-rspi.txt new file +33 -0
new file mode 100644
index 000000000000..19854eeee579
@@ -0,0 +1,33 @@
+Device tree configuration for Renesas RSPI/QSPI driver
+
+Required properties:
+- compatible       : For Renesas Serial Peripheral Interface on SH:
+                     "renesas,rspi-<soctype>", "renesas,rspi-sh" as fallback.
+		     For Renesas Serial Peripheral Interface on ARM:
+                     "renesas,rspi-<soctype>", "renesas,rspi-rz" as fallback.
+		     For Quad Serial Peripheral Interface:
+		     "renesas,qspi-<soctype>", "renesas,qspi" as fallback.
+- reg              : Address start and address range size of device
+- interrupts       : Up to 3 interrupts for RSPI (SPEI, SPRI, SPTI),
+		     1 interrupt for QSPI
+- interrupt-parent : The phandle for the interrupt controller that
+		     services interrupts for this device.
+- num-cs	   : Number of chip selects. Some RSPI cores have more than 1.
+- #address-cells   : Must be <1>
+- #size-cells      : Must be <0>
+
+Pinctrl properties might be needed, too. See there.
+
+Example:
+
+	spi0: spi at e800c800 {
+		compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
+		reg = <0xe800c800 0x24>;
+		interrupts = <0 238 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 239 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 240 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-parent = <&gic>;
+		num-cs = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+	};
drivers/spi/spi-rspi.c +112 -19

169 lines not on this page · raw message

Signature · 1 line
1.7.9.5
maintainer
#8 lore raw

PATCH v3 4/9 spi: rspi: Add DT support

Documentation/devicetree/bindings/spi/spi-rspi.txt line 9

Quoted 7 lines · Geert Uytterhoeven
Documentation/devicetree/bindings/spi/spi-rspi.txt new file +7 -0
+Required properties:
+- compatible       : For Renesas Serial Peripheral Interface on SH:
+                     "renesas,rspi-<soctype>", "renesas,rspi-sh" as fallback.
+		     For Renesas Serial Peripheral Interface on ARM:
+                     "renesas,rspi-<soctype>", "renesas,rspi-rz" as fallback.
+		     For Quad Serial Peripheral Interface:
+		     "renesas,qspi-<soctype>", "renesas,qspi" as fallback.

This should specify what <soctype> is and ideally list the valid values or at least the convention for writing them; perhaps a list of SoCs in some common place would be useful for sharing between all the IPs.

Documentation/devicetree/bindings/spi/spi-rspi.txt line 12

Quoted 2 lines

+- interrupts : Up to 3 interrupts for RSPI (SPEI, SPRI, SPTI),

Documentation/devicetree/bindings/spi/spi-rspi.txt new file +1 -0
+		     1 interrupt for QSPI

For multiple interrupts you need to say how they are identified - if they're not named the order must be specified.

Quoted 1 line

+Pinctrl properties might be needed, too. See there.

Where?

drivers/spi/spi-rspi.c static int rspi_remove(struct platform_device *pdev) · line 1136

Quoted 13 lines
drivers/spi/spi-rspi.c +13 -0
+static const struct of_device_id rspi_of_match[] = {
+	/* RSPI on legacy SH */
+	{ .compatible = "renesas,rspi-sh7757", .data = &rspi_sh_of_data },
+	{ .compatible = "renesas,rspi-sh", .data = &rspi_sh_of_data },
+	/* RSPI on RZ */
+	{ .compatible = "renesas,rspi-r7s72100", .data = &rspi_rz_of_data },
+	{ .compatible = "renesas,rspi-rz", .data = &rspi_rz_of_data },
+	/* QSPI on R-Car Gen2 */
+	{ .compatible = "renesas,qspi-r8a7790", .data = &qspi_of_data },
+	{ .compatible = "renesas,qspi-r8a7791", .data = &qspi_of_data },
+	{ .compatible = "renesas,qspi", .data = &qspi_of_data },
+	{ /* sentinel */ }
+};

No need to actually list the specific SoCs given that the fallback is
mandatory and the resulting data is identical, if you are going to do
that then I'd have the compatible set num_cs too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140113/22e31170/attachment.sig>

#9 lore raw

PATCH 5/9 ARM: shmobile: r7s72100: Add RSPI clocks for DT

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

Add DT-style ("%08x.spi") clocks, as Genmai doesn't use the common clockframe yet.

---
 arch/arm/mach-shmobile/clock-r7s72100.c |    5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-shmobile/clock-r7s72100.c +5 -0
index 6ae341ca713c..f5bf95cec6cf 100644
@@ -194,6 +194,11 @@ static struct clk_lookup lookups[] = {
 	CLKDEV_DEV_ID("rspi.2", &mstp_clks[MSTP105]),
 	CLKDEV_DEV_ID("rspi.3", &mstp_clks[MSTP104]),
 	CLKDEV_DEV_ID("rspi.4", &mstp_clks[MSTP103]),
+	CLKDEV_DEV_ID("e800c800.spi", &mstp_clks[MSTP107]),
+	CLKDEV_DEV_ID("e800d000.spi", &mstp_clks[MSTP106]),
+	CLKDEV_DEV_ID("e800d800.spi", &mstp_clks[MSTP105]),
+	CLKDEV_DEV_ID("e800e000.spi", &mstp_clks[MSTP104]),
+	CLKDEV_DEV_ID("e800e800.spi", &mstp_clks[MSTP103]),
 	CLKDEV_DEV_ID("fcfee000.i2c", &mstp_clks[MSTP97]),
 	CLKDEV_DEV_ID("fcfee400.i2c", &mstp_clks[MSTP96]),
 	CLKDEV_DEV_ID("fcfee800.i2c", &mstp_clks[MSTP95]),
Signature · 1 line
1.7.9.5
#10 lore raw

PATCH v3 6/9 ARM: shmobile: r7s72100 dtsi: Add RSPI nodes

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

---
V2:
- No changes
V3:
- No changes

 arch/arm/boot/dts/r7s72100.dtsi |   65 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
arch/arm/boot/dts/r7s72100.dtsi +65 -0
index ff0bd6be454f..42e9b423476c 100644
@@ -34,6 +34,11 @@
 		gpio10 = &port10;
 		gpio11 = &port11;
 		gpio12 = &jtagport0;
+		spi0 = &spi0;
+		spi1 = &spi1;
+		spi2 = &spi2;
+		spi3 = &spi3;
+		spi4 = &spi4;
 	};
 
 	cpus {
@@ -289,4 +294,64 @@
 		clock-frequency = <100000>;
 		status = "disabled";
 	};
+
+	spi0: spi at e800c800 {
+		compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
+		reg = <0xe800c800 0x24>;
+		interrupts = <0 238 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 239 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 240 IRQ_TYPE_LEVEL_HIGH>;
+		num-cs = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	spi1: spi at e800d000 {
+		compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
+		reg = <0xe800d000 0x24>;
+		interrupts = <0 241 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 242 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 243 IRQ_TYPE_LEVEL_HIGH>;
+		num-cs = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	spi2: spi at e800d800 {
+		compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
+		reg = <0xe800d800 0x24>;
+		interrupts = <0 244 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 245 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 246 IRQ_TYPE_LEVEL_HIGH>;
+		num-cs = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	spi3: spi at e800e000 {
+		compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
+		reg = <0xe800e000 0x24>;
+		interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 248 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 249 IRQ_TYPE_LEVEL_HIGH>;
+		num-cs = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+
+	spi4: spi at e800e800 {
+		compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
+		reg = <0xe800e800 0x24>;
+		interrupts = <0 250 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 251 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 252 IRQ_TYPE_LEVEL_HIGH>;
+		num-cs = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
 };
Signature · 1 line
1.7.9.5
#11 lore raw

PATCH v3 7/9 ARM: shmobile: genmai reference: Add RSPI nodes

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

Add pinctrl and SPI devices for RSPI on Genmai.

On this board, only rspi4 is in use. Its bus contains a single device (a wm8978 audio codec), for which no bindings are defined yet.

---
V2:
- Use generic "codec" instead of specific "wm8978" node name.
V3:
- No changes

 arch/arm/boot/dts/r7s72100-genmai-reference.dts |   18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
arch/arm/boot/dts/r7s72100-genmai-reference.dts +17 -1
index 367af5c133e0..c2cc4bd5a470 100644
@@ -43,7 +43,7 @@
 };
 
 &pfc {
-	pinctrl-0 = <&scif2_pins &ethernet_pins>;
+	pinctrl-0 = <&scif2_pins &ethernet_pins &rspi4_pins>;
 	pinctrl-names = "default";
 
 	scif2_pins: serial2 {
@@ -73,6 +73,12 @@
 				 "ethernet_int_p1_15";
 		renesas,function = "ethernet";
 	};
+
+	rspi4_pins: spi4 {
+		renesas,groups = "rspi4_rspck_p4_0", "rspi4_ssl0_p4_1",
+				 "rspi4_mosi_p4_2", "rspi4_miso_p4_3";
+		renesas,function = "rspi4";
+	};
 };
 
 &i2c2 {
@@ -85,3 +91,13 @@
 		pagesize = <64>;
 	};
 };
+
+&spi4 {
+	status = "okay";
+
+	codec: codec at 0 {
+		compatible = "wlf,wm8978";
+		reg = <0>;
+		spi-max-frequency = <5000000>;
+	};
+};
Signature · 1 line
1.7.9.5
#12 lore raw

PATCH 8/9 ARM: shmobile: r8a7791 dtsi: Add QSPI node

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

---
 arch/arm/boot/dts/r8a7791.dtsi |   12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/r8a7791.dtsi +12 -0
index 00ed0e0a9bcb..3233041d8a44 100644
@@ -687,4 +687,16 @@
 			clock-output-names = "scifa3", "scifa4", "scifa5";
 		};
 	};
+
+	spi: spi at e6b10000 {
+		compatible = "renesas,qspi-r8a7791", "renesas,qspi";
+		reg = <0 0xe6b10000 0 0x2c>;
+		interrupt-parent = <&gic>;
+		interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
+		num-cs = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
 };
Signature · 1 line
1.7.9.5
#13 lore raw

PATCH 9/9 ARM: shmobile: koelsch: Add QSPI nodes

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

Add pinctrl and SPI devices for QSPI on Koelsch. Add Spansion s25fl512s SPI FLASH and MTD partitions.

---
 arch/arm/boot/dts/r8a7791-koelsch.dts |   36 +++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
arch/arm/boot/dts/r8a7791-koelsch.dts +36 -0
index d5e42b396ef7..885b61e09638 100644
@@ -123,6 +123,11 @@
 		renesas,groups = "scif1_data_d";
 		renesas,function = "scif1";
 	};
+
+	qspi_pins: spi {
+		renesas,groups = "qspi_ctrl", "qspi_data4";
+		renesas,function = "qspi";
+	};
 };
 
 &scif0 {
@@ -138,3 +143,34 @@
 
 	status = "okay";
 };
+
+&spi {
+	pinctrl-0 = <&qspi_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+
+	flash: flash at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "spansion,s25fl512s";
+		reg = <0>;
+		spi-max-frequency = <30000000>;
+		m25p,fast-read;
+
+		partition at 0 {
+			label = "loader";
+			reg = <0x00000000 0x00080000>;
+			read-only;
+		};
+		partition at 80000 {
+			label = "bootenv";
+			reg = <0x00080000 0x00080000>;
+			read-only;
+		};
+		partition at 100000 {
+			label = "data";
+			reg = <0x00100000 0x03f00000>;
+		};
+	};
+};
Signature · 1 line
1.7.9.5
#14 lore raw

cover Renesas RSPI/QSPI DT support

In reply to Geert Uytterhoeven
Quoted 5 lines · Geert Uytterhoeven
    [5/9] ARM: shmobile: r7s72100: Add RSPI clocks for DT
    [6/9][V3] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes
    [7/9][V3] ARM: shmobile: genmai reference: Add RSPI nodes
    [8/9] ARM: shmobile: r8a7791 dtsi: Add QSPI node
    [9/9] ARM: shmobile: koelsch: Add QSPI nodes

Forgot to mention:

The ARM/shmobile part is based on renesas-devel-v3.13-rc7-20140109v2, with Magnus' pinctrl, Wolfram's riic, Simon's sh_eth, Valentine's i2c pinctrl and Laurent's SCIF DT work applied on top.
[Simon: I don't know in which order you will merge these. If you want me
to rebase my patches, just ask! Thanks!]

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#15 lore raw

cover Renesas RSPI/QSPI DT support

Quoted 2 lines · Geert Uytterhoeven

On Sun, Jan 12, 2014 at 12:13 PM, Geert Uytterhoeven <[email protected]> wrote:

[1/9] spi: rspi: Add missing clk_disable() calls in error and cleanup paths [2/9] spi: rspi: Convert to clk_prepare_enable/disable_unprepare [3/9] spi: rspi: Use NULL as the clock ID
[4/9][V3] spi: rspi: Add DT support

Quoted 6 lines
Quoted 5 lines
    [5/9] ARM: shmobile: r7s72100: Add RSPI clocks for DT
    [6/9][V3] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes
    [7/9][V3] ARM: shmobile: genmai reference: Add RSPI nodes
    [8/9] ARM: shmobile: r8a7791 dtsi: Add QSPI node
    [9/9] ARM: shmobile: koelsch: Add QSPI nodes
Quoted 7 lines

Forgot to mention:

The ARM/shmobile part is based on renesas-devel-v3.13-rc7-20140109v2, with Magnus' pinctrl, Wolfram's riic, Simon's sh_eth, Valentine's i2c pinctrl and Laurent's SCIF DT work applied on top.
[Simon: I don't know in which order you will merge these. If you want me
to rebase my patches, just ask! Thanks!]

Firstly, I would like an Ack from Magnus on the shmobile patches.

With regards to merge order, my preference is to merge patches in parallel once their dependencies will no longer change.

So for this series it lools like.

5/9: Can be merged independently of other patches in the series.
But there isn't much point in merging it until the rest of the series is acked and tested.
6-9/9: Needs to wait until 4/9 has at least been acked by Mark
Also, is 1/9 a run-time dependency of these changes?

#16 lore raw

cover Renesas RSPI/QSPI DT support

Quoted 25 lines · Simon Horman
Quoted 2 lines · Geert Uytterhoeven

On Sun, Jan 12, 2014 at 12:13 PM, Geert Uytterhoeven <[email protected]> wrote:

[1/9] spi: rspi: Add missing clk_disable() calls in error and cleanup paths [2/9] spi: rspi: Convert to clk_prepare_enable/disable_unprepare [3/9] spi: rspi: Use NULL as the clock ID
[4/9][V3] spi: rspi: Add DT support

Quoted 6 lines
Quoted 5 lines
    [5/9] ARM: shmobile: r7s72100: Add RSPI clocks for DT
    [6/9][V3] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes
    [7/9][V3] ARM: shmobile: genmai reference: Add RSPI nodes
    [8/9] ARM: shmobile: r8a7791 dtsi: Add QSPI node
    [9/9] ARM: shmobile: koelsch: Add QSPI nodes
Quoted 7 lines

Forgot to mention:

The ARM/shmobile part is based on renesas-devel-v3.13-rc7-20140109v2, with Magnus' pinctrl, Wolfram's riic, Simon's sh_eth, Valentine's i2c pinctrl and Laurent's SCIF DT work applied on top.
[Simon: I don't know in which order you will merge these. If you want me
to rebase my patches, just ask! Thanks!]

Firstly, I would like an Ack from Magnus on the shmobile patches.

Quoted 8 lines

With regards to merge order, my preference is to merge patches in parallel once their dependencies will no longer change.

So for this series it lools like.

5/9: Can be merged independently of other patches in the series.
But there isn't much point in merging it until the rest of the series is acked and tested.

OK.

Quoted 1 line

6-9/9: Needs to wait until 4/9 has at least been acked by Mark

OK. Based on Mark's comments, there will be a V4.

Quoted 1 line

Also, is 1/9 a run-time dependency of these changes?

1/9 is a bugfix. I'll send a rebased version to Mark, as he wanted to get that one in first.

2-3/9 are run-time dependencies, but 2/9 won't apply without 1/9.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#17 lore raw

cover Renesas RSPI/QSPI DT support

Quoted 39 lines · Geert Uytterhoeven
Quoted 25 lines · Simon Horman
Quoted 2 lines · Geert Uytterhoeven

On Sun, Jan 12, 2014 at 12:13 PM, Geert Uytterhoeven <[email protected]> wrote:

[1/9] spi: rspi: Add missing clk_disable() calls in error and cleanup paths [2/9] spi: rspi: Convert to clk_prepare_enable/disable_unprepare [3/9] spi: rspi: Use NULL as the clock ID
[4/9][V3] spi: rspi: Add DT support

Quoted 6 lines
Quoted 5 lines
    [5/9] ARM: shmobile: r7s72100: Add RSPI clocks for DT
    [6/9][V3] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes
    [7/9][V3] ARM: shmobile: genmai reference: Add RSPI nodes
    [8/9] ARM: shmobile: r8a7791 dtsi: Add QSPI node
    [9/9] ARM: shmobile: koelsch: Add QSPI nodes
Quoted 7 lines

Forgot to mention:

The ARM/shmobile part is based on renesas-devel-v3.13-rc7-20140109v2, with Magnus' pinctrl, Wolfram's riic, Simon's sh_eth, Valentine's i2c pinctrl and Laurent's SCIF DT work applied on top.
[Simon: I don't know in which order you will merge these. If you want me
to rebase my patches, just ask! Thanks!]

Firstly, I would like an Ack from Magnus on the shmobile patches.

Quoted 8 lines

With regards to merge order, my preference is to merge patches in parallel once their dependencies will no longer change.

So for this series it lools like.

5/9: Can be merged independently of other patches in the series.
But there isn't much point in merging it until the rest of the series is acked and tested.

OK.

Quoted 1 line

6-9/9: Needs to wait until 4/9 has at least been acked by Mark

Quoted 8 lines

OK. Based on Mark's comments, there will be a V4.

Quoted 1 line

Also, is 1/9 a run-time dependency of these changes?

1/9 is a bugfix. I'll send a rebased version to Mark, as he wanted to get that one in first.

2-3/9 are run-time dependencies, but 2/9 won't apply without 1/9.

run-time dependencies of 6-9/9 ?

#18 lore raw

cover Renesas RSPI/QSPI DT support

Hi Simon,

Quoted 6 lines · Simon Horman
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

[6/9][V3] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes [7/9][V3] ARM: shmobile: genmai reference: Add RSPI nodes [8/9] ARM: shmobile: r8a7791 dtsi: Add QSPI node [9/9] ARM: shmobile: koelsch: Add QSPI nodes

run-time dependencies of 6-9/9 ?

None, these are just DT nodes. It may print warnings due to unknown pinctrl groups and functions, but that's it.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds