From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
Mark Rutland <mark.rutland@arm.com>,
Rob Herring <robh+dt@kernel.org>,
devicetree@vger.kernel.org
Subject: [PATCH 1/2] spi: dt-bindings: spi-controller: add wakeup-source and interrupts
Date: Mon, 11 Nov 2019 21:54:10 -0800 [thread overview]
Message-ID: <20191112055412.192675-2-dmitry.torokhov@gmail.com> (raw)
In-Reply-To: <20191112055412.192675-1-dmitry.torokhov@gmail.com>
This change adds bindings for wakeup-source and
interrupts/interrupt-names properties that can be used to configure
device as wakeup source on the system.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
.../bindings/spi/spi-controller.yaml | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/Documentation/devicetree/bindings/spi/spi-controller.yaml
index 732339275848c..4e31a4bf6851c 100644
--- a/Documentation/devicetree/bindings/spi/spi-controller.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml
@@ -78,6 +78,29 @@ patternProperties:
description:
Chip select used by the device.
+ interrupts:
+ items:
+ - description: main interrupt (attention) line.
+ - description: dedicated wakeup interrupt.
+ minItems: 1 # The wakeup interrupt is optional.
+ description:
+ Specifies interrupt lines a device is connected to. Typically a
+ device is wired to a single interrupt line that is used as
+ "attention" signal and also to wake up system when device is
+ set up as wakeup source. However on some systems a dedicated
+ wakeup line might be used.
+
+ interrupt-names:
+ items:
+ - const: irq
+ - const: wakeup
+ minItems: 1
+
+ wakeup-source:
+ description:
+ Device is capable of waking up the system.
+ type: boolean
+
spi-3wire:
$ref: /schemas/types.yaml#/definitions/flag
description:
--
2.24.0.rc1.363.gb1bccd3e3d-goog
next prev parent reply other threads:[~2019-11-12 5:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-12 5:54 [PATCH 0/2] spi: add wakeup handling to SPI core Dmitry Torokhov
2019-11-12 5:54 ` Dmitry Torokhov [this message]
2019-11-12 12:03 ` [PATCH 1/2] spi: dt-bindings: spi-controller: add wakeup-source and interrupts Mark Brown
2019-11-12 19:03 ` Dmitry Torokhov
2019-11-12 19:15 ` Mark Brown
2019-11-12 19:36 ` Dmitry Torokhov
2019-11-12 19:42 ` Mark Brown
2019-11-14 22:26 ` Rob Herring
2019-11-14 23:08 ` Dmitry Torokhov
2019-11-15 13:52 ` Rob Herring
2019-11-15 15:22 ` Mark Brown
2019-11-15 19:43 ` Rob Herring
2019-11-12 5:54 ` [PATCH 2/2] spi: wire up wakeup-source/wakeirq handling Dmitry Torokhov
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=20191112055412.192675-2-dmitry.torokhov@gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=mark.rutland@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).