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: 48354 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1CF632121F for ; Tue, 12 May 2015 13:00:06 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf1679468wgi.3 for ; Tue, 12 May 2015 06:00:05 -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=2mggcssuD4jmM64SzFgr3McZvDWS8AhEReEbqMtRFz8=; b=Dp2StCJBMvHH1mZY9ZtAsi8ifUvX9N9NGH1T4IFcWauZ67NyzTeYtprxmijpDoaJb7 IEdULNJTE50okNFj+mB2yvZoMqAdpZpokoK5HP3pXUrC0Ail9v0PIKyN8WyhxB4bh7t/ fKJEYPR1KFQ5hGWCNjJKoXPYnB+ehdd4w/TvG84G4tMkznaGNLjF6CVNYqsIWVD84xP3 +S+d6QVmFQ7qsxaXKY8zFyk/6yqAukDmw0vlg9su3nVKDnorZG3NZui2tsH8xLI6rOyx I+2vdfRMy8y7RZ+JIR5/ISS6CR62ch+179wiP+ipnfHY4pBxriw+YZt0cMF3GrunwQJE RD9g== X-Gm-Message-State: ALoCoQmuwUu2WdyGHLk518rGcvPQZP5ELg/Bc0i12/7mSXlM8E5c5g+cbG6mciiKRSj9Guf5qySi X-Received: by 10.112.171.41 with SMTP id ar9mr10591967lbc.24.1431435605441; Tue, 12 May 2015 06:00:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.72 with SMTP id b8ls29915laf.81.gmail; Tue, 12 May 2015 06:00:05 -0700 (PDT) X-Received: by 10.112.78.105 with SMTP id a9mr11914429lbx.70.1431435605134; Tue, 12 May 2015 06:00:05 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id yd8si10327171lbb.82.2015.05.12.06.00.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 06:00:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lagv1 with SMTP id v1so5053406lag.3 for ; Tue, 12 May 2015 06:00:05 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr12019483lbc.86.1431435605036; Tue, 12 May 2015 06:00:05 -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.108.230 with SMTP id hn6csp2075597lbb; Tue, 12 May 2015 06:00:03 -0700 (PDT) X-Received: by 10.66.119.174 with SMTP id kv14mr13956689pab.5.1431435600673; Tue, 12 May 2015 06:00:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lc15si22464279pab.25.2015.05.12.05.59.59 for ; Tue, 12 May 2015 06:00:00 -0700 (PDT) Received-SPF: none (google.com: linux-watchdog-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 S932711AbbELM6g (ORCPT ); Tue, 12 May 2015 08:58:36 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:35925 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933165AbbELM6c (ORCPT ); Tue, 12 May 2015 08:58:32 -0400 Received: by wggj6 with SMTP id j6so8738910wgg.3 for ; Tue, 12 May 2015 05:58:31 -0700 (PDT) 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: [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> Sender: linux-watchdog-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-watchdog@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.50 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 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 = ; + };