From patchwork Thu Feb 2 09:03: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: 9551397 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 1746A60236 for ; Thu, 2 Feb 2017 09:10:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 039B428411 for ; Thu, 2 Feb 2017 09:10:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA8F428425; Thu, 2 Feb 2017 09:10:37 +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=-0.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, 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 8390E28411 for ; Thu, 2 Feb 2017 09:10:37 +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 1cZDPX-0002LV-CG; Thu, 02 Feb 2017 09:10:35 +0000 Received: from mail-pg0-f41.google.com ([74.125.83.41]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cZDPU-0002JV-4I for linux-arm-kernel@lists.infradead.org; Thu, 02 Feb 2017 09:10:33 +0000 Received: by mail-pg0-f41.google.com with SMTP id 3so4236968pgj.3 for ; Thu, 02 Feb 2017 01:10:11 -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=bPwsVhRDbut6NA8SVkGLYogFUOYhbi/IdpTpTY525eNDV6jwKKT+IwNQ/iXe8ETQsc NZISyW4JSe2OpdwshyXBfCebEcJB+sBstLFi+FqJIE81o5EoQ1f2Mz0vfGVuCWzh8FOY mJmunNG35MCYqknUZfbf0IkIKnr4DdkQ06cUQ= 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=BUDMY3lIkVIZIPCjiD6vudvzFHAAuzfQBzSr/HJqi4e6MngBeTzT2JABXSkg83/tyP IW4T0erHAjRs16kpoQVnpoLN9xWd1Ch0tWSaz4zt7ccwniOY3bSYqIr2VqYbJEn2PGsN LuE019P/bWhjceM7c0SwS+LJ8r8gbaUKL2Mn0QzVk3myGAv5+/4FUJ/00BUd2EnSbbVL i0zevURNj+jWUEL9c6RftPJ5jdeh5zz97/xiC/86DnfEs4JTlZPeJemvUq/qSZbxAaBO A4JVbTqW0CYiiFEki1DNJIbezUY0q0bxFfKiH6p5d0/MzUa3YL3qkSkhVMFkp5OVAYTP 66Qw== X-Gm-Message-State: AIkVDXL+9Fs9Nw9y9+vgcgUZyd/1lEX3qLoRVRvATdiwAmC2XNxJwrYm6E7vfHFqdNzwFKRC X-Received: by 10.99.62.73 with SMTP id l70mr9373884pga.97.1486026550825; Thu, 02 Feb 2017 01:09:10 -0800 (PST) Received: from localhost.localdomain ([104.237.91.171]) by smtp.gmail.com with ESMTPSA id x81sm56192125pff.69.2017.02.02.01.06.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 01:09:10 -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 v7 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Thu, 2 Feb 2017 17:03:46 +0800 Message-Id: <1486026228-21878-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-20170202_011032_203787_16C9CDB0 X-CRM114-Status: GOOD ( 12.58 ) 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>; +};