Thread (16 messages) 16 messages, 6 authors, 2019-10-07

RE: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

From: Anson Huang <hidden>
Date: 2019-10-07 01:29:27
Also in: linux-arm-kernel, linux-devicetree, lkml

Hi, Shawn
On Mon, Sep 23, 2019 at 02:34:07AM +0000, Anson Huang wrote:
quoted
Hi, Pavel
quoted
Subject: Re: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key
binding

On Tue 2019-09-03 10:03:40, Anson Huang wrote:
quoted
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 power key event etc. management, Linux kernel has
to communicate with system controller via MU (message unit) IPC to
get power key event, add binding doc for i.MX system controller power
key driver.
quoted
quoted
quoted
Signed-off-by: Anson Huang <redacted>
---
Changes since V1:
	- remove "wakeup-source" property, as it is NOT needed for SCU
interrupt;
quoted
	- remove "status" in example.
---
 .../devicetree/bindings/arm/freescale/fsl,scu.txt          | 14
++++++++++++++
quoted
 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..f93e2e4 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.

+Power key bindings based on SCU Message Protocol
+------------------------------------------------------------
+
+Required properties:
+- compatible: should be:
+              "fsl,imx8qxp-sc-pwrkey"
+              followed by "fsl,imx-sc-pwrkey";
+- linux,keycodes: See
+Documentation/devicetree/bindings/input/keys.txt
Note you have keycode_s_ here, but keycode in the example and in the
dts patch.
NOT quite understand your point, could you please provide more details?
The property being used in driver, DTS, and DT example in the bindings are
all 'linux,keycode' rather than 'linux,keycodes'.
I see now, since Documentation/devicetree/bindings/input/keys.txt uses "linux,keycodes",
so I will also use "linux,keycodes" for driver, DTS and DT example in V3.

Thanks,
Anson
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help