From patchwork Wed Feb 25 13:52:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 45061 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 721762142A for ; Wed, 25 Feb 2015 13:53:19 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf3028277lbv.1 for ; Wed, 25 Feb 2015 05:53:18 -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=inSy6mGPyXStl54VDC8jlEg/ZTXUuf/5TRF4GGHkGNCy5l7FiD34F2i8fxaUlQHjiL q1kGAZpHLhtqqM1xeB/GFkprRVRb85lOm8fIq+kZHStYsHOUnKwPL+fgrSsMoJnP61SV Tm75CTt16fApxCOaVRtaiXY++5V7KSkeyo8A4x6y9bBvifmdFlw8PJaOLhRcnvordnvz awFZZDufGaCBd815+rRKiVewCYCxqXu4nr7qzRW1dZulkFLYVbkTgLT2X+93xJ9vxpit yYRdq2s2e4ekrlR7k7TzHH3Okb2h6fBNx4Lin+/qj3LV/gMKiqvk+T76w9hpWn5AQAZR AIzA== X-Gm-Message-State: ALoCoQmq77G9/C7j0cfroLzP1UhBZPFeG/ZzUR5AIOolUvJ9PqDdQFFca6uVIqRbKXUVpscBg1gt X-Received: by 10.180.94.134 with SMTP id dc6mr2915724wib.2.1424872398096; Wed, 25 Feb 2015 05:53:18 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.181.137 with SMTP id dw9ls44025lac.85.gmail; Wed, 25 Feb 2015 05:53:17 -0800 (PST) X-Received: by 10.152.19.9 with SMTP id a9mr2931062lae.80.1424872397864; Wed, 25 Feb 2015 05:53:17 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id er13si30881994lbc.43.2015.02.25.05.53.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 05:53:17 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by labhv19 with SMTP id hv19so3928245lab.10 for ; Wed, 25 Feb 2015 05:53:17 -0800 (PST) X-Received: by 10.152.28.5 with SMTP id x5mr2811033lag.112.1424872397739; Wed, 25 Feb 2015 05:53:17 -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 h5csp2630893lbj; Wed, 25 Feb 2015 05:53:16 -0800 (PST) X-Received: by 10.68.69.6 with SMTP id a6mr5715359pbu.82.1424872394372; Wed, 25 Feb 2015 05:53:14 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hw2si47077339pbb.188.2015.02.25.05.53.13; Wed, 25 Feb 2015 05:53:14 -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 S1753073AbbBYNw5 (ORCPT + 28 others); Wed, 25 Feb 2015 08:52:57 -0500 Received: from mail-we0-f181.google.com ([74.125.82.181]:34995 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752997AbbBYNwy (ORCPT ); Wed, 25 Feb 2015 08:52:54 -0500 Received: by wevl61 with SMTP id l61so3773077wev.2 for ; Wed, 25 Feb 2015 05:52:52 -0800 (PST) X-Received: by 10.194.235.71 with SMTP id uk7mr6403939wjc.13.1424872372684; Wed, 25 Feb 2015 05:52:52 -0800 (PST) Received: from localhost.localdomain (host109-148-232-70.range109-148.btcentralplus.com. [109.148.232.70]) by mx.google.com with ESMTPSA id v7sm64937727wju.22.2015.02.25.05.52.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 05:52:51 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, 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 Cc: lee.jones@linaro.org, kernel@stlinux.com Subject: [PATCH v4 7/9] rtc: bindings: Provide ST bindings for ST's LPC RTC device Date: Wed, 25 Feb 2015 13:52:27 +0000 Message-Id: <1424872349-4155-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424872349-4155-1-git-send-email-lee.jones@linaro.org> References: <1424872349-4155-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.43 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 = ; + };