From patchwork Mon Feb 23 22:07:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 5868261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9C006BF440 for ; Mon, 23 Feb 2015 22:10:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B37E620634 for ; Mon, 23 Feb 2015 22:09:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4FC9200FE for ; Mon, 23 Feb 2015 22:09:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YQ1AS-0005l4-Tm; Mon, 23 Feb 2015 22:07:56 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YQ1AP-0005g6-OV for linux-arm-kernel@lists.infradead.org; Mon, 23 Feb 2015 22:07:54 +0000 Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 5B50D1409FA; Mon, 23 Feb 2015 22:07:32 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 48FD5140C24; Mon, 23 Feb 2015 22:07:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from [10.134.64.202] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sboyd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0C7FD1409FA; Mon, 23 Feb 2015 22:07:30 +0000 (UTC) Message-ID: <54EBA4A2.1050607@codeaurora.org> Date: Mon, 23 Feb 2015 14:07:30 -0800 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Arnd Bergmann , Mathieu Olivari Subject: Re: [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config References: <1424485176-8348-1-git-send-email-mathieu@codeaurora.org> <5879121.Ud0l5ICsCF@wuerfel> In-Reply-To: <5879121.Ud0l5ICsCF@wuerfel> X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150223_140753_834662_61D704A5 X-CRM114-Status: GOOD ( 21.48 ) X-Spam-Score: -0.0 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux@arm.linux.org.uk, linux-watchdog@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, corbet@lwn.net, linux-kernel@vger.kernel.org, standby24x7@gmail.com, wim@iguana.be, robh+dt@kernel.org, galak@codeaurora.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 On 02/23/15 13:35, Arnd Bergmann wrote: > On Friday 20 February 2015 18:19:33 Mathieu Olivari wrote: >> This change is done as a follow-up to the following thread: >> https://lkml.org/lkml/2014/10/1/436 >> >> qcom-wdt is currently assuming the presence of a dedicated node in DT >> to gets its configuration. However, on msm architecture, the watchdog is >> usually part of the timer block. So this patch-set is changing the driver >> and slightly enhancing the timer DT bindings to provide the relevant clocks >> and interrupts. >> >> Mathieu Olivari (3): >> watchdog: qcom: use timer devicetree binding >> ARM: qcom: add description of KPSS WDT for IPQ8064 >> ARM: msm: add watchdog entries to DT timer binding doc >> >> Documentation/devicetree/bindings/arm/msm/timer.txt | 16 +++++++++++++--- >> arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++- >> drivers/watchdog/qcom-wdt.c | 21 +++++++++++++++------ >> 3 files changed, 41 insertions(+), 10 deletions(-) >> >> > What about the binding document in > Documentation/devicetree/bindings/watchdog/qcom-wdt.txt? > > We can rewrite it for platforms starting with msm8974 and beyond or delete it and write a new binding. It's a similar hardware block split out from the timers and then made to use a SPI instead of a PPI for the interrupt sources. We also lost the CPU remapping feature so there is really only one watchdog instead of 2 per cpu. Oh and the register offsets are different, but otherwise the registers are the same. ---8<----- From: Stephen Boyd Subject: [PATCH] Documentation: qcom-wdt: Update binding for individual block On msm8974 and beyond the KPSS watchdog is split out of the timer block and made to be a single instance instead of per-cpu. Let's update the binding to reflect this and replace the binding that is handled by the qcom,kpss-timer binding. Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/watchdog/qcom-wdt.txt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt b/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt index 4726924d034e..78b92bec4c3a 100644 --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt @@ -2,14 +2,10 @@ Qualcomm Krait Processor Sub-system (KPSS) Watchdog --------------------------------------------------- Required properties : -- compatible : shall contain only one of the following: - - "qcom,kpss-wdt-msm8960" - "qcom,kpss-wdt-apq8064" - "qcom,kpss-wdt-ipq8064" - +- compatible : shall contain "qcom,kpss-wdt" - reg : shall contain base register location and length - clocks : shall contain the input clock +- interrupts : shall contain the bark and bite interrupts in that order Optional properties : - timeout-sec : shall contain the default watchdog timeout in seconds, @@ -17,8 +13,9 @@ Optional properties : Example: watchdog@208a038 { - compatible = "qcom,kpss-wdt-ipq8064"; - reg = <0x0208a038 0x40>; + compatible = "qcom,kpss-wdt"; + reg = <0xf9017000 0x1000>; + interrupts = <0 3 0>, <0 4 0>; clocks = <&sleep_clk>; timeout-sec = <10>; };