Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4012033imm; Mon, 15 Oct 2018 07:47:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV63qNYk1pDvFvLKkhsY/9xrXQfWDNg9x8BGBgGpnzmJJal7FDu2GQgECVs7/LVw8OnfTZgh4 X-Received: by 2002:a65:580d:: with SMTP id g13-v6mr15328282pgr.370.1539614821330; Mon, 15 Oct 2018 07:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539614821; cv=none; d=google.com; s=arc-20160816; b=n6i1PAGCerlB1ylUjkJ5vIy4EeefYDi8SXZGa0d/SJ2TBqYSVCN6UstkRaRGt5y7xd gy0UBFBucb4/6PyReQrId0h82DdT52408OmPPvTPL51khuXzFcjxy8fzbuibTZISVEYf jDrd7XaRLI3kDZdoi5zvZfaIfYX600b6f1PqBAmji9FSbTTaxnCQ68hyHK+2WTIJZMOu EtponmR3Ud5CtHiQMzJ+gxCPvue2QbMeCQviUchcJVW9YEwTz2RYxNaKNVAmSlEbQJv9 jerKM9hctLk/EoqL888amUARdPOoG20cztuYPe43zCvmOoPfFVsL6GMjKycA/7DouP2n O5/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DK4TbbxttyRat7RFSZ/FwfJskfMoANy/z3qhu9r7SJQ=; b=hNoIAaVBNQ2cOH9m78pJ7kNZHkK9hzC6ha2kmZoguLlMaIRwvdtt4MLcHj6nk2UvIO 2hg0QxeGeY5bQ8M8yc5fM7/a2K+q+EVwKB3OfnaMsamD5fk1kkKPU7lsSFDqGKox9wrg JHhvsnUaEWnbExCbD10wKgtzpFsSXRCWua2x+YI8muAJwUdURIcdT3QRwpx0L7320BW0 keOQsH6VNA0GTjezhrgjmaKXZ+o39ldie6PeMasKZddhLG6n0jVLT4uUEUZFrRyVmJ38 Sm1ScE8eC8jlDiFLNTYZE/FbBOSsoCm3I3M7Axfe/9P3Wi3+ljfTGDQEuBYSDv/xJkwk VwUg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si10269535plz.158.2018.10.15.07.46.46; Mon, 15 Oct 2018 07:47:01 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbeJOWbu (ORCPT + 99 others); Mon, 15 Oct 2018 18:31:50 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38536 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726623AbeJOWbu (ORCPT ); Mon, 15 Oct 2018 18:31:50 -0400 Received: by mail-ot1-f68.google.com with SMTP id l1so19121570otj.5; Mon, 15 Oct 2018 07:46:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DK4TbbxttyRat7RFSZ/FwfJskfMoANy/z3qhu9r7SJQ=; b=oNGvHoxyKr4/JkFXUUAA3X/Yk9dUeyh2ZxeosXQzHNv40ArvBE8zd9jEH+fxFFYOxN vafE3eh+j3ZFra4jKIe0ELMClzcTn4Gn4VUJyyT4dFNUDlZb+Wpc6bU4ekHm3BDgl0pe HWmfFDrq8wAzKLATDy6CKW9E8ED/ohdSMiKGJRIQErW0uSWooALJNqYwORzs1blimLBR HWL98Rgl0bxiysMh94DnqixM2dKQERVhp3iQ2MYhFyUBJF67L9HwY8qEea6+nAvoDoT/ nNOZplmXCHGgUkcJwn/eOt2sSZp/0ttkrhf7Rg5QSHrdTwvM1p74nYc98HXl2UsqdArS MJZQ== X-Gm-Message-State: ABuFfogUpsEh/t/dhxTdCK0DG7Ng6tF6bDHEkIaXCu6IfVDujhhqIcb2 sBFUz8LCgdxffMnkGUtGhw== X-Received: by 2002:a9d:2fe6:: with SMTP id b35mr11307269otd.18.1539614774682; Mon, 15 Oct 2018 07:46:14 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id o88-v6sm3376433oik.27.2018.10.15.07.46.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 07:46:13 -0700 (PDT) Date: Mon, 15 Oct 2018 09:46:12 -0500 From: Rob Herring To: Thierry Reding Cc: Linus Walleij , Thomas Gleixner , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/9] dt-bindings: tegra186-gpio: Add wakeup parent support Message-ID: <20181015144612.GA23929@bogus> References: <20180921102546.12745-1-thierry.reding@gmail.com> <20180921102546.12745-8-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180921102546.12745-8-thierry.reding@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2018 at 12:25:44PM +0200, 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 > + 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>; If all the GPIO instances point to the same PMC and have no per instance data, why do you need this in DT? You can just search for the compatible node. Rob