From patchwork Thu Jan 28 10:19:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenyou Yang X-Patchwork-Id: 8148741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 708569F440 for ; Thu, 28 Jan 2016 10:26:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76F182034C for ; Thu, 28 Jan 2016 10:26:53 +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 8115520320 for ; Thu, 28 Jan 2016 10:26:52 +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 1aOjkn-000351-Aa; Thu, 28 Jan 2016 10:24:41 +0000 Received: from nasmtp01.atmel.com ([192.199.1.245] helo=DVREDG01.corp.atmel.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOjk5-0001xJ-8J for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 10:24:01 +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; Thu, 28 Jan 2016 03:23:30 -0700 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; Thu, 28 Jan 2016 18:25:18 +0800 From: Wenyou Yang To: Nicolas Ferre , Alexandre Belloni , Jean-Christophe Plagniol-Villard , Russell King Subject: [PATCH 4/4] Documentation: atmel-at91: add DT bindings for fast startup Date: Thu, 28 Jan 2016 18:19:16 +0800 Message-ID: <1453976356-24391-5-git-send-email-wenyou.yang@atmel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1453976356-24391-1-git-send-email-wenyou.yang@atmel.com> References: <1453976356-24391-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-20160128_022357_662923_CE87D76D X-CRM114-Status: UNSURE ( 8.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) 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.2 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 --- .../devicetree/bindings/arm/atmel-pmc.txt | 74 ++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-pmc.txt b/Documentation/devicetree/bindings/arm/atmel-pmc.txt index 795cc78..8d45ff9f 100644 --- a/Documentation/devicetree/bindings/arm/atmel-pmc.txt +++ b/Documentation/devicetree/bindings/arm/atmel-pmc.txt @@ -12,3 +12,77 @@ 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,fast-startup-wake-up: boolean to enable the WKUP pin to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-secumod: boolean to enable the Security Mode to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu0: boolean to enable the PIOBU0 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu1: boolean to enable the PIOBU1 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu2: boolean to enable the PIOBU2 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu3: boolean to enable the PIOBU3 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu4: boolean to enable the PIOBU4 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu5: boolean to enable the PIOBU5 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu6: boolean to enable the PIOBU6 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-piobu7: boolean to enable the PIOBU7 Input to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-gmac-wol: boolean to enable the GMAC Wake-up On LAN + to trigger a fast restart signal to the PMC. +- atmel,fast-startup-rtc-alarm: boolean to enable the RTC Alarm to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-usb-resume: boolean to enable the USB Resume to trigger + a fast restart signal to the PMC. +- atmel,fast-startup-sdmmc-cd: boolean to enable the SDMMC Card Detect + to trigger a fast restart signal to the PMC. +- atmel,fast-startup-rxlp-match: boolean to enable the Backuo UART Receive + Match Condition to trigger a fast restart signal to the PMC. +- atmel,fast-startup-acc-comparison: boolean to enable the Analog Comparator + Controller (ACC) Comparison to to trigger a fast restart signal to the PMC. + +- atmel,fast-startup-wkup-pin-high: boolean to indicate if the WKUP Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu0-high: boolean to indicate if the PIOBU0 Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu1-high: boolean to indicate if the PIOBU1 Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu2-high: boolean to indicate if the PIOBU2 Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu3-high: boolean to indicate if the PIOBU3 Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu4-high: boolean to indicate if the PIOBU4 Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu5-high: boolean to indicate if the PIOBU5 Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu6-high: boolean to indicate if the PIOBU6 Pin is + in the high level to trigger fast restart signal, otherwise low level. +- atmel,fast-startup-piobu7-high: boolean to indicate if the PIOBU7 Pin is + in the high level to trigger fast restart signal, otherwise low level. + +Example: + + pmc: pmc@f0014000 { + compatible = "atmel,sama5d2-pmc"; + reg = <0xf0014000 0x160>; + + pmc_fast_restart { + compatible = "atmel,sama5d2-pmc-fast-startup"; + atmel,fast-startup-wake-up; + atmel,fast-startup-rtc-alarm; + }; + };