From patchwork Tue Mar 24 09:25:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 46225 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EB97E214B0 for ; Tue, 24 Mar 2015 09:26:45 +0000 (UTC) Received: by labgm9 with SMTP id gm9sf31240408lab.1 for ; Tue, 24 Mar 2015 02:26: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=ONj+iaSLP+Qujk4vAK16na40nEKp9MrqNnQAGtq8nQc=; b=aKGLPzslZO+5jRu33uf41RuH0vhDp7ZPc8jSSPg5W3FIuy5QHBEJBNp6h9VVlSnALp 1Z3TjhbmKXgyWszEOXCDFIaROvlBbdQJBPlGIo59+cPLwSYHO2M4cxs5Ehxfn5edVyIu 9mB2nmNGmxekNxfUslrDezLKlF53CKMjPVGuRe29z+Fu9zB7OmtNvsnTXUgE/r8pPa6w 1VD304j46PMoIHY5fD4KkJoT9EU/Hv8mAhz88kPGG1PyxrwvX/h0TKE4sB4bDLE+PXya defZ/vhpOzlS62kUdOgVTOx49RAXYoyt3GwXcNYdhKaTOEDWbOvJZOBtOAne+P4a7yPt ss8A== X-Gm-Message-State: ALoCoQkzgheLeBf4eQ+EJV0IckndEDDjfZ34+jBw8NKtsUKX57696IK8Y46pC5ELR5V7l2qKR7pH X-Received: by 10.180.90.169 with SMTP id bx9mr2855810wib.6.1427189204859; Tue, 24 Mar 2015 02:26:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.225.163 with SMTP id rl3ls236007lac.83.gmail; Tue, 24 Mar 2015 02:26:44 -0700 (PDT) X-Received: by 10.112.205.103 with SMTP id lf7mr2829361lbc.37.1427189204428; Tue, 24 Mar 2015 02:26:44 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id x8si2526337lax.123.2015.03.24.02.26.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2015 02:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lagg8 with SMTP id g8so154574095lag.1 for ; Tue, 24 Mar 2015 02:26:44 -0700 (PDT) X-Received: by 10.152.120.134 with SMTP id lc6mr2923484lab.72.1427189204344; Tue, 24 Mar 2015 02:26:44 -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.57.201 with SMTP id k9csp1329446lbq; Tue, 24 Mar 2015 02:26:43 -0700 (PDT) X-Received: by 10.70.140.67 with SMTP id re3mr6043899pdb.19.1427189202562; Tue, 24 Mar 2015 02:26:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si4904726pat.40.2015.03.24.02.26.41; Tue, 24 Mar 2015 02:26:42 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S1752403AbbCXJ0k (ORCPT + 5 others); Tue, 24 Mar 2015 05:26:40 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:35974 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbbCXJ0B (ORCPT ); Tue, 24 Mar 2015 05:26:01 -0400 Received: by wibg7 with SMTP id g7so69316901wib.1 for ; Tue, 24 Mar 2015 02:26:00 -0700 (PDT) X-Received: by 10.194.177.167 with SMTP id cr7mr5842533wjc.19.1427189160515; Tue, 24 Mar 2015 02:26:00 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.34]) by mx.google.com with ESMTPSA id pm6sm2549370wic.20.2015.03.24.02.25.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Mar 2015 02:25:59 -0700 (PDT) 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 v6 7/9] rtc: bindings: Provide ST bindings for ST's LPC RTC device Date: Tue, 24 Mar 2015 09:25:38 +0000 Message-Id: <1427189140-1935-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427189140-1935-1-git-send-email-lee.jones@linaro.org> References: <1427189140-1935-1-git-send-email-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.53 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 = ; + };