Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3721363ybp; Sun, 6 Oct 2019 18:45:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3LAf40vByWo6pXMeg1f9kzi5o0kxWcpsjV3HJ0AWi1UF5FRAGZUaEG6yahA1X8aQUrMXx X-Received: by 2002:a17:906:6d4:: with SMTP id v20mr21117759ejb.223.1570412708837; Sun, 06 Oct 2019 18:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570412708; cv=none; d=google.com; s=arc-20160816; b=RXmANZbgX09hitqNB13MKEI5LSEA/lEE48VkJCvLWsyTziDzLV32CXY35znJJ7QkC5 X1Q4XMIJYuGRfN2LGt/tw6Gja2RHWpIBeomxlKNvqLwQG8vXGLs+KzH8wGR1gbLuZJYE nASjiRM1YH47RIDw2P/FVRtwIkzFv8MdqSvte5iQ17QTOaHK4KgIeqJNvg39tys739fa MO4vIu5gGbOSrt3C1HKecEYRJ3wAf2tYwiXv2GrXF0IEDpR/O/8C5V0UUXQ3Xag1zVDO yDIZM/lyCXY5VQjiAY38GSxuIpJiyBhejpa2+Q4URg/f6yb/jtRxpgWpEG/2tQ4kU1Sw I+Xw== 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=4uuZIiCWHDGazd8hAGb82cKm4Wuh74/zSPRNF5QoDZY=; b=ufrEAKY9Mm1Ywm4TMPOKX0/Uiqrm1NDTJmcFvioljkZzP3KO8Fcs7QdI8gxrhLUjjj cU2AdMAH0tK2q1KxbBe9UNwltL2Ej/mmry8D5kRf+vjFvxldbVAc38rjXzPZ0KjMypoq jqzyeYNsMiUJgI4Pn9Pq7xjESdegEy37i+wkfadEXQE78ILhk0o7j9u//Vv8kFQxg/su AEOHuHyp1iGkkvbaTJXxc/w2O8MBav7uyterTr1ipGuvX6/WGQ+ZTawHngqd/WwXMcuF nQ5Iqv/Bc3RHxNDnv047b3gA/8vEw8ZgIorhQR2VrFmttQfVAoih8L/wxLP3nDI0TyCK Fs8g== 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 t16si7853621edd.269.2019.10.06.18.44.34; Sun, 06 Oct 2019 18:45:08 -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 S1726839AbfJGBo3 (ORCPT + 99 others); Sun, 6 Oct 2019 21:44:29 -0400 Received: from inva021.nxp.com ([92.121.34.21]:58404 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbfJGBo3 (ORCPT ); Sun, 6 Oct 2019 21:44:29 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CF4582002D6; Mon, 7 Oct 2019 03:44:26 +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 18F032005AF; Mon, 7 Oct 2019 03:44:07 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id BC05C40299; Mon, 7 Oct 2019 09:43:53 +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, peng.fan@nxp.com, fugang.duan@nxp.com, leonard.crestez@nxp.com, daniel.baluta@nxp.com, olof@lixom.net, mripard@kernel.org, bjorn.andersson@linaro.org, jagan@amarulasolutions.com, dinguyen@kernel.org, marcin.juszkiewicz@linaro.org, arnd@arndb.de, andriy.shevchenko@linux.intel.com, stefan@agner.ch, enric.balletbo@collabora.com, yuehaibing@huawei.com, ping.bai@nxp.com, m.felsch@pengutronix.de, ronald@innovation.ch, 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 V6 1/5] dt-bindings: fsl: scu: add scu key binding Date: Mon, 7 Oct 2019 09:41:45 +0800 Message-Id: <1570412509-7893-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 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 Reviewed-by: Rob Herring --- Changes since V5: - use "linux,keycodes" instead of "linux,keycode" 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..70c1a62 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,keycodes = ; + }; + watchdog { compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt"; timeout-sec = <60>; -- 2.7.4