From patchwork Fri Aug 7 14:28:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 6965181 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 9F79F9F373 for ; Fri, 7 Aug 2015 06:40:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF3202054E for ; Fri, 7 Aug 2015 06:40:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D573D2053C for ; Fri, 7 Aug 2015 06:40:03 +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 1ZNbHm-0003EC-Q0; Fri, 07 Aug 2015 06:37:46 +0000 Received: from mail-by2on0137.outbound.protection.outlook.com ([207.46.100.137] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNbHj-00038c-3R for linux-arm-kernel@lists.infradead.org; Fri, 07 Aug 2015 06:37:44 +0000 Received: from BN3PR0301CA0003.namprd03.prod.outlook.com (10.160.180.141) by BN3PR0301MB1266.namprd03.prod.outlook.com (10.161.209.146) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 7 Aug 2015 06:37:21 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::195) by BN3PR0301CA0003.outlook.office365.com (2a01:111:e400:4000::13) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 7 Aug 2015 06:37:21 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; pengutronix.de; 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 BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Fri, 7 Aug 2015 06:37:20 +0000 Received: from anson-OptiPlex-790.ap.freescale.net (anson-OptiPlex-790.ap.freescale.net [10.192.242.118]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t776bHo6004543; Thu, 6 Aug 2015 23:37:18 -0700 From: Anson Huang To: , Subject: [PATCH] ARM: dts: imx6ul: add pm_power_off support Date: Fri, 7 Aug 2015 22:28:33 +0800 Message-ID: <1438957713-27661-1-git-send-email-b20788@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD014; 1:60qbfE180caitCn1ZBI73hfo9N6yKctwXs5EsisIPN1wbxUA5/+/L/XkHvlcTyKM7DdwluW9d4YPzr10iaE0I9WIW0uEd1zm6yl5brk4jSXh5TL9zd3TQc+sG+IM6qqe9GYP+1gHBqikN/VxfkwHwSSr2GlQX7CCeM31K54dKVKK9KjRZnyIJn8nQtst9NUbkCzLUS4DpcGpiyAjywyaEiZz7JKP2u/sKmfsKMd8Yhvc064/sFmD5QyDl3qHeNajReE6y1DTrNaWXF+bo+g0oPEQJMYwjisptQbMPuoWOQDQtaH8zoVKOR6VZ/9dRBk7 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(68736005)(50466002)(77096005)(106466001)(105606002)(36756003)(48376002)(229853001)(69596002)(5001920100001)(62966003)(19580395003)(85426001)(50226001)(5003940100001)(97736004)(77156002)(5001770100001)(5001860100001)(50986999)(104016003)(5001960100002)(87936001)(64706001)(6806004)(33646002)(46102003)(4001540100001)(189998001)(19580405001)(81156007)(92566002)(5001830100001)(47776003)(32563001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB1266; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1266; 2:AoNjyYTlc36y8NfRZXG0cIzZjAlqnwYKWRfffBAVofls65M2p4NQr/s1uph3g1HGtWFhfl42+ubNa52HlIO8DUyXCQasR1blK4THSyuybRMdfh8kXcSXasYqC1ors/QRmDPQwladOpLqNZP/w0B1UMQoN/lEQgD5kgfn0T7Dehk=; 3:LoWN3Xd0aK+86+7Fa/G/dxKYfdPzwWDAXZdYHJGg9KlZYpY2EwbeHcPu3h069wOqR1g5djojQghY3VFrUPUUi3cpvQRu0tOq84LC2t2omcigg4CHOsvbxPb2ipxBbr6bdXn3gvBBD014j/eD/ol7VuH/v9aQGqPh2f7WdS0D5CovzDC/GVAcHZr+mNnJbT4YrIyp9d2ftnZ3vpkGkwWFq4VZMdJO0bCZsIdcel2Dxw4=; 25:dRbCuk9D903eyv/AJPVxwInLSbTGNO9Ggsm93IjjP9tIuw6lLlOYVXF6sdw7T10FEe7AEwWZ8lbmvtiJ6bg6PS1vPl/5SM2VmF+FUc5w7s5C4xtvP8nh5Z2fxFO1YlfpQiDmoqEpGP0r13yLY3Khy9NY7JVTWQ+PErruGmQXDYJUhc6uWVBUFcDxBfaFABql7oNd4WlNrXTlgiTOHV22VsNWI24uMr9amTVLt+sYzKq367GvgWI+xG2150RMvrJH X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1266; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1266; 20:rwl/UfeNxEYK/hCmjquJhctm92viOtzBumBvk2Yyr0l+5plIW/XPuH0QD7WTKpxu/MfwrTAjom42rc1+rKcAScGtqMtu9mNFjEZdrJ5AXXAc7QOOoy2RhWHXFWFaZ/xE77ItKUZO8WI5JDuzDGQlMB9hUufKESrkW5WIwXZ9ZYYIUAM5YvU9RE5QfLEXmYV7lxwYHiFfB7CFlrWJ3sbbGUYh3qI2LFvhPDaWF0ufMAB7KTRKlU9nphvgKP+TFVJxsZ+5iI3tXnrkreGankjhIO1qmu4qRTWBKtFwp3PX7l8GccF1/0nJfb3RACE5sr6Cbs48Cfe/nIfxg/Aiykaki3xgNi5Zli9nY8T+6H4mu38=; 4:laFg8B3A2rwFyEybmt3aLw1fk5MQM9dIX/JJf90NxY5e8yI04y07RIQGiUV9S86O3B6YPA5CKcDLiwH4St5aWcVt2q9N2WD8o0wZLC19UwWS4GSEr9ZLODHKbXcWVipb6wWUSOcsKtzHaI1MRXNu9yT8CfOnBNp2cbSXP5vl3uC5iU45vWH+7BriAGxupuUI11VSZkSBRqFSfPy4OMzacn20qu9QRDl4wbB5i5WRQhtpwSvLX7dcEaDtoUlyqNtSx07j2i5D8OJplbdeBsuFb4smByxMhIdnbAKsMU6NIpY= 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:BN3PR0301MB1266; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1266; X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1266; 23:KtVIrvnef8G5rvSTp7Dl+h5vbjrwNb3/9/ZnoQS?= =?us-ascii?Q?4IE+x51EBrlQH81JJhtY+jgMbhngqJ/wpKGJNWHczcgpEcjwzpgmuyVHM8rm?= =?us-ascii?Q?2gFurdypeuqJ/I6r3jxXAWNwlv7Iz2qATNKa8aNGU25NJZrFgyuhglep9Pva?= =?us-asc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KeVjOx4bSS5SESf7Pj3c5?= =?us-ascii?Q?sLl9YvhYoUXHZ8RvPY/dcpPVVAXvxni77uqJhucnN4MObkNUUE8AfQ0Eo3b/?= =?us-ascii?Q?UuuNQCD7yhqk=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1266; 5:Vh8bVAdUZd480LHhtJEkJK+taw4OjWOEJ+Q8ilXwT0cwFIPB33VtyR8yuMgZp54AQ999Vx45asml8UNSmSzUS1LsdfTLxJg0v6GihW0WCjbxULfUIe6XhaR75yrTgqHoMVayMXDNnO439xfAHwdlDQ==; 24:su8xZQNrO9sbt+a4Uh/+CXsIc1Tk6GTbWCQrzJ+2TmTz3GLkzjZMH+iJSe3XnSb2XxMJm3sF/h6Uzg0BKKYsCBm78emRSokTk7Y+iniVRwM=; 20:/vpvhtHcPCSJ6ouFxICgzaGkcIY7GkPHhfeohpKt4OsUMZ6rN5gMoPocodDFoqmeDjeLu3QQUdrIP4Xqz60wqA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 06:37:20.9676 (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: BN3PR0301MB1266 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150806_233743_361417_36866C0F X-CRM114-Status: GOOD ( 11.56 ) X-Spam-Score: 0.0 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: shawnguo@kernel.org, kernel@pengutronix.de Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED, 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 i.MX6UL can be powered off by programming SNVS. When long press ON/OFF button(5 seconds), PMIC_ON_REQ pin will be set to low and external PMIC will be powered off. And system can be powered on by long press ON/OFF button again. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6ul-14x14-evk.dts | 4 ++++ arch/arm/boot/dts/imx6ul.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts index ee2243b..c27f3c4 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dts +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dts @@ -58,6 +58,10 @@ }; }; +&snvs_poweroff { + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index 514ae43..446913e 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++ b/arch/arm/boot/dts/imx6ul.dtsi @@ -404,6 +404,14 @@ interrupts = , ; }; + snvs_poweroff: snvs-poweroff { + compatible = "syscon-poweroff"; + regmap = <&snvs>; + offset = <0x38>; + mask = <0x60>; + status = "disabled"; + }; + snvs_pwrkey: snvs-powerkey { compatible = "fsl,sec-v4.0-pwrkey"; regmap = <&snvs>;