From patchwork Sat Feb 4 01:34:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 93331 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp848950qgi; Fri, 3 Feb 2017 17:34:40 -0800 (PST) X-Received: by 10.98.217.88 with SMTP id s85mr21507023pfg.167.1486172080270; Fri, 03 Feb 2017 17:34:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si27031542plk.180.2017.02.03.17.34.39; Fri, 03 Feb 2017 17:34:40 -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 S1753341AbdBDBei (ORCPT + 7 others); Fri, 3 Feb 2017 20:34:38 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33225 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753324AbdBDBeh (ORCPT ); Fri, 3 Feb 2017 20:34:37 -0500 Received: by mail-pf0-f177.google.com with SMTP id y143so9647950pfb.0 for ; Fri, 03 Feb 2017 17:34:37 -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=Wb5JEIx/KAcgPJHNCwFxduW7GfxkdzSkaZ/MxVEqlzbVgoz3MSocOGaTJDuBOzHMm2 ORU7MEae6iT+eurObrYll4uCNT1u3yK1ny+K+FSMEvs0owXaftnWR/aa/97Vvzcp3k1B 2PdFcaHAb0kcK6iWMsZFqG6oM921ihhQdHwj4= 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=T31+JGPQO+Q1K0+vhKkIdAh6V3EDklJRnvD6kL15OKCUlVTSUSJa8RUv8P1THiG1LZ 7KBoGGPhrQ2ja1qbEeKybC84WvDIlJhjrbS+TjbeQC259ds3mCn6CuE5cX1Re/y4qMfU 214PhYGHvg5dm/5h12a3t+FSJ6J9PbVybB2A4E7Oyhmko01TF2Qcwb3p+TUwOrAYO81P sLfKKYg/3ENom75R6cHo8st5sMUEJX8qNa7vpeHSCg9NJcATKBlvQJjXNJnQ+goB3WWW 5ZtiatvGR4TlNSMJvFDPd7PrDudotvPHFhdkO42FOkc4hHE1Ie3PUPLfTc5VZafA87FH k0ZQ== X-Gm-Message-State: AIkVDXLl6O1ubU02xl5HqSFUsDMwe6Kk1BOSdezI18dQI8bbfnzdrYoddFtEv+Nz2wNvtKzk X-Received: by 10.99.114.91 with SMTP id c27mr21879197pgn.163.1486172077279; Fri, 03 Feb 2017 17:34:37 -0800 (PST) Received: from localhost.localdomain ([104.237.91.145]) by smtp.gmail.com with ESMTPSA id u24sm70045499pfi.25.2017.02.03.17.34.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Feb 2017 17:34:36 -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 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 v9 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Sat, 4 Feb 2017 09:34:13 +0800 Message-Id: <1486172055-13162-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 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 -- 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 Reviewed-by: Guenter Roeck 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>; +};