From patchwork Sun Jan 22 08:16:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 92139 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp742615qgi; Sun, 22 Jan 2017 00:17:18 -0800 (PST) X-Received: by 10.84.129.132 with SMTP id b4mr14564618plb.54.1485073038863; Sun, 22 Jan 2017 00:17:18 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si12032318pgc.32.2017.01.22.00.17.18; Sun, 22 Jan 2017 00:17:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750944AbdAVIRL (ORCPT + 7 others); Sun, 22 Jan 2017 03:17:11 -0500 Received: from mail-pg0-f43.google.com ([74.125.83.43]:33322 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbdAVIRH (ORCPT ); Sun, 22 Jan 2017 03:17:07 -0500 Received: by mail-pg0-f43.google.com with SMTP id 204so35973249pge.0 for ; Sun, 22 Jan 2017 00:17:06 -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=Z8j2XxM2xXWiXSGEJAaKr557N5Fx80GLGZGsV52Mx3ZAznh8rPMl+QY58UPtW2X4Dk gDbZ+znFipdefR2zmlDlulfzp47FiH0w4cOYzjm3PpHUdmmoGl1zdu5HwoVLtJTNiDL2 k8ZgoTO183HcyzZVilLoQU3rQrz9t4Q8Fm3b0= 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=jyiiro5md+LCCKNA9PbStN9zDgXyYpX6hgVS3kvcQxOZr3or0un4GCP8RZsnBWTdvs Up+chjSgr3amEmnNhRG/VZRXR9BLOhQgLqoojO8/d/nK7jLILjq0bnOzLGCukH89PkLU fSt+breNZlELuFSNwyNz4bkiakjAyJ6WxGCBotqf3haZeMvLXOldDMLNi5oUKbkQ9bgc +HSQQqloJJM1oWVGxkl7cizXmd7mQqSxPQNeLH968dARNWRCT2uWKkg6tBGJ0NGm7D9X kBSAKsoXOVSOVtgLfyBsbUp14J9fM48jTEXc5jALA3AGe2SnsG26BtWxsXIAFDGsBZxw PB3g== X-Gm-Message-State: AIkVDXJWtgU/cjPMaOJ4IhdLJthAy2Ms496bC9zTqeOdFXe1yw9sqyrynxI5Listp92HVLVp X-Received: by 10.98.202.139 with SMTP id y11mr25471995pfk.98.1485073026246; Sun, 22 Jan 2017 00:17:06 -0800 (PST) Received: from localhost.localdomain ([104.237.91.139]) by smtp.gmail.com with ESMTPSA id r8sm28202220pfa.44.2017.01.22.00.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jan 2017 00:17:05 -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 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 Subject: [PATCH v4 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Sun, 22 Jan 2017 16:16:46 +0800 Message-Id: <1485073008-26699-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; +};