Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1551447ybe; Mon, 2 Sep 2019 23:33:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1WRrCa4SCbYaNyu5q6idUJFXPmolLUmqnoDUDwV2IkpLEvAmfGjEmfFMZwl11oiX9iMz3 X-Received: by 2002:a17:902:7892:: with SMTP id q18mr31961001pll.206.1567492409573; Mon, 02 Sep 2019 23:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567492409; cv=none; d=google.com; s=arc-20160816; b=r4yi/qjdyhKRcIGNwUAw3UqyRyO7nSikPMacaFLyI6GgilefrMifVuEdGGVEDypN+I VklWajkGPPUkTaRhJzNMSKKe3XNC9pgVpQQZyBdgnsHGrvpRV6FdieAveRlbq4QjZuFm ACmFtqFG5t7NESNg4g0dFAOaPBsbV+ZpQytialzHa37OMF8rgGdJmdlB3MV5HvJRydvG 8Q8Wb+pP9oHoPijadly4CpUZVHQcBOeJg6FCfNstR6qKIoFTeoG9LNOBqkGNDT/IIJ8I Ydnojp+fr/xHJKLSVq0INbzxv1HZ4Vk1Vj2osC7q5nXO9l2TC3jdbYZrTIeG4gyYRKIB XecQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=iwHvGx4yOq067oBI5yCY4N76xtloMI6ef075VdsM++0=; b=UQs4LFJ8Hz2aTDQcg8hlF4qt6pErXGGz5CFcjGGgZEmtUIxw40/84mdvqvZDEYoEaT iZq/a7heH1aMTPAHEXmeLp07O6q60pin6lMkRSM5vwpRWOy4Ftrx3Scx2kPn3BWgkF+H DbZoBYVCoXPQmOPuWcujSeHNHErcDMPhKYHyet6RNpAbTh2kXTNsHCTnE7xKOVb3lL8K HNNYUHYE/ZF6y0oL/wUWKb1x0uIktKLDauRfL6PoyqQ9VTadY2x35JqBwKKH1RC7NwDw ksOmDfjDee1jQDJs5OOx57N8JgcczGqTMOcFLO6LblflxqWdYmLILNVicEk3oNt5SagM EdtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si16550634pfi.76.2019.09.02.23.33.14; Mon, 02 Sep 2019 23:33:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726946AbfICGcS (ORCPT + 99 others); Tue, 3 Sep 2019 02:32:18 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:36615 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfICGcS (ORCPT ); Tue, 3 Sep 2019 02:32:18 -0400 Received: from soja.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:13da]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1i52MR-0002QC-PT; Tue, 03 Sep 2019 08:32:15 +0200 Subject: Re: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding To: Anson Huang , 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 References: <1567519424-32271-1-git-send-email-Anson.Huang@nxp.com> From: Oleksij Rempel Message-ID: <21d2e400-976a-35c3-6875-4cc0c476fdf2@pengutronix.de> Date: Tue, 3 Sep 2019 08:32:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1567519424-32271-1-git-send-email-Anson.Huang@nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:13da X-SA-Exim-Mail-From: o.rempel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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 = ; > + }; > + > 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 |