Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1676116
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Christopher Bostic <cbostic@linux.vnet.ibm.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] drivers/watchdog: Document new aspeed optional dev tree properties. |
| Date | Tue, 27 Jun 2017 21:50:02 +0200 |
| Message-ID | <tX4EO-57v-29@gated-at.bofh.it> (permalink) |
| References | <tS0Lw-4an-9@gated-at.bofh.it> <tS0Lw-4an-7@gated-at.bofh.it> <tWP34-2Wq-11@gated-at.bofh.it> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Tm-As-Gconf | 00 |
| X-Cbid | 17062719-0048-0000-0000-000001B3E7FA |
| X-Ibm-Spammodules-Versions | BY=3.00007286; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00879563; UDB=6.00438385; IPR=6.00659717; BA=6.00005445; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015978; XFM=3.00000015; UTC=2017-06-27 19:44:21 |
| X-Ibm-Av-Detection | SAVI=unused REMOTE=unused XFE=unused |
| X-Cbparentid | 17062719-0049-0000-0000-000041AD9643 |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:,, definitions=2017-06-27_12:,, signatures=0 |
| X-Proofpoint-Spam-Details | rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706270313 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 69 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Wim Van Sebroeck <wim@iguana.be>, Guenter Roeck <linux@roeck-us.net>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, linux-watchdog@vger.kernel.org, Andrew Jeffery <andrew@aj.id.au> |
| X-Original-Date | Tue, 27 Jun 2017 14:44:18 -0500 |
| X-Original-Message-ID | <fdbaf3ce-061b-d639-89ac-fed221d60f45@linux.vnet.ibm.com> |
| X-Original-References | <20170613203818.17399-1-cbostic@linux.vnet.ibm.com> <20170613203818.17399-2-cbostic@linux.vnet.ibm.com> <CACPK8Xe4kWoZKhwRWD+p-zFz-EQDn_3Q5=U4tUX-n6paKMYy1A@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1676116 |
Show key headers only | View raw
On 6/26/17 9:59 PM, Joel Stanley wrote:
> On Wed, Jun 14, 2017 at 6:08 AM, Christopher Bostic
> <cbostic@linux.vnet.ibm.com> wrote:
>> Describe new optional property 'external-signal'. When present in the
>> system device tree an exernal signal is generated on watchdog timeout.
>>
>> Describe new optional property 'no-system-reset'. When present in the
>> system device tree no system reset is to occur on watchdog timeout.
>> System reset in this case is managed by one of the other watchogs
>> available.
>>
>> Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
>> ---
>> Documentation/devicetree/bindings/watchdog/aspeed-wdt.txt | 11 +++++++++++
>> 1 file changed, 11 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/watchdog/aspeed-wdt.txt b/Documentation/devicetree/bindings/watchdog/aspeed-wdt.txt
>> index c5e74d7..4099ea5 100644
>> --- a/Documentation/devicetree/bindings/watchdog/aspeed-wdt.txt
>> +++ b/Documentation/devicetree/bindings/watchdog/aspeed-wdt.txt
>> @@ -8,9 +8,20 @@ Required properties:
>> - reg: physical base address of the controller and length of memory mapped
>> region
>>
>> +Optional properties:
>> + - external-signal: If the property is present then an external signal is to
>> + be generated on watchdog timeout. If absent, external signal is not
>> + generated.
>> +
>> + - no-system-reset: If the property is present then system will not be reset
>> + on watchdog timeout. In this case one of the other watchdogs will handle
>> + reset. If absent then the watchdog resets the system on timeout.
> I'm not sure that this describes the hardware. The datasheet says:
>
> Whenever timeout ocurs, WDT can program to generate 6 types of signals:
>
> * ARM reset signal: to reset ARM CPU only
> * SOC reset signal: to reset SOC part function
> * System reset signal: to reset full chip
> * Interrupt signal: to interrupt CPU
> * Eternal signal: to external reset counter (only WDT1 and WDT2)
> * Alternate boot signal: to boot from alternate block
>
> I think your bindings should describe these modes where possible.
I'll add the modes you describe.
Thanks,
Chris
>
> Cheers,
>
> Joel
>
>
>> +
>> Example:
>>
>> wdt1: watchdog@1e785000 {
>> compatible = "aspeed,ast2400-wdt";
>> reg = <0x1e785000 0x1c>;
>> + external-signal;
>> + no-system-reset;
>> };
>> --
>> 1.8.2.2
>>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 1/2] drivers/watchdog: Document new aspeed optional dev tree properties. Joel Stanley <joel@jms.id.au> - 2017-06-27 05:10 +0200 Re: [PATCH 1/2] drivers/watchdog: Document new aspeed optional dev tree properties. Christopher Bostic <cbostic@linux.vnet.ibm.com> - 2017-06-27 21:50 +0200
csiph-web