From patchwork Thu May 21 16:16:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6457211 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 530CF9F318 for ; Thu, 21 May 2015 16:21:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 88AE120274 for ; Thu, 21 May 2015 16:21:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A464A20497 for ; Thu, 21 May 2015 16:21:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YvTBc-0001Nh-LE; Thu, 21 May 2015 16:19:08 +0000 Received: from mail-bn1bbn0107.outbound.protection.outlook.com ([157.56.111.107] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YvTAo-00015G-9N for linux-arm-kernel@lists.infradead.org; Thu, 21 May 2015 16:18:19 +0000 Received: from BY2PR03CA001.namprd03.prod.outlook.com (10.255.93.18) by BY2PR0301MB0776.namprd03.prod.outlook.com (10.160.64.12) with Microsoft SMTP Server (TLS) id 15.1.172.22; Thu, 21 May 2015 16:17:54 +0000 Received: from BY2FFO11OLC010.protection.gbl (10.255.93.4) by BY2PR03CA001.outlook.office365.com (10.255.93.18) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Thu, 21 May 2015 16:17:54 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11OLC010.mail.protection.outlook.com (10.1.15.21) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Thu, 21 May 2015 16:17:54 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t4LGHVp7014734; Thu, 21 May 2015 09:17:51 -0700 From: To: , , , , , Subject: [PATCH v3 5/6] document: devicetree: input: imx: i.mx snvs power device tree bindings Date: Fri, 22 May 2015 00:16:51 +0800 Message-ID: <1432225012-20598-6-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432225012-20598-1-git-send-email-Frank.Li@freescale.com> References: <1432225012-20598-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC010; 1:JfLZ3kzfYdZrecamKkp30MeKuf6WQeN+Iu1oA2ge2QSX87CEg2Fr4HRCrajLhakoc4nsjo4u+vuRsCJk7b5Sd75zWYJWZNb/5LX2JjdTIdMNoHfhl1cZD+T5aUfALtDzyP02WEcLMnVFrNz3moY/8SKDD2oLJUAYId6AH2miBd5N+myqYbJWStSd0ed6gxT6f2Y2mO1z98SYjBiPw/LnYQ4j4fdgrLYJFfVCI5W92YSe8mpLQ48dxUFqz6u7/cEWjd9ZP4gCF5vW/uQaqt5vtS0ITYL+5057N+MtIws7fXPcQuIIFUQlmpglKK56RRoks0pAh1J3JofsGFE2fgGriA== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(5001770100001)(5001860100001)(77156002)(62966003)(5001830100001)(97736004)(105606002)(50986999)(81156007)(4001540100001)(229853001)(87936001)(92566002)(86362001)(50466002)(86152002)(47776003)(6806004)(69596002)(48376002)(64706001)(19580405001)(19580395003)(2201001)(85426001)(106466001)(36756003)(2950100001)(50226001)(76176999)(104016003)(77096005)(46102003)(189998001)(68736005)(5001960100002)(107886002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0776; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0776; 2:t1H9CJjirsw3kKhzLItOBctsAB8Ypg1RoBCtLPFWqJMb/pspEgfs9n5yZWAnitfy; 2:ho0BdbSk2f2s+qgil1Js1TcdiYaMO7aS6d+omvvtmm4FbIXnXiZV7XBthA/TJ8G6lSkoKHkowN20JsSYXtcNrYRegroaTDGr2eQNZ/eKWrRo6iT+6IXiHgLoJ31Urixh5vBtVHT/Vun7oEkHxh0pQwc+JBW5EzdbReWbH6/FDo4rsLZBMlOXSrYtRypKWy75cz4cPvlbptgpKWeEYYT9uyJlqIX9ozJIs5zFFW1Ix/0=; 6:frpcw7hfFZyTpVrP9YaRaYO804Cff5HegOv0137haExGx+Nip074ps7hvgc9uv6AYvH0XWhdI/Pp7kuYXrJ5ZUVd3t1k+RMw/lTc46jpByCGi38BIbKbwssyg5XTxQN4CRXWpkAMo6w4pLclRRH6y8O85HdhrzmmOEZuOGxkp9TZ/yph0v77f+vf23O4675MbyLDw5RaZs5KYuPcuEnh5TRXlDEhjgaZfm4JDiH3VmR7xO7lToXQ2d8wX4JA0uc9AGYGMhvH6vPTy4UP/6myrV7ECB+rBJfwR5K46HXQ1CU8d3aUfTXbz+meexGnBTtR8TyR75D0Ul/fofEXLx02jQ==; 3:zM/pojZ6+z3XeJT/baNTZHWvP1fVCgHLANjW6lmxAc513fUx1P3ZNOAPS/D8p1EAPySiQt/B44gs49420vRPXV5S6vJgMRP6Rnuer+w7FKtM1bN+jglgldeymshgl4AM6fW8BJ2QIfYyZSWfx1IfuNUPPeP6Bq9rQaOEzVZ4glaruhwWAn6jVvUY3Sg7uPyuRrj4yTYjmUL79KETxJuJTs3D4SSTwYXmivArQNu+7360UqCBk42eLg9pywBlRvL7TtgqlNilpdcOFFtm06YYwVRBoqsf62PluYuSPNY/8KY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0776; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY2PR0301MB0776; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0776; X-Forefront-PRVS: 0583A86C08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0776; 9:Qs52oVGmBwGQfb8BJsXaC8Kp7OGsbOD7edWrYz17?= =?us-ascii?Q?rLABHH3ZsZcLAc9vp8jrZO9Dj+y+alvES9Qa0dgtDnA/OHAd6Yc1zA4pW9Uq?= =?us-ascii?Q?NYvvpkAImuZY4Y4HwY5Jf3rKi55uyRyyF2WhLdGZ4FmHv3x+hvYvecVVfLUe?= =?us-ascii?Q?64iYZMHudJW1xgTtr7TL9OnpujArwq5vfnTVwMwGwmXGAbpEE8gnKvLL8Jdu?= =?us-ascii?Q?eZQvSBGuIWVL3advdvJTra1ltSbGvHpuWQSvS4z9tvAU4PE7wUKSlE2hxhd4?= =?us-ascii?Q?zUTn4wtI2iggJNebr5iJJTn982GJWaJynrwBbZrYpwNLai2fqilLTNyA1yYB?= =?us-ascii?Q?YfOA4mOhDnkUi5Phmd5/MPKt6F9ukNtH4BkSu+tEV0BfPxnepyc0zVp+3A3T?= =?us-ascii?Q?hwgvhuqP15u1ShHACCIBbqsDMfFDbvPyC3sFfLT95+XClvNQ9GUZknbxtb4x?= =?us-ascii?Q?rGIOuY807zjzazJcOoFcq4WV/kUnFIVgIrxvQ13kn7Wqitg8Uxf2Y/SKlrQ3?= =?us-ascii?Q?Vt20qkN7cQutaht9bu5Aco2CGo1rqsfpnrjDF4tZEm2BQwYv3PHLeQ/QNPtm?= =?us-ascii?Q?1V4Bsp8U+zSKuDl71lIFNC2Relz+z4acivmZ309nfDB7w/Vko3L7NH/raO5E?= =?us-ascii?Q?3pt+K3isSgq+wxWzX0vw4q0UcpF2AZ2L8kwWfN3d7E9ywAtmOoFIFDaLVUfQ?= =?us-ascii?Q?DobcN2LNZPpMeuAnG9rUBjHok5EKNkxLXRlo87rSoQ8tSS4MuAPysOTr6knT?= =?us-ascii?Q?dZJmeXQAarUDJV/JwfkfAT99XArQ0oW+RYq0mdxdhOLggVueHy5hMJDeZ1lf?= =?us-ascii?Q?YFHPaf4YIfV+MMCXgpy4+kExJRRiH0sK7w099tET3dSQSCluPaLNSqiSDAQG?= =?us-ascii?Q?3L5/1XVpupoP9M3nk3GcbS+Xj5wWgtwxvixMtxOMBBUKempPtcgzDWFR0I4n?= =?us-ascii?Q?oCAQJxtinmueFZ+fE4iktk7LlPOKISE90LNXD3HJC8bR/iXuXRquBfdSdchN?= =?us-ascii?Q?PrLYABooHtkFGlf7bsOyAE7lddYX4QezXNIDG3GxGBa3P/iz0D7aelDxVC3F?= =?us-ascii?Q?xbiYomejuSd8GVCHceodvhr7GllGxNnaJtwnbbcw4JcqstkS2eARL8VCBP0X?= =?us-ascii?Q?+boQlXeDhLs=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0776; 3:/nXK7I+MIA1UipDGrTe9wXviz0p0Wo92sA/qQH3g2ZYPw2m+sA3N7eK4aJC544KiTKEVV++57zMxuQ1RHfv4AOMovrO9qbJRpzuOCIzz7XjpT5Fvxmak19kzkmEFKH8nqdYMWSbt6TXhN3+k68RUyA==; 10:6oNhc0Ab67BAb/BAc+S+fDR95L49IOoG+jYERkSgu9R0Aq0Nii44SPcvqJ4upnM8YdNj9r6XgTl5jNoBymld4KS8Ee3Bpn5ihtJ0XL6hehg=; 6:QnVo2hHdO/DbNvwsF0X3Sya3bjgeNvTQClOEzEbfYKPI+FLzntscais6gvHvFSLE X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2015 16:17:54.3860 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0776 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150521_091818_665551_45CE0DE2 X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.1 (-) Cc: devicetree@vger.kernel.org, Frank Li , rtc-linux@googlegroups.com, Robin Gong , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Frank Li The snvs-pwrkey is designed to enable POWER key function which controlled by SNVS ONOFF. the driver can report the status of POWER key and wakeup system if pressed after system suspend. Signed-off-by: Frank Li Signed-off-by: Robin Gong --- .../devicetree/bindings/crypto/fsl-sec4.txt | 42 ++++++++++++++++++++++ .../devicetree/bindings/input/snvs-pwrkey.txt | 1 + 2 files changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/snvs-pwrkey.txt diff --git a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt index 87f5921..b2a417d 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt +++ b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt @@ -375,6 +375,41 @@ EXAMPLE }; ===================================================================== +System ON/OFF key driver + + The snvs-pwrkey is designed to enable POWER key function which controlled + by SNVS ONOFF, the driver can report the status of POWER key and wakeup + system if pressed after system suspend. + + - compatible: + Usage: required + Value type: + Definition: Mush include "fsl,sec-v4.0-pwrkey". + + - interrupts: + Usage: required + Value type: + Definition: The SNVS ON/OFF interrupt number to the CPU(s). + + - linux,keycode: + Usage: option + Value type: + Definition: Keycode to emit, KEY_POWER by default. + + - wakeup: + Usage: option + Value type: + Definition: Button can wake-up the system + +EXAMPLE: + snvs-pwrkey@0x020cc000 { + compatible = "fsl,sec-v4.0-pwrkey"; + interrupts = <0 4 0x4> + linux,keycode = <116>; /* KEY_POWER */ + wakeup; + }; + +===================================================================== FULL EXAMPLE crypto: crypto@300000 { @@ -452,6 +487,13 @@ FULL EXAMPLE compatible = "fsl,sec-v4.0-mon-rtc-lp"; interrupts = <93 2>; }; + + snvs-pwrkey@0x020cc000 { + compatible = "fsl,sec-v4.0-pwrkey"; + interrupts = <0 4 0x4>; + linux,keycode = <116>; /* KEY_POWER */ + wakeup; + }; }; ===================================================================== diff --git a/Documentation/devicetree/bindings/input/snvs-pwrkey.txt b/Documentation/devicetree/bindings/input/snvs-pwrkey.txt new file mode 100644 index 0000000..70c1425 --- /dev/null +++ b/Documentation/devicetree/bindings/input/snvs-pwrkey.txt @@ -0,0 +1 @@ +See Documentation/devicetree/bindings/crypto/fsl-sec4.txt