Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1325975ybe; Mon, 2 Sep 2019 19:06:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqnOkJws72gaSUZqyXGlZixWoLvRmNojdWG3FxBQ5BQK2xTCaCW5X4qK6qssVag018fk7h X-Received: by 2002:a17:90a:360b:: with SMTP id s11mr16350384pjb.30.1567476364435; Mon, 02 Sep 2019 19:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567476364; cv=none; d=google.com; s=arc-20160816; b=hAx29tqsrvt5Y2Rsq6va0czasgzT43u+4cGMHtLktxzh/Ar0r42MtBP9yCIIMjFisl h06Vg3ITlCnNyYbevVaay8i6Fv8b4uOE21DZkF37jbIA0Oym8i0tNpvQ3QReWCQYmapL ltQdmIVxlZswtWxOmU74ir2RzcHsabolgcgaJFzd3PaOUwqwj8Ay+uRBNDRmWXh+YDN0 KErcAESOWjvUB5vrCsPM7DHSeeL3qiMyCELDuSbsU9wxhtOJohgy+XQJ2u340cFBQyeE P+CYCNaL0uXBxKipTQcAZyTQZkLj04DcXTaR9XovGGyX01FWpvMQA9FYnzJoG/SVVBPz ZBug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=1ihvLgRjCqJbiXmWMxJLxnfw0HvNbrwBhRt1SWzE0d8=; b=IAj3WKphWpOi3z85Z/b2h0G0a0txUip+sY1d1i8fbwQRFQw9prxFRbrTu/+LU8THz8 /27I2xzaxEnRMU4/UgJRAn0muxRHD3izYK6+1Q0+dkAsZSbhP/qFY7ciqPfUz2r8cv6d hWKI3dOYiAO7deshi2/HAe0xASN1ndKfqjT3+3jNLi3AMW90IaROgDip+ZcwE4GaDNLE EWPZOrUv06WboLQPK7h7YdljkVE2krzPuEUWzORMgUreqNwyc9Khg+69NtH8OmcTQuIc OfSiIbow1INHIJP3jtL2FnziVe159B7aawvtqQOI9dLQv6ImzNRaZfqvQk1qrhvOs5AX sX9g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h24si17153765pfq.84.2019.09.02.19.05.48; Mon, 02 Sep 2019 19:06:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfICCFB (ORCPT + 99 others); Mon, 2 Sep 2019 22:05:01 -0400 Received: from inva021.nxp.com ([92.121.34.21]:53300 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbfICCFA (ORCPT ); Mon, 2 Sep 2019 22:05:00 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 598E2200214; Tue, 3 Sep 2019 04:04:58 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2F2E420015E; Tue, 3 Sep 2019 04:04:40 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2F4A0402B1; Tue, 3 Sep 2019 10:04:26 +0800 (SGT) From: Anson Huang To: 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: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding Date: Tue, 3 Sep 2019 10:03:40 -0400 Message-Id: <1567519424-32271-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 + 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>; -- 2.7.4