linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 1/5] dt-bindings: fsl: scu: add scu key binding
@ 2019-09-03 21:36 Anson Huang
  2019-09-03 18:01 ` Rob Herring
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Anson Huang @ 2019-09-03 21:36 UTC (permalink / raw)
  To: robh+dt, mark.rutland, shawnguo, s.hauer, kernel, festevam,
	catalin.marinas, will, dmitry.torokhov, aisheng.dong,
	ulf.hansson, fugang.duan, peng.fan, daniel.baluta,
	leonard.crestez, mripard, olof, arnd, jagan, bjorn.andersson,
	dinguyen, marcin.juszkiewicz, stefan, gregkh, andriy.shevchenko,
	yuehaibing, tglx, ronald, m.felsch, ping.bai, 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>
---
Changes since V2:
	- use "key" instead of "pwrkey" as the key function can be defined in DT.
---
 .../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..5eab7d0 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,keycode = <KEY_POWER>;
+		};
+
 		watchdog {
 			compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
 			timeout-sec = <60>;
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-09-16  2:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03 21:36 [PATCH V3 1/5] dt-bindings: fsl: scu: add scu key binding Anson Huang
2019-09-03 18:01 ` Rob Herring
2019-09-03 21:36 ` [PATCH V3 2/5] input: keyboard: imx_sc: Add i.MX system controller key support Anson Huang
2019-09-03 10:05   ` Oleksij Rempel
2019-09-12 20:22   ` Dmitry Torokhov
2019-09-16  2:44     ` Anson Huang
2019-09-03 21:36 ` [PATCH V3 3/5] arm64: dts: imx8qxp: Add scu key node Anson Huang
2019-09-03 21:36 ` [PATCH V3 4/5] arm64: dts: imx8qxp-mek: Enable scu key Anson Huang
2019-09-03 21:36 ` [PATCH V3 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).