linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V6 1/5] dt-bindings: fsl: scu: add scu key binding
@ 2019-10-07  1:41 Anson Huang
  2019-10-07  1:41 ` [PATCH V6 2/5] input: keyboard: imx_sc: Add i.MX system controller key support Anson Huang
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Anson Huang @ 2019-10-07  1:41 UTC (permalink / raw)
  To: robh+dt, mark.rutland, shawnguo, s.hauer, kernel, festevam,
	catalin.marinas, will, dmitry.torokhov, aisheng.dong,
	ulf.hansson, peng.fan, fugang.duan, leonard.crestez,
	daniel.baluta, olof, mripard, bjorn.andersson, jagan, dinguyen,
	marcin.juszkiewicz, arnd, andriy.shevchenko, stefan,
	enric.balletbo, yuehaibing, ping.bai, m.felsch, ronald,
	devicetree, linux-kernel, linux-arm-kernel, linux-input
  Cc: Linux-imx

NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as
system controller, the system controller is in charge of system
power, clock and scu key event etc. management, Linux kernel has
to communicate with system controller via MU (message unit) IPC
to get scu key event, add binding doc for i.MX system controller
key driver.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Changes since V5:
	- use "linux,keycodes" instead of "linux,keycode" in example.
---
 .../devicetree/bindings/arm/freescale/fsl,scu.txt          | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
index c149fad..70c1a62 100644
--- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
+++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
@@ -157,6 +157,15 @@ Required properties:
 Optional properties:
 - timeout-sec: contains the watchdog timeout in seconds.
 
+SCU key bindings based on SCU Message Protocol
+------------------------------------------------------------
+
+Required properties:
+- compatible: should be:
+              "fsl,imx8qxp-sc-key"
+              followed by "fsl,imx-sc-key";
+- linux,keycodes: See Documentation/devicetree/bindings/input/keys.txt
+
 Example (imx8qxp):
 -------------
 aliases {
@@ -220,6 +229,11 @@ firmware {
 			compatible = "fsl,imx8qxp-sc-rtc";
 		};
 
+		scu_key: scu-key {
+			compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
+			linux,keycodes = <KEY_POWER>;
+		};
+
 		watchdog {
 			compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
 			timeout-sec = <60>;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-25  2:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07  1:41 [PATCH V6 1/5] dt-bindings: fsl: scu: add scu key binding Anson Huang
2019-10-07  1:41 ` [PATCH V6 2/5] input: keyboard: imx_sc: Add i.MX system controller key support Anson Huang
2019-10-07  1:41 ` [PATCH V6 3/5] arm64: dts: imx8qxp: Add scu key node Anson Huang
2019-10-18  1:40   ` Anson Huang
2019-10-25  2:57     ` Shawn Guo
2019-10-07  1:41 ` [PATCH V6 4/5] arm64: dts: imx8qxp-mek: Enable scu key Anson Huang
2019-10-07  1:41 ` [PATCH V6 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_KEY as module Anson Huang

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).