From patchwork Tue Mar 11 22:40:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 26066 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7EC0D20068 for ; Tue, 11 Mar 2014 22:45:07 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id hl1sf22246600igb.0 for ; Tue, 11 Mar 2014 15:45:07 -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=seJl1UGExjjquzDiaD6fenxJ1UM72YiBnZw83ZFV8Z4=; b=UzCJcijs5BPtCcpptqb3HOH0YFrYNOw6cIr81XYgj4m8O5B7PJ3rFcaO4apK9tDdnY 3sy1Di3ffEyX7eeaokHCsv3hTJEUnhuE8gi06qpl/HkXrG1RqPjJSRW7gTF41Glp0H2p I+G8dZdUKNIhx1WvyBDkeuEssdlxIQUVw9e2OPcD2brdV+1bqZZKnAroOzdKAkNESK7U r0aWwdHan0uVfb57w1irHHAatVOp7AKOArq45F28lcJV/pa4GZBfMOyLFKeyRcfIdiUh HiLELbLk+iGiMAjw4Osb+R47RYyweXYpr0TLJvReNVyPJ31C/ZwA06t7nlzItWKq+eLC H+yA== X-Gm-Message-State: ALoCoQnTWCaFah6YBLhnoD6mrZAWyrHnIYXqtiMCRXMvUcAs+u4yFggyLASBiTHWgR2V2RgMIK74 X-Received: by 10.43.103.136 with SMTP id di8mr15314005icc.14.1394577906978; Tue, 11 Mar 2014 15:45:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.33 with SMTP id 30ls2757450qgs.22.gmail; Tue, 11 Mar 2014 15:45:06 -0700 (PDT) X-Received: by 10.58.128.72 with SMTP id nm8mr29860454veb.18.1394577906814; Tue, 11 Mar 2014 15:45:06 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id k2si6214787vcj.30.2014.03.11.15.45.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:45:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id lc6so8779889vcb.35 for ; Tue, 11 Mar 2014 15:45:06 -0700 (PDT) X-Received: by 10.52.126.107 with SMTP id mx11mr61112vdb.41.1394577906721; Tue, 11 Mar 2014 15:45:06 -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.220.78.9 with SMTP id i9csp238985vck; Tue, 11 Mar 2014 15:45:06 -0700 (PDT) X-Received: by 10.68.132.130 with SMTP id ou2mr762599pbb.107.1394577905503; Tue, 11 Mar 2014 15:45:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ub8si358933pac.68.2014.03.11.15.45.04; Tue, 11 Mar 2014 15:45:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756194AbaCKWo5 (ORCPT + 26 others); Tue, 11 Mar 2014 18:44:57 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:36562 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755978AbaCKWk7 (ORCPT ); Tue, 11 Mar 2014 18:40:59 -0400 Received: by mail-wg0-f42.google.com with SMTP id y10so10599878wgg.1 for ; Tue, 11 Mar 2014 15:40:58 -0700 (PDT) X-Received: by 10.180.103.134 with SMTP id fw6mr4835259wib.8.1394577658190; Tue, 11 Mar 2014 15:40:58 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-526-136.w109-220.abo.wanadoo.fr. [109.220.245.136]) by mx.google.com with ESMTPSA id n3sm10411631wix.10.2014.03.11.15.40.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:40:57 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, dan.carpenter@oracle.com, ezequiel.garcia@free-electrons.com, ivan.khoronzhuk@ti.com, linus.walleij@linaro.org, magnus.damm@gmail.com, matthias.bgg@gmail.com, soren.brinkmann@xilinx.com, sboyd@codeaurora.org Subject: [PATCH 05/17] clocksource: keystone: add bindings for keystone timer Date: Tue, 11 Mar 2014 23:40:41 +0100 Message-Id: <1394577653-8615-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394577653-8615-1-git-send-email-daniel.lezcano@linaro.org> References: <531F8FAC.2040902@linaro.org> <1394577653-8615-1-git-send-email-daniel.lezcano@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: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , From: Ivan Khoronzhuk This patch provides bindings for the 64-bit timer in the KeyStone architecture devices. The timer can be configured as a general-purpose 64-bit timer, dual general-purpose 32-bit timers. When configured as dual 32-bit timers, each half can operate in conjunction (chain mode) or independently (unchained mode) of each other. It is global timer is a free running up-counter and can generate interrupt when the counter reaches preset counter values. Documentation: http://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf Acked-by: Rob Herring Acked-by: Santosh Shilimkar Signed-off-by: Ivan Khoronzhuk Signed-off-by: Daniel Lezcano --- .../bindings/timer/ti,keystone-timer.txt | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/ti,keystone-timer.txt diff --git a/Documentation/devicetree/bindings/timer/ti,keystone-timer.txt b/Documentation/devicetree/bindings/timer/ti,keystone-timer.txt new file mode 100644 index 0000000..5fbe361 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/ti,keystone-timer.txt @@ -0,0 +1,29 @@ +* Device tree bindings for Texas instruments Keystone timer + +This document provides bindings for the 64-bit timer in the KeyStone +architecture devices. The timer can be configured as a general-purpose 64-bit +timer, dual general-purpose 32-bit timers. When configured as dual 32-bit +timers, each half can operate in conjunction (chain mode) or independently +(unchained mode) of each other. + +It is global timer is a free running up-counter and can generate interrupt +when the counter reaches preset counter values. + +Documentation: +http://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf + +Required properties: + +- compatible : should be "ti,keystone-timer". +- reg : specifies base physical address and count of the registers. +- interrupts : interrupt generated by the timer. +- clocks : the clock feeding the timer clock. + +Example: + +timer@22f0000 { + compatible = "ti,keystone-timer"; + reg = <0x022f0000 0x80>; + interrupts = ; + clocks = <&clktimer15>; +};