Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1572869

[PATCH v8 1/3] dt: bindings: add documentation for zx2967 family watchdog controller

Path csiph.com!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Baoyou Xie <baoyou.xie@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v8 1/3] dt: bindings: add documentation for zx2967 family watchdog controller
Date Fri, 03 Feb 2017 04:30:02 +0100
Message-ID <t6CJs-4xr-3@gated-at.bofh.it> (permalink)
X-Original-To jun.nie@linaro.org, wim@iguana.be, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, mathieu.poirier@linaro.org
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=dFtE1bChV3Jcx3vlp8PjB1o9xO8go7/SzKjmSofXDC/3YylbAYdCU7ns5/UeGI5/ux M3dGjkyF5iZs2kADkryb+pUdUf/ub52zIuqo0KAEAieEEZDTP6aKMQEAVHXiHCudzXUM rT/0ezlRVwvX5x10446RUY4Cu+v9B+oumL5+v+kmo4jVXS0maAHYXcJfHJI0uDpuNn3G 5ulBSgmzfAOwnMCE8hO4zCJDhcilttbHyLHyXDbxcE47V7yH/UAkZd1Vrx6fxALEUUrB 80Ie6H3OIEmyDFzKJOydGXmQjbW1tdf4+HomOMoWxk7HCAiQb9ZUvygwi1cYarczLFuV Skpw==
X-Gm-Message-State AIkVDXLbEDevt8e5qJOAUpkH4vuETH2evaoLEWNxj75CLdSbiUf2fdFWGigPokFpS2ay5Bmc
X-Received by 10.98.41.5 with SMTP id p5mr15291417pfp.183.1486092298500; Thu, 02 Feb 2017 19:24:58 -0800 (PST)
X-Mailer git-send-email 2.7.4
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 50
Organization linux.* mail to news gateway
X-Original-Cc linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn
X-Original-Date Fri, 3 Feb 2017 11:22:18 +0800
X-Original-Message-ID <1486092140-1017-1-git-send-email-baoyou.xie@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1572869

Show key headers only | View raw


This patch adds dt-binding documentation for zx2967 family
watchdog controller.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
---
 .../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>;
+};
-- 
2.7.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v8 1/3] dt: bindings: add documentation for zx2967 family  watchdog controller Baoyou Xie <baoyou.xie@linaro.org> - 2017-02-03 04:30 +0100

csiph-web