Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp474630imm; Fri, 21 Sep 2018 03:27:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbNz5NVMzxAUVadBMrxVL+HCMQxkJvyUf/QlkzqbgP8OvcOSqWH1ssD+/6cqYemUkOsLyl9 X-Received: by 2002:a63:ca09:: with SMTP id n9-v6mr40660622pgi.287.1537525642551; Fri, 21 Sep 2018 03:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537525642; cv=none; d=google.com; s=arc-20160816; b=Om9fZ9AGIF5VJGxGwVBdWGryMtC1/hl221bj4LHkJPCghY8/pPs15GExbG2FQqLBqs QUdsL7DFIcaj7zEePXLPf98hYLumXe5rZit61OBy8lvMcDXFmF1/AeoHzxutNdZNYnz9 /4SYCYIFMjmxL92VyXUBT2cLxwP4axJ5/3ZyeLMlj02qOkgU/T4TKme1MPsF7o2iRQjm Bno9OeRtJ+hiwjF51XAcSxzra9EO4kb+CSNbIB33Zh+M/NhiO93ughUmQT2ZxEj4txCQ hS+rtNlT3cmH2fqpbTMHpPF1nMRvVhhjoEMQX7cuKqU9KrtN5PWCQ9KpHQPAbi+psurQ iTWw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Jr2Guj4IS+KaSpQIhd5X6b3SqJiQa+YzNCwuQumn9r0=; b=sN+e10LiXb0DQ4It/mY83MwxKDSJYs75wJEDtAvR4nphzf6Ah6cBA6vVDijl4YUR0S tiqkN9WaRe0mQB9rukuBOw/l7GINR5PFwsPO8ngtvtkoWoIOX23gnH5fOzXrTtqP7MEN 4/dzlbJg0k7WaONBD+DHji93wH4EvA0CSNP/QHnLNZKBKN9ro91sHmEYIbfQ6ITXjzS0 soIJN+Q07mZPjUxxKXAxBuFP45pgPk6FBHnNObTb2dOVs900p/2j1i3ZXRtaXUueWDpr yUlaEat1bDj8Reb4sz1NoY787DjrwhZYRs5laXAGQXCGTfD1XZNrEHQsNjKHlP0IF/pn PFPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nNOuoybd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12-v6si23806070plr.32.2018.09.21.03.27.04; Fri, 21 Sep 2018 03:27:22 -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=pass header.i=@gmail.com header.s=20161025 header.b=nNOuoybd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390439AbeIUQOO (ORCPT + 99 others); Fri, 21 Sep 2018 12:14:14 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33111 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389264AbeIUQON (ORCPT ); Fri, 21 Sep 2018 12:14:13 -0400 Received: by mail-wm1-f68.google.com with SMTP id r1-v6so3806649wmh.0; Fri, 21 Sep 2018 03:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jr2Guj4IS+KaSpQIhd5X6b3SqJiQa+YzNCwuQumn9r0=; b=nNOuoybduFOKNSwFgG9MWSKog5EthQjw2mp59zTfdsNQOC1S5T0lyx10Cfqd3leIMz 3JHxL3LE/OZjkYq5PeHDgdgZOD1s7LuyeB8kGMpZIUiEszoV6itJda8VZ2h8unsFrLbC iC7jAEyE/kCU3PxOD5DqSVZGZUTAo3f4+zT9HFnbHcsdkYmjOEZ70PkL/23OEGQ0Xc3R cwaVOLa79R78+6jbe9p4Cx/mN3Qb82SSO8d4mNOm+620SOMpZo/VhRTnUq/JVGNK4GfL 4CXset+4j+33Nsxy0qrAoMD8uUfKmLxfL0b5HX2GXJbjdkM7+ImnwLi2EnOpTw0J/O0C ilng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jr2Guj4IS+KaSpQIhd5X6b3SqJiQa+YzNCwuQumn9r0=; b=sTXp/58XqVVmoQr0pTczfGionG0LxYdcAGw7xIk5X573Nj4Noy2oOb0ZBWOKUKU813 A5AiH/VW0B/UH/Bi4xiHtsngJsatxJq3AAm/rXk/9LepJ0Gk+qLXe82ATYIuW0YbzfX4 tyW+Dvy285P5rPaJ80nl1JGZx4V4BdoCCBdVSh9sKlz1PWAYKWoHu69hTqMlLzmupVqS YCnvjaJ1tLZlPukrpbWjpAF6tF9GEGGTPh8IbO7j5PQyRTavMGmhFLjnw1miCRB6IIFH b4qK9WMi3ZKSOnRt7v3X+42nle/TyH+3XF02cZ91Foy+aZavczoO52kNfUlHBACkMcvZ vdsA== X-Gm-Message-State: APzg51A8AyEN914yuFzm9SR1kD3OB7dxuuA3uqNkZxN6C1z95IwTISAQ 5hwRYYqnNWfRNFYFWSWVnak= X-Received: by 2002:a1c:e5cf:: with SMTP id c198-v6mr6258019wmh.113.1537525558907; Fri, 21 Sep 2018 03:25:58 -0700 (PDT) Received: from localhost (pD9E515A3.dip0.t-ipconnect.de. [217.229.21.163]) by smtp.gmail.com with ESMTPSA id x65-v6sm5573042wmg.39.2018.09.21.03.25.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Sep 2018 03:25:58 -0700 (PDT) From: Thierry Reding To: Linus Walleij , Thierry Reding Cc: Thomas Gleixner , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/9] dt-bindings: tegra186-gpio: Add wakeup parent support Date: Fri, 21 Sep 2018 12:25:44 +0200 Message-Id: <20180921102546.12745-8-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180921102546.12745-1-thierry.reding@gmail.com> References: <20180921102546.12745-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; }; -- 2.19.0