From: <Frank.Li@freescale.com>
To: lznuaa@gmail.com, shawn.guo@linaro.org, dmitry.torokhov@gmail.com
Cc: Robin Gong <b38343@freescale.com>,
Frank Li <Frank.Li@freescale.com>,
linux-arm-kernel@lists.infradead.org,
linux-input@vger.kernel.org
Subject: [PATCH 1/3] document: devicetree: input: imx: i.mx snvs power device tree bindings
Date: Wed, 13 May 2015 00:50:36 +0800 [thread overview]
Message-ID: <1431449438-19460-1-git-send-email-Frank.Li@freescale.com> (raw)
From: Frank Li <Frank.Li@freescale.com>
The snvs-pwrkey is designed to enable POWER key function which controlled
by SNVS ONOFF. the driver can report the status of POWER key and wakeup
system if pressed after system suspend.
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Robin Gong <b38343@freescale.com>
---
.../devicetree/bindings/input/snvs-pwrkey.txt | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/snvs-pwrkey.txt
diff --git a/Documentation/devicetree/bindings/input/snvs-pwrkey.txt b/Documentation/devicetree/bindings/input/snvs-pwrkey.txt
new file mode 100644
index 0000000..8f0826f
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/snvs-pwrkey.txt
@@ -0,0 +1,26 @@
+* Freescale i.MX SNVS powerkey device tree bindings
+
+The snvs-pwrkey is designed to enable POWER key function which controlled
+by SNVS ONOFF, the driver can report the status of POWER key and wakeup
+system if pressed after system suspend.
+
+Required SoC Specific Properties:
+- compatible: Should be "fsl,imx6sx-snvs-pwrkey".
+
+- reg: Physical base address of the SNVS and length of memory mapped
+ region.
+
+- interrupts: The SNVS interrupt number to the CPU(s).
+
+- fsl,keycode: Keycode to emit, KEY_POWER by default.
+
+- fsl,wakeup: Button can wake-up the system
+
+Example:
+snvs-pwrkey@0x020cc000 {
+ compatible = "fsl,imx6sx-snvs-pwrkey";
+ reg = <0x020cc000 0x4000>;
+ interrupts = <0 4 0x4>;
+ fsl,keycode = <116>; /* KEY_POWER */
+ fsl,wakeup;
+};
--
1.9.1
next reply other threads:[~2015-05-12 16:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 16:50 Frank.Li [this message]
2015-05-12 16:50 ` [PATCH 2/3] input: keyboad: imx: add snvs power key driver Frank.Li
2015-05-12 18:43 ` Dmitry Torokhov
2015-05-12 20:37 ` Zhi Li
2015-05-12 21:21 ` Dmitry Torokhov
2015-05-13 14:35 ` Zhi Li
2015-05-12 16:50 ` [PATCH 3/3] arm: dts: imx6sx: enable snvs power key Frank.Li
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=1431449438-19460-1-git-send-email-Frank.Li@freescale.com \
--to=frank.li@freescale.com \
--cc=b38343@freescale.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=lznuaa@gmail.com \
--cc=shawn.guo@linaro.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).