From: Hauke Mehrtens <hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
To: "Alexander Shiyan" <shc_work-JGs/UdohzUI@public.gmane.org>,
"Rafał Miłecki" <zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>,
Ian Campbell
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
Grant Likely
<grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Florian Fainelli
<florian-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>,
m.adam--linux-kMOp4+VwI+uzQB+pC5nmwQ@public.gmane.org
Subject: Re: Extending wdt-gpio to be used on non-of (no DT) platforms
Date: Sat, 29 Mar 2014 14:16:40 +0100 [thread overview]
Message-ID: <5336C7B8.90707@hauke-m.de> (raw)
In-Reply-To: <1396096185.560264234-mjcJgDj8AytsdVUOrk1QfQ@public.gmane.org>
On 03/29/2014 01:29 PM, Alexander Shiyan wrote:
> Sat, 29 Mar 2014 12:54:40 +0100 от Rafał Miłecki <zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>> Hi guys,
>>
>> I've noticed gpio_wdt was added to the kernel to support some devices
>> based on devicetree.
>> We used to have our own (not mainlined) gpio_wdt in OpenWrt project:
>> http://git.openwrt.org/?p=openwrt.git;a=blob;f=target/linux/generic/patches-3.10/990-gpio_wdt.patch;hb=HEAD
>>
>> The main difference is that the mainlined one uses OF, while OpenWrt's
>> one uses plain platform API (with struct gpio_wdt_platform_data).
>>
>> I wanted to bring a topic of mainlining OpenWrt's solution. We
>> definitely need that and at the same time our device(s) don't use OF /
>> DT.
>>
>> Do you think we should extend wdt-gpio to handle that? Or do you think
>> this driver is so small, it's not worth it and we should submit a
>> separated one?
>>
>> Apart from API being used, one other difference I see is OpenWrt
>> supports different values for "first tick" and "interval". But that
>> could be easily handled.
>
> In fact, this driver can be extended to non-DT support without adding
> any platform_data headers. This can be implemented by convert driver
> to using descriptor-based GPIO functions (gpiod_{}).
> HW timeout value in this case can be taken with module_param().
The Huawei E970, the only device with a bcm47xx SoC which uses this gpio
watchdog I know of, needs the gpio driver very early. It is not possible
to deactivate the watchdogs, so it has to get trigged very early in the
boot process. Module load time is too late. I think wdt-gpio should be
extended to support the old platform device interface with a own
platform_data header.
I added Mathias Adam, the author of the patch in OpenWrt.
Hauke
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-03-29 13:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-29 11:54 Extending wdt-gpio to be used on non-of (no DT) platforms Rafał Miłecki
2014-03-29 12:29 ` Alexander Shiyan
[not found] ` <1396096185.560264234-mjcJgDj8AytsdVUOrk1QfQ@public.gmane.org>
2014-03-29 13:16 ` Hauke Mehrtens [this message]
[not found] ` <5336C7B8.90707-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2014-03-29 13:33 ` Alexander Shiyan
[not found] ` <1396100017.585010881-zErZ3GTiYPVsdVUOrk1QfQ@public.gmane.org>
2014-03-29 13:51 ` Rafał Miłecki
[not found] ` <CACna6rw5eryfe_yFzUs4oTv697LudngogmdOJNK-P8Qq12fJLQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-29 13:56 ` Alexander Shiyan
[not found] ` <CACna6rwRzw1fo2_DyV3T4fa4+cA3=LTcFHRpRsfZWwR2ugQn_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-01 0:13 ` Guenter Roeck
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=5336C7B8.90707@hauke-m.de \
--to=hauke-5/s+jyg5szeelga04laivw@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=florian-p3rKhJxN3npAfugRpC6u6w@public.gmane.org \
--cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=m.adam--linux-kMOp4+VwI+uzQB+pC5nmwQ@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=shc_work-JGs/UdohzUI@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
--cc=wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org \
--cc=zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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