From patchwork Fri Mar 9 04:51:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 131074 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp556604lja; Thu, 8 Mar 2018 20:51:33 -0800 (PST) X-Google-Smtp-Source: AG47ELvUQwxJWtOcN75X2dvFoDap4VQGZ8jH2p1hjhPdx3YfCWJM0mRSyt2LKlp/xDftyZcIqsU/ X-Received: by 10.98.61.133 with SMTP id x5mr28833904pfj.181.1520571093675; Thu, 08 Mar 2018 20:51:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520571093; cv=none; d=google.com; s=arc-20160816; b=IJaYlRiGssl6Nnj66mshLAvFPcoCXChOtNR1vwbNFK/n0TDT5Svrbu2OeBdUwkQC2u 96lN5lMfSrIh2x57vQPOCP9ppi7b0gn2QzaC8zSnNrI933jdD3n5cFkUH9Nsi9TNm4KG 4wpio0fuDu5EvIA4GlFbTq+mKesxHQSDLsX+c5qdSKJtyIWHGe0X3Vw1hTYwCASumVUp FY+puTTI/bhtJXu27zcU2AppilymrvibBiTCKPON7SVQPhbZsT++qnRFZ55hxqquhn5x zftvB6/LPD4Y8O5Qk8DmGFq490LyXv14f8XuFgHwqvrskNEEPwlK0PKx3LNaGr9sCeSl ZOAw== 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=25viXcWoMvuckTuq//GGGxa0thjedEcpujxU6ZJVpI0=; b=IazoAMxzLcXIWds74Quk+MKncJeq3ExQvSvznil/MIK2Tag8236oyV9sAkdwTAUedX OE7kBq5rEiTNZut3vvOM3v3eXHjWg3mFdai4PxSFiJ/0OUglcM0a2JNz6RY6yXaS/7Yi 93gmdLYTCIgFd9R6Y/rEejMx0kgl3D/QLmaawvUaAfqghZiAxJl666MhZqD8vXWNfXz2 7cM3VuZlH1p9DM09CcRxx86duXtB9dFgSy3CIUu0ej2jpkTL1TVzyKG6by+zwVZ3aomk Ne4nVVTVWx703G8ChsGexf+3gJRCTcYmNZMA5KQuZNQlsQ5iJIYJgVxdWqqmqXqpMLyB yiDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aFtGxSJ/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si183627pgn.366.2018.03.08.20.51.33; Thu, 08 Mar 2018 20:51:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aFtGxSJ/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751284AbeCIEvb (ORCPT + 28 others); Thu, 8 Mar 2018 23:51:31 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:35996 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbeCIEv1 (ORCPT ); Thu, 8 Mar 2018 23:51:27 -0500 Received: by mail-pl0-f68.google.com with SMTP id 61-v6so4664370plf.3; Thu, 08 Mar 2018 20:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=25viXcWoMvuckTuq//GGGxa0thjedEcpujxU6ZJVpI0=; b=aFtGxSJ/OO8WiSK1nzzCNCQnjVd9yPIpFd+O2ik907L/8pKUfj55UfSq3n/KCEofDZ HIB11vStC2n4u8kf5HmZIVWOMea6kI5H3qdaPPDLn8HnfelGgqwhxew7WKkSaHxhFri1 lBLuY3dqdmoYt1A2cefpD/SmaPb+0ZCBigu+vMmUJN1fgGvmJZtFiX1UAdw1h22LvNSv ld+6AWjBh/O/gVCONXT26Q5pJ7LKtMtz6yOq9bmcF832FkkZcCHrkbATbsw6Fos8NfEj OTiI1KtG3lK/PKYqv+PDnRA64nAkrmbSQkqkv789vJlnkBWooANvLwvjTVkxJztbxi+5 RLoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=25viXcWoMvuckTuq//GGGxa0thjedEcpujxU6ZJVpI0=; b=WbJ7MzbfALDCkbxKGI4lyOw+o88G89p77/jJRnNrOZOskVY1n27AaM5RwImwKFfcxi q7cPShvCM+lC/7sTWlc6diTDojnVmrYxwa0tVUkwvN/OTjroPkWIU7B8iywrMZgRHEv2 WGiP3rVvqwDymeYOPHsuDvoak2SCO2ro8quz/VQOhpkKdIMfFachz38tXCBnABa769pK 2hKlQhA5Xs9AjtBrf7xSRaKcDu35oit39KiVhp8K9bFhOYrXxxKUwQ0g03atoXsC61n5 RfTLH5f2G+xDNP3FnG5mwaCzbBtVfEzdBeiO8h2aQmz73H9XZFZ0S1DTz8TIA68EsPHS gEmQ== X-Gm-Message-State: APf1xPCOQoKEmVbnCPNXW7e02dJtxwnnRtGeeV1tit4oUO7mVOa5EgW/ kJLHOTW69nBG4pUfpnh9P/8= X-Received: by 2002:a17:902:550f:: with SMTP id f15-v6mr25976030pli.50.1520571086975; Thu, 08 Mar 2018 20:51:26 -0800 (PST) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id h69sm491780pfe.97.2018.03.08.20.51.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 20:51:26 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 09 Mar 2018 15:21:18 +1030 From: Joel Stanley To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Mark Rutland , Marcus Folkesson Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tomer Maimon , Avi Fishman , Brendan Higgins Subject: [PATCH v3 1/2] dt-bindings: watchdog: Add Nuvoton NPCM description Date: Fri, 9 Mar 2018 15:21:06 +1030 Message-Id: <20180309045107.8515-2-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180309045107.8515-1-joel@jms.id.au> References: <20180309045107.8515-1-joel@jms.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These bindings describe the watchdog IP as used by the Nuvoton NPCM750 (Poleg) BMC SoC. Reviewed-by: Rob Herring Signed-off-by: Joel Stanley --- V2: Add optional timeout property v3: - Fix address in example - Add Rob's reviewed-by --- .../bindings/watchdog/nuvoton,npcm-wdt.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt -- 2.15.1 diff --git a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt new file mode 100644 index 000000000000..6d593003c933 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt @@ -0,0 +1,28 @@ +Nuvoton NPCM Watchdog + +Nuvoton NPCM timer module provides five 24-bit timer counters, and a watchdog. +The watchdog supports a pre-timeout interrupt that fires 10ms before the +expiry. + +Required properties: +- compatible : "nuvoton,npcm750-wdt" for NPCM750 (Poleg). +- reg : Offset and length of the register set for the device. +- interrupts : Contain the timer interrupt with flags for + falling edge. + +Required clocking property, have to be one of: +- clocks : phandle of timer reference clock. +- clock-frequency : The frequency in Hz of the clock that drives the NPCM7xx + timer (usually 25000000). + +Optional properties: +- timeout-sec : Contains the watchdog timeout in seconds + +Example: + +timer@f000801c { + compatible = "nuvoton,npcm750-wdt"; + interrupts = ; + reg = <0xf000801c 0x4>; + clocks = <&clk NPCM7XX_CLK_TIMER>; +};