From patchwork Wed Dec 17 16:45:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 42392 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 70CCB26C8B for ; Wed, 17 Dec 2014 16:46:52 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id hs14sf10316456lab.9 for ; Wed, 17 Dec 2014 08:46:51 -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=fcwHINKR5ikEXlQmiVMNREXh0w6ZLSbJoRKm11BqWMDNvdQpGqzHRIAEGh8vqyiXGP PeVUdk5S7aTubtUOhEd5E27QdF3QMUitNSHw0uLig5wXBBpqjLI5qjhJlyowmpp8Nh3E +OJ3NtIfUJHjBQa+mYS9XIAjHDdIOFcSe9fA40Fv5SHH+cGOibjdC42/Xfhbxfeu5ygY dE4pI2S+xcmouXssms+vodLiIz+OgS+GPNPR9LIfI4uTF//LleaSjZTZ4RONa9c0Wtyr H6xlK+o6H2O9OARBhtgkkP0/y+RsYz0lQHrbjbfC1v1VlJtXqe2Xtp3G04qvJKphjkJd hP9A== X-Gm-Message-State: ALoCoQmKDZfkkB//FdMyYqgt+xj+fSIkgvjzHWkMQ5fiEpM9ZB2L9b6xQ8u+7AAv5CJLvkuIAn5M X-Received: by 10.180.7.226 with SMTP id m2mr1493017wia.5.1418834811382; Wed, 17 Dec 2014 08:46:51 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.136 with SMTP id m8ls875871laf.67.gmail; Wed, 17 Dec 2014 08:46:51 -0800 (PST) X-Received: by 10.152.22.199 with SMTP id g7mr42392477laf.23.1418834811155; Wed, 17 Dec 2014 08:46:51 -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 df8si4431858lac.23.2014.12.17.08.46.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Dec 2014 08:46:51 -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 mail-lb0-f172.google.com with SMTP id u10so13211197lbd.3 for ; Wed, 17 Dec 2014 08:46:51 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr42344208lal.29.1418834811054; Wed, 17 Dec 2014 08:46:51 -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.142.69 with SMTP id ru5csp1422266lbb; Wed, 17 Dec 2014 08:46:50 -0800 (PST) X-Received: by 10.68.197.72 with SMTP id is8mr44275023pbc.17.1418834809027; Wed, 17 Dec 2014 08:46:49 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tl7si6235826pbc.203.2014.12.17.08.46.48; Wed, 17 Dec 2014 08:46:49 -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 S1751504AbaLQQqf (ORCPT + 27 others); Wed, 17 Dec 2014 11:46:35 -0500 Received: from mail-yk0-f175.google.com ([209.85.160.175]:55695 "EHLO mail-yk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbaLQQqB (ORCPT ); Wed, 17 Dec 2014 11:46:01 -0500 Received: by mail-yk0-f175.google.com with SMTP id 200so7006918ykr.34 for ; Wed, 17 Dec 2014 08:46:00 -0800 (PST) X-Received: by 10.236.26.179 with SMTP id c39mr15849573yha.129.1418834760317; Wed, 17 Dec 2014 08:46:00 -0800 (PST) Received: from localhost.localdomain (host109-148-232-11.range109-148.btcentralplus.com. [109.148.232.11]) by mx.google.com with ESMTPSA id t3sm2460839yhp.19.2014.12.17.08.45.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Dec 2014 08:45:59 -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, a.zummo@towertech.it, rtc-linux@googlegroups.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, arnd@arndb.de Subject: [PATCH 7/8] rtc: bindings: Provide ST bindings for ST's LPC RTC device Date: Wed, 17 Dec 2014 16:45:26 +0000 Message-Id: <1418834727-1602-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418834727-1602-1-git-send-email-lee.jones@linaro.org> References: <1418834727-1602-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 = ; + };