Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp485801imm; Fri, 21 Sep 2018 03:39:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbT5RvIAgHihwyBZUV0tvCtH34G/xqvU9cX3LYQHgjI+a+AtkEffRvulQaTny802nKVL4pU X-Received: by 2002:a17:902:6e17:: with SMTP id u23-v6mr5721855plk.28.1537526346704; Fri, 21 Sep 2018 03:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537526346; cv=none; d=google.com; s=arc-20160816; b=IfIiCX7sFgvuknJTOWT3HS+RYlDM+J7xamBdzv8cWA7COHAv8IQLDjZt6S0xChRfUc yk4iAXYt6YP6HRz3bhEKfbsXILydGmLAchIlGSr7JUIS7GhWoLQCrQVYsA8JDUX+IFkf Ww0zQrFqsgHKvj+cKaq5LPZe8M+NWO0PXxFjKiNTISnjYofBVcR9JuLM9XsddB9MOGZU yISf0aYHL20MtK/kD25vK4y3lvlkrH1ij7VSonsWVoM1zDInaRQxlTg14o+Ykamnz6mu mueEK/kNuc0NKdhL/Y4anVVkbOinhhnIygmppjLbVOXqKHMguxGVq5ZTIZ5VqQgAZtZH 2Xmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=wyQBogFP49CCQKKhyzhdwQJOr+cSn7csR62Zhc8easA=; b=DNjh4vRryZq7BgNvskbqo7ncq8sTQelqX30uOiKsthp83a0q+x7jDycKAnUqupv2qt 5xIWUWKRJTz3BYDDDFJ7+B0HiB1jTMwy4E7Mv/uz9ADjhkDkIj5YX4AVwAUcZ8CDoIaA On4VcAkrAaLHwOADURCCzfOlm2R9NCZ1sJSjbn0YIkhN+wJtwmr7FC/q2J85AaZwg5AH BeODpiMl2RnFhraCKFRV4LUtu/pd1okc/lSZ/MuGbVB1OcbiLqi92MMTxkG6wYNbJUG2 g6MZb2FYok4icbyTjiIouP3F3Q+syJE5iAv87j5ATO5oIRjxiNBGD5WZx/LdzOKmzzOI CLJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=ldr9uh8w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p62-v6si15311220pgp.648.2018.09.21.03.38.50; Fri, 21 Sep 2018 03:39:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=ldr9uh8w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389847AbeIUQZb (ORCPT + 99 others); Fri, 21 Sep 2018 12:25:31 -0400 Received: from mail.kapsi.fi ([91.232.154.25]:49141 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbeIUQZb (ORCPT ); Fri, 21 Sep 2018 12:25:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wyQBogFP49CCQKKhyzhdwQJOr+cSn7csR62Zhc8easA=; b=ldr9uh8wH4NsmaPnxj+TzK4hQp o/gPZRB8Sm3ABzK3aZ8C4gKbKsmTWHeBlLZUDVBZ7rjWp0+keR2xYFbZdXExYQKQZlmbjkuFug0BY 0FA63+r1d6FwGKCkyebgXX7TLnOqb0tSHvZYe79TY9NnCIZ+BTX/t3KENZ8AsYbAKP+aW2exwS0b1 3UoISFOPgR/MPYc7gUl5aCqhCtGZm9DD9BKEC+pzeyGlCGfygW7/euOQk3vEteYNttU0fp+8V/5Kh KBDe5rL9bbB8AOZTBQyTc4/v5T5CKS9xijm7HfAojMfiiJqqeZrXLttsxz1ttywzph7KhEVJWBzCN 6T2Vy1YA==; Received: from [39.110.237.146] (helo=[10.19.62.132]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1g3IoC-0006BF-PX; Fri, 21 Sep 2018 13:37:13 +0300 Subject: Re: [PATCH 7/9] dt-bindings: tegra186-gpio: Add wakeup parent support To: Thierry Reding , Linus Walleij Cc: Thomas Gleixner , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180921102546.12745-1-thierry.reding@gmail.com> <20180921102546.12745-8-thierry.reding@gmail.com> From: Mikko Perttunen Message-ID: Date: Fri, 21 Sep 2018 19:37:06 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180921102546.12745-8-thierry.reding@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 39.110.237.146 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/09/2018 19.25, Thierry Reding wrote: > From: Thierry Reding > > Tegra186 and later have some top-level controls for wake events in the > power management controller (PMC). In order to enable the system to wake > up from low power states, additional registers in the PMC need to be > programmed. Add a wakeup-parent property to establish this relationship > between the GPIO controller and the PMC. > > Signed-off-by: Thierry Reding > --- > .../devicetree/bindings/gpio/nvidia,tegra186-gpio.txt | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.txt b/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.txt > index adff16c71d21..cbb51a8990c3 100644 > --- a/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.txt > +++ b/Documentation/devicetree/bindings/gpio/nvidia,tegra186-gpio.txt > @@ -127,6 +127,11 @@ Required properties: > - 8: Active low level-sensitive. > Valid combinations are 1, 2, 3, 4, 8. > > +Optional properties: > +- wake-parent wakeup-parent Cheers, Mikko > + A phandle to the Power Management Controller (PMC) that contains top- > + level controls to enable the wake-up capabilities of some GPIOs. > + > Example: > > #include > @@ -148,6 +153,7 @@ gpio@2200000 { > #gpio-cells = <2>; > interrupt-controller; > #interrupt-cells = <2>; > + wakeup-parent = <&pmc>; > }; > > gpio@c2f0000 { > @@ -162,4 +168,5 @@ gpio@c2f0000 { > #gpio-cells = <2>; > interrupt-controller; > #interrupt-cells = <2>; > + wakeup-parent = <&pmc>; > }; >