diff mbox

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

Message ID 1307399225-15882-1-git-send-email-agust@denx.de (mailing list archive)
State Accepted, archived
Delegated to: Anatolij Gustschin
Headers show

Commit Message

Anatolij Gustschin June 6, 2011, 10:27 p.m. UTC
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@denx.de>
---
 arch/powerpc/boot/dts/digsy_mtc.dts |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Comments

Anatolij Gustschin July 6, 2011, 9:46 a.m. UTC | #1
Hi Grant,

Can you please pick this patch for 3.1 ?

On Tue,  7 Jun 2011 00:27:05 +0200
Anatolij Gustschin <agust@denx.de> wrote:

> 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@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@f0000000 {
>  		timer@600 {	// General Purpose Timer
> +			#gpio-cells = <2>;
>  			fsl,has-wdt;
> +			gpio-controller;
> +		};
> +
> +		timer@610 {
> +			#gpio-cells = <2>;
> +			gpio-controller;
>  		};
>  
>  		rtc@800 {


Thanks,
Anatolij
Grant Likely July 6, 2011, 5:16 p.m. UTC | #2
On Wed, Jul 06, 2011 at 11:46:27AM +0200, Anatolij Gustschin wrote:
> Hi Grant,
> 
> Can you please pick this patch for 3.1 ?
> 
> On Tue,  7 Jun 2011 00:27:05 +0200
> Anatolij Gustschin <agust@denx.de> wrote:
> 
> > 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@denx.de>

Merged, thanks.

g.

> > ---
> >  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@f0000000 {
> >  		timer@600 {	// General Purpose Timer
> > +			#gpio-cells = <2>;
> >  			fsl,has-wdt;
> > +			gpio-controller;
> > +		};
> > +
> > +		timer@610 {
> > +			#gpio-cells = <2>;
> > +			gpio-controller;
> >  		};
> >  
> >  		rtc@800 {
> 
> 
> Thanks,
> Anatolij
diff mbox

Patch

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@f0000000 {
 		timer@600 {	// General Purpose Timer
+			#gpio-cells = <2>;
 			fsl,has-wdt;
+			gpio-controller;
+		};
+
+		timer@610 {
+			#gpio-cells = <2>;
+			gpio-controller;
 		};
 
 		rtc@800 {