From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751719AbdBEAEd (ORCPT ); Sat, 4 Feb 2017 19:04:33 -0500 Received: from bh-25.webhostbox.net ([208.91.199.152]:56258 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbdBEAEb (ORCPT ); Sat, 4 Feb 2017 19:04:31 -0500 Subject: Re: [PATCH v9 1/3] dt: bindings: add documentation for zx2967 family watchdog controller To: Baoyou Xie , jun.nie@linaro.org, wim@iguana.be, robh+dt@kernel.org, mark.rutland@arm.com, mathieu.poirier@linaro.org References: <1486172055-13162-1-git-send-email-baoyou.xie@linaro.org> Cc: linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn From: Guenter Roeck Message-ID: <015a7f32-e0dd-223f-a15b-dd0972e8391c@roeck-us.net> Date: Sat, 4 Feb 2017 16:04:26 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1486172055-13162-1-git-send-email-baoyou.xie@linaro.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/03/2017 05:34 PM, Baoyou Xie wrote: > This patch adds dt-binding documentation for zx2967 family > watchdog controller. > > Signed-off-by: Baoyou Xie > Acked-by: Rob Herring Reviewed-by: Guenter Roeck > --- > .../bindings/watchdog/zte,zx2967-wdt.txt | 32 ++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > new file mode 100644 > index 0000000..06ce677 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > @@ -0,0 +1,32 @@ > +ZTE zx2967 Watchdog timer > + > +Required properties: > + > +- compatible : should be one of the following. > + * zte,zx296718-wdt > +- reg : Specifies base physical address and size of the registers. > +- clocks : Pairs of phandle and specifier referencing the controller's clocks. > +- resets : Reference to the reset controller controlling the watchdog > + controller. > + > +Optional properties: > + > +- timeout-sec : Contains the watchdog timeout in seconds. > +- zte,wdt-reset-sysctrl : Directs how to reset system by the watchdog. > + if we don't want to restart system when watchdog been triggered, > + it's not required, vice versa. > + It should include following fields. > + * phandle of aon-sysctrl. > + * offset of register that be written, should be 0xb0. > + * configure value that be written to aon-sysctrl. > + * bit mask, corresponding bits will be affected. > + > +Example: > + > +wdt: watchdog@1465000 { > + compatible = "zte,zx296718-wdt"; > + reg = <0x1465000 0x1000>; > + clocks = <&topcrm WDT_WCLK>; > + resets = <&toprst 35>; > + zte,wdt-reset-sysctrl = <&aon_sysctrl 0xb0 1 0x115>; > +}; > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: [PATCH v9 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Sat, 4 Feb 2017 16:04:26 -0800 Message-ID: <015a7f32-e0dd-223f-a15b-dd0972e8391c@roeck-us.net> References: <1486172055-13162-1-git-send-email-baoyou.xie@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1486172055-13162-1-git-send-email-baoyou.xie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Baoyou Xie , jun.nie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, xie.baoyou-Th6q7B73Y6EnDS1+zs4M5A@public.gmane.org, chen.chaokai-Th6q7B73Y6EnDS1+zs4M5A@public.gmane.org, wang.qiang01-Th6q7B73Y6EnDS1+zs4M5A@public.gmane.org List-Id: devicetree@vger.kernel.org On 02/03/2017 05:34 PM, Baoyou Xie wrote: > This patch adds dt-binding documentation for zx2967 family > watchdog controller. > > Signed-off-by: Baoyou Xie > Acked-by: Rob Herring Reviewed-by: Guenter Roeck > --- > .../bindings/watchdog/zte,zx2967-wdt.txt | 32 ++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > new file mode 100644 > index 0000000..06ce677 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > @@ -0,0 +1,32 @@ > +ZTE zx2967 Watchdog timer > + > +Required properties: > + > +- compatible : should be one of the following. > + * zte,zx296718-wdt > +- reg : Specifies base physical address and size of the registers. > +- clocks : Pairs of phandle and specifier referencing the controller's clocks. > +- resets : Reference to the reset controller controlling the watchdog > + controller. > + > +Optional properties: > + > +- timeout-sec : Contains the watchdog timeout in seconds. > +- zte,wdt-reset-sysctrl : Directs how to reset system by the watchdog. > + if we don't want to restart system when watchdog been triggered, > + it's not required, vice versa. > + It should include following fields. > + * phandle of aon-sysctrl. > + * offset of register that be written, should be 0xb0. > + * configure value that be written to aon-sysctrl. > + * bit mask, corresponding bits will be affected. > + > +Example: > + > +wdt: watchdog@1465000 { > + compatible = "zte,zx296718-wdt"; > + reg = <0x1465000 0x1000>; > + clocks = <&topcrm WDT_WCLK>; > + resets = <&toprst 35>; > + zte,wdt-reset-sysctrl = <&aon_sysctrl 0xb0 1 0x115>; > +}; > -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@roeck-us.net (Guenter Roeck) Date: Sat, 4 Feb 2017 16:04:26 -0800 Subject: [PATCH v9 1/3] dt: bindings: add documentation for zx2967 family watchdog controller In-Reply-To: <1486172055-13162-1-git-send-email-baoyou.xie@linaro.org> References: <1486172055-13162-1-git-send-email-baoyou.xie@linaro.org> Message-ID: <015a7f32-e0dd-223f-a15b-dd0972e8391c@roeck-us.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 02/03/2017 05:34 PM, Baoyou Xie wrote: > This patch adds dt-binding documentation for zx2967 family > watchdog controller. > > Signed-off-by: Baoyou Xie > Acked-by: Rob Herring Reviewed-by: Guenter Roeck > --- > .../bindings/watchdog/zte,zx2967-wdt.txt | 32 ++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > new file mode 100644 > index 0000000..06ce677 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt > @@ -0,0 +1,32 @@ > +ZTE zx2967 Watchdog timer > + > +Required properties: > + > +- compatible : should be one of the following. > + * zte,zx296718-wdt > +- reg : Specifies base physical address and size of the registers. > +- clocks : Pairs of phandle and specifier referencing the controller's clocks. > +- resets : Reference to the reset controller controlling the watchdog > + controller. > + > +Optional properties: > + > +- timeout-sec : Contains the watchdog timeout in seconds. > +- zte,wdt-reset-sysctrl : Directs how to reset system by the watchdog. > + if we don't want to restart system when watchdog been triggered, > + it's not required, vice versa. > + It should include following fields. > + * phandle of aon-sysctrl. > + * offset of register that be written, should be 0xb0. > + * configure value that be written to aon-sysctrl. > + * bit mask, corresponding bits will be affected. > + > +Example: > + > +wdt: watchdog at 1465000 { > + compatible = "zte,zx296718-wdt"; > + reg = <0x1465000 0x1000>; > + clocks = <&topcrm WDT_WCLK>; > + resets = <&toprst 35>; > + zte,wdt-reset-sysctrl = <&aon_sysctrl 0xb0 1 0x115>; > +}; >