From patchwork Wed Mar 16 06:58:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenyou Yang X-Patchwork-Id: 8595101 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 B96FF9F44D for ; Wed, 16 Mar 2016 07:16:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5528203B6 for ; Wed, 16 Mar 2016 07:15:59 +0000 (UTC) Received: from bombadil.infradead.org (unknown [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 65C6420376 for ; Wed, 16 Mar 2016 07:15:55 +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 1ag5Xc-0007YX-F7; Wed, 16 Mar 2016 07:06:48 +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 1ag5XY-0007TQ-Ox for linux-arm-kernel@lists.infradead.org; Wed, 16 Mar 2016 07:06:45 +0000 Received: from apsmtp01.atmel.com (10.168.254.30) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server id 14.3.235.1; Wed, 16 Mar 2016 08:06:18 +0100 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; Wed, 16 Mar 2016 15:08:00 +0800 From: Wenyou Yang To: Nicolas Ferre , Alexandre Belloni , Jean-Christophe Plagniol-Villard , Russell King Subject: [PATCH v5 4/5] Documentation: atmel-pmc: add DT bindings for fast startup Date: Wed, 16 Mar 2016 14:58:08 +0800 Message-ID: <1458111489-23774-5-git-send-email-wenyou.yang@atmel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1458111489-23774-1-git-send-email-wenyou.yang@atmel.com> References: <1458111489-23774-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-20160316_000645_155723_9DA28784 X-CRM114-Status: UNSURE ( 7.60 ) 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 , 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-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RDNS_NONE,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 Acked-by: Rob Herring --- 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; + }; + }; + };