From patchwork Wed Jan 25 02:44:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9536317 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 7FF5A601D7 for ; Wed, 25 Jan 2017 02:47:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FBBB26E96 for ; Wed, 25 Jan 2017 02:47:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F88F27D85; Wed, 25 Jan 2017 02:47:08 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 E70D426E96 for ; Wed, 25 Jan 2017 02:47:07 +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 1cWDbz-0006PY-Cp; Wed, 25 Jan 2017 02:47:03 +0000 Received: from mail-pf0-f169.google.com ([209.85.192.169]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cWDba-0006OJ-5E for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2017 02:46:40 +0000 Received: by mail-pf0-f169.google.com with SMTP id f144so54477700pfa.2 for ; Tue, 24 Jan 2017 18:46:17 -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=F3mVrK1Y/07c4rzvzbPFwmmyoPtqFXFfVZgWnBt/oUCg+24r+1lF19sk6WX8S10Ft4 TU6u7ZPKocio4YhyUr6dDUciiD0JSAGEhcv/jdUi8Gzcapnpc7Zrk/2jh08zD9riu4Qd CGA02sTfYnQ+R1xRudMlAW5mq+sE+OVbj1K2g= 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=RG0PT8myb5+pY/z8dD1dqu/OlU5AwIt2/N8mNImcTm2caY0wqKYE9W+cQ3s92tvDQh XuM8rjJZjl9mK8ibNRnS3+K7HrxqD8AAhL84htDRJQsHp6Q+Km/0f2Yd44nGWGTnbv/C RxzUSHTJTTMrlLgftbgVKSlLo1lAWrhjpyjN7glAYdyW4mbKzTnCx33Nt6yvIJtDdLNa 7RHOmEumgaTF7FhYvmmxZWoiLVZP9U7Dm/2zSA+4Lcnn9wY1p3Hgkpa7A63+qxQX0U1z bZCUO9/4/cf6yiLs9dUqdBJ9WObyaAUmPfzLGVUuDqSCSaQHT+8etlw1o+pVUxSp3jKo cpkw== X-Gm-Message-State: AIkVDXKWDIRJ7q17Rzs6BeNFsbeJrrcNcg33oLYhb9T59V1QZu0sHNj41v7hOQiH0T0BdZ5R X-Received: by 10.98.41.5 with SMTP id p5mr40742353pfp.183.1485312316984; Tue, 24 Jan 2017 18:45:16 -0800 (PST) Received: from localhost.localdomain ([104.237.91.240]) by smtp.gmail.com with ESMTPSA id e127sm47475124pfh.89.2017.01.24.18.45.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jan 2017 18:45:16 -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 v6 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Wed, 25 Jan 2017 10:44:47 +0800 Message-Id: <1485312289-18354-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-20170124_184639_013285_690142D1 X-CRM114-Status: GOOD ( 13.06 ) 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>; +};