From patchwork Wed Mar 4 18:06:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 45432 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E42682055F for ; Wed, 4 Mar 2015 18:07:22 +0000 (UTC) Received: by widfb4 with SMTP id fb4sf8868094wid.2 for ; Wed, 04 Mar 2015 10:07:22 -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=Xrp/CUVXzC13Ufz90u1IwINHW3pyDKJI1P247X7p+RQ=; b=b2Z8VJoa4zxh7zETSayiUj8CCTimA5pvwPCaXfiHqnjrgYLsGm9dRQDhvc1ZkyKG4P KKc9P5aKOteqyRfN1sDaU6fKnnMA2dIyqPHn7ZWVbsQiI01vrhvkfXl1ys/gTidXEj/8 IanrRqPVqP9tArWMz4FQwVPtGDcvwf8C1h6G8lTsUN0sz2+p6bu3rAy841vgj/NjdS5g YpVUlEChm9joK4MmwilG6yc24FEod0IDf//LURrSAxEHT3daoff6ihHjngn3NfGpOHvX p38BsQPTgsGLT6nbYGCVHqdN8SZhQ+3vAUgvuxfB4X98Pz35CgIbKaIXVNxh6pbUvrkm FG1A== X-Gm-Message-State: ALoCoQlF5cnrVpoFuU5zQqTQ9NDR3N9XXgc1ZNiQY0OWcAWBCL54TR9cSLrFGF/26NyRf5SBy5OV X-Received: by 10.112.126.194 with SMTP id na2mr933395lbb.18.1425492442111; Wed, 04 Mar 2015 10:07:22 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.14 with SMTP id t14ls219717laz.61.gmail; Wed, 04 Mar 2015 10:07:21 -0800 (PST) X-Received: by 10.112.173.41 with SMTP id bh9mr4426837lbc.107.1425492441937; Wed, 04 Mar 2015 10:07:21 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id q3si1330663lag.1.2015.03.04.10.07.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 10:07:21 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by labgm9 with SMTP id gm9so6654630lab.8 for ; Wed, 04 Mar 2015 10:07:21 -0800 (PST) X-Received: by 10.152.115.136 with SMTP id jo8mr4822521lab.32.1425492441593; Wed, 04 Mar 2015 10:07:21 -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.35.133 with SMTP id h5csp1379967lbj; Wed, 4 Mar 2015 10:07:20 -0800 (PST) X-Received: by 10.70.54.69 with SMTP id h5mr8731279pdp.37.1425492433706; Wed, 04 Mar 2015 10:07:13 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go10si6150403pbd.18.2015.03.04.10.07.12; Wed, 04 Mar 2015 10:07:13 -0800 (PST) Received-SPF: none (google.com: linux-kernel-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 S1758810AbbCDSHC (ORCPT + 28 others); Wed, 4 Mar 2015 13:07:02 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:37962 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758436AbbCDSG5 (ORCPT ); Wed, 4 Mar 2015 13:06:57 -0500 Received: by wiwh11 with SMTP id h11so32879241wiw.3 for ; Wed, 04 Mar 2015 10:06:55 -0800 (PST) X-Received: by 10.180.19.193 with SMTP id h1mr15126432wie.2.1425492415668; Wed, 04 Mar 2015 10:06:55 -0800 (PST) Received: from localhost.localdomain (host81-134-85-168.in-addr.btopenworld.com. [81.134.85.168]) by mx.google.com with ESMTPSA id g5sm6993664wjr.19.2015.03.04.10.06.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Mar 2015 10:06:54 -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, a.zummo@towertech.it Subject: [PATCH v5 7/9] rtc: bindings: Provide ST bindings for ST's LPC RTC device Date: Wed, 4 Mar 2015 18:06:36 +0000 Message-Id: <1425492398-27340-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425492398-27340-1-git-send-email-lee.jones@linaro.org> References: <1425492398-27340-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.54 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 RTC mode. Signed-off-by: Lee Jones --- .../devicetree/bindings/rtc/rtc-st-lpc.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt diff --git a/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt b/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt new file mode 100644 index 0000000..aaf9855 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt @@ -0,0 +1,25 @@ +STMicroelectronics Low Power Controller (LPC) - RTC +=================================================== + +LPC currently supports Watchdog OR Real Time Clock functionality. + +[See: ../watchdog/st_lpc_wdt.txt for Watchdog 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. + +Example: + lpc@fde05000 { + compatible = "st,stih416-lpc-watchdog"; + reg = <0xfde05000 0x1000>; + clocks = <&clk_s_d3_flexgen CLK_LPC_0>; + st,lpc-mode = ; + };