public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix•de>
To: Anson Huang <Anson.Huang@nxp•com>,
	robh+dt@kernel•org, mark.rutland@arm•com, shawnguo@kernel•org,
	s.hauer@pengutronix•de, kernel@pengutronix•de,
	festevam@gmail•com, catalin.marinas@arm•com, will@kernel•org,
	dmitry.torokhov@gmail•com, aisheng.dong@nxp•com,
	ulf.hansson@linaro•org, fugang.duan@nxp•com, peng.fan@nxp•com,
	daniel.baluta@nxp•com, leonard.crestez@nxp•com,
	mripard@kernel•org, olof@lixom•net, arnd@arndb•de,
	jagan@amarulasolutions•com, bjorn.andersson@linaro•org,
	dinguyen@kernel•org, marcin.juszkiewicz@linaro•org,
	stefan@agner•ch, gregkh@linuxfoundation•org,
	andriy.shevchenko@linux•intel.com, yuehaibing@huawei•com,
	tglx@linutronix•de, ronald@innovation•ch,
	m.felsch@pengutronix•de, ping.bai@nxp•com,
	devicetree@vger•kernel.org, linux-kernel@vger•kernel.org,
	linux-arm-kernel@lists•infradead.org,
	linux-input@vger•kernel.org
Cc: Linux-imx@nxp•com
Subject: Re: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding
Date: Tue, 3 Sep 2019 08:32:15 +0200	[thread overview]
Message-ID: <21d2e400-976a-35c3-6875-4cc0c476fdf2@pengutronix.de> (raw)
In-Reply-To: <1567519424-32271-1-git-send-email-Anson.Huang@nxp.com>



On 03.09.19 16:03, Anson Huang wrote:
> 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.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp•com>
> ---
> Changes since V1:
> 	- remove "wakeup-source" property, as it is NOT needed for SCU interrupt;
> 	- remove "status" 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..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

linux,keycodes is required parameter. So, this kay cab be anything. Why the compatible is 
called pwrkey? Probably it is better to call it "*-sc-key"

> +
>   Example (imx8qxp):
>   -------------
>   aliases {
> @@ -220,6 +229,11 @@ firmware {
>   			compatible = "fsl,imx8qxp-sc-rtc";
>   		};
>   
> +		scu_pwrkey: scu-pwrkey {
> +			compatible = "fsl,imx8qxp-sc-pwrkey", "fsl,imx-sc-pwrkey";
> +			linux,keycode = <KEY_POWER>;
> +		};
> +
>   		watchdog {
>   			compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
>   			timeout-sec = <60>;
> 

Kind regards,
Oleksij Rempel

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

  reply	other threads:[~2019-09-03  6:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 14:03 [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding Anson Huang
2019-09-03  6:32 ` Oleksij Rempel [this message]
2019-09-03  6:37   ` Anson Huang
2019-09-03  6:47     ` Oleksij Rempel
2019-09-03  6:55       ` Anson Huang
2019-09-03 14:03 ` [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support Anson Huang
2019-09-03  2:38   ` Fabio Estevam
2019-09-03  3:11     ` Anson Huang
2019-09-03  6:12       ` Dmitry Torokhov
2019-09-03  6:29   ` Oleksij Rempel
2019-09-03  6:48     ` Anson Huang
2019-09-03  7:28       ` Oleksij Rempel
2019-09-03  7:35         ` Anson Huang
2019-09-03  7:43           ` Oleksij Rempel
2019-09-22 16:14         ` Pavel Machek
2019-09-03 14:03 ` [PATCH V2 3/5] arm64: dts: imx8qxp: Add scu power key node Anson Huang
2019-09-03 14:03 ` [PATCH V2 4/5] arm64: dts: imx8qxp-mek: Enable scu power key Anson Huang
2019-09-03 14:03 ` [PATCH V2 5/5] arm64: defconfig: Enable CONFIG_KEYBOARD_IMX_SC_PWRKEY as module Anson Huang
2019-09-22 16:13 ` [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding Pavel Machek
2019-09-23  2:31   ` Anson Huang
2019-09-22 16:14 ` Pavel Machek
2019-09-23  2:34   ` Anson Huang
2019-10-06  0:32     ` Shawn Guo
2019-10-07  1:29       ` Anson Huang

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=21d2e400-976a-35c3-6875-4cc0c476fdf2@pengutronix.de \
    --to=o.rempel@pengutronix$(echo .)de \
    --cc=Anson.Huang@nxp$(echo .)com \
    --cc=Linux-imx@nxp$(echo .)com \
    --cc=aisheng.dong@nxp$(echo .)com \
    --cc=andriy.shevchenko@linux$(echo .)intel.com \
    --cc=arnd@arndb$(echo .)de \
    --cc=bjorn.andersson@linaro$(echo .)org \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=daniel.baluta@nxp$(echo .)com \
    --cc=devicetree@vger$(echo .)kernel.org \
    --cc=dinguyen@kernel$(echo .)org \
    --cc=dmitry.torokhov@gmail$(echo .)com \
    --cc=festevam@gmail$(echo .)com \
    --cc=fugang.duan@nxp$(echo .)com \
    --cc=gregkh@linuxfoundation$(echo .)org \
    --cc=jagan@amarulasolutions$(echo .)com \
    --cc=kernel@pengutronix$(echo .)de \
    --cc=leonard.crestez@nxp$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-input@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=m.felsch@pengutronix$(echo .)de \
    --cc=marcin.juszkiewicz@linaro$(echo .)org \
    --cc=mark.rutland@arm$(echo .)com \
    --cc=mripard@kernel$(echo .)org \
    --cc=olof@lixom$(echo .)net \
    --cc=peng.fan@nxp$(echo .)com \
    --cc=ping.bai@nxp$(echo .)com \
    --cc=robh+dt@kernel$(echo .)org \
    --cc=ronald@innovation$(echo .)ch \
    --cc=s.hauer@pengutronix$(echo .)de \
    --cc=shawnguo@kernel$(echo .)org \
    --cc=stefan@agner$(echo .)ch \
    --cc=tglx@linutronix$(echo .)de \
    --cc=ulf.hansson@linaro$(echo .)org \
    --cc=will@kernel$(echo .)org \
    --cc=yuehaibing@huawei$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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