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: 475631 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ie0-x240.google.com (mail-ie0-x240.google.com [IPv6:2607:f8b0:4001:c03::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 60A7C140E44 for ; Sat, 23 May 2015 00:37:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=rk2kHruQ; dkim-atps=neutral Received: by ierx19 with SMTP id x19sf11202215ier.1 for ; Fri, 22 May 2015 07:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=Cm4D/n+p0+g/ED2YJ4sRsQOD1bd6GygaN4L7hk2cW8I=; b=rk2kHruQRrhrvcOrxiK2+KYxF98WPmU1C2satWTLerAB45MXOj/TSvNBkgH5LglpDU i5i+k8bAkRRUNjpKON+PbMv3e8p3IbSmsG6WCudqSZSR4pzuSCeGTP/bp6Ow1+Ra5VWh ECy5GRJMQsG5EanSVzniYKxG5vYJc8NcXbNGKhTqSPytzntS+qwa1+SVz6AI2JocyzUQ WDNMtS6kZpuxs58jG+7TIxBZN/DUvw+wXDkZ3eB9QTBmfmAzxYbGPsEjnbrAxQUieWZr jchBRCP/AAJweBNgDHv0jK9tcD4s31E+58WupAwou06rloqaJ6XC8liil7bPkg3AKwzg P3ug== X-Received: by 10.50.152.102 with SMTP id ux6mr247711igb.0.1432305466528; Fri, 22 May 2015 07:37:46 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.65.8 with SMTP id t8ls257099igs.5.canary; Fri, 22 May 2015 07:37:46 -0700 (PDT) X-Received: by 10.70.135.10 with SMTP id po10mr10106563pdb.2.1432305466236; Fri, 22 May 2015 07:37:46 -0700 (PDT) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0140.outbound.protection.outlook.com. [157.56.111.140]) by gmr-mx.google.com with ESMTPS id ei3si267023pdb.1.2015.05.22.07.37.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 May 2015 07:37:46 -0700 (PDT) Received-SPF: pass (google.com: domain of Frank.Li@freescale.com designates 157.56.111.140 as permitted sender) client-ip=157.56.111.140; 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 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: , , , , , CC: , , , , Frank Li , Robin Gong Subject: [rtc-linux] [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+cUvv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L: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/ks3v4nM993Im0PAp9fcaQOpQnt?= =?us-ascii?Q?QAc1spqaFJHF91Pq4cgPCHiEgdEAI9nOkwVJJkliBplFB9fV1P6Wo+dr8tHl?= =?us-ascii?Q?pMTsFI1UK09s5NOm8v8qcnfStCeMZzaIYZBLeav7WeKmKz7Lbekzz8CIb9D2?= =?us-ascii?Q?WfXotDSskQWd/B2qXGMi2yQ4h9vJSppkFOFIGOJWv2tgCFRlXNYQZp+cbjZK?= =?us-ascii?Q?38UQMBTDukJOd3gez4L0jqyOlW5h8c3QkuCvptcMQluQ2UIgicqx4kb10wPQ?= =?us-ascii?Q?aXDEf96phi3Q8beRyTvw21Mxn+KRlFD5jn3LficxgvYvPJV48/6Vrgim6O4S?= =?us-ascii?Q?hOY2drLpt7KiVsLp51doofQop6lGSoNLXQdCUQ/xspkILP82NQoSfw9P2OOY?= =?us-ascii?Q?0CRhTn0zTUCiaU+26GmzD3tZ/tW2PuLxnjxJim87oR8sgqE/SfsOhkNcq5+n?= =?us-ascii?Q?d1WvM21MlznGRlj03pOtBwReXGiLdQJM8+yY2jMx2reOnmDcv8+PCEH6W/lB?= =?us-ascii?Q?+Zy9aERWsMH5uQoXw9GVVD9+S4SwTyjzQ4yX/6Fdjgp+YMJx4UR/xGKjhdrx?= =?us-ascii?Q?9GVzA1yiAAGGlPzqHt145mEBwmU/nM0b7TBqhxUYfDpfALOcMHlHKyu+qWnV?= =?us-ascii?Q?rT1oP2HQd1mJBeVnPIv6qS5JvRJgyg0SfqvjWNPgzj2Apz7lMRFFSgXtgAEz?= =?us-ascii?Q?3b3PsnEWnRJB9VAT1mvQJQzqsBMSWHdH6twiHwjbvlQixGzjOZpRT7AIDDTZ?= =?us-ascii?Q?eZsp4pkf8=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1355; 3:Sahv/WavyS+gEx1eqx7c6t7R7MSwXaywqumUK6jw/5T6lsYdgdDkjmHhJpn/OY1M8zKZGnI522ditH6bZFe29pbxj5R0MVYdPT8K1ZKH6ypIKdP5Uz2aEOQYpSkWUTZsnlwjY+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-Original-Sender: frank.li@freescale.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of Frank.Li@freescale.com designates 157.56.111.140 as permitted sender) smtp.mail=Frank.Li@freescale.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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