From patchwork Fri Jan 20 13:03:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9528237 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 13ECE6020B for ; Fri, 20 Jan 2017 13:05:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02B8F26E82 for ; Fri, 20 Jan 2017 13:05:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAB0928527; Fri, 20 Jan 2017 13:05:58 +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=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 54CF228501 for ; Fri, 20 Jan 2017 13:05:57 +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 1cUYtA-0006XM-Qp; Fri, 20 Jan 2017 13:05:56 +0000 Received: from mail-pg0-f42.google.com ([74.125.83.42]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUYt7-0006PM-Af for linux-arm-kernel@lists.infradead.org; Fri, 20 Jan 2017 13:05:54 +0000 Received: by mail-pg0-f42.google.com with SMTP id t6so23700634pgt.3 for ; Fri, 20 Jan 2017 05:05:32 -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=eHb9koh7uBC4S5wCHbu5CzfYU9U/2ARcYTXKiFtBvzk=; b=ZtEb3enHDQ2qqcji0E7tLWVRk4iTViUJ/E9l6FcipdHzZg4iv7lP8+Z5NfoXx2xr52 iFmXqjEoW9ONzr6y+Lpk62BcwU+uT83aURq70MCAU5mRbBKkAQG7+7iS4z49oezddR8P siZGUllOQGE+AiknC3iIzjE8YaqnOLZ1afNig= 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=eHb9koh7uBC4S5wCHbu5CzfYU9U/2ARcYTXKiFtBvzk=; b=TjWDbAcR6n1kqL07ydsclyAF8GBETftQw7OOy9073DONtG3NjtNe2v9+jrom5AGbwn 093F/dtAzzm3Z4KV6GFpv4IYctPQlqgab1z/lGPP3gN3e4eld4+8tUlvNx/ZVBUGF+cd JnpNw9bLfa2NFs2LvB0IPFPvP7erQcOq7nFpuxWIKiwE8HC0ZeEGJbvplx8NLAoqTmSS K7Antxbp7MhsKqOyegISJtdJJ9q8kSyQ1ep7L/VjF6eAWBnCZpsgfrbTLNeiAg5BnKy2 sz9nkPZR9cBobvsGvlojEAN3qiewT86yMZd4864a7B00BJLfRVOf4r2Q3m36/5UyXmN8 8fNw== X-Gm-Message-State: AIkVDXK0Jp7sqoQ0ROBen+uSP9HclN6dz928ixVGB40msqW2eGKH9WMsGkABevlhP1FGJj4n X-Received: by 10.99.137.199 with SMTP id v190mr14692926pgd.120.1484917471965; Fri, 20 Jan 2017 05:04:31 -0800 (PST) Received: from localhost.localdomain ([104.237.91.228]) by smtp.gmail.com with ESMTPSA id b10sm16910377pga.21.2017.01.20.05.04.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Jan 2017 05:04:31 -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 Subject: [PATCH v3 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Fri, 20 Jan 2017 21:03:16 +0800 Message-Id: <1484917398-15604-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-20170120_050553_404242_2BBD43B2 X-CRM114-Status: GOOD ( 12.24 ) 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 --- .../bindings/watchdog/zte,zx2967-wdt.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 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..772403a --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt @@ -0,0 +1,31 @@ +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: + +- 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>; +};