From patchwork Wed Mar 29 17:30:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Brandt X-Patchwork-Id: 744888 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-vk0-x23d.google.com (mail-vk0-x23d.google.com [IPv6:2607:f8b0:400c:c05::23d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vtZYc5jTMz9s2Q for ; Thu, 30 Mar 2017 04:31:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="UW13VQ7i"; dkim-atps=neutral Received: by mail-vk0-x23d.google.com with SMTP id d188sf9267438vka.0 for ; Wed, 29 Mar 2017 10:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender: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:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=svLMP7Rl9OJzqiu1HU47rYyCI2+J9j7SnaxEi+PSGzQ=; b=UW13VQ7iVvJ1brwO0occ0fx7oQr0TGHmVS8x0KgniYnonzrYKT0M64e93QDKI4fMUh QPVqBwLof6mhqhtVMXz9GkkTMRmbXreq/Vd4MhGeWoBh+4pDtkQSpwVck4K5NoUoDSwI Y/IDxemdu7xh0iwXe6ujtnzZDBC4WUhAu3VPnqZaPUMps2AVhr63TQNIk43dLSgavdz5 o1JaIcIetEtsrklvocIP2348sQ3RdZr3fD5VqPfDmuQWIH4E4zxFDRYpJkoLAAYcdzI/ hWd3e63c1Nofdwa/bcHhquiYiFwUEc/X0P6B88QyWOFTvXPMWOtaZ9wxP67tjqphV7XN XgpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state: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:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=svLMP7Rl9OJzqiu1HU47rYyCI2+J9j7SnaxEi+PSGzQ=; b=tOd+JIr2rNW8ZbWYa4C8mF2Msw2tHeuUzb1Gn5OBXHYn1mB1LHQJFUeRizgeSDwtLX BQGZu0v0aqHgeuJqq/o5PbRAkCsKBlO4sdxgwBHy0/XCNa1fj0cVM9ZKJnV1VRcTMS/X UjVCZNGQoGf0K+StczpbMX0oaCIvY6hAKQ88FgaSQjQD77yookMSnb8RJ63GrLHULJy9 SxlMJHibR4AewlLX5fU3fx7HCRfTHPUMVIES+2UFs0e5Ue0FoYhrx8VqYDkAm5VNT56u XCGTJONBHZ6I/Hn7ZMOTwNNQ2/p1ZNZ+gCR6F8CLcGfivyMtz8zF0hw5vkjJSKNivvd9 ycGQ== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: AFeK/H1Z2Rte89xriI3dgob6JSKesGkRbJYcm4x+9FVLFkQu51rlO1VGVSUrWLOzqpHcRA== X-Received: by 10.157.6.170 with SMTP id 39mr314143otx.14.1490808673511; Wed, 29 Mar 2017 10:31:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.157.11.211 with SMTP id 77ls7504513oth.27.gmail; Wed, 29 Mar 2017 10:31:13 -0700 (PDT) X-Received: by 10.157.32.136 with SMTP id x8mr574295ota.138.1490808672966; Wed, 29 Mar 2017 10:31:12 -0700 (PDT) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com. [210.160.252.173]) by gmr-mx.google.com with ESMTP id r66si1261433pfb.7.2017.03.29.10.31.12 for ; Wed, 29 Mar 2017 10:31:12 -0700 (PDT) Received-SPF: pass (google.com: domain of chris.brandt@renesas.com designates 210.160.252.173 as permitted sender) client-ip=210.160.252.173; Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie2.idc.renesas.com with ESMTP; 30 Mar 2017 02:31:10 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id EC8E548D13; Thu, 30 Mar 2017 02:31:10 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id DED2128070; Thu, 30 Mar 2017 02:31:10 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id D125C28088; Thu, 30 Mar 2017 02:31:10 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id CAB28101; Thu, 30 Mar 2017 02:31:10 +0900 X-IronPort-AV: E=Sophos;i="5.36,242,1486393200"; d="scan'208";a="238139440" Received: from unknown (HELO rtamta01.rta.renesas.com) ([143.103.48.75]) by relmlii1.idc.renesas.com with ESMTP; 30 Mar 2017 02:31:09 +0900 Received: from localhost.localdomain (unknown [172.27.49.222]) by rtamta01.rta.renesas.com (Postfix) with ESMTP id 56A1AA0; Wed, 29 Mar 2017 17:31:08 +0000 (UTC) From: Chris Brandt To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , Simon Horman , Geert Uytterhoeven Cc: rtc-linux@googlegroups.com, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Chris Brandt Subject: [rtc-linux] [PATCH v3 2/7] dt-bindings: rtc: document the rtc-sh bindings Date: Wed, 29 Mar 2017 10:30:30 -0700 Message-Id: <20170329173035.67477-3-chris.brandt@renesas.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170329173035.67477-1-chris.brandt@renesas.com> References: <20170329173035.67477-1-chris.brandt@renesas.com> X-Original-Sender: chris.brandt@renesas.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of chris.brandt@renesas.com designates 210.160.252.173 as permitted sender) smtp.mailfrom=chris.brandt@renesas.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-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Add the binding documentation for rtc-sh which is an RTC for SuperH and RZ/A SoCs. Signed-off-by: Chris Brandt Acked-by: Rob Herring --- v3: * remove 'power-domains' from example * update commit message subject and body v2: * added interrupt-names and clock-names * clocks now include counting sources * changed 'is a RTC' to 'is an RTC' in commit message --- Documentation/devicetree/bindings/rtc/rtc-sh.txt | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-sh.txt diff --git a/Documentation/devicetree/bindings/rtc/rtc-sh.txt b/Documentation/devicetree/bindings/rtc/rtc-sh.txt new file mode 100644 index 000000000000..7676c7d28874 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/rtc-sh.txt @@ -0,0 +1,28 @@ +* Real Time Clock for Renesas SH and ARM SoCs + +Required properties: +- compatible: Should be "renesas,r7s72100-rtc" and "renesas,sh-rtc" as a + fallback. +- reg: physical base address and length of memory mapped region. +- interrupts: 3 interrupts for alarm, period, and carry. +- interrupt-names: The interrupts should be labeled as "alarm", "period", and + "carry". +- clocks: The functional clock source for the RTC controller must be listed + first (if exists). Additionally, potential clock counting sources are to be + listed. +- clock-names: The functional clock must be labeled as "fck". Other clocks + may be named in accordance to the SoC hardware manuals. + + +Example: +rtc: rtc@fcff1000 { + compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc"; + reg = <0xfcff1000 0x2e>; + interrupts = ; + interrupt-names = "alarm", "period", "carry"; + clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>, + <&rtc_x3_clk>, <&extal_clk>; + clock-names = "fck", "rtc_x1", "rtc_x3", "extal"; +};