From patchwork Fri May 15 13:36:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6414951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 80A92C0432 for ; Fri, 15 May 2015 14:50:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9270820377 for ; Fri, 15 May 2015 14:50:44 +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 AF2BE20155 for ; Fri, 15 May 2015 14:50:43 +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 1YtGuF-0002KU-N9; Fri, 15 May 2015 14:48:07 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YtGsL-0000ui-Tq for linux-arm-kernel@bombadil.infradead.org; Fri, 15 May 2015 14:46:10 +0000 Received: from mail-bn1bon0148.outbound.protection.outlook.com ([157.56.111.148] helo=na01-bn1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YtGsJ-0004sm-Mg for linux-arm-kernel@lists.infradead.org; Fri, 15 May 2015 14:46:08 +0000 Received: from BN3PR0301CA0028.namprd03.prod.outlook.com (10.160.180.166) by BY2PR0301MB0776.namprd03.prod.outlook.com (10.160.64.12) with Microsoft SMTP Server (TLS) id 15.1.160.19; Fri, 15 May 2015 14:45:43 +0000 Received: from BN1AFFO11OLC001.protection.gbl (2a01:111:f400:7c10::114) by BN3PR0301CA0028.outlook.office365.com (2a01:111:e400:4000::38) with Microsoft SMTP Server (TLS) id 15.1.166.22 via Frontend Transport; Fri, 15 May 2015 14:45:43 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC001.mail.protection.outlook.com (10.58.53.72) with Microsoft SMTP Server (TLS) id 15.1.160.8 via Frontend Transport; Fri, 15 May 2015 14:45:42 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t4FEjA55016852; Fri, 15 May 2015 07:45:38 -0700 From: To: , , , , , , , Subject: [PATCH 6/7] document: devicetree: input: imx: i.mx snvs power device tree bindings Date: Fri, 15 May 2015 21:36:29 +0800 Message-ID: <1431696990-23078-7-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431696990-23078-1-git-send-email-Frank.Li@freescale.com> References: <1431696990-23078-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC001; 1:muQoshis3IDe3wi4mkq85hgSjsWh96RRy88qyuJ9/VyhLa08RJhkQAc8ynqnUOT4Tn//rvPqUa0hvh7sdCYFaZMfT5WV4i2lsb8rJU/Ildbs/KLqXZNhhEdZ5oOKhbaGAW7qgJpoAqH4WtmUQPcdNTUyqq4xgRfg0b9dczcDIFbBxffRlL9kN8QINuqsyO9Gvyp3XVuZYGAtEmgjW9cT23t4YiXs4zb73z6FME62DvqvJwRLz3e7DvQqkwn/VMO78zcdK7yj2DHcRg+Xh/QQ8wytjdsON9fGCoCkpY3ZhrdgtFF5TxdABSMwoD2dCtypgdc7uEbYNe5NnRV5koK19g== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(105606002)(229853001)(106466001)(77096005)(104016003)(5001770100001)(50226001)(189998001)(5001960100002)(107886002)(50986999)(76176999)(19580405001)(19580395003)(85426001)(46102003)(47776003)(86362001)(87936001)(6806004)(2201001)(86152002)(77156002)(62966003)(36756003)(92566002)(2950100001)(50466002)(48376002)(4001430100001)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0776; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0776; 2:+vlecaLnW7iew9/iKfpvmIHMBxa7uueUdxmD1sRsXVMNmOgzKvXDYc4E0UTH9AuK; 2:UN06hV0X/RLP/LHGsyIyINlTVhN3VwDwnNUIDO8ZBCig4QkwQyNCfF7koriWx+y2rqEX189/C6zRwugrgq/sHyLWFGsk6ATjz6TRYD07JWGFTZ1I/n6L0biBiDUhBqS+P1g7+DSDrcKLy0zwgMWD06ZLHRzetjXL+Thq9wEhLyT5jB76SWn79FVz3AiJ5dFQsQ3ZxZHBkCtImgV4DABOZXnnBCNOG+adOGcRX+xHioI=; 6:/FryG46stcs6BKl3BVIGHrDgl0bOkfijEJ6aRGsMP/w0cLe5St8ws/2A2Holk5bJO7JNRXChvtS2ii2UQlT8Wqs9tMn/QvRzuL2qOosue7jgpMD3am69z6lQzq5JuehkbceimptdtzpKSjzPHcKHXJBSLI/3Cn8hVLvfRCh8JvXeWBA6/g7kIVCLtGtguN8JqOwWJfhe7Ta2pXKgyrKqTl+cIJ9qyn5oMmU1XtSfi58YTk95oIZq47Z5HNVc4uzVtFXUX6bSKdS3Iki1v5UtNmHAAiRlJg0FpbIM8lhzdp0bXwNAD47MkSPrES8zbBPRxmiVDtqjfFu7w8Z7xvizmA==; 3:xaoUwU+TR8ALiT+BQALKjbCLJaGqtgw2zz4yhA5vU7pH2iMpFASWqgDaQnCGVCgu5Xhqa11iDaHB5cXGXBTHupzJCSC2MF3BPnZvNv8gVbE0q6Ok0nGiKU3rYerVpkXs4wriSgpo/4LVxSXfb95iZcVPmuQ3JacPrBLJQam8HUTaAoh/joS0+zIAiAAZNk2zqHU1DfswZCnHQnQalu1arVLgKBTWjVk1pZZcd80B17zjpB/PYX9nKrlB1cOi6nWnrj2uoJoUybR7xr2k1/sdwFkEbF2AfLb54AKL+Gg7NbM= 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: 0577AD41D6 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0776; 9:Cs4ul0PpiPBb2fcZ/blP+20FrLHC2+SS02GnHqhYHBIcWxQRP8vD6+YH8coZAuX0/iWnoKTb2HIMMPsIU89cgb8/lvwY9/78xPGsnrlAS9VHXADok/DzG11J4LqBblH0jW+GyA17Cq5zg3DwUgEVz+0j65Di0Q4SuRMxfmHZ40IRn2wH/0HW2o2JHjBZy57zsTccCeCxU8mSmLCYgc+vcgYgm1pBIrjfcSNMEdlPKOIAgk2QXR4TnhaaX9jZw3y60elSy0F98fpanw8oFmhkBJoeLZww8BacFD9WtuAGPLUUOhIGBhL8vGUs4o1G5kb4Ne6lC3i91umhIZ+I1CYXHvjrrkErfs5oPl/3gMTS7u4umsR3QrPBYRMNXbdI7rV2PkWNN6fXZdxhq2RucWa6v2KbIZiqOzd7liAADQ5JJiLpO3SR6rYRv+Rvhxf3onVNQxCxgjMRB/q6Ca0hUEcZdKv5fUUekQhB0xM1ZRfbi4WgDcDpnJxPe3Mu6ZboFT2M1MKDHWYy9MDs8M8IMfSnKpZJNhkC+C5GrrI3Re6DGB1jqvr4h3Kosg3C7tessIKmTA+6+EW448AY2QsMvxWWPxiFYCtdHca9sSCAQvtWQJz3jBLMmV0eWdYiX2we3PdomYt5lC3r3eHv7aJqvR6wiKACw4lcEcjM4GGGV6vXXcRkfNZvg33FZsIBvPwsmSUBfcDr6ny3SOKbhaEW29heLp8IuOA8Zgj0FdVyD+IGDB4/KBrO54/TrWglxVz8/QBkgjY/c9K0cYFRjCt7z51+CMhIwLGUgq3q6T1TJDbeXQvr360X2d3KDHMU8gA1hHFjUwHX4fufo2bS4lFdf3h2HaGinYWvUHjnkCyT5pCIDtMFFzLwUQOrekeCdy/1NWg5bbmQJKXUwxPedE6ko7XFE1itMCiMc8AYT8VPQyiNTn4= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0776; 3:BczVXHIaF8yUVm7YDF3c/hoiCgK8uv/okSbAO9SK9KwuJ67Cm7aq0qdQUbWKWTzgmpe6m6ic7rwSb6iEwHM/RN0M4R2TCLo1lk9Ndd2qZrtXvVp4JI/wI+3W8p84gA4BVZDoQu9x8BzXOovQoFF5dA==; 10:odorMcriOCwJRLMafARVPEVzY2FpYN0KzQIY3ZQHPdfjEXWgA2QsrADTd6yU2Ns8ElX6TRkzBnddqa9zY+rebtpfYVIV9yfkENjqHqnxZjY=; 6:lKC4cJYlUJHJYGGiaIGerAohNIULtZONUwW/O0mBNS+dmz12f+vMF+ZXLLAPLCEC X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2015 14:45:42.6779 (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.168.50]; Helo=[tx30smr01.am.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-20150515_104607_937215_F62BD300 X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) Cc: devicetree@vger.kernel.org, Frank Li , rtc-linux@googlegroups.com, linux-pm@vger.kernel.org, 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=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 ca04206..99a57b7 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt +++ b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt @@ -394,6 +394,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 { @@ -475,6 +510,13 @@ FULL EXAMPLE snvs_poweroff: snvs-poweroff@38 { compatible = "fsl,sec-v4.0-poweroff"; }; + + 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