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: 422316 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ie0-x237.google.com (mail-ie0-x237.google.com [IPv6:2607:f8b0:4001:c03::237]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 698A814010F for ; Thu, 18 Dec 2014 03:46:02 +1100 (AEDT) Received: by mail-ie0-f183.google.com with SMTP id x19sf2331294ier.0 for ; Wed, 17 Dec 2014 08:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:content-type:precedence:mailing-list:list-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=JRjHjW6XMaN0v4FRPGPPGqTIA6cIJwImWco7U8fSxiI=; b=sVTf1aev897J9z/gyzuqS79qvH1knewFz/nMb1iRV9h+RBzgccaX0pR6l/zAt2+P38 66cMFjIK8/Hx7jKWcQeZcnImjbZ4EY34eNUhjKiRWqzK6uVCM3+ahGksSdO2rvkUsZQP KbcB+OBGyJrQ0693OAzodadJw7Gov2MuJFcPe8zvevNl/i0d6JBYe2HaVsHdfUBBHzur E3fzBTh1lJtOe+GwOAnGBK3l8DBYoynbFF1jcEmbBc5lDxSsL0K7xwMqX5ldHOEBT9Fw 2RCmUwpqabhp5nFbvdRfzkm2UsbBuUarEvvq/RvZzI0XWk8jNdIaOB2D/FqIEZxcKjXs 9eAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=JRjHjW6XMaN0v4FRPGPPGqTIA6cIJwImWco7U8fSxiI=; b=f32FdgkG9fap/d34XngFpaBAXu5IOmnzBjrqTQP8tJrCU6vmDKleun1STSSuHDh7Qu H1ixveUqDomxC8WmdDXNwqIcXBCf0CfsBi7r74z0rzXJOCiUNTimNUvwNNoni1i2N9XU qtxwRkhxX6GD92UbE1XB5himAr7ma3qZwEG7cba6DLab8yjby3yEdjr49F4lFHIbFTbi 53i8+pxY8QhGsrt9Pwps+RFu5mczq/j6Yx4mHOElw3gq7i2WQ7/Lue92nhlwojvVzOsr 3ZacJG8bNLHjbjB7M1G29KeuupKPGdg9zNEk6PTcqF7M+YjYwpCmE0c5jfsSKoDPeXHC /DJg== X-Received: by 10.140.104.33 with SMTP id z30mr35620qge.24.1418834760679; Wed, 17 Dec 2014 08:46:00 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.42.84 with SMTP id b78ls3892701qga.89.gmail; Wed, 17 Dec 2014 08:46:00 -0800 (PST) X-Received: by 10.236.104.233 with SMTP id i69mr35788263yhg.37.1418834760416; Wed, 17 Dec 2014 08:46:00 -0800 (PST) Received: from mail-yk0-f173.google.com (mail-yk0-f173.google.com. [209.85.160.173]) by gmr-mx.google.com with ESMTPS id u27si198570yhu.4.2014.12.17.08.46.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Dec 2014 08:46:00 -0800 (PST) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.160.173 as permitted sender) client-ip=209.85.160.173; Received: by mail-yk0-f173.google.com with SMTP id 19so6997749ykq.18 for ; Wed, 17 Dec 2014 08:46:00 -0800 (PST) X-Gm-Message-State: ALoCoQl6cm13p9oUhSP6JxvqyriS1VjtBKfJ/V9neFwdSsi7DRaVUih7PC1EV2b6h5KSkFGH+ExR 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: [rtc-linux] [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> X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of lee.jones@linaro.org designates 209.85.160.173 as permitted sender) smtp.mail=lee.jones@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 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 = ; + };