[RFC] GPIO-Watchdog in devicetree
David Gibson
david at gibson.dropbear.id.au
Fri Sep 26 11:15:13 EST 2008
On Mon, Sep 22, 2008 at 09:43:57PM +0200, Wolfram Sang wrote:
> Hello all,
>
> I understood that the device-tree is for describing hardware and should
> not contain driver specific information. I have problems drawing this
> line right now. I made a driver for watchdogs which are pinged by
> toggling a gpio. Currently the device-tree entry looks like this:
>
> watchdog at gpio {
> compatible = "gpio-watchdog";
> gpios = <&gpio_simple 19 0>;
> };
This certainly isn't right. The unit address should be based on the
'reg' property. If there's no 'reg' property, there should be no unit
address.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080926/f6d516a9/attachment.pgp>
More information about the Linuxppc-dev
mailing list