From patchwork Tue May 26 16:26:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6484061 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 9CD32C0020 for ; Tue, 26 May 2015 16:36:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B93632049E for ; Tue, 26 May 2015 16:36:33 +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 D0A06202EB for ; Tue, 26 May 2015 16:36:32 +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 1YxHnI-0001fs-H1; Tue, 26 May 2015 16:33:32 +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 1YxHhm-0005Hv-Tq for linux-arm-kernel@bombadil.infradead.org; Tue, 26 May 2015 16:27:51 +0000 Received: from mail-bn1bon0115.outbound.protection.outlook.com ([157.56.111.115] helo=na01-bn1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxHhg-0005FU-U1 for linux-arm-kernel@lists.infradead.org; Tue, 26 May 2015 16:27:48 +0000 Received: from BY2PR03CA010.namprd03.prod.outlook.com (10.255.93.27) by DM2PR0301MB0781.namprd03.prod.outlook.com (10.160.97.152) with Microsoft SMTP Server (TLS) id 15.1.172.22; Tue, 26 May 2015 16:27:20 +0000 Received: from BY2FFO11OLC002.protection.gbl (10.255.93.4) by BY2PR03CA010.outlook.office365.com (10.255.93.27) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Tue, 26 May 2015 16:27:19 +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 BY2FFO11OLC002.mail.protection.outlook.com (10.1.15.178) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Tue, 26 May 2015 16:27:19 +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 t4QGQvfj026040; Tue, 26 May 2015 09:27:15 -0700 From: To: , , , , Subject: [PATCH v5 5/6] Document: devicetree: input: imx: i.mx snvs power device tree bindings Date: Wed, 27 May 2015 00:26:01 +0800 Message-ID: <1432657562-5592-6-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432657562-5592-1-git-send-email-Frank.Li@freescale.com> References: <1432657562-5592-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC002; 1:IuFHrMeutpGXuHH8IjnL9YwAnG/mm8ZZ5Wswm5dgY+FBEaN/L2A1IlW4O0Ag0Df4b/ii6AtEQv16Cr5egaupnKRtXd4aIBtA672TaLLw7Sq6mvp1ZNkpzgWCylyy+ur3gI01bjDkpL9cj2KUeZH3s7/LMr7631fVQ3kx30EGnECw6hHwiZaxd/GYhUyhqRoA0rfCfdwsSCPOw+DeUoEuHeGIj4MTA0swvXKmqBaJX9DyqGeLna9JHPP15aNQlvT6OHANW85F0kncVBsUl1Sqm4dBeYZhs+Zw7BSoOs2nZ0bEHz4c+YkRoV80TYvr5EktZW79qoyaJygeTueQflAnEw== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(979002)(6009001)(339900001)(199003)(189002)(48376002)(4001540100001)(97736004)(46102003)(5001770100001)(77156002)(62966003)(2201001)(86152002)(50986999)(19580395003)(50226001)(19580405001)(106466001)(104016003)(81156007)(68736005)(87936001)(86362001)(5001860100001)(229853001)(76176999)(107886002)(189998001)(50466002)(2950100001)(105606002)(77096005)(64706001)(92566002)(47776003)(5001960100002)(85426001)(6806004)(5001830100001)(36756003)(4001430100001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0781; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0781; 2:w6TgNJD/ifU2SRpgP+K9qeG+2+pYFQzpMHm26WM9fx6F0lwmPn8g+ZfPA6I0x7b0; 2:E5R05NQ8kMjWl2rZi3em+j0QiRk/7qsCLYi6JyWKXJ47sMuoz8VaGwuhe7V7ktIiV2CxlkSwB9DpfSzJrQdTNK+2UrGZ1E+iTrHrVGJZo6XpwKpRAFU2DGBFDdo/oWi236Z1LzA5MDr+mgQ3FSLOHMlXL7QIo8wgoMz+61GHgF8wKBEE5YDb06j9IH2HCEQ1pXb3geMnGvGAr/o9ZgzY0RpnqBkLVCWKWTAxeMtAsRc=; 6:xB/hhksda40u4UdtcO56CVgVL62PNSsXwtjPMgSW/N0ueoCYU2t0ZCLEBWO6rCLF31DX0JoVrO7xPW/Y9e2SaAeV1xSVzaVwTyzpj2M7ta9qymFYuGfozCbSSaVWi15ZnS4hBqJWOVY45ilM8lIRkWYW20u5803Abn1BUXlgMpEa9MLsZGKgEn1J0zIy8QyDoLby0Z/3aoeNMMPlPbQa0XHa30/HOV90kF47DpiXa54i+aL5xa+alzQLuOUSNAVBmlohq5oSOg9NANsoWojXV6z2tv7EPXQ9ZU674j9fiC+yctT0ZpOTxJIqOlF8uxKqyQ+X3t+HZ5rItH8ZTaSmUg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0781; 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:DM2PR0301MB0781; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0781; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0781; 3:PmhDD6MoREqEQTiaicL9MkGflpeo8IkjFMFV2NgJaGoStQz9hAHs20XYB8M7oyOCwuj2H6c4bwuLwLKWIW9h1TbuC1OAS0XAZTFSC/6T63PbAODbYOd/6TQzmM1WHRp/ADbmcaVFCiqE9cUu1FHUVScOHLk2VoQeR+AcOsKyw0HPo0RQoMLoPdnjRosL859vzLK9+Fj1n+gg6jBhJfmnBUXmLCwBV34fKnw9X28SMOeoA1YAWASC8S1C+71FFvZ9ql1zzcRR2MwPXrTM53abBU5GtySHlqP72fezG3MOp1kQTveJWdRNvdHx936sXlcW X-Forefront-PRVS: 0588B2BD96 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0781; 9:hhmrU89HFAle1TQ1T7grVIbPohMaqk/w9N1P5fc0?= =?us-ascii?Q?GhYKpOoxhizICdPxnbeRX9Idsh1fQ4none14dDwssvGN5U6fiadvuCtVAODd?= =?us-ascii?Q?pa79UBGrOH2e6ObWML0iX0jy8/EW8YYmlr7QfpoLJxX41fMdQVEXIGGGKQvF?= =?us-ascii?Q?T9lu/39r8k8P1H28h451sz3hiGnERNkUZkMSGRULhYAj8TIqrAGBzMmw1a0Q?= =?us-ascii?Q?yEgl+ai/VGfjipC3BZXy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ascii?Q?e3dV6/TWId5+7iFxa/uYy5tIB+PjlrO8j5Pt9vAljgIYj4rDVioHPN+KqgP1?= =?us-ascii?Q?4hR1VcIByWK5pdZC+qgOhV8Tqx0X9CtPz9yb?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0781; 3:7d5guv1JywWEMDdzVlcNVyXn3dRFHsMR+su3IobHVO9sd5QAc849JW/U01OyEgWcA3kY+HLQrY9Wpua0ZgqXfkNCVl+cySNf8lUXbj1wbeCOVzlQZzMpwKwjI2ojG389dcg/Atl/42Zjw72OAD/swQ==; 10:pSOqJM64h4IOndbqeY3k9py2gHta6Zfps65NDzrCY9Gtl8Q0Nld34Rns10LFuxx6X2aiYccTNVt1ExGNN9EP98NGJGQj4JgEhGF+RpiroxA=; 6:V76Uz6Jt9rymQAJqd/GsuYbpAOBWNN7wyXKO8hzj4ZPIt42nqmRsXhMn/i84KOww X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2015 16:27:19.4260 (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: DM2PR0301MB0781 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150526_122745_130280_F2070D40 X-CRM114-Status: UNSURE ( 8.50 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.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 | 49 ++++++++++++++++++++++ .../devicetree/bindings/input/snvs-pwrkey.txt | 1 + 2 files changed, 50 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 b21e7c2..71a39c5 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt +++ b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt @@ -387,6 +387,47 @@ 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. + + - regmap: + Usage: required: + Value type: + Definition: this is phandle to the register map node. + +EXAMPLE: + snvs-pwrkey@0x020cc000 { + compatible = "fsl,sec-v4.0-pwrkey"; + regmap = <&snvs>; + interrupts = <0 4 0x4> + linux,keycode = <116>; /* KEY_POWER */ + wakeup; + }; + +===================================================================== FULL EXAMPLE crypto: crypto@300000 { @@ -466,6 +507,14 @@ FULL EXAMPLE offset = <0x34>; interrupts = <93 2>; }; + + snvs-pwrkey@0x020cc000 { + compatible = "fsl,sec-v4.0-pwrkey"; + regmap = <&sec_mon>; + 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