From patchwork Fri May 22 14:36:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6465231 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 06069C0020 for ; Fri, 22 May 2015 14:43:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27CDE20483 for ; Fri, 22 May 2015 14:43:15 +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 3B5142045B for ; Fri, 22 May 2015 14:43:14 +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 1Yvo6x-0001t8-Ds; Fri, 22 May 2015 14:39:43 +0000 Received: from mail-bn1bon0766.outbound.protection.outlook.com ([2a01:111:f400:fc10::1:766] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yvo5H-0000aG-Kb for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2015 14:38:03 +0000 Received: from DM2PR03CA0043.namprd03.prod.outlook.com (10.141.96.42) by BY1PR03MB1355.namprd03.prod.outlook.com (10.162.109.25) with Microsoft SMTP Server (TLS) id 15.1.172.22; Fri, 22 May 2015 14:37:43 +0000 Received: from BL2FFO11FD024.protection.gbl (2a01:111:f400:7c09::121) by DM2PR03CA0043.outlook.office365.com (2a01:111:e400:2428::42) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Fri, 22 May 2015 14:37:43 +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 BL2FFO11FD024.mail.protection.outlook.com (10.173.161.103) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Fri, 22 May 2015 14:37:42 +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 t4MEbKvF021930; Fri, 22 May 2015 07:37:38 -0700 From: To: , , , , , Subject: [PATCH v4 5/6] document: devicetree: input: imx: i.mx snvs power device tree bindings Date: Fri, 22 May 2015 22:36:38 +0800 Message-ID: <1432305399-30571-6-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432305399-30571-1-git-send-email-Frank.Li@freescale.com> References: <1432305399-30571-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD024; 1:7oadXbDBSDCCCxY6+s87HVzH2pujGfnSPVZ49HudyGyR5xjSUVzvQSuoLdEWsH9laK3yp5xxNfqUxwB+d45Opt/5WDdnaiu2e/YS20luLcSPfOIPqoDOpT+TOsX726RR4O3zGFgR03x+JyGAKD0h/AL4Lq91j50IMc2Gc9oQmtZePuByh4ScRpBXCVA7iRuV3cCMgP9OxfRK0BSD2q7cgycMfb1z1r7q2SfGOkBorkgrMNKhEs8laBO+6dMZz7IIjMZVe5bJe381ql22MBtWyJQfz0KzJh7YYoc0+6iZqdrK7ac1MSN7m1kfWWMBYnoV2wbiwfmlW9x2ctOkry8Ing== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(19580405001)(19580395003)(69596002)(92566002)(86152002)(64706001)(2201001)(6806004)(87936001)(47776003)(2950100001)(77096005)(68736005)(50226001)(46102003)(62966003)(77156002)(104016003)(229853001)(105606002)(86362001)(48376002)(50466002)(106466001)(97736004)(5001770100001)(81156007)(4001540100001)(5001960100002)(5001860100001)(5001830100001)(189998001)(85426001)(50986999)(76176999)(36756003)(107886002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1355; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1355; 2:sN70t9cmCXp2BMMqyR5PkbLvR6+cUvvk7W3I8NxTvEX+o+vUj1HGBNe7xI5RC39W; 2:yuEgP0sBwcUk7edrrn2EcOF2k5iJr4qr4iWtLHkoKtR5M7WRfbecvg79x7knVp2VjZfnBn0EIMSwkTIr56EMl8+S3S4DCmwcZYR7oO9NaTP3S5ZftamPhVN/LOLbZCoxAL+JPC9dgxadJtIL+X6UaTBELYJq0OdCcSzjdT6Q0+tDRoo7hUmnKpOZJVoQJ9+1Q9oixPqYhuMg0sBk1rYJBjLggdamO3mTOAT7ii3JtyI=; 6:z7FifX4D3VYQRuw4hwcqfM4y9DYYDidPlsg0UeOxyu39NJE2FwZ37G/nmOYDiiwXtbIl8L8ziynONJwhYup4UaHluNRl1hH86CHE/srqIM2aYUqfrxBtYF1GtQMYvpmSsIFq0J0kQmLWoHbG7+72gMkx1QRaASfpkXRp6wacy63a7sJ6mpGdcbG+LmL3p9h64WMIRKjAdfOzxLDBUYREF+Z4OLGcVY0ML68VVoTvns9KYuw0bswjpl9BD7/ZQhZ9baK1K1F8H7YiIVFDfAbFBDbKJuhzG/vQ5aVlsnuAigmH5jm4o58PJS1V4/r/I7aBgKiR6392C4RHRdURArfIrQ==; 3:M5Tcb/Rdtt+GgGm+8Zj4anBWlxneTRtO7xLIiMWSzrP+BQFJAd4QuSaUsYff52yvvj8Xbjsl+VbzhSi5oM3pftOt95h7h0+X8lico2Nx6lp3l2GY1TzAa3+/1Fb1Zg9pbP9mRhVdzDFJm2OFtEN835YVZ/hGvPjAEAyvKlzgQReqbLmuMgUNzaVy5iEUpf1pLbFOdIeE+m6QDF3ngxLoQnZQL4xZEPHfOsfZEJjkACTlwu9fk39a4Ho0bwLfzK8iHhELvy965uDglWHl8uxOuN9x1L4AArPwhgY5JTFplbGbQLijhkXH2NjdaXqWw/GH X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1355; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520002)(3002001); SRVR:BY1PR03MB1355; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1355; X-Forefront-PRVS: 058441C12A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1355; 9:+K0puUihGmvZwmZ/UfW/iowjGaGt3yK/2amSRPO9Vh?= =?us-ascii?Q?GwsgnzulpQiFOuFHJXo+aUbRPuljL5zYjtkhS9QcoIrzz0ZTRaQsbvRgAKpH?= =?us-ascii?Q?3bVOMyq2FbYK8bDhalSYB+8Ye5YpXF+waZdgDMD1f1D7tSMGuudIoyoYRNAh?= =?us-ascii?Q?J+W5xoCRURzx5l30CSLAAlsvggSk+X63lCwgg8Ssr1sbWMNmjkONgKLZyrjD?= =?us-ascii?Q?JuFxiSbIbHfgM2BCwRB9UK6Fmbp7cbQG8PYW+tUyOirFyLqnW1N1x9n4hUhb?= =?us-ascii?Q?JaYOZPRFomGykxH/jKfaSCXNxDTe3AEqkzSihO2Kkcc0sDzxDNEjWYfA1RrF?= =?us-ascii?Q?cm8z6tiK8iOAuCfOUeLJmC28wlf8mnt4x/ks3v4nM993Im0PAp9fcaQ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OQYpSkWUTZsnlwjY+BAdnbiCPaNv1h1iQ==; 10:D5dJLg0ubJUp83iSwJzz/iZJg73/YPAN6atiDIAtmv5w+hY4TNW9Rwe+D/cwDcgplbPoz9mj+UgvdfNi8puoCvBa3ac5mqn8fg0pAbCNLNw=; 6:0CJd3DYnB3PFsVIGbBIa0xgCvmz8Zl3N8sKYb8jmDkcaMtQoO90l4XXptijhQlpw X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2015 14:37:42.9795 (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: BY1PR03MB1355 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150522_073759_911372_3056A479 X-CRM114-Status: UNSURE ( 7.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) 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