From patchwork Sat Aug 12 18:43:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 109936 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp2442416qge; Sat, 12 Aug 2017 11:43:44 -0700 (PDT) X-Received: by 10.84.178.129 with SMTP id z1mr22226071plb.260.1502563424462; Sat, 12 Aug 2017 11:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502563424; cv=none; d=google.com; s=arc-20160816; b=nMFJ0XHRTXDzBnyWaEHgHWhcHtn5ym/R5NQCfl6nn5P6SyXUSjOInwjA6cuOtTShKn VSI9TV10brlgLxqO+tppTwfMLkX08WIv/Dt00Q0gNge1XbV5L1oOfQ24n0fbmpffVRQy CoYMB2VycFY2eGJFY44+m6LueaoNSrxWvAIdry7NjbSoyBWYNpJPjo/AbuTPwpogCsN9 u6lQOIKZHLl/UqtPLQdm9MdpJ50BgGqJDU04OztyvIC5CYKLfTGjiUiu9P3tSObe+xRp py//0Zw2MR2bMB6pCMXTiuVa50anhI5vdD/xIA8BhzEgK1xUCAHZVYGcc+wBI+S+qQYv +zmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=6g4EivoVueka7ZB19d9s4uMmgT8FxSyvLNdlXYtiQzM=; b=FJBWoSktEOg2rytEwW1zYLY9Zn+RozbKTmCLCzd+NpIPKwdyad9w0+BKttqFRVUvNG TjICLdm6tw9R1zlIb4VPmXwbX1xPl+14L7Hb/T5rsdchsjl18lJ/4FwHNbdTbSC/NXjK YFwdkC6kPwM/6oLJrTZI2xof1rQHzrD2HmenMsAvLBr08Bh4Eo+MHN/A55Nzo4hf2Jlv +52sty2z8QZzXdb4fiyrTMU5sR53+ztQUpttusOGe7/Xh+1kePPwg7bUIaYLHroqi4BF cq+5qCb9/ZsLD4Ux1/XrC4X9OH5tKdks88Ryp7QUEESIoGbFMkvhEh1qKH48N+hgDMpx sd7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AHlKy4nR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p24si2288117pli.501.2017.08.12.11.43.44 for ; Sat, 12 Aug 2017 11:43:44 -0700 (PDT) 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 header.s=google header.b=AHlKy4nR; 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 S1751494AbdHLSno (ORCPT ); Sat, 12 Aug 2017 14:43:44 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:36904 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdHLSnn (ORCPT ); Sat, 12 Aug 2017 14:43:43 -0400 Received: by mail-lf0-f53.google.com with SMTP id m86so26897191lfi.4 for ; Sat, 12 Aug 2017 11:43:42 -0700 (PDT) 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=59TcH5+qhzs71hKwpxpyfO8WI8wrC5CMSfUkKfG37TQ=; b=AHlKy4nRfepNlersehjFKdyMG8WfMOtX02MWZ5TyDx8SIYGbi9/JeYmdOySek4B1kb ysWQCokyLBfoXQre7/ilrP4/EEHNAexR2P2UMU+w/yPUl3siWkMPXO3ld7RGBPHukE1m v0eXIbJECz5Oeci3ZAZBL7tX0OxmX15L2zYMg= 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=59TcH5+qhzs71hKwpxpyfO8WI8wrC5CMSfUkKfG37TQ=; b=V83GYhAWFePVDcjos3cGFi2YWYSKJH3NAWebTlIDNFK18jOp4NmyYPna6UhQ5+NuCa TdXnBM2YuL7E93STfkWZ5VFJXBHh6WOsVzDlfn/fQFTfsJuGZ4D2RKrgcuhiIK9JOW8x P63BOXAQzOC/u9fZSMy0g2YTGKDpfhh6q2VQV329fHbtqrmypJrV0liOs9oqJCbhvs6S FPjTfbxDMhrlbH3WuwEgy5YybirlVZ2NgvH4Pr6zU18vXNzqvX9RkOZ/z0A9wa8h+44u EngfiMHrIQ3wGg6OSMP76TQd/JYtIbGAdIXoK7fEDn5jCmjTlvHc72XW0Zhv1+NY6ouT W+aw== X-Gm-Message-State: AHYfb5jSw9xJdkwZD+oLBthWQHKOQd0JmF0shjZ2+ekj925p+2KRgBIv Z7BaWgPhgOoU5fUl X-Received: by 10.25.203.8 with SMTP id b8mr6879273lfg.212.1502563422074; Sat, 12 Aug 2017 11:43:42 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-277e71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.126.39]) by smtp.gmail.com with ESMTPSA id d64sm696628lfg.22.2017.08.12.11.43.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 12 Aug 2017 11:43:41 -0700 (PDT) From: Linus Walleij To: Wim Van Sebroeck , Guenter Roeck , Jonas Jensen , Andrew Jeffery , Joel Stanley Cc: linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 06/11] watchdog: ftwdt010: Extend DT bindings to derivatives Date: Sat, 12 Aug 2017 20:43:13 +0200 Message-Id: <20170812184318.10144-7-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.4 In-Reply-To: <20170812184318.10144-1-linus.walleij@linaro.org> References: <20170812184318.10144-1-linus.walleij@linaro.org> Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org This extends the device tree bindings for the Faraday FTWDT010 block to cover: - The "moxa,moxart-watchdog" compatible version - The "aspeed,ast2400-wdt" and "aspeed,ast2500-wdt" versions - clocks (PCLK non-optional, the Gemini also have this now) - reset line (optional, exist on the Gemini) - configuration to use the external clock (faraday,use-extclk) Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../devicetree/bindings/watchdog/faraday,ftwdt010.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) -- 2.13.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 Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt index 9ecdb502e605..016e353bb069 100644 --- a/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt +++ b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt @@ -1,17 +1,27 @@ Faraday Technology FTWDT010 watchdog This is an IP part from Faraday Technology found in the Gemini -SoCs and others. +and MOXA ART SoCs and others. Required properties: - compatible : must be one of "faraday,ftwdt010" "cortina,gemini-watchdog", "faraday,ftwdt010" + "moxa,moxart-watchdog", "faraday,ftwdt010" + "aspeed,ast2400-wdt", "faraday,ftwdt010" + "aspeed,ast2500-wdt", "faraday,ftwdt010" - reg : shall contain base register location and length -- interrupts : shall contain the interrupt for the watchdog +- clocks : the clock driving the IP block (PCLK) and optionally + an external clock (EXTCLK) +- clock-names : should be "PCLK" for the IP block clock and + "EXTCLK" for the external clock if present Optional properties: +- interrupts : the bark interrupt for the watchdog +- resets : reset line for the IP block - timeout-sec : the default watchdog timeout in seconds. +- faraday,use-extclk : if set, the "EXTCLK" provided in the clocks + property will be used to clock the watchdog Example: @@ -19,4 +29,6 @@ watchdog@41000000 { compatible = "faraday,ftwdt010"; reg = <0x41000000 0x1000>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&pclk>; + clock-names = "PCLK"; };