From patchwork Fri Sep 5 20:51:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 36893 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f200.google.com (mail-ig0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6DDCA202A1 for ; Fri, 5 Sep 2014 20:52:59 +0000 (UTC) Received: by mail-ig0-f200.google.com with SMTP id uq10sf57704344igb.11 for ; Fri, 05 Sep 2014 13:52:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=bvGpx2FQ8D9J0FS2G+lQaIkb407ihgP8aNY3l79Dc10=; b=depd5z0oNKkhO0Zhe1UAcPOcr6Kc4SV6/pqCHgiRgzcpyBCMCyZvkpQadP7/qWDDBZ RQC6ax0eWEJWOligwm3hCIXMqI6yblrZXL6WZuBq80hSiqnbokwHoc7kPH403A8rEdSn CHeeOJBa0klUSbs0pSreYg/4dGoHc+WpEZsCiXb1C+TiPF+M5TxSAucCf+LdyuuGZ9BI Oimet6xdp3RgDHli4s2G6Z1fJ0qYNqt7cb+156RmrJAn5ycRcJLruhIpf4fWDo/R816r ElFQehmyrStS3RzAvbcaY8lrQGRkRLLXEX5OM38sDyxufU/WG2hFK5gOzJRj6T5WQMno tFlA== X-Gm-Message-State: ALoCoQmp5oCiiTk6kg8uxBdXsrspxdIk1ynKfd2EE1gUJe5ZVh/mxcXOfDuYLQyHg9ZmIJCUABPU X-Received: by 10.42.133.200 with SMTP id i8mr7934061ict.14.1409950379015; Fri, 05 Sep 2014 13:52:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.200 with SMTP id f66ls902520qgd.24.gmail; Fri, 05 Sep 2014 13:52:58 -0700 (PDT) X-Received: by 10.221.6.201 with SMTP id ol9mr12524933vcb.2.1409950378883; Fri, 05 Sep 2014 13:52:58 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id qg7si1442644vcb.18.2014.09.05.13.52.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 13:52:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so13175406vcb.0 for ; Fri, 05 Sep 2014 13:52:58 -0700 (PDT) X-Received: by 10.52.160.10 with SMTP id xg10mr10402267vdb.1.1409950378773; Fri, 05 Sep 2014 13:52:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp137127vcb; Fri, 5 Sep 2014 13:52:58 -0700 (PDT) X-Received: by 10.66.124.226 with SMTP id ml2mr24936074pab.142.1409950377956; Fri, 05 Sep 2014 13:52:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tk9si5886216pbc.159.2014.09.05.13.52.56 for ; Fri, 05 Sep 2014 13:52:57 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752296AbaIEUwk (ORCPT + 26 others); Fri, 5 Sep 2014 16:52:40 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:52507 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbaIEUwf (ORCPT ); Fri, 5 Sep 2014 16:52:35 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s85KqBwh001297; Fri, 5 Sep 2014 15:52:11 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s85KqBIp000941; Fri, 5 Sep 2014 15:52:11 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 5 Sep 2014 15:52:11 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s85KqBDC007537; Fri, 5 Sep 2014 15:52:11 -0500 From: Nishanth Menon To: Lee Jones CC: , , Keerthy , Mark Brown , Nishanth Menon , Samuel Ortiz , , Tony Lindgren , Subject: [PATCH V2 2/3] Documentation: dt-bindings: mfd: palmas: document optional wakeup IRQ Date: Fri, 5 Sep 2014 15:51:50 -0500 Message-ID: <1409950311-25236-3-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409950311-25236-1-git-send-email-nm@ti.com> References: <1409950311-25236-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nm@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , With the recent pinctrl-single changes, SoCs such as OMAP family can treat wake-up events from deeper low power states as interrupts. This is usable when the wakeup from deeper low power states is triggered by a different hardware mechanism tied to pinctrl compared to the routine interrupt handling generating the reqular interrupt events. This is usually done on SoCs where the routine interrupt sources such as GPIO need to be disabled to be actually achieve low power state and wakeup is triggered from pinctrl interrupt source. Provide documentation example for the case where the system needs two interrupt sources when SoC is in deep sleep(1 to exit from deep sleep, and other from the module handling the actual event). Signed-off-by: Nishanth Menon --- Documentation/devicetree/bindings/mfd/palmas.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/palmas.txt b/Documentation/devicetree/bindings/mfd/palmas.txt index d193859..1c821d6 100644 --- a/Documentation/devicetree/bindings/mfd/palmas.txt +++ b/Documentation/devicetree/bindings/mfd/palmas.txt @@ -51,3 +51,23 @@ palmas@48 { .... }; } + +Example: With interrupts extended + See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt + Use pinmux 0x418 as wakeup interrupt and gpio1_0 as interrupt source + +palmas@48 { + compatible = "ti,twl6035", "ti,palmas"; + reg = <0x48> + interrupt-parent = <&intc>; + interrupt-controller; + #interrupt-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + interrupts-extended = <&gpio1 0 IRQ_TYPE_LEVEL_HIGH>, + <&pinmux 0x418>; + pmic { + compatible = "ti,twl6035-pmic", "ti,palmas-pmic"; + .... + }; +}