devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
Cc: Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Sudeep Holla <sudeep.holla@arm.com>
Subject: [PATCH 01/19] Documentation: devicetree: standardize/consolidate on "wakeup-source" property
Date: Wed, 21 Oct 2015 11:09:58 +0100	[thread overview]
Message-ID: <1445422216-29375-2-git-send-email-sudeep.holla@arm.com> (raw)
In-Reply-To: <1445422216-29375-1-git-send-email-sudeep.holla@arm.com>

Currently different drivers use multiple forms of annotating devices
that should be set up as wakeup sources for the system.

This patch adds a separate binding document inorder to standardize and
consolidate to use "wakeup-source" boolean property to mark the devices
as wakeup capable.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
 .../devicetree/bindings/power/wakeup-source.txt    | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/wakeup-source.txt

diff --git a/Documentation/devicetree/bindings/power/wakeup-source.txt b/Documentation/devicetree/bindings/power/wakeup-source.txt
new file mode 100644
index 000000000000..963c6dfd484d
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/wakeup-source.txt
@@ -0,0 +1,71 @@
+Specifying wakeup capability for devices
+============================================
+
+Any device nodes
+----------------
+Nodes that describe devices which has wakeup capability must contain an
+"wakeup-source" boolean property.
+
+Also, if device is marked as a wakeup source, then all the primary
+interrupt(s) can be used as wakeup interrupt(s).
+
+However if the devices have dedicated interrupt as the wakeup source
+then they need to specify/identify the same using device specific
+interrupt name. In such cases only that interrupt can be used as wakeup
+interrupt.
+
+List of legacy properties and respective binding document
+---------------------------------------------------------
+
+1. "enable-sdio-wakeup"		Documentation/devicetree/bindings/mmc/mmc.txt
+2. "gpio-key,wakeup"		Documentation/devicetree/bindings/input/gpio-keys{,-polled}.txt
+3. "has-tpo"			Documentation/devicetree/bindings/rtc/rtc-opal.txt
+4. "isil,irq2-can-wakeup-machine" Documentation/devicetree/bindings/rtc/isil,isl12057.txt
+5. "linux,wakeup"		Documentation/devicetree/bindings/input/gpio-matrix-keypad.txt
+				Documentation/devicetree/bindings/mfd/tc3589x.txt
+				Documentation/devicetree/bindings/input/ads7846.txt
+6. "linux,keypad-wakeup"	Documentation/devicetree/bindings/input/qcom,pm8xxx-keypad.txt
+7. "linux,input-wakeup"		Documentation/devicetree/bindings/input/samsung-keypad.txt
+8. "nvidia,wakeup-source"	Documentation/devicetree/bindings/input/nvidia,tegra20-kbc.txt
+
+Examples
+--------
+
+1. With "wakeup" interrupt name
+
+	device@10000 {
+		compatible	= "vendor,device-id";
+		reg		= <0x10000 0x1000>;
+		interrupts	= <0 19 4>, <0 21 4>, <0 22 4>;
+		interrupt-names	= "ack", "err", "wakeup";
+		wakeup-source;
+	};
+
+2. Without "wakeup" interrupt name
+
+	embedded-controller {
+		compatible = "google,cros-ec-i2c";
+		reg = <0x1e>;
+		interrupts = <6 0>;
+		interrupt-parent = <&gpx1>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&ec_irq>;
+		wakeup-source;
+	};
+
+3. Without interrupts
+
+	gpio_keys {
+		compatible = "gpio-keys";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		button@1 {
+			debounce_interval = <50>;
+			wakeup-source;
+			linux,code = <116>;
+			label = "POWER";
+			gpios = <&iofpga_gpio0 0 0x4>;
+		};
+		[....]
+	};
-- 
1.9.1

  reply	other threads:[~2015-10-21 10:09 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 10:09 [PATCH 00/19] devicetree: standardize/consolidate on "wakeup-source" property Sudeep Holla
2015-10-21 10:09 ` Sudeep Holla [this message]
     [not found]   ` <1445422216-29375-2-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-21 22:02     ` [PATCH 01/19] Documentation: " Rob Herring
2015-10-21 10:09 ` [PATCH 02/19] Documentation: devicetree: fix reference to legacy wakeup properties Sudeep Holla
     [not found]   ` <1445422216-29375-3-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-21 22:04     ` Rob Herring
2015-10-28 18:23       ` Sudeep Holla
     [not found]         ` <563112BD.2050700-5wv7dgnIgG8@public.gmane.org>
2015-10-30 18:29           ` Rob Herring
2015-10-21 10:10 ` [PATCH 03/19] rtc: opal: enable support for the stardard "wakeup-source" property Sudeep Holla
     [not found]   ` <1445422216-29375-4-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-27 22:53     ` Alexandre Belloni
2015-10-21 10:10 ` [PATCH 04/19] rtc: isl12057: enable support for the standard " Sudeep Holla
2015-10-27 22:53   ` Alexandre Belloni
2015-10-21 10:10 ` [PATCH 05/19] mmc: core/host: " Sudeep Holla
     [not found]   ` <1445422216-29375-6-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-11-19 11:32     ` Ulf Hansson
2015-10-21 10:10 ` [PATCH 06/19] input: tegra-kbc: " Sudeep Holla
     [not found]   ` <1445422216-29375-7-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-23  6:39     ` Dmitry Torokhov
2015-10-23 10:23       ` Sudeep Holla
2015-10-26  8:33         ` Dmitry Torokhov
     [not found] ` <1445422216-29375-1-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-21 10:10   ` [PATCH 07/19] ARM: dts: rockchip: replace gpio-key, wakeup with wakeup-source property Sudeep Holla
2015-10-21 10:10   ` [PATCH 12/19] ARM: dts: exynos: replace legacy *,wakeup property with wakeup-source Sudeep Holla
2015-12-15 16:35     ` Sudeep Holla
     [not found]       ` <56704141.8070308-5wv7dgnIgG8@public.gmane.org>
2015-12-15 23:32         ` Krzysztof Kozlowski
     [not found]           ` <5670A2F2.5060009-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-12-16 10:32             ` Sudeep Holla
2015-12-16 23:38               ` Krzysztof Kozlowski
2015-12-16 23:49     ` Krzysztof Kozlowski
2016-01-28  8:11       ` Krzysztof Kozlowski
     [not found]         ` <56A9CD1A.8010800-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2016-01-28 15:59           ` [UPDATE] " Sudeep Holla
2016-01-29  0:11             ` Krzysztof Kozlowski
2015-10-21 10:10   ` [PATCH 19/19] ARM: dts: zynq: replace gpio-key,wakeup with wakeup-source property Sudeep Holla
     [not found]     ` <1445422216-29375-20-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-29  8:56       ` Michal Simek
2015-10-21 10:10 ` [PATCH 08/19] ARM: dts: spear: replace gpio-key, wakeup " Sudeep Holla
2015-10-21 10:10 ` [PATCH 09/19] ARM: dts: am335x: replace gpio-key,wakeup " Sudeep Holla
     [not found]   ` <1445422216-29375-10-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-12-15 16:33     ` Sudeep Holla
     [not found]       ` <567040E7.7060308-5wv7dgnIgG8@public.gmane.org>
2015-12-17 17:58         ` Tony Lindgren
2015-10-21 10:10 ` [PATCH 10/19] ARM: dts: at91: replace gpio-key, wakeup " Sudeep Holla
     [not found]   ` <1445422216-29375-11-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-21 10:21     ` [PATCH 10/19] ARM: dts: at91: replace gpio-key,wakeup " Nicolas Ferre
     [not found]       ` <5627672D.60108-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2015-10-21 10:25         ` Sudeep Holla
2015-10-21 11:01           ` Ulf Hansson
     [not found]             ` <CAPDyKFq8CfzVPPCz=1AxZM3wsw8pkOPG6Ua_5spDuYa=Gzshrw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-21 11:13               ` Sudeep Holla
     [not found]                 ` <56277372.6080203-5wv7dgnIgG8@public.gmane.org>
2015-10-21 12:41                   ` Sudeep Holla
     [not found]                     ` <562787E9.9030606-5wv7dgnIgG8@public.gmane.org>
2015-10-21 15:27                       ` Nicolas Ferre
2015-10-21 10:10 ` [PATCH 11/19] ARM: dts: imx: replace legacy *, wakeup property with wakeup-source Sudeep Holla
     [not found]   ` <1445422216-29375-12-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-11-23  5:37     ` [PATCH 11/19] ARM: dts: imx: replace legacy *,wakeup " Shawn Guo
2015-11-26 11:33       ` Sudeep Holla
2015-12-02  1:54         ` Shawn Guo
2015-12-02 10:05           ` Sudeep Holla
2015-10-21 10:10 ` [PATCH 13/19] ARM: dts: tegra: " Sudeep Holla
2015-12-15 16:35   ` Sudeep Holla
     [not found]   ` <1445422216-29375-14-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-12-23 11:24     ` Sudeep Holla
2015-10-21 10:10 ` [PATCH 14/19] ARM: dts: shmobile/r8a7xxx: replace gpio-key,wakeup with wakeup-source property Sudeep Holla
     [not found]   ` <1445422216-29375-15-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-21 10:18     ` Geert Uytterhoeven
2015-10-21 10:23       ` Sudeep Holla
2015-10-22  0:50         ` Simon Horman
2015-10-22  9:37           ` Sudeep Holla
     [not found]             ` <5628AE72.3020809-5wv7dgnIgG8@public.gmane.org>
2015-10-23  0:18               ` Simon Horman
2015-10-21 10:10 ` [PATCH 15/19] ARM: dts: omap: replace legacy *,wakeup property with wakeup-source Sudeep Holla
2015-12-15 16:37   ` Sudeep Holla
2015-12-17 17:58     ` Tony Lindgren
2015-10-21 10:10 ` [PATCH 16/19] ARM: dts: s5pv210: " Sudeep Holla
2015-12-15 16:37   ` Sudeep Holla
2015-12-16 23:52   ` Krzysztof Kozlowski
2015-10-21 10:10 ` [PATCH 17/19] ARM: dts: armada: replace isil,irq2-can-wakeup-machine with wakeup-source property Sudeep Holla
2015-12-15 16:39   ` Sudeep Holla
2015-12-15 16:56     ` Gregory CLEMENT
2015-10-21 10:10 ` [PATCH 18/19] ARM: dts: ste: replace legacy *,wakeup property with wakeup-source Sudeep Holla
     [not found]   ` <1445422216-29375-19-git-send-email-sudeep.holla-5wv7dgnIgG8@public.gmane.org>
2015-10-27 12:34     ` Linus Walleij
     [not found]       ` <CACRpkdYNFa-R8-u8JXijsCDyY+RHo4ANp+Voz3PEn6b9hcCrzQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-27 12:46         ` Sudeep Holla
     [not found]           ` <562F7219.9010705-5wv7dgnIgG8@public.gmane.org>
2015-11-05  9:26             ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445422216-29375-2-git-send-email-sudeep.holla@arm.com \
    --to=sudeep.holla@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).