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: 93092 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp8117qgi; Thu, 2 Feb 2017 01:09:14 -0800 (PST) X-Received: by 10.99.169.17 with SMTP id u17mr9358256pge.191.1486026554435; Thu, 02 Feb 2017 01:09:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c186si16995186pga.7.2017.02.02.01.09.14 for ; Thu, 02 Feb 2017 01:09:14 -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 S1751148AbdBBJJN (ORCPT ); Thu, 2 Feb 2017 04:09:13 -0500 Received: from mail-pg0-f53.google.com ([74.125.83.53]:33269 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbdBBJJL (ORCPT ); Thu, 2 Feb 2017 04:09:11 -0500 Received: by mail-pg0-f53.google.com with SMTP id 204so4280605pge.0 for ; Thu, 02 Feb 2017 01:09: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=AcOdxQ1RexieuU6J3W31FL0plKqK4EHnjBA233b6BuXruxnQqCR2KPMdT3DEMkDCPb ikPVDLzbxGJyXNc7SPu82jSwFJg2SaO7mlzOlEUG8l/YEy3NMmZ2lvLuJ2cxnkSgPUCi yZm3n3AElBTx7ZhKEtzxWhP7A3OzV/JCY2CDlRFrecjOboHIXkLSfRWemQA5E038TR/m hqkpM7grn6mznA7+az2x1NUBKwEA4wbihA5afTwMFLQN7Pe/zZcWtCa9xbeK1NPX8k9R 83wDTMz4jKbFTUrO/f1WDChlDOKZuQmGhw5WICV0Re9nHocY3fnTBFUHWhUq+cPSgOUP e4CQ== X-Gm-Message-State: AIkVDXLYuvn/HVwcw53pTOioraqqjHp9vbkr904fmLzLE7udMZwM8VG49rYA0DhyxUW416S2 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 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 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 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 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 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..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>; +};