linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: linuxppc-embedded@ozlabs.org
Subject: MPC5200: How to share GPIO and watchdog
Date: Wed, 15 Oct 2008 16:42:04 +0200	[thread overview]
Message-ID: <200810151642.05145.jbe@pengutronix.de> (raw)

Hi list,

the timer0 on the MPC5200B contains one GPIO and a timer/watchdog.

If I'm using this node:

timer@600 {	/* General Purpose Timer */
    compatible =3D "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
    cell-index =3D <0>;
    reg =3D <0x600 0x10>;
    interrupts =3D <0x1 0x9 0x0>;
    interrupt-parent =3D <&mpc5200_pic>;
   fsl,has-wdt;
};

I will get watchdog support.

If I'm using this node:

timer@600 {	/* General Purpose Timer */
    compatible =3D "fsl,mpc5200b-gpt","fsl,mpc5200-gpt","fsl,mpc5200b-gpt-g=
pio","fsl,mpc5200-gpt-gpio";
    cell-index =3D <0>;
    reg =3D <0x600 0x10>;
    interrupts =3D <0x1 0x9 0x0>;
    interrupt-parent =3D <&mpc5200_pic>;
    gpio-controller;
    #gpio-cells =3D <2>;
    fsl,has-wdt;
};

I will get GPIO support, but no longer watchdog support (watchdogs probe
function will never be called).

Is there a way to get both features supported?

Regards,
Juergen

=2D-=20
Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
=A0Pengutronix - Linux Solutions for Science and Industry
=A0   Handelsregister: Amtsgericht Hildesheim, HRA 2686
=A0 =A0 =A0    Vertretung Sued/Muenchen, Germany
   Phone: +49-8766-939 228 |  Fax: +49-5121-206917-9

             reply	other threads:[~2008-10-15 14:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15 14:42 Juergen Beisert [this message]
2008-10-19 14:40 ` MPC5200: How to share GPIO and watchdog Grant Likely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810151642.05145.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).