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: 171138 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp155126ily; Mon, 12 Aug 2019 16:28:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ9+25hZYwIJB3kHmCeURnIOQbqmQSxPDKlyTi3sP+SxImtjsPNSagUDkEW9GJMYxNU5ey X-Received: by 2002:a17:90a:17c4:: with SMTP id q62mr1579037pja.104.1565652537264; Mon, 12 Aug 2019 16:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565652537; cv=none; d=google.com; s=arc-20160816; b=oXPx/qbJ8kRqae44WnJO8QtU9DM+71ETfFMYsHSZLSBj/bzQJGaShCZS9pIZY5VZtr NNfHV+NF4DgEKPcdfyfaC3yk6R0cm9dMn/IqwsF3oU11xXTJwU6hGf8tVCsBdW4HtwYi cogrfWyNUe2U3yG3CnH+1cQLMnvwS4Wy5CANjCgVc8AiMk7gdlWu5Wx4ZbJbXS+25zQV 8jXzGD4EjcoPEcIJKJFDF1h6fhHLPVYFimCflmjuaRRSdGYv/TcDchFvGrBw6itgbBXO zlBIjdNRvs3PK8ZTWwpe2UvF2CuJPo0BV18x4s2Sz5j3IsIXQ4EgZnyKoibR9Zmx0DZl 6CWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XzEGbzEmita+DXCkrbItCIBcB/DYrIF/tf1+4Ixwpp4=; b=jCkQf8LeoX/jb+GoARtZNhmHFgGKKDXuTRJV1pR6fc6Dleo32Av/0OBY8e+CKY0oQ/ b9fiPsjFloqbxjSwsHAU+7hFwfc+dZpISq4U2u17wNhcMRoncT/sqT63oOVo4aRADLWn xBCdux92iy/ildW/5JKpfXeGt0x9IEjR71ii6X1AjCj1Qwvubj5yJO1CKg7qkE7hLl2/ dqEpSPoXsEqc69tzvO9UfpKSwO4z1LwwpBuyMsdURqWiGiTcntly569VjL8tL2lsb6jH 46muOHFtIxLNMevBXLDSsBcy0x6M0/+RTIKAa40yHl/4Ikk13LGnN7pwPBVjNTMy1bV+ GGdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fhcs+cU9; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si6748918pgg.188.2019.08.12.16.28.57; Mon, 12 Aug 2019 16:28:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fhcs+cU9; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbfHLX24 (ORCPT + 8 others); Mon, 12 Aug 2019 19:28:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:60012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbfHLX24 (ORCPT ); Mon, 12 Aug 2019 19:28:56 -0400 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 Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong , devicetree@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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.22.0 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>; + };