From patchwork Thu Jan 22 11:56:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 43508 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BE790218DB for ; Thu, 22 Jan 2015 11:57:24 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id q59sf782430wes.1 for ; Thu, 22 Jan 2015 03:57:24 -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=KcVaHX3GTuSbZQvXvgZt0WqaqqlqMZ14RTIWw1ckiLn6JMdDZOtmSNh17/yVyg8iLU AtytR0Hq84X6IqChA3aPMo2ysX61koc7pNb42mRMUpQ5D8/9tEc0R+fq5cCGl+IVChWk 1rW5v6OxqgmZ5aN2tf8IL1XycFNqxQoCrFzbh2U+1K/FcSOfQMTM2agjlcIn6cYaYvCq 7x4Wgt5Db1evtgt/F3TOrGUS/qHeBYSZcPIAXJ8gm1I+11P230CzJxaSiCkdZjT1Fi4b iEgi44eJX2V47+SAywBtrBmQ8o91u5xbLj+jvnBrKEyyoptnSum1plgvtADRtUmMSgTA O0Xw== X-Gm-Message-State: ALoCoQnR7F3/+ioz/tmP9TGJgS/Cls7mNiVN4loto15Iqg1NcjwmESK3jD5HRlOwOKE+gvwX5g6+ X-Received: by 10.112.114.162 with SMTP id jh2mr181083lbb.9.1421927844032; Thu, 22 Jan 2015 03:57:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.130 with SMTP id b2ls132571laa.27.gmail; Thu, 22 Jan 2015 03:57:23 -0800 (PST) X-Received: by 10.112.72.197 with SMTP id f5mr1051813lbv.21.1421927843789; Thu, 22 Jan 2015 03:57:23 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id kw4si1154131lac.133.2015.01.22.03.57.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 03:57:23 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id pn19so1130630lab.9 for ; Thu, 22 Jan 2015 03:57:23 -0800 (PST) X-Received: by 10.112.30.71 with SMTP id q7mr1051656lbh.41.1421927843700; Thu, 22 Jan 2015 03:57:23 -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 c8csp236153lbb; Thu, 22 Jan 2015 03:57:22 -0800 (PST) X-Received: by 10.68.135.136 with SMTP id ps8mr1574300pbb.130.1421927841663; Thu, 22 Jan 2015 03:57:21 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si7608654pdi.14.2015.01.22.03.57.20; Thu, 22 Jan 2015 03:57:21 -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 S1752363AbbAVL5L (ORCPT + 28 others); Thu, 22 Jan 2015 06:57:11 -0500 Received: from mail-ig0-f173.google.com ([209.85.213.173]:42652 "EHLO mail-ig0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752248AbbAVL5H (ORCPT ); Thu, 22 Jan 2015 06:57:07 -0500 Received: by mail-ig0-f173.google.com with SMTP id a13so436075igq.0 for ; Thu, 22 Jan 2015 03:57:07 -0800 (PST) X-Received: by 10.50.43.198 with SMTP id y6mr11656747igl.16.1421927827331; Thu, 22 Jan 2015 03:57:07 -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.57.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jan 2015 03:57:06 -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 7/9] rtc: bindings: Provide ST bindings for ST's LPC RTC device Date: Thu, 22 Jan 2015 11:56:05 +0000 Message-Id: <1421927767-28889-8-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-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.50 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 = ; + };