From patchwork Mon Aug 12 23:28:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11090983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 19DB36C5 for ; Mon, 12 Aug 2019 23:29:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0523D285AB for ; Mon, 12 Aug 2019 23:29:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8238285B3; Mon, 12 Aug 2019 23:29:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D6DA285AB for ; Mon, 12 Aug 2019 23:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yuONo1enepFLwZdxwJKVKU6CvLr0iPdP2Caod19YN5A=; b=NoV6oL6a9wjSyx dpLNl3oSwNyvSSuYEeH21179aoRSMEslXKvT5kUupYW9AFmV0cZiwXwWG69MlG2Vn9gBV+y5th29L CN7EKzseyrZCRSv8603CpkmQnQ4KprQJDWlhV645FfxQ569Ba0+O2aBn3tenl1cnkAJ34RQT54YZG cZsFzsnKMEECZwJZGbM2ZTJFgfHIRl0J3uhaVzAz9PhiYBOQH4+/qRt7C0LNIz42WT1UPMZ3adiSI p8A+5Z2zi0rzV3f8KzkygUKZoHU3x7vKtehi3AY2XcIhAV/pLDfdcuOdHYiTBqLSJum8Z0KHSM1JR sq7P3FGPvC1CGxwVoAog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hxJkX-0003Tt-4k; Mon, 12 Aug 2019 23:29:13 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hxJkF-0003Ci-JN; Mon, 12 Aug 2019 23:28:56 +0000 Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net [71.197.186.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4246220665; Mon, 12 Aug 2019 23:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565652535; bh=o501tcSZ8iwEdK+K1S+CV9iMf5gZNuQYUaXGpk1a0Yk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fhcs+cU9QcwB87J3Vj953PKrW2TYjyRygJOYfxP1LOzTzRG9HBIrZ1QRbnREbUjW9 4PyFx6h+i2MgDMscGpwWA+R5bQk8fpjTv6kEzSW4yh6iP3DLx2NJ705vBuTDjYeZB/ wN6Zefwp4c0kpOMEg9Cql01iPmbuivK+OrXF/2bQ= From: Kevin Hilman To: Alexandre Belloni , linux-rtc@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: rtc: new binding for Amlogic VRTC Date: Mon, 12 Aug 2019 16:28:49 -0700 Message-Id: <20190812232850.8016-2-khilman@kernel.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190812232850.8016-1-khilman@kernel.org> References: <20190812232850.8016-1-khilman@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190812_162855_655756_B1E24F1C X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kevin Hilman Add binding fo the new VRTC driver for Amlogic SoCs. The 64-bit family of SoCs only has an RTC managed by firmware, and this VRTC driver provides the simple, one-register firmware interface. Reviewed-by: Rob Herring Signed-off-by: Kevin Hilman --- .../bindings/rtc/rtc-meson-vrtc.txt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt diff --git a/Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt b/Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt new file mode 100644 index 000000000000..c014f54a9853 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt @@ -0,0 +1,22 @@ +* Amlogic Virtual RTC (VRTC) + +This is a Linux interface to an RTC managed by firmware, hence it's +virtual from a Linux perspective. The interface is 1 register where +an alarm time (in seconds) is to be written. + +Required properties: +- compatible: should be "amlogic,meson-vrtc" +- reg: physical address for the alarm register + +The alarm register is a simple scratch register shared between the +application processors (AP) and the secure co-processor (SCP.) When +the AP suspends, the SCP will use the value of this register to +program an always-on timer before going sleep. When the timer expires, +the SCP will wake up and will then wake the AP. + +Example: + + vrtc: rtc@0a8 { + compatible = "amlogic,meson-vrtc"; + reg = <0x0 0x000a8 0x0 0x4>; + };