From patchwork Wed Feb 18 11:49:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 44766 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A6F1021544 for ; Wed, 18 Feb 2015 11:51:20 +0000 (UTC) Received: by lams18 with SMTP id s18sf461971lam.1 for ; Wed, 18 Feb 2015 03:51:19 -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=Oqb6WNN6ZhxkYPAA73qDOwhpYsVJlqRtJ5LhCHav+Abh/dX0Mk2Mwi8OE4bpFLoRbM SiBfyT5IY2H4dRsmcCVUlOs+agpz1lzRfWbrofv/5flpfwOvG63/ZrOQUwq5yPHq+Ylu ODGF4K2PT0xh35EaGZ7vsFaGp0H8Bf7dLFLNdDMZxUlEQtUJd8eCE39xha4RPlxTBDw6 lZxlVi+P9LxyIYKmfBymOyBu9pNIxNA3f//UcfSTxDdheFaeCZecr22jmgYSHMDqUyz9 0egiYEevkgFhgXxC1b6YJCwG91wOJK+SUTPEPDmDIvf4ck5sPQrbJ+BQxuem1ocXFZuB 76Lw== X-Gm-Message-State: ALoCoQleG4jGDs1kYGWzzIc05qssEVN4xlRV1kLtt+s0mLb6lwS2crvQnwieSpBU7ZBjjl6DkPyJ X-Received: by 10.180.186.101 with SMTP id fj5mr301652wic.1.1424260279652; Wed, 18 Feb 2015 03:51:19 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.97 with SMTP id z1ls10360laz.35.gmail; Wed, 18 Feb 2015 03:51:19 -0800 (PST) X-Received: by 10.112.199.39 with SMTP id jh7mr32999943lbc.46.1424260279461; Wed, 18 Feb 2015 03:51:19 -0800 (PST) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id w8si14706254laj.145.2015.02.18.03.51.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 03:51:19 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbiw7 with SMTP id w7so535537lbi.10 for ; Wed, 18 Feb 2015 03:51:19 -0800 (PST) X-Received: by 10.152.26.199 with SMTP id n7mr32829989lag.29.1424260279194; Wed, 18 Feb 2015 03:51:19 -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 h5csp2799938lbj; Wed, 18 Feb 2015 03:51:18 -0800 (PST) X-Received: by 10.68.209.133 with SMTP id mm5mr58500127pbc.54.1424260268301; Wed, 18 Feb 2015 03:51:08 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oa11si21053661pdb.33.2015.02.18.03.51.06; Wed, 18 Feb 2015 03:51:08 -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 S1752436AbbBRLvD (ORCPT + 28 others); Wed, 18 Feb 2015 06:51:03 -0500 Received: from mail-we0-f171.google.com ([74.125.82.171]:34698 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751934AbbBRLtb (ORCPT ); Wed, 18 Feb 2015 06:49:31 -0500 Received: by wesq59 with SMTP id q59so679547wes.1 for ; Wed, 18 Feb 2015 03:49:30 -0800 (PST) X-Received: by 10.194.81.1 with SMTP id v1mr7459534wjx.50.1424260170525; Wed, 18 Feb 2015 03:49:30 -0800 (PST) Received: from localhost.localdomain (host109-148-233-190.range109-148.btcentralplus.com. [109.148.233.190]) by mx.google.com with ESMTPSA id dj5sm32257609wjb.28.2015.02.18.03.49.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Feb 2015 03:49:29 -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 v3 6/8] rtc: bindings: Provide ST bindings for ST's LPC RTC device Date: Wed, 18 Feb 2015 11:49:12 +0000 Message-Id: <1424260154-12868-7-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424260154-12868-1-git-send-email-lee.jones@linaro.org> References: <1424260154-12868-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.217.172 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 = ; + };