Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp432993ybl; Fri, 30 Aug 2019 01:56:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzm+whKzbr8IpqNPYnStQ/xGVgZuZSc28fDwdmmiVGl5jVgW3c40eSarpvP7JrDlCwUPPms X-Received: by 2002:a63:1c22:: with SMTP id c34mr12106238pgc.56.1567155388565; Fri, 30 Aug 2019 01:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567155388; cv=none; d=google.com; s=arc-20160816; b=OSwsBcfT3HSj6ElCBunDzCHZL6BpFCzOBDpbOlRCSc9rWAac0D+Z03zKOa1BCOELHv q8HXfUJhwuVLgu9aojfCk8g+QgiuhB1H3mADuL9suo0ZsyYqk6vAGyKSUKMxtH2Gph9T fyzjp3vOYCLsM8XYH4EX4POOP8xFJrGE1opcQ19iIsde/B5WCdKNs+OhS7ZO6uycNcbU GDrMMqJvvaw3JX083rN4O6AK2yg4/WRVK+1iT2CD5P2bHBjkq70FWhag/xgDoIdUFu6e 0Wbbfu8a6hTXUvYPtVwjWtueZPbjJXP7vJk1qddtG8kPpP+dQc24umarb1+H7xTTnXh5 iG5g== 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=dvhSUhyx0Belig4TUuHSxfTWKTunlG2TEG+ZMlQkoYM=; b=VYnNebhEpwe7BCAUuLqxD0rCwk/NdrSMAqB0JAiurQiXwZUEWKFkRzcAIUHrAujjvC kFFP+s02oDezEFlFQlerQ67+0ZN9VR/2DbcPuDacfEC15UqzlGIb5awvM/ExSUUUb4JP hX1Pq/8FMRxkm3SpBDVBz/KmA/BegWnrYrAYB3JzxB4SjJ6kNAaeKA6iwNmVj7+oBEke /LU8xctQIKoVJ79d6Fbn73JWOg7f0BKBbUcTeFufZrs4LhxoAiU/EjOaFpUH/tDS0gBH D6kl3BAPYjsSoMQ5saWjzfH8N+LlfvVZoUpVVpHdgL/rRO1FBYzAkxPugg72aqn9axDh Ne7A== 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 85si4033408pgb.583.2019.08.30.01.56.11; Fri, 30 Aug 2019 01:56:28 -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 S1727735AbfH3IzR (ORCPT + 99 others); Fri, 30 Aug 2019 04:55:17 -0400 Received: from inva021.nxp.com ([92.121.34.21]:45884 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfH3IzQ (ORCPT ); Fri, 30 Aug 2019 04:55:16 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5B1152003F4; Fri, 30 Aug 2019 10:55:14 +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 571362001C0; Fri, 30 Aug 2019 10:54:56 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EF46E40281; Fri, 30 Aug 2019 16:54:41 +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, olof@lixom.net, mripard@kernel.org, arnd@arndb.de, jagan@amarulasolutions.com, bjorn.andersson@linaro.org, dinguyen@kernel.org, marcin.juszkiewicz@linaro.org, hsweeten@visionengravers.com, tglx@linutronix.de, gregkh@linuxfoundation.org, stefan@agner.ch, ronald@innovation.ch, ping.bai@nxp.com, m.felsch@pengutronix.de, andriy.shevchenko@linux.intel.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 1/5] dt-bindings: fsl: scu: add scu power key binding Date: Fri, 30 Aug 2019 16:53:45 -0400 Message-Id: <1567198429-27886-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 --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index c149fad..001d0b7 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -157,6 +157,17 @@ 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 +Optional Properties: +- wakeup-source: See Documentation/devicetree/bindings/power/wakeup-source.txt + Example (imx8qxp): ------------- aliases { @@ -220,6 +231,13 @@ firmware { compatible = "fsl,imx8qxp-sc-rtc"; }; + scu_pwrkey: scu-pwrkey { + compatible = "fsl,imx8qxp-sc-pwrkey", "fsl,imx-sc-pwrkey"; + linux,keycode = ; + wakeup-source; + status = "disabled"; + }; + watchdog { compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt"; timeout-sec = <60>; -- 2.7.4