From patchwork Tue May 12 12:58:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 471322 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wi0-x239.google.com (mail-wi0-x239.google.com [IPv6:2a00:1450:400c:c05::239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B67F6140D23 for ; Tue, 12 May 2015 22:58:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=E+jpwPYa; dkim-atps=neutral Received: by wibbw19 with SMTP id bw19sf2841505wib.0 for ; Tue, 12 May 2015 05:58:31 -0700 (PDT) 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=AP6Ln6wBp9jf+h1WpkgDrWrknsZrLFDYxjhbDTBGA3I=; b=E+jpwPYaSmPABN//ttyuN9JRwUeZr9lJJfnJm6RExiP+r94Q+ClBmXoSc9wXGuTkPp Asf4JJw83qOsP7zw4P0QE3VG3V/Jwg1WxLpRPFH+QRVFTZ4nsUmi7WYo43s4eE33tLd4 S2F8MnGd3q/55NQyIOgOq1dLFXblWwYuolxW09Rs35NrNDrsqidyuAuAsnHS/tgc1pnq 61o1VOOUlgzRWx5yXfN7C068BPJmKpoCaCR2lmkjR9/1CQi7GfjxlhsXEnpC4uTJBC3U UybDHyleYzQaa/iW+mmUODDHrRqJ0vVN0kUmozAyD6cQQVAnnUdot0cXG+30l5MOSm8v rjcg== 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=AP6Ln6wBp9jf+h1WpkgDrWrknsZrLFDYxjhbDTBGA3I=; b=DyJrpXddRIPzgywYGTi/FfRAppME+1zxnIw6ssVwDnneg1dD/DQrniJudoRD8iI67n Mz7FfDoW6+ApFI4RvMeOkQTvUOcXBJku6Xt4C69igFkZF7VPYkkenXB8q2OY3d25Ofsq +GuwVpXbI3jBLOSPELXdWC+yh62kwaMVP944LB7CvNpKEHhS8fmjsxLNUBMj/ulF7CY/ vztCpD3hA+kt/2QfI2L0o9hXTnFgNBcc+DR9khaj1ECUbRGdE6HnP7sx64gV6wMEaDsN olaXoOWpScpZjuHbkcZZS7uEka/qMroZztCdFp92dweRZetwZR5F4KCaDFIk0JJXl0Te sQMg== X-Received: by 10.152.45.7 with SMTP id i7mr183071lam.15.1431435511629; Tue, 12 May 2015 05:58:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.229.129 with SMTP id sq1ls31451lac.4.gmail; Tue, 12 May 2015 05:58:31 -0700 (PDT) X-Received: by 10.152.37.101 with SMTP id x5mr10579735laj.5.1431435511215; Tue, 12 May 2015 05:58:31 -0700 (PDT) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com. [209.85.212.174]) by gmr-mx.google.com with ESMTPS id p9si88234wiz.3.2015.05.12.05.58.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 05:58:31 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; Received: by mail-wi0-f174.google.com with SMTP id mc15so53471378wic.1 for ; Tue, 12 May 2015 05:58:31 -0700 (PDT) X-Gm-Message-State: ALoCoQkkNca888+tUk/UkdpVqSMdCa9i0MDMAMO8aRPwOtReGwZ2Tm7Wpe+23iIdKtxAadc3y7ys X-Received: by 10.180.82.97 with SMTP id h1mr5111242wiy.26.1431435511088; Tue, 12 May 2015 05:58:31 -0700 (PDT) Received: from localhost.localdomain (host81-129-169-99.range81-129.btcentralplus.com. [81.129.169.99]) by mx.google.com with ESMTPSA id k2sm2783057wix.4.2015.05.12.05.58.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 May 2015 05:58:30 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de, wim@iguana.be, a.zummo@towertech.it, linux-watchdog@vger.kernel.org, rtc-linux@googlegroups.com, linux@roeck-us.net Cc: kernel@stlinux.com, Lee Jones Subject: [rtc-linux] [PATCH v2 04/12] clocksource: bindings: Provide bindings for ST's LPC Clocksource device Date: Tue, 12 May 2015 13:58:12 +0100 Message-Id: <1431435500-22899-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431435500-22899-1-git-send-email-lee.jones@linaro.org> References: <1431435500-22899-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.212.174 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 Clocksource mode. Signed-off-by: Lee Jones --- .../devicetree/bindings/timer/st,stih407-lpc | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/st,stih407-lpc diff --git a/Documentation/devicetree/bindings/timer/st,stih407-lpc b/Documentation/devicetree/bindings/timer/st,stih407-lpc new file mode 100644 index 0000000..72acb48 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/st,stih407-lpc @@ -0,0 +1,28 @@ +STMicroelectronics Low Power Controller (LPC) - Clocksource +=========================================================== + +LPC currently supports Watchdog OR Real Time Clock OR Clocksource +functionality. + +[See: ../watchdog/st_lpc_wdt.txt for Watchdog options] +[See: ../rtc/rtc-st-lpc.txt for RTC options] + +Required properties + +- compatible : Must be: "st,stih407-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 three modes: + ST_LPC_MODE_RTC [0] + ST_LPC_MODE_WDT [1] + ST_LPC_MODE_CLKSRC [2] + 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 = ; + };