From patchwork Thu Jan 22 11:56:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 43507 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 28130218DB for ; Thu, 22 Jan 2015 11:57:09 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id d49sf1404929eek.2 for ; Thu, 22 Jan 2015 03:57:08 -0800 (PST) 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=u0zPTG4iSmkHdVwIDQfC9sI8jqEs+jcIxC0YOmSNA08=; b=Ytr8/YUsKaZjklVHqo+yo8vHFTxv51zyN2mhdTLZMNRcxsX+whDXHke3anmy+dYdKl stseIq1Hiequ4nZoI5G2b9G3Bxch/30C8DZRDX7vojRpSca/7cJKnh1sixZQRyDQC3Uo KkZe8lHfBEDHE8vqBnuKkj3F6aoGnh8KqzoXu1rgrGdDs07D/6IL/AksmjxJtnLk8Nuw pTQWfSUCFCkJ6nuXoXe7GXvP0Xy68KpII8iYNbuvHCZofI4QWSWrexLjT4rYiJgA6Xug xcV3ct7vavfaMLqU0YJBsHE2jF+Q3XJ04QTU9AjWnedIeNlq0bcB3mN3LI350LQszE8S uAaA== X-Gm-Message-State: ALoCoQnY2Mf7g3yj+q+B2SPmyV+Ay6Xs44vcfrCRNkiqKqccqsCVeAshBBCMkTINpiLx6fO0BinK X-Received: by 10.112.162.35 with SMTP id xx3mr180501lbb.16.1421927828297; Thu, 22 Jan 2015 03:57:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.134 with SMTP id kq6ls145972lac.36.gmail; Thu, 22 Jan 2015 03:57:08 -0800 (PST) X-Received: by 10.152.28.37 with SMTP id y5mr995055lag.55.1421927828139; Thu, 22 Jan 2015 03:57:08 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id kw4si1153567lac.133.2015.01.22.03.57.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 03:57:08 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gd6so1149401lab.4 for ; Thu, 22 Jan 2015 03:57:08 -0800 (PST) X-Received: by 10.112.64.35 with SMTP id l3mr1082376lbs.82.1421927828043; Thu, 22 Jan 2015 03:57:08 -0800 (PST) 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.9.200 with SMTP id c8csp236073lbb; Thu, 22 Jan 2015 03:57:07 -0800 (PST) X-Received: by 10.70.39.65 with SMTP id n1mr1388046pdk.83.1421927826318; Thu, 22 Jan 2015 03:57:06 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hv5si11896131pbc.115.2015.01.22.03.57.05 for ; Thu, 22 Jan 2015 03:57:06 -0800 (PST) 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 S1752166AbbAVL5D (ORCPT ); Thu, 22 Jan 2015 06:57:03 -0500 Received: from mail-ie0-f170.google.com ([209.85.223.170]:33546 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752164AbbAVL47 (ORCPT ); Thu, 22 Jan 2015 06:56:59 -0500 Received: by mail-ie0-f170.google.com with SMTP id y20so935086ier.1 for ; Thu, 22 Jan 2015 03:56:58 -0800 (PST) X-Received: by 10.42.72.138 with SMTP id o10mr2183603icj.73.1421927818744; Thu, 22 Jan 2015 03:56:58 -0800 (PST) Received: from localhost.localdomain (host109-148-235-13.range109-148.btcentralplus.com. [109.148.235.13]) by mx.google.com with ESMTPSA id cj7sm2404231igb.10.2015.01.22.03.56.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jan 2015 03:56:58 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, rtc-linux@googlegroups.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, david.paris@st.com Subject: [PATCH v2 5/9] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Thu, 22 Jan 2015 11:56:03 +0000 Message-Id: <1421927767-28889-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421927767-28889-1-git-send-email-lee.jones@linaro.org> References: <1421927767-28889-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.215.45 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..1bdf023 --- /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,stih416-lpc-watchdog"; + reg = <0xfde05000 0x1000>; + clocks = <&clk_s_d3_flexgen CLK_LPC_0>; + st,syscfg = <&syscfg_core>; + timeout-sec = <120>; + st,lpc-mode = ; + st,warm-reset; + };