[PATCH] powerpc/5200: dts: digsy_mtc.dts: add timer0 and timer1 gpio properties

Anatolij Gustschin agust at denx.de
Tue Jun 7 08:27:05 EST 2011


timer0 and timer1 pins are used as simple GPIO on this board.
Add gpio-controller and #gpio-cells properties to timer nodes
so that we can control gpio lines using available MPC52xx
GPT driver.

Signed-off-by: Anatolij Gustschin <agust at denx.de>
---
 arch/powerpc/boot/dts/digsy_mtc.dts |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts
index e205d17..2aad7ae 100644
--- a/arch/powerpc/boot/dts/digsy_mtc.dts
+++ b/arch/powerpc/boot/dts/digsy_mtc.dts
@@ -23,7 +23,14 @@
 
 	soc5200 at f0000000 {
 		timer at 600 {	// General Purpose Timer
+			#gpio-cells = <2>;
 			fsl,has-wdt;
+			gpio-controller;
+		};
+
+		timer at 610 {
+			#gpio-cells = <2>;
+			gpio-controller;
 		};
 
 		rtc at 800 {
-- 
1.7.1



More information about the Linuxppc-dev mailing list