From patchwork Thu Apr 9 14:47:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 46950 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D1D2421416 for ; Thu, 9 Apr 2015 14:48:44 +0000 (UTC) Received: by wiaa2 with SMTP id a2sf17988335wia.1 for ; Thu, 09 Apr 2015 07:48:44 -0700 (PDT) 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=qdJYUXruEN4GBGxG4uqSCDes51UamTFdnHWyM2QTgkc=; b=XJ52fpqeCISFXDCRdoD9oldalM8+PetcfnlwyYXx3Eatm4J+hoDpiJFe4/SbPUd/40 hRy00/Cfy5K/N4u3IUKwAn96OZBgopWe2uLpMUh1NOv0gxlYpnqI7NZ2HSF4rc5eXtfs 0iOe90vAFsZ+Y10CnLrcoSsCRxeaJ8Hs7zk4UYFjksaqE0l1c2Pw8sfTWGFI0k+jqqMx HOA51ln+zHN0r6E4R9l5qQA6UaefsCMPQ33gHdY/BmG5xjmlXoT54RRmOn7k2YiG16/8 ZvqJIhE22Ijg+w/x04b706N792P7YMAouyFHJvqYSHKzMcNHLrv87zOJ/3JHhgHa08Fl cAIA== X-Gm-Message-State: ALoCoQkV15396wNpIRcCis+SF91kxeQC3A5xdYSxOv1ZrXUm/pXlLrC4lV6k4BmK8WUvGWLi88ou X-Received: by 10.194.178.67 with SMTP id cw3mr6024741wjc.2.1428590922792; Thu, 09 Apr 2015 07:48:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.110 with SMTP id bf14ls301216lab.48.gmail; Thu, 09 Apr 2015 07:48:42 -0700 (PDT) X-Received: by 10.152.27.35 with SMTP id q3mr4714602lag.24.1428590922563; Thu, 09 Apr 2015 07:48:42 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id n4si10623866laj.9.2015.04.09.07.48.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 07:48:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcga7 with SMTP id ga7so43328243lbc.1 for ; Thu, 09 Apr 2015 07:48:42 -0700 (PDT) X-Received: by 10.112.160.227 with SMTP id xn3mr27996330lbb.112.1428590922464; Thu, 09 Apr 2015 07:48:42 -0700 (PDT) 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.67.65 with SMTP id l1csp517490lbt; Thu, 9 Apr 2015 07:48:41 -0700 (PDT) X-Received: by 10.70.43.134 with SMTP id w6mr56635486pdl.169.1428590920813; Thu, 09 Apr 2015 07:48:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pc10si21821379pdb.109.2015.04.09.07.48.40 for ; Thu, 09 Apr 2015 07:48:40 -0700 (PDT) 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 S1755603AbbDIOsj (ORCPT ); Thu, 9 Apr 2015 10:48:39 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34622 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755511AbbDIOrx (ORCPT ); Thu, 9 Apr 2015 10:47:53 -0400 Received: by widjs5 with SMTP id js5so56938529wid.1 for ; Thu, 09 Apr 2015 07:47:52 -0700 (PDT) X-Received: by 10.194.203.74 with SMTP id ko10mr28487403wjc.96.1428590872324; Thu, 09 Apr 2015 07:47:52 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.156]) by mx.google.com with ESMTPSA id gt4sm20465371wib.21.2015.04.09.07.47.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Apr 2015 07:47:51 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, a.zummo@towertech.it, david.paris@st.com Subject: [PATCH v7 7/9] rtc: bindings: Provide ST bindings for ST's LPC RTC device Date: Thu, 9 Apr 2015 15:47:32 +0100 Message-Id: <1428590854-14095-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428590854-14095-1-git-send-email-lee.jones@linaro.org> References: <1428590854-14095-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.217.170 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..73407f50 --- /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,stih407-lpc"; + reg = <0xfde05000 0x1000>; + clocks = <&clk_s_d3_flexgen CLK_LPC_0>; + st,lpc-mode = ; + };