From patchwork Thu Feb 4 07:37:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenyou Yang X-Patchwork-Id: 8214541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D52A0BEEE5 for ; Thu, 4 Feb 2016 07:44:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E985720268 for ; Thu, 4 Feb 2016 07:44:16 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 007D92025B for ; Thu, 4 Feb 2016 07:44:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aREZ8-0004fM-Q8; Thu, 04 Feb 2016 07:42:58 +0000 Received: from eusmtp01.atmel.com ([212.144.249.242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aREZ3-0004L0-Ad for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2016 07:42:55 +0000 Received: from apsmtp01.atmel.com (10.168.254.31) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server id 14.3.235.1; Thu, 4 Feb 2016 08:42:26 +0100 Received: from shaarm01.corp.atmel.com (10.168.254.13) by apsmtp01.atmel.com (10.168.254.31) with Microsoft SMTP Server id 14.3.235.1; Thu, 4 Feb 2016 15:42:12 +0800 From: Wenyou Yang To: Nicolas Ferre , Alexandre Belloni , Jean-Christophe Plagniol-Villard , Russell King Subject: [PATCH v2 4/4] Documentation: atmel-pmc: add DT bindings for fast startup Date: Thu, 4 Feb 2016 15:37:51 +0800 Message-ID: <1454571471-4434-5-git-send-email-wenyou.yang@atmel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1454571471-4434-1-git-send-email-wenyou.yang@atmel.com> References: <1454571471-4434-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-20160203_234253_850443_67F6E796 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.6 (----) 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 , linux-kernel@vger.kernel.org, Rob Herring , Wenyou Yang , Mark Brown , 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-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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 --- Changes in v2: - change the property name and property description. .../devicetree/bindings/arm/atmel-pmc.txt | 63 ++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-pmc.txt b/Documentation/devicetree/bindings/arm/atmel-pmc.txt index 795cc78..1b3833b 100644 --- a/Documentation/devicetree/bindings/arm/atmel-pmc.txt +++ b/Documentation/devicetree/bindings/arm/atmel-pmc.txt @@ -12,3 +12,66 @@ 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,wkup-trigger: boolean, WKUP input can trigger a fast restart signal. +- atmel,secumod-trigger: boolean, SECUMOD can trigger a fast restart signal. +- atmel,piobu0-trigger: boolean, PIOBU0 input can trigger a fast restart signal. +- atmel,piobu1-trigger: boolean, PIOBU1 input can trigger a fast restart signal. +- atmel,piobu2-trigger: boolean, PIOBU2 input can trigger a fast restart signal. +- atmel,piobu3-trigger: boolean, PIOBU3 input can trigger a fast restart signal. +- atmel,piobu4-trigger: boolean, PIOBU4 input can trigger a fast restart signal. +- atmel,piobu5-trigger: boolean, PIOBU5 input can trigger a fast restart signal. +- atmel,piobu6-trigger: boolean, PIOBU6 input can trigger a fast restart signal. +- atmel,piobu7-trigger: boolean, PIOBU7 input can trigger a fast restart signal. +- atmel,gmac-wol-trigger: boolean, GMAC_WOL can trigger a fast restart signal. +- atmel,rtc-alarm-trigger: boolean, RTC alarm can trigger a fast restart signal. +- atmel,usb-resume-trigger: boolean, USB resume can trigger a fast restart + signal. +- atmel,sdmmc-cd-trigger: boolean, SDMMC card detect can trigger a fast + restart signal. +- atmel,rxlp-match-trigger: boolean, Matching condition on RXLP can trigger + a fast restart signal. +- atmel,acc-comparison-trigger: boolean, ACC comparison can trigger a fast + restart signal. + +- atmel,wkup-trigger-level: string, defines the active polarity of the wake-up + input. Supported values are: "high" or "low". +- atmel,piobu0-trigger-level: string, defines the active polarity of + the corresponding PIOBU0 input. Supported values are: "high" or "low". +- atmel,piobu1-trigger-level: string, defines the active polarity of + the corresponding PIOBU1 input. Supported values are: "high" or "low". +- atmel,piobu2-trigger-level: string, defines the active polarity of + the corresponding PIOBU2 input. Supported values are: "high" or "low". +- atmel,piobu3-trigger-level: string, defines the active polarity of + the corresponding PIOBU3 input. Supported values are: "high" or "low". +- atmel,piobu4-trigger-level: string, defines the active polarity of + the corresponding PIOBU4 input. Supported values are: "high" or "low". +- atmel,piobu5-trigger-level: string, defines the active polarity of + the corresponding PIOBU5 input. Supported values are: "high" or "low". +- atmel,piobu6-trigger-level: string, defines the active polarity of + the corresponding PIOBU6 input. Supported values are: "high" or "low". +- atmel,piobu7-trigger-level: string, defines the active polarity of + the corresponding PIOBU7 input. Supported values are: "high" or "low". + +Example: + + pmc: pmc@f0014000 { + compatible = "atmel,sama5d2-pmc"; + reg = <0xf0014000 0x160>; + + pmc_fast_restart { + compatible = "atmel,sama5d2-pmc-fast-startup"; + atmel,wkup-trigger; + atmel,rtc-alarm-trigger; + atmel,wkup-trigger-level = "low"; + }; + };