From patchwork Mon Sep 22 15:42:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 392030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-lb0-x23f.google.com (mail-lb0-x23f.google.com [IPv6:2a00:1450:4010:c04::23f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0471114012C for ; Tue, 23 Sep 2014 01:42:57 +1000 (EST) Received: by mail-lb0-f191.google.com with SMTP id p9sf513262lbv.28 for ; Mon, 22 Sep 2014 08:42:54 -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=w0TBrRA/AsL1cCgYRyYcUSOg2goj5nyj2vnteA/QoU8=; b=cOABcrtD1EybNozVO6qfk0vuCqQBIgekDRfxjMHrJh/dqOofCBsgKIs0o7mvQY5Gj5 bE0CU1urX0tt62LKnjeP1rEVyNk8GTVqsOvSzqBNN2cKMUFga8wmRTQ+DaV48q9IoY2i YHtZXLRHmthSYkcMuMFhTtqBs5wU3EBK4rpBX6GJKGErzxJRCcM1HUf0LUZL8Vn+2P+U cTk5LDwzhCxWSDdf59dZIlFFCh+v1hdWoPfwkGrLbA2o6IvMAD4E3pKp7h5FAVMxjbc2 svpPGDjgbYWZdI3aBSXCH0RzmjuXgAfbVtrglu/ITq2phyOZHmvsv1t6agxiLLUkstwm 8gPg== X-Received: by 10.152.26.37 with SMTP id i5mr11339lag.35.1411400574872; Mon, 22 Sep 2014 08:42:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.29.8 with SMTP id f8ls519294lah.85.gmail; Mon, 22 Sep 2014 08:42:54 -0700 (PDT) X-Received: by 10.152.4.4 with SMTP id g4mr4688764lag.2.1411400574354; Mon, 22 Sep 2014 08:42:54 -0700 (PDT) Received: from mail.free-electrons.com (top.free-electrons.com. [176.31.233.9]) by gmr-mx.google.com with ESMTP id go4si532903wib.3.2014.09.22.08.42.54 for ; Mon, 22 Sep 2014 08:42:54 -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 18BB1163A; Mon, 22 Sep 2014 17:42:55 +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 24D5D75E; Mon, 22 Sep 2014 17:42:54 +0200 (CEST) From: Boris BREZILLON To: Nicolas Ferre , Jean-Christophe Plagniol-Villard , Alexandre Belloni , Andrew Victor , Alessandro Zummo , rtc-linux@googlegroups.com, Samuel Ortiz , Lee Jones , 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, Boris BREZILLON Subject: [rtc-linux] [PATCH v6 8/9] rtc: at91sam9: add DT bindings documentation Date: Mon, 22 Sep 2014 17:42:42 +0200 Message-Id: <1411400563-570-9-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411400563-570-1-git-send-email-boris.brezillon@free-electrons.com> References: <1411400563-570-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 Acked-by: Nicolas Ferre --- .../devicetree/bindings/rtc/atmel,at91sam9-rtc.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 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..e94e2ee --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt @@ -0,0 +1,23 @@ +Atmel AT91SAM9260 Real Time Timer + +Required properties: +- compatible: should be: "atmel,at91sam9260-rtt" +- reg: should encode the memory region of the RTT controller +- interrupts: rtt alarm/event interrupt +- clocks: should contain one clock pointing the the slow clk +- atmel,rtt-rtc-time-reg: should encode the GPBR register used to store + the time base when the RTT is used as an RTC. + The first cell should point to the GPBR node and the second one + encode the offset within the GPBR block (or in other words, the + GPBR register used to store the current time value). + + +Example: + +rtt@fffffe00 { + compatible = "atmel,at91sam9260-rtt"; + reg = <0xfffffd20 0x10>; + interrupts = <1 4 7>; + clocks = <&clk32k>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; +};