From patchwork Thu May 7 13:38:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 469684 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wg0-x23e.google.com (mail-wg0-x23e.google.com [IPv6:2a00:1450:400c:c00::23e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C8FC1402AB for ; Thu, 7 May 2015 23:39:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=Ux9lE6OG; dkim-atps=neutral Received: by wggx12 with SMTP id x12sf13555774wgg.1 for ; Thu, 07 May 2015 06:38:57 -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=Ux9lE6OGoCSAaQ8RqXUxjyZwpVzLEvnqdAAkb7+plRoBmhcBBPKFWoukwN9vE9RMDN Avvik55Fza6bS8/0RbZICOxrkmqb3uF/lad13nf1gi+vxvc/r20rkwKmmyGgVszeRdYz Zzeozf/o78jiZ2V62goIrcco403WZ5D4A/zdiBh6PuI/4YwMGTh/hw7EP7kAXzmf2EMT QakTZjcOwkb8096WpyqLdGXg8hABw6H24vGvHR2or/eDFRY18vDkGSgzruP2Kx2wb8YP 3CiGGzNeP7lFXb6eE5klvwjK80vhFi40fifSAXdcKD6boVK5soLmV9FR6rgI5lyPdfd1 vnLw== 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=fYvQY38v6P6Ku1r7ZZ9q3pESQEvF2r59tA72Z8/YaAL28n6R0XGe7p4AAe7/v08Wfv 0uDbf4WkxCEoWCEgqiRAL8HOTZE/7fDMiSrGr8NEcZVwPz07JTmUbqpYhMBFale90Y03 NZR2zuAswFBWRarqwdTMO3VrRmSTV8tRwf+Az3n0srngw8K0esaqZ4Fyaqxx/NP1yuTX ZQu/Gbf9y8UQ7k+emToLRpQ3lbtlzKHhsAMsy7WNtFMfARSs+POt8kPvvUr74wwVSoTv HzyE9iIAZiOxoHZs5rCfPTBF0izk4bLO9QKNJ6le4Ima6GIqf/eKOJXGX84g4ZfmO9hw WBrw== X-Received: by 10.180.221.236 with SMTP id qh12mr32447wic.5.1431005937799; Thu, 07 May 2015 06:38:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.180.90.235 with SMTP id bz11ls1579462wib.5.canary; Thu, 07 May 2015 06:38:57 -0700 (PDT) X-Received: by 10.180.85.129 with SMTP id h1mr2131444wiz.6.1431005937475; Thu, 07 May 2015 06:38:57 -0700 (PDT) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com. [74.125.82.52]) by gmr-mx.google.com with ESMTPS id g5si270591wix.1.2015.05.07.06.38.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 06:38:57 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 74.125.82.52 as permitted sender) client-ip=74.125.82.52; Received: by mail-wg0-f52.google.com with SMTP id o15so43893984wgy.2 for ; Thu, 07 May 2015 06:38:57 -0700 (PDT) X-Gm-Message-State: ALoCoQmxX0RM+s24QLM3wfaZVuB/669VqhEFguvUYHGSRw9ArQSmqK7RNQcWzjT2MtbNRVIVaCP1 X-Received: by 10.194.5.74 with SMTP id q10mr7627925wjq.27.1431005937379; Thu, 07 May 2015 06:38:57 -0700 (PDT) Received: from localhost.localdomain (host81-129-168-240.range81-129.btcentralplus.com. [81.129.168.240]) by mx.google.com with ESMTPSA id n8sm4039911wiy.19.2015.05.07.06.38.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 May 2015 06:38:56 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, 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, Lee Jones Subject: [rtc-linux] [PATCH 04/12] clocksource: bindings: Provide bindings for ST's LPC Clocksource device Date: Thu, 7 May 2015 14:38:36 +0100 Message-Id: <1431005924-21777-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431005924-21777-1-git-send-email-lee.jones@linaro.org> References: <1431005924-21777-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 74.125.82.52 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 = ; + };