From patchwork Mon Aug 8 10:05:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenyou Yang X-Patchwork-Id: 9267687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E24136075A for ; Mon, 8 Aug 2016 10:21:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1DBA26E8A for ; Mon, 8 Aug 2016 10:21:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6C1127DCE; Mon, 8 Aug 2016 10:21:23 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 578D326E8A for ; Mon, 8 Aug 2016 10:21:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWhf4-0007n9-M7; Mon, 08 Aug 2016 10:19:58 +0000 Received: from nasmtp01.atmel.com ([192.199.1.245] helo=ussmtp01.atmel.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWhex-0007RC-Q5 for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2016 10:19:54 +0000 Received: from apsmtp01.atmel.com (10.168.254.30) by DVREDG01.corp.atmel.com (10.42.103.30) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 8 Aug 2016 04:19:28 -0600 Received: from shaarm01.corp.atmel.com (10.168.254.13) by apsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server id 14.3.235.1; Mon, 8 Aug 2016 18:26:50 +0800 From: Wenyou Yang To: Nicolas Ferre , Alexandre Belloni , Russell King Subject: [PATCH v6 5/6] Documentation: atmel-pmc: Add DT bindings for fast startup Date: Mon, 8 Aug 2016 18:05:04 +0800 Message-ID: <1470650705-31418-6-git-send-email-wenyou.yang@atmel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470650705-31418-1-git-send-email-wenyou.yang@atmel.com> References: <1470650705-31418-1-git-send-email-wenyou.yang@atmel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160808_031952_393679_BBCBED13 X-CRM114-Status: UNSURE ( 8.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , Mark Brown , linux-kernel@vger.kernel.org, Wenyou Yang , Rob Herring , Kumar Gala , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v6: None Changes in v5: - due to the DT property expression change, update the binding document. Changes in v4: - add Acked-by tag. Changes in v3: - update the property description. Changes in v2: - change the property name and property description. .../devicetree/bindings/arm/atmel-pmc.txt | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-pmc.txt b/Documentation/devicetree/bindings/arm/atmel-pmc.txt index 795cc78..76fdc66 100644 --- a/Documentation/devicetree/bindings/arm/atmel-pmc.txt +++ b/Documentation/devicetree/bindings/arm/atmel-pmc.txt @@ -12,3 +12,55 @@ Examples: compatible = "atmel,at91rm9200-pmc"; reg = <0xfffffc00 0x100>; }; + +PMC Fast Startup Signals + +The PMC Fast Start Signals are used as the wake up source to trigger the PMC +to wake up the system from the ULP1 mode. + +required properties: +- compatible: should be "atmel,sama5d2-pmc-fast-startup". + +optional properties: +- atmel,wakeup-rtc-timer: boolean to enable RTC alarm wake-up. +- atmel,wakeup-usb-resume: boolean to enable USB resume wake-up. +- atmel,wakeup-sdmmc-cd: boolean to enable SDMMC card detect wake-up. +- atmel,wakeup-rxlp-match: boolean to enable RXLP matching condition wake-up. +- atmel,wakeup-acc-comparison: boolean to enable ACC comparison wake-up. + +The node contains child nodes for each wake-up input pin that the platform uses. + +Input nodes + +Required properties: +- reg: should contain the wake-up input index [0 - 10], to enable + the corresponding wake-up input. + +Optional properties: +- atmel,wakeup-active-high: boolean to declare the corresponding wake-up + input described by the child be active high. + The default is to be active low. + +Example: + + pmc: pmc@f0014000 { + compatible = "atmel,sama5d2-pmc"; + reg = <0xf0014000 0x160>; + + pmc_fast_restart { + compatible = "atmel,sama5d2-pmc-fast-startup"; + #address-cells = <1>; + #size-cells = <0>; + + atmel,wakeup-rtc-timer; + + wkpin: input@0 { + reg = <0>; + }; + + gmac_wol: input@10 { + reg = <10>; + atmel,wakeup-active-high; + }; + }; + };