From patchwork Fri Feb 3 03:22:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 93145 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp416839qgi; Thu, 2 Feb 2017 19:25:01 -0800 (PST) X-Received: by 10.84.150.129 with SMTP id h1mr17872944plh.9.1486092301152; Thu, 02 Feb 2017 19:25:01 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si24235033pln.49.2017.02.02.19.25.01 for ; Thu, 02 Feb 2017 19:25:01 -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 S1752409AbdBCDZA (ORCPT ); Thu, 2 Feb 2017 22:25:00 -0500 Received: from mail-pg0-f43.google.com ([74.125.83.43]:35602 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752267AbdBCDY7 (ORCPT ); Thu, 2 Feb 2017 22:24:59 -0500 Received: by mail-pg0-f43.google.com with SMTP id 194so2556496pgd.2 for ; Thu, 02 Feb 2017 19:24:59 -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=Ym0lC2YGgaLBUBvaL/hcP2PJ4651tmsEFHRAK1W3FWcYECxmkLBayxKWEUupy2YuvH gIjR3j1ZZP2AwA6A5tVz6kx0ZsOMNUbuihiqb2cin5s+HQKb2RNLYaSLrdC1HfbEh5qz nU3iGZk0T1eBFCgaDn3cBvZP7c7nrp/Qdz/qM= 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=XJh5FVHSOA7qt4lOfEqp/Qr0UnEtuB12AbgRqBl7mc8rwnViip7YSNqy+LMcNMK4+t I+vKjTFDjXvZi8U6DqgamW1UJ1A8HR5l9QCxsTeciGBcGruK9i15gOITKZxU9HPeaZl/ XCxX/w1MC6HNlltqqE71B7WxufgvTNb5MpDnCbPF9cFga9G3fNAAF4jwpVcQMQm2vJu3 vbqRhMZJ7C5ccAyEUf1Z9Xw8+kdCVXCVmWMa9xVnE99SsokAA2qO2jX/ZW9ZpmwcP8Q7 tT4xvIEqy5N0CMn6qSGC7wedD60nwRhFA5h7PpAk4T0dJglNOwXkPJ7mR9sK0eufxboS xSOA== X-Gm-Message-State: AIkVDXIMttY5pTfmDWyajdDqtieAIFDUIZbH7UatRLWwSblAyc395qsvzd4ZMTrLCx5HiBYu X-Received: by 10.98.41.5 with SMTP id p5mr15291417pfp.183.1486092298500; Thu, 02 Feb 2017 19:24:58 -0800 (PST) Received: from localhost.localdomain ([104.237.91.191]) by smtp.gmail.com with ESMTPSA id 18sm62529985pgf.28.2017.02.02.19.24.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 19:24:57 -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 v8 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Fri, 3 Feb 2017 11:22:18 +0800 Message-Id: <1486092140-1017-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>; +}; From patchwork Fri Feb 3 03:22:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 93146 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp416863qgi; Thu, 2 Feb 2017 19:25:09 -0800 (PST) X-Received: by 10.98.10.69 with SMTP id s66mr15207144pfi.146.1486092308878; Thu, 02 Feb 2017 19:25:08 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k88si24186165pfk.99.2017.02.02.19.25.08 for ; Thu, 02 Feb 2017 19:25:08 -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 S1752469AbdBCDZH (ORCPT ); Thu, 2 Feb 2017 22:25:07 -0500 Received: from mail-pg0-f52.google.com ([74.125.83.52]:36503 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbdBCDZF (ORCPT ); Thu, 2 Feb 2017 22:25:05 -0500 Received: by mail-pg0-f52.google.com with SMTP id v184so2538723pgv.3 for ; Thu, 02 Feb 2017 19:25:05 -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:in-reply-to:references; bh=Bp3j5DodJQ5kA+onWaBYsyhHHbKAkehXcC9DybKAhV4=; b=BR+hOnZQlrDj4pximGZRGkCpGFvas1fOnibA1KIMimUJECS/oGrARo8dCJl+vagXb5 CldkELytsQN5h0zhy/hwb8Szrlo2IRRu8j2NSTgahXT+jeR1c8tR/4bVkpS5LoIHN2Fk kA0pJJmLo1a3IlQv4Fruhs0cTqTB9KAEVHH+A= 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:in-reply-to :references; bh=Bp3j5DodJQ5kA+onWaBYsyhHHbKAkehXcC9DybKAhV4=; b=LGsE7tUyjtoHAEOtGJznddJDCbX61ZKQ0orWmNg19/vE0eObGqbPiEhJMc2eL+d2Io ax/4ziGUZd7s9ReVTTEVkNOWHlE4wTMzD3w01Tf/h2V56cqNl9QwXbcyJlL678QFYAo8 NGT2KmzqhpwZg+XlTgD8hnZbJ9oXM6l7QauexzwGikeveNu0iDY4oPWExw4RKWTjCdhC HH3pJj3PhOL/NcbCQQm648j6gZLvmof55VjnzNUWrO9CKPqZ/4VsP4iPtvzlC08U1FEN OjUUPSn4DBdOqfKsMt/d8Nvr4TEmwSkuaBn0NgfjEzEkXg9FjvzkRyq/vY1IIUF3a4t+ Q9Kg== X-Gm-Message-State: AIkVDXKVtIFiRqK6uO4C/Y/xBcMTZfphc22HbvRawOeByQ6QNlGVIfYE+Pg3zty41s5xNuru X-Received: by 10.99.64.69 with SMTP id n66mr15077499pga.1.1486092305275; Thu, 02 Feb 2017 19:25:05 -0800 (PST) Received: from localhost.localdomain ([104.237.91.191]) by smtp.gmail.com with ESMTPSA id 18sm62529985pgf.28.2017.02.02.19.24.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 19:25:04 -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 v8 2/3] MAINTAINERS: add zx2967 watchdog controller driver to ARM ZTE architecture Date: Fri, 3 Feb 2017 11:22:19 +0800 Message-Id: <1486092140-1017-2-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486092140-1017-1-git-send-email-baoyou.xie@linaro.org> References: <1486092140-1017-1-git-send-email-baoyou.xie@linaro.org> Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Add the zx2967 watchdog controller driver as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) -- 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/MAINTAINERS b/MAINTAINERS index edfdea3..275c434 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1990,11 +1990,13 @@ F: drivers/clk/zte/ F: drivers/reset/reset-zx2967.c F: drivers/soc/zte/ F: drivers/thermal/zx* +F: drivers/watchdog/zx2967_wdt.c F: Documentation/devicetree/bindings/arm/zte.txt F: Documentation/devicetree/bindings/clock/zx296702-clk.txt F: Documentation/devicetree/bindings/reset/zte,zx2967-reset.txt F: Documentation/devicetree/bindings/soc/zte/ F: Documentation/devicetree/bindings/thermal/zx* +F: Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt F: include/dt-bindings/soc/zx*.h ARM/ZYNQ ARCHITECTURE