Thread (18 messages) flat view 18 messages, 4 authors, 2013-01-23
DORMANTno replies

[PATCH 5/8] ARM: shmobile: add a GPIO controller DT node for sh7372

From: Guennadi Liakhovetski <hidden>
Date: 2013-01-23 16:19:34
Also in: linux-sh

Hi Laurent

Thanks for your comments. All will be addressed except for this one:

On Mon, 21 Jan 2013, Laurent Pinchart wrote:
Hi Guennadi,

Thanks for the patch.

On Wednesday 16 January 2013 18:08:14 Guennadi Liakhovetski wrote:
quoted
Add a missing GPIO controller node to sh7372.

Signed-off-by: Guennadi Liakhovetski <redacted>
---
 arch/arm/boot/dts/sh7372.dtsi |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/sh7372.dtsi b/arch/arm/boot/dts/sh7372.dtsi
index 582fdec..7ca9322 100644
--- a/arch/arm/boot/dts/sh7372.dtsi
+++ b/arch/arm/boot/dts/sh7372.dtsi
@@ -19,6 +19,14 @@
 		};
 	};

+	gpio: pfc at e6050000 {
+		compatible = "renesas,pfc-sh7372";
+		reg = <0xe6050000 0x8000>,
+		      <0xe605800c 0x20>;
Shouldn't the second one be

		      <0xe605800c 0x1c>;
quoted
+		gpio-controller;
+		#gpio-cells = <2>;
+	};
+
I haven't checked the board files, have you made sure that the PFC device 
won't be instantiated twice, once from DT and once from board code ?
Don't think so. board-mackerel.c uses DT in a really dull way - it doesn't 
call of_platform_populate(). It also initialises interrupts by calling 
sh7372_init_irq(), which would conflict with intc instances in sh7372.dtsi 
too, if the latter were used. And board-mackerel-reference.c doesn't 
register PFC internally.

Thanks
Guennadi
quoted
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
-- 
Regards,

Laurent Pinchart
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help