From patchwork Fri Feb 3 03:22:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9553433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C386604A7 for ; Fri, 3 Feb 2017 03:26:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F1C2284EE for ; Fri, 3 Feb 2017 03:26:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13891284F1; Fri, 3 Feb 2017 03:26:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D08E4284EE for ; Fri, 3 Feb 2017 03:26:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cZUW2-0001Sg-2z; Fri, 03 Feb 2017 03:26:26 +0000 Received: from mail-pg0-f43.google.com ([74.125.83.43]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cZUVx-0001S5-84 for linux-arm-kernel@lists.infradead.org; Fri, 03 Feb 2017 03:26:24 +0000 Received: by mail-pg0-f43.google.com with SMTP id 14so2558121pgg.1 for ; Thu, 02 Feb 2017 19:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=0e1p1mEZ5zYfO7vbfIUnuMg8bSQScjXXxX4vmrQCQ5k=; b=Ym0lC2YGgaLBUBvaL/hcP2PJ4651tmsEFHRAK1W3FWcYECxmkLBayxKWEUupy2YuvH gIjR3j1ZZP2AwA6A5tVz6kx0ZsOMNUbuihiqb2cin5s+HQKb2RNLYaSLrdC1HfbEh5qz nU3iGZk0T1eBFCgaDn3cBvZP7c7nrp/Qdz/qM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0e1p1mEZ5zYfO7vbfIUnuMg8bSQScjXXxX4vmrQCQ5k=; b=q2E1W3dyabC4gscLfNCxIxBDRG3aL1cn41bgc0jyTusxKcUnDhmMAgep1kLwKoT4ms GQEvhn009GWqz41vHGxMUVGGdN3FY8a6kWLil+U7UX/0xcJuzkyaI+efmqSkgJVyoxjJ luhi/4y3qKjiqi3NQlDOUXIJzXI7ZlrD67nnkc4WTAk74HueUn/Z6HcWyTuPs3la00t8 cNnxJAh909qUn+HCuzPoeFbZk4lbQF1q+i0nx4CfKWQ94Ro5UJNByf/8k9i6IqOfVFAt Q5COjJdAR4AB9nL/nHq3uDKnEOf26nPds4a02uv1E4KHxXWxFloiotKVdt9fB4DwfXyM gBJw== X-Gm-Message-State: AIkVDXI0csTelH5Yb3IuUsGYe6G2BzfHUhahpYlD0zlXyy8gW4HN5+/Y5PYyyx64hMvGYToI X-Received: by 10.98.41.5 with SMTP id p5mr15291417pfp.183.1486092298500; Thu, 02 Feb 2017 19:24:58 -0800 (PST) Received: from localhost.localdomain ([104.237.91.191]) by smtp.gmail.com with ESMTPSA id 18sm62529985pgf.28.2017.02.02.19.24.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 19:24:57 -0800 (PST) From: Baoyou Xie To: jun.nie@linaro.org, wim@iguana.be, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, mathieu.poirier@linaro.org Subject: [PATCH v8 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Fri, 3 Feb 2017 11:22:18 +0800 Message-Id: <1486092140-1017-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170202_192621_318161_D44F6E3D X-CRM114-Status: GOOD ( 12.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, xie.baoyou@zte.com.cn, linux-kernel@vger.kernel.org, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn, baoyou.xie@linaro.org, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds dt-binding documentation for zx2967 family watchdog controller. Signed-off-by: Baoyou Xie Acked-by: Rob Herring --- .../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>; +};