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: 92078 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp5652qgi; Fri, 20 Jan 2017 05:04:34 -0800 (PST) X-Received: by 10.99.131.65 with SMTP id h62mr16664055pge.41.1484917474212; Fri, 20 Jan 2017 05:04:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si6785969pfa.270.2017.01.20.05.04.34 for ; Fri, 20 Jan 2017 05:04:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-watchdog-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 linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-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 S1752028AbdATNEd (ORCPT ); Fri, 20 Jan 2017 08:04:33 -0500 Received: from mail-pg0-f49.google.com ([74.125.83.49]:33215 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752004AbdATNEc (ORCPT ); Fri, 20 Jan 2017 08:04:32 -0500 Received: by mail-pg0-f49.google.com with SMTP id 204so23766877pge.0 for ; Fri, 20 Jan 2017 05:04: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=jZvwofJ8/rlzlk1rK84chipeXFmTD4s3jzUMQvlQwwy2Lx7JfkJO1nLSf2e9ryBbp/ eyP0x/nwCBZjCtA0Anu2xPXWOZ3v9f0jl+ssC1PksObDqn3gkZVYRrR9VnCnZYDvdLW5 AcnEih4qbcLpZHyZIdnHfxDaCBEV69igfMoOKoG2M2nKalDL+QB6SRE7axMiIJdXGmQh YGxmYn7PYAB3CNTTDcXRSiqrbzdAP1Ymj+6waN3tEDIL57Ewp6z8ZFX0c/GFbKbr1I27 j44sQt0bAzp3K1GMxXbK/2mr+5BtcgIhkftHrmBf17rLDgZi+WtD+sbiwgZVMYSA06pk ZC2A== X-Gm-Message-State: AIkVDXKPPRsKrGQdpiqWWuyVYMj7qxv7GHvChU/uhRoHfJ8MC3OQcEVcLpQ3kxjqJzyVh3nZ 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 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 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 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@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 linux-watchdog" 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>; +};