From patchwork Tue Mar 13 06:17:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 131408 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp347337ljb; Mon, 12 Mar 2018 23:17:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELsxiSnu6C1tqoEzMWKTrUsc/qILhAQS/UIPvP9q9tZ5eUD20HRgo0KpIcADNWTHKFciSpDG X-Received: by 10.98.225.2 with SMTP id q2mr1083504pfh.23.1520921874777; Mon, 12 Mar 2018 23:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520921874; cv=none; d=google.com; s=arc-20160816; b=iixCeoACvyfqF561st/+z+ipVViaSsIX1NRytrfi9V/Y7VPNFh/0e6kWMOfNY/mSaG 2c0np2QlhN/KRTLQUMNw2wQsitZ3Ba0/wCLWOXpqDgNz8NVQxewbaB8HKUUGzNbOq4/w kYPDIfd/g6Kam1jgZy8y3TUHiH7o+qwm2VOL3MdNQlQBMWTrmX0Zw+gMGILzckcaQvHm xO5MUsPsRwGstchjuxBKIi05eizxeWrJ8/SLyg12lmKqGabvOXvXMedST8coz1kjuBrw wD/Wt13Yrw7n2twVTfUbtwNpjbYWoCP8XMMBxdAFG8Aro79LFIwaYd6i8PMiJUjT+1z6 aeYA== 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=ZfHKfW+Y3IERpLdkH0yTfIXi+pDtemeAWULd9L8STr/9kg/fn7zBc4eZaabZzP5diW 4FKG/z0hlYFW6OQ+3NAwbvKy3Zr23VEFQ6Lu3lNcQeqbs1KOGNTXlk7yjjU52MGm+WwY u0djUMCKtBdq4+qtYLA0TgvEq0NdAH3feEswdOebRPKMw69E6kNoS53H7KNk4JscmBrR 4HdU7PVEqkjq2g9jYaLloo9uifjoARFFwW0aDnvwH5EQ3zQBSV+SqP5sjEBA1vYZyNcE mUAigXFR1D3bPj8uhhuAGHXlMNa3JP6QB0iD44Vp8SGCgB0eEf+bT332F8PkbuXutulQ mX1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GZfEOLJl; 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 1-v6si1060330plj.510.2018.03.12.23.17.54; Mon, 12 Mar 2018 23:17:54 -0700 (PDT) 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=GZfEOLJl; 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 S1751842AbeCMGRw (ORCPT + 28 others); Tue, 13 Mar 2018 02:17:52 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:41064 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751574AbeCMGRt (ORCPT ); Tue, 13 Mar 2018 02:17:49 -0400 Received: by mail-pg0-f65.google.com with SMTP id w17so3498768pgq.8; Mon, 12 Mar 2018 23:17:49 -0700 (PDT) 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=GZfEOLJlu1QacD6meKEmg0+/q3OlAVHi7ubVvc1D83MilNqZRRVR9cO0gIHGQ6ROdg KB12pV/PSBtV1QBtbMj+ONqBnpSNsQo06cfbcdMPC5urCz97zUnfMYM9wOtVGRJkBYqZ JWb084htGKr0JFjwJ85aGHd1TDViN01hJnQAJbL2cKM/zYHLQBg0RHYlcnLWt6xA8oa0 entMnCbgP7mgoPsqP+qChPF9FTusYRUB8AZSwVHMrg5m/bG7C8aLKY8sqJffSoapV+GP zvChatr5OHyS0zD3GdiWSAn9+yfkOvj8Qy+yjyuDC1ntXSyo2B0w3JRO3oPZ06xcp2eu HkHA== 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=k3Fzj4bPFwNLp0/ikNr/gRec8JAUKkdwZFtLhjYuZD/VwRNJHY91/iLTKZFm+et7Ko qpfBPlwPrj7nm8V6spohKev8FIIQ5j6tNor1Ilw2/G81cONIVrhQwh3ZOW/OyEvirn+j YZhB+jhfS2LGagJmPxSb57BrkbzNgo3PjTiGSLkG2WJfhJZtKeV+gHnq94ifsnlci45K ZHOpjhChOwU1Lh2TSaNL76EzGJKkamzdRF75jN2/Bdu9G8h2Nl7NheAxbuhwe9Lhw/pN XMNAPGW9IwRRv2+7wZuYmqy93bagUy/H79LZltUCNytMEggPDFtqh0ihEv+Rb8lEe6/B 5nTg== X-Gm-Message-State: AElRT7HW/P0lmaF4AVkUlM4pPPkh/xp4de+WxPo084wIGn1uVlMZb0fe nELqMt0hi0N9oOprJPNm9wXp+MPzT7E= X-Received: by 10.101.69.66 with SMTP id x2mr8707135pgr.438.1520921868613; Mon, 12 Mar 2018 23:17:48 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id h7sm7195972pgp.26.2018.03.12.23.17.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Mar 2018 23:17:47 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 13 Mar 2018 16:47:40 +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 v4 1/2] dt-bindings: watchdog: Add Nuvoton NPCM description Date: Tue, 13 Mar 2018 16:47:25 +1030 Message-Id: <20180313061726.21601-2-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180313061726.21601-1-joel@jms.id.au> References: <20180313061726.21601-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 Reviewed-by: Guenter Roeck 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>; +};