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>; +}; From patchwork Thu Feb 2 09:03:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 93093 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp8708qgi; Thu, 2 Feb 2017 01:10:55 -0800 (PST) X-Received: by 10.84.217.216 with SMTP id d24mr10971216plj.101.1486026655195; Thu, 02 Feb 2017 01:10:55 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c15si21728870plk.123.2017.02.02.01.10.55 for ; Thu, 02 Feb 2017 01:10:55 -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 S1751093AbdBBJKy (ORCPT ); Thu, 2 Feb 2017 04:10:54 -0500 Received: from mail-pg0-f46.google.com ([74.125.83.46]:35940 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbdBBJKx (ORCPT ); Thu, 2 Feb 2017 04:10:53 -0500 Received: by mail-pg0-f46.google.com with SMTP id 3so4249361pgj.3 for ; Thu, 02 Feb 2017 01:10:53 -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=Rdr0TtW2j/V847eFScprjDECea7joVlBf1HeGYpz7WYhn5PUxcefE0UrVMagAWu+9x BaxRTzN8uvsvf60O+mhi6jhxg4eae1/yx7E19+FHNFK0myhe/pRNi2qd4snCsTjHUpCe Ts0USCEjAVQ5BlFuBBxACIEFLyIRNRFADSBlo= 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=L1ryPfHzqTsvJHwuIgjTKdtxXUUTs7hsVlbqSM2sow+3Iie11gaqZhvngffAYS/eg7 jWQa4WG9sukgThDk9wuztHIeEuaKScEhyMNfFq3rU5UfBjfiH69MeX4dHw18MZ5TTKjI lqn1drP+IT/I5uZNOHiDolrBJYN2xvsksLuc6NH7jWc8y44d3JZF4+He0/xdlrhm660e 9bCkY55hf0ZCmHwFtdU4aduMsm66Dq9M/2GOjN0k7AvJUsYIS9vLGHZb/pEATv9ywSLH IzWlx9sMrtOMoDu6XBMxtxgCAiR7ycwVkQXh7lwt8NmmIvmjYVSq4oEScLd6oZB8BEYi 6E6w== X-Gm-Message-State: AIkVDXJkRHu9XZkFlmzrApWgizM81KCRQ3KBLEwwhQKYpq8GxMH6kmnIUf+BiSU+7a+pwpbL X-Received: by 10.99.202.73 with SMTP id o9mr9500524pgi.173.1486026652576; Thu, 02 Feb 2017 01:10:52 -0800 (PST) Received: from localhost.localdomain ([104.237.91.171]) by smtp.gmail.com with ESMTPSA id x81sm56192125pff.69.2017.02.02.01.09.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 01:10:51 -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 2/3] MAINTAINERS: add zx2967 watchdog controller driver to ARM ZTE architecture Date: Thu, 2 Feb 2017 17:03:47 +0800 Message-Id: <1486026228-21878-2-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486026228-21878-1-git-send-email-baoyou.xie@linaro.org> References: <1486026228-21878-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