From patchwork Mon Mar 5 11:45:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 130631 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp2587409lja; Mon, 5 Mar 2018 03:46:22 -0800 (PST) X-Google-Smtp-Source: AG47ELv8QjYq44yNQLhAUBF1KO17yIwTj84SNxSfjrfmj9LLhtv1gBNnAkvCbt8aSraZJ7T1J9c8 X-Received: by 10.101.78.5 with SMTP id r5mr12020644pgt.33.1520250381889; Mon, 05 Mar 2018 03:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520250381; cv=none; d=google.com; s=arc-20160816; b=ctUzVpWNQL0i+Lg0cE/LSJF4A02jFNcMCzirJ9YuYzyAmTNCAXiTY7nQHt5NK67pbk 8Gbk1BEAzYddjmT4RLdc/n/nPdBMLHb3b6X+g0TXECV+XjHBSSd3Y5qUpr7oZ7o8T3uD gjDqYzYLOa4RrqEoG7qm5GeAmzkAASz7E6TFfBbV3e02vQ5p3LFqCUy93QDxT2bwStf6 x4HP0DpOq3TQnv5dvbSEjjs1Zvn9wjx41jeQczC83VXW9uYNPEEB2YWc1lgOhDSzGwST klCwnmm//BeM2vRK7oZ7Bp6d0teoGJDYOXNKcD7gdVCsJDFM2nT2Qm16NPn/gV0B+nFf wecw== 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=d6wH5FUi8icfqIFGVKVQBiDzccSf5UXim4ZoPVXHWrY=; b=IvX6tUG3iYLkX7qFMut8a/hqJ4vY+ElPPCslx42DQH8xzFeeysWH4rbTBTZ1gTEbNM Mb6nBap6x9UHFVS7kFL9u05EigKSPKaVnJ+WmhnBED1RMJpcu+c7WakZz5Y4rPUCsYBF QMwUVUN5Cf7+9/imw+RU4fTnQBX2v/7a7rIhwfswJxtRBzd4oWugBBoQOw4lpiq1MzlC yIQvNR4t7xi9iZy8iXimBwKRanCQ0uweVP6hcjOvr/oDU5DKyhc/KsKx0wH+Va40hOrc FBdej7gAU8ZO8dfIR7z5W6u2XLKJXO6dGJyXKMtBkjB/wL3cwDSDurUGcFIDFHfVeQtD f9XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pzROReqh; 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 b8si1086794pgt.710.2018.03.05.03.46.21; Mon, 05 Mar 2018 03:46:21 -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=pzROReqh; 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 S1752661AbeCELqR (ORCPT + 28 others); Mon, 5 Mar 2018 06:46:17 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:44800 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934006AbeCELqK (ORCPT ); Mon, 5 Mar 2018 06:46:10 -0500 Received: by mail-pl0-f65.google.com with SMTP id 9-v6so3954060ple.11; Mon, 05 Mar 2018 03:46:10 -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=d6wH5FUi8icfqIFGVKVQBiDzccSf5UXim4ZoPVXHWrY=; b=pzROReqhHD4Vw6gt2LyPxe/3QvwQSNu3PHm4IReZyFbXTsSB0uwULYe+hoXEZPVf8b n1Cwfuq7xoLe35a1MiQkRKpvUyuki4JmgXe0kgmMJiB6+ZLkOaNuT6kWWjL/J62y0leI ZkyKNKVccMHz+6uF191VQqu7KF72/NjIwVp4GEXsjzOANuEsdScwfsfaM5Ab6qTsKY70 7HpXOn22HvHiOj1050pXYkRrJlRZ29xYxBqgydtGyonltOKuYkOoSlixmlj76TTxwJny ALa3SxZszQAkxAxAGLQLcfMjYZsJ0AoU5zNtKbwQJznMkU3zKJDGBYYN5Yx32YEyR80L f8Fg== 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=d6wH5FUi8icfqIFGVKVQBiDzccSf5UXim4ZoPVXHWrY=; b=kRwYKcYOmDsGtNbUkQlD5jefNeW76FsOLvFylo6EHyNqcdOgW8XYeHUCD2UHYxN3Wl 1i9omeDbjZe6e+FgVnobfmRHBqDX0scR90JnOl96oWLs21Tt0KqSkae4EmapWGtw1SZE 7Q/46rIXP48k7juipzDTjlD3/lXm/cS70alAyLAfFUo3U/sK2e3QhP5QgrTRsw8JE4wA pQe7GlRfhNVM5jJ8BJ5hmzqiQ2I2LbLI1vR9D7WCBxFViTmXJnRhNnpVDYtV6SeCab8U bK6QuR94/rhicb6TTbj+G3jpbxdLGw02SQNOjmTQrMCkoopYIqlCXUeiSG1C8iZlkzyy BurA== X-Gm-Message-State: APf1xPA8EAf7hwy40nMsI+eFp3o88eX10ystsIGOB4XFGFbOIyVfY1BM t7ePXyHPF0w0dszvaQ9d1+I= X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr13072762plf.134.1520250370071; Mon, 05 Mar 2018 03:46:10 -0800 (PST) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id b72sm13898982pfl.21.2018.03.05.03.46.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Mar 2018 03:46:06 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Mon, 05 Mar 2018 22:15:59 +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 v2 1/2] dt-bindings: watchdog: Add Nuvoton NPCM description Date: Mon, 5 Mar 2018 22:15:40 +1030 Message-Id: <20180305114541.9917-2-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180305114541.9917-1-joel@jms.id.au> References: <20180305114541.9917-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. Signed-off-by: Joel Stanley --- V2: Add optional timeout property --- .../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..615eacd0b9d6 --- /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@f00080c1 { + compatible = "nuvoton,npcm750-wdt"; + interrupts = ; + reg = <0xf00080c1 0x4>; + clocks = <&clk NPCM7XX_CLK_TIMER>; +};