From patchwork Thu Apr 9 14:47:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 46946 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 40FA821416 for ; Thu, 9 Apr 2015 14:48:13 +0000 (UTC) Received: by lamp14 with SMTP id p14sf27655145lam.3 for ; Thu, 09 Apr 2015 07:48:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=k/fKUDEyunQ8daAtqDzu3LeXXHwBlVzYvjvQcmSKyVU=; b=QZYlBR47gkldAlj6U0ofesDSHu4aPwjT/TixvkHXqqgT4+0Mzz0NMzAXI3yuqtDmwY 3zKdQ+nU57U4Ygs7rjMbK5nh3IrQsIbEjLOq/RWYe3BrhErbwwWaH/BNDQqrwxmCoVJG PWKhDQHAuUooc66vh28gkUjMZ65ovBNA0zgTMhaDe6fI83ky9jNmVLnRK8oO7HxZiOwP EowZNoHhn0F0gSxiEEbEg/XUEYvMpPjGmnQUsyL3biKM7w5zGn1Vir7x1I3Tdq2JuNyq jDbQvjvz3xKjeKqQEzZkFAhQ2NZ6McowWLhumB0jys4uUzH7iL0UoI50Y+wuWINE4apy X3+w== X-Gm-Message-State: ALoCoQk06lyaH1TJ4RsdlThFJhElz0NzoxikAcFT1meB9w2uAIhLCECz28NhGmhxIfJAKtUSjEhR X-Received: by 10.194.161.194 with SMTP id xu2mr6023538wjb.1.1428590892246; Thu, 09 Apr 2015 07:48:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.42 with SMTP id j10ls275894laf.27.gmail; Thu, 09 Apr 2015 07:48:12 -0700 (PDT) X-Received: by 10.152.87.162 with SMTP id az2mr4880075lab.58.1428590892084; Thu, 09 Apr 2015 07:48:12 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id t4si10188232lbk.135.2015.04.09.07.48.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 07:48:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbqq2 with SMTP id qq2so84232250lbb.3 for ; Thu, 09 Apr 2015 07:48:11 -0700 (PDT) X-Received: by 10.152.178.197 with SMTP id da5mr4871391lac.56.1428590891805; Thu, 09 Apr 2015 07:48:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp517209lbt; Thu, 9 Apr 2015 07:48:10 -0700 (PDT) X-Received: by 10.66.149.106 with SMTP id tz10mr56766437pab.90.1428590888005; Thu, 09 Apr 2015 07:48:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zp6si9280360pbc.127.2015.04.09.07.48.07 for ; Thu, 09 Apr 2015 07:48:07 -0700 (PDT) Received-SPF: none (google.com: linux-watchdog-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755540AbbDIOrz (ORCPT ); Thu, 9 Apr 2015 10:47:55 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:33899 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755489AbbDIOrt (ORCPT ); Thu, 9 Apr 2015 10:47:49 -0400 Received: by wgso17 with SMTP id o17so10866242wgs.1 for ; Thu, 09 Apr 2015 07:47:48 -0700 (PDT) X-Received: by 10.181.29.67 with SMTP id ju3mr7012965wid.82.1428590868775; Thu, 09 Apr 2015 07:47:48 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.156]) by mx.google.com with ESMTPSA id gt4sm20465371wib.21.2015.04.09.07.47.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Apr 2015 07:47:47 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, a.zummo@towertech.it, david.paris@st.com Subject: [PATCH v7 5/9] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Thu, 9 Apr 2015 15:47:30 +0100 Message-Id: <1428590854-14095-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428590854-14095-1-git-send-email-lee.jones@linaro.org> References: <1428590854-14095-1-git-send-email-lee.jones@linaro.org> Sender: linux-watchdog-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On current ST platforms the LPC controls a number of functions including Watchdog and Real Time Clock. This patch provides the bindings used to configure LPC in Watchdog mode. Signed-off-by: Lee Jones --- .../devicetree/bindings/watchdog/st_lpc_wdt.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt b/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt new file mode 100644 index 0000000..388c88a --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt @@ -0,0 +1,38 @@ +STMicroelectronics Low Power Controller (LPC) - Watchdog +======================================================== + +LPC currently supports Watchdog OR Real Time Clock functionality. + +[See: ../rtc/rtc-st-lpc.txt for RTC options] + +Required properties + +- compatible : Must be one of: "st,stih407-lpc" "st,stih416-lpc" + "st,stih415-lpc" "st,stid127-lpc" +- reg : LPC registers base address + size +- interrupts : LPC interrupt line number and associated flags +- clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt) +- st,lpc-mode : The LPC can run either one of two modes ST_LPC_MODE_RTC [0] or + ST_LPC_MODE_WDT [1]. One (and only one) mode must be + selected. + +Required properties [watchdog mode] + +- st,syscfg : Phandle to syscfg node used to enable watchdog and configure + CPU reset type. +- timeout-sec : Watchdog timeout in seconds + +Optional properties [watchdog mode] + +- st,warm-reset : If present reset type will be 'warm' - if not it will be cold + +Example: + lpc@fde05000 { + compatible = "st,stih407-lpc"; + reg = <0xfde05000 0x1000>; + clocks = <&clk_s_d3_flexgen CLK_LPC_0>; + st,syscfg = <&syscfg_core>; + timeout-sec = <120>; + st,lpc-mode = ; + st,warm-reset; + };