From patchwork Thu Sep 11 08:56:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 388163 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-we0-x23c.google.com (mail-we0-x23c.google.com [IPv6:2a00:1450:400c:c03::23c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BEBF41400E9 for ; Thu, 11 Sep 2014 18:56:21 +1000 (EST) Received: by mail-we0-f188.google.com with SMTP id u56sf597110wes.25 for ; Thu, 11 Sep 2014 01:56:18 -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:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=yuenE+6k1CzFIfknEn4f5OkmX1Er8lD1Yr6T6UmqLC0=; b=mP2YusXXbPc3MAVJ1mwiMb7tfzljt7clMVFC1BoufmiKukLuodCgU3m83fFsnX28Qy XazaMt71Ng1rRKeI0AzdvnyY72UKs7AvfCA86ADRTYwjqMExtJpxFxCaZlrfbgHh+IT/ LEzDso27E4t02sij7YPiikqm4FU2dRdjTu4Ej0OkuCzT107d0NdSkwRCDH4Glcv4jWmi xgzEPXyo9biGp+RGLRRMwdrHxNZicQGhA1QL73CMA29OUWzQUllkAWYhxwzk1UEL0w/6 oQeZZnVHrF7d15g0YSpUz6uTwJtrB7Kayez6vCj8q3y8HJkNmCjgEEa4ETrDvlzG9ebl TDog== X-Received: by 10.152.8.165 with SMTP id s5mr7051laa.24.1410425778663; Thu, 11 Sep 2014 01:56:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.161.230 with SMTP id xv6ls38347lab.34.gmail; Thu, 11 Sep 2014 01:56:18 -0700 (PDT) X-Received: by 10.112.50.47 with SMTP id z15mr84372lbn.19.1410425778078; Thu, 11 Sep 2014 01:56:18 -0700 (PDT) Received: from mail.free-electrons.com (top.free-electrons.com. [176.31.233.9]) by gmr-mx.google.com with ESMTP id gg11si250364wic.0.2014.09.11.01.56.18 for ; Thu, 11 Sep 2014 01:56:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning boris.brezillon@free-electrons.com does not designate 176.31.233.9 as permitted sender) client-ip=176.31.233.9; Received: by mail.free-electrons.com (Postfix, from userid 106) id D3A05756; Thu, 11 Sep 2014 10:56:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (col31-4-88-188-83-94.fbx.proxad.net [88.188.83.94]) by mail.free-electrons.com (Postfix) with ESMTPSA id E52377DB; Thu, 11 Sep 2014 10:56:18 +0200 (CEST) From: Boris BREZILLON To: Nicolas Ferre , Jean-Christophe Plagniol-Villard , Alexandre Belloni , Andrew Victor , Alessandro Zummo , rtc-linux@googlegroups.com, Johan Hovold Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Douglas Gilbert , Boris BREZILLON Subject: [rtc-linux] [PATCH v3 8/8] rtc: at91sam9: add DT bindings documentation Date: Thu, 11 Sep 2014 10:56:07 +0200 Message-Id: <1410425767-17874-9-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1410425767-17874-1-git-send-email-boris.brezillon@free-electrons.com> References: <1410425767-17874-1-git-send-email-boris.brezillon@free-electrons.com> X-Original-Sender: boris.brezillon@free-electrons.com X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning boris.brezillon@free-electrons.com does not designate 176.31.233.9 as permitted sender) smtp.mail=boris.brezillon@free-electrons.com 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: , Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/rtc/atmel,at91sam9-rtc.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt new file mode 100644 index 0000000..258a036 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt @@ -0,0 +1,24 @@ +Atmel AT91SAM9260 Real Time Timer + +Required properties: +- compatible: should be: "atmel,at91sam9260-rtt" +- reg: should encode the memory region of the RTT controller +- interrupts: rtc alarm/event interrupt +- clocks: should contain one clock pointing the the slow clk +- atmel,time-reg: should encode the GPBR register used to store the RTC + time. The first cell should point to the GPBR node and + the second one encode the offset within the GPBR block + (or in other terms, the GPBR register used to store the + current time value). + + + +Example: + +rtc@fffffe00 { + compatible = "atmel,at91sam9260-rtt"; + reg = <0xfffffd20 0x10>; + interrupts = <1 4 7>; + clocks = <&clk32k>; + atmel,time-reg = <&gpbr 0x0>; +};