From patchwork Mon Apr 21 07:19:58 2014
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Xiubo Li
X-Patchwork-Id: 4023011
Return-Path:
X-Original-To: patchwork-linux-arm@patchwork.kernel.org
Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org
Received: from mail.kernel.org (mail.kernel.org [198.145.19.201])
by patchwork1.web.kernel.org (Postfix) with ESMTP id 0752F9F44A
for ;
Mon, 21 Apr 2014 08:08:02 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id 3234B202BE
for ;
Mon, 21 Apr 2014 08:08:01 +0000 (UTC)
Received: from bombadil.infradead.org (bombadil.infradead.org
[198.137.202.9])
(using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by mail.kernel.org (Postfix) with ESMTPS id 5CE89200EC
for ;
Mon, 21 Apr 2014 08:08:00 +0000 (UTC)
Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))
id 1Wc9D6-0008FW-0I; Mon, 21 Apr 2014 08:04:16 +0000
Received: from mail-bn1blp0184.outbound.protection.outlook.com
([207.46.163.184] helo=na01-bn1-obe.outbound.protection.outlook.com)
by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat
Linux)) id 1Wc9Cx-0008E1-PG
for linux-arm-kernel@lists.infradead.org;
Mon, 21 Apr 2014 08:04:08 +0000
Received: from BL2PR03CA019.namprd03.prod.outlook.com (10.141.66.27) by
BL2PR03MB180.namprd03.prod.outlook.com (10.255.230.156) with
Microsoft SMTP
Server (TLS) id 15.0.921.12; Mon, 21 Apr 2014 08:03:45 +0000
Received: from BY2FFO11FD014.protection.gbl (2a01:111:f400:7c0c::118) by
BL2PR03CA019.outlook.office365.com (2a01:111:e400:c1b::27) with
Microsoft SMTP Server (TLS) id 15.0.921.12 via Frontend Transport;
Mon, 21 Apr 2014 08:03:45 +0000
Received: from az84smr01.freescale.net (192.88.158.246) by
BY2FFO11FD014.mail.protection.outlook.com (10.1.14.76) with Microsoft
SMTP Server (TLS) id 15.0.929.8 via Frontend Transport;
Mon, 21 Apr 2014 08:03:44 +0000
Received: from rock.ap.freescale.net (rock.ap.freescale.net [10.193.20.106])
by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id
s3L83ZWZ029945; Mon, 21 Apr 2014 01:03:41 -0700
From: Xiubo Li
To: , , ,
, ,
Subject: [PATCH 1/3] clocksource: ftm: Add FlexTimer Module (FTM) Timer
devicetree Documentation
Date: Mon, 21 Apr 2014 15:19:58 +0800
Message-ID: <1398064800-27250-2-git-send-email-Li.Xiubo@freescale.com>
X-Mailer: git-send-email 1.8.0
In-Reply-To: <1398064800-27250-1-git-send-email-Li.Xiubo@freescale.com>
References: <1398064800-27250-1-git-send-email-Li.Xiubo@freescale.com>
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:192.88.158.246; CTRY:US; IPV:NLI; EFV:NLI;
SFV:NSPM;
SFS:(10009001)(6009001)(428001)(189002)(199002)(76176999)(77096999)(99396002)(50466002)(79102001)(50986999)(62966002)(36756003)(19580405001)(83322001)(19580395003)(48376002)(80022001)(44976005)(77982001)(77156001)(6806004)(20776003)(80976001)(47776003)(87286001)(81542001)(81342001)(89996001)(74502001)(31966008)(74662001)(87936001)(50226001)(76482001)(83072002)(85852003)(2201001)(92566001)(86362001)(46102001)(4396001)(92726001);
DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB180; H:az84smr01.freescale.net;
FPR:FA21FBFE.2D14D461.AF99F33.80DEF24B.2024A; MLV:sfv;
PTR:gate-az5.freescale.com; MX:1; A:1; LANG:en;
MIME-Version: 1.0
X-Forefront-PRVS: 0188D66E61
Received-SPF: None (: freescale.com does not designate permitted sender
hosts)
X-OriginatorOrg: freescale.com
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20140421_010407_994822_BC790235
X-CRM114-Status: GOOD ( 10.28 )
X-Spam-Score: -0.0 (/)
Cc: devicetree@vger.kernel.org, Xiubo Li ,
linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-doc@vger.kernel.org
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id:
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe:
,
Sender: "linux-arm-kernel"
Errors-To:
linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org
X-Virus-Scanned: ClamAV using ClamSMTP
The FTM binding could be used on Vybrid and LS1+, add a binding
document for it.
Signed-off-by: Xiubo Li
Cc: Shawn Guo
Cc: Jingchang Lu
---
.../devicetree/bindings/timer/fsl,ftm-timer.txt | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 Documentation/devicetree/bindings/timer/fsl,ftm-timer.txt
diff --git a/Documentation/devicetree/bindings/timer/fsl,ftm-timer.txt b/Documentation/devicetree/bindings/timer/fsl,ftm-timer.txt
new file mode 100644
index 0000000..aa8c402
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/fsl,ftm-timer.txt
@@ -0,0 +1,31 @@
+Freescale FlexTimer Module (FTM) Timer
+
+Required properties:
+
+- compatible : should be "fsl,ftm-timer"
+- reg : Specifies base physical address and size of the register sets for the
+ clock event device and clock source device.
+- interrupts : Should be the clock event device interrupt.
+- clocks : The clocks provided by the SoC to drive the timer, must contain an
+ entry for each entry in clock-names.
+- clock-names : Must include the following entries:
+ o "ftm-evt"
+ o "ftm-src"
+ o "ftm-evt-counter-en"
+ o "ftm-src-counter-en"
+- big-endian: One boolean property, the big endian mode will be in use if it is
+ present, or the little endian mode will be in use for all the device registers.
+
+Example:
+ftm: ftm@400b8000 {
+ compatible = "fsl,ftm-timer";
+ reg = <0x400b8000 0x1000 0x400b9000 0x1000>;
+ interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>;
+ clock-names = "ftm-evt", "ftm-src",
+ "ftm-evt-counter-en", "ftm-src-counter-en";
+ clocks = <&clks VF610_CLK_FTM2>,
+ <&clks VF610_CLK_FTM3>,
+ <&clks VF610_CLK_FTM2_EXT_FIX_EN>,
+ <&clks VF610_CLK_FTM3_EXT_FIX_EN>;
+ big-endian;
+};