From patchwork Wed Jul 8 17:22:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6750581 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 91CC09F380 for ; Wed, 8 Jul 2015 18:34:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFFDF2065B for ; Wed, 8 Jul 2015 18:34:41 +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 BC8822064C for ; Wed, 8 Jul 2015 18:34:39 +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 1ZCu8p-0008TZ-2i; Wed, 08 Jul 2015 18:32:19 +0000 Received: from mail-bl2on0113.outbound.protection.outlook.com ([65.55.169.113] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZCu8i-0008RC-EQ for linux-arm-kernel@lists.infradead.org; Wed, 08 Jul 2015 18:32:16 +0000 Received: from BLUPR0301CA0012.namprd03.prod.outlook.com (10.162.113.150) by SN1PR0301MB1648.namprd03.prod.outlook.com (10.162.130.142) with Microsoft SMTP Server (TLS) id 15.1.207.19; Wed, 8 Jul 2015 18:31:49 +0000 Received: from BY2FFO11OLC001.protection.gbl (2a01:111:f400:7c0c::127) by BLUPR0301CA0012.outlook.office365.com (2a01:111:e400:5259::22) with Microsoft SMTP Server (TLS) id 15.1.207.19 via Frontend Transport; Wed, 8 Jul 2015 18:31:49 +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 BY2FFO11OLC001.mail.protection.outlook.com (10.1.15.185) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Wed, 8 Jul 2015 18:31:49 +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 t68IVj2D001623; Wed, 8 Jul 2015 11:31:46 -0700 From: To: , , , Subject: [PATCH 1/2] ARM: dts: imx7d: enable snvs rtc, onoffkey and power off Date: Thu, 9 Jul 2015 01:22:59 +0800 Message-ID: <1436376180-5891-1-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC001; 1:0KjLJZZzEAgxIqso41sGW4LjIJ/Cvr4f7o34IfGVCNmf1LtOhilVNSg2AAmscaR+rm/MOJIVWZqvqhQHnRWZyrRRR2rIVVH7JWScyQ3nXr7oLqdunShwlH/yDDo8DrgcKN6hTre6k0fhR3OYBClPVnfuUZfbo6aUOm2whxWpmb7oQ4BuyE7BQ+Q+Ei8IA7pz0n3QYMOvrQ1TanFEAYt63iyXFunU6NZtayHYPbIhdIq50EuOijUWNk68Ql4aPqwSvJMEPxT+DWNp2BA+K4Myr61YXGzES264X0HjHHt8VT40W9M2lDJ8bMNGrWjqzCA3ZeV7vYlsB6VYEyjM/uh0lI6EdvHR/6cgg82BA/I2rRAuhJlHt3zKs/0UUAuv6nkyfKSmXVVa2+rGaHVJw5FTvYEY3SMIxUpYsUJTkqxrvSiC7HH65rXIZUYIRxMTlpVs X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(104016003)(85426001)(189998001)(50226001)(105606002)(5001960100002)(6806004)(107886002)(92566002)(36756003)(87936001)(50986999)(50466002)(2201001)(86152002)(106466001)(19580405001)(47776003)(5003940100001)(62966003)(5001770100001)(229853001)(77096005)(46102003)(86362001)(19580395003)(77156002)(4001430100001)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR0301MB1648; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1648; 2:1a9g4UcOeVuVjZOQ6wjtzXJVilc1Z1nF4RFELVDmJVAvJ3sgze9NAM2yMgDCnLAS; 3:vlME1TT7Tit2jl6NzvFKz3vC6dksTHMJQecajUPtiWYunHhlBILmKO+0gk9cpxF4X/gaaZ5eywOERUMm4wl94/C4Vhqm4XDB6QdUH8fD6Pe7SqfEWSzxz1ysnX580d+LfDqsePQl/jA0thgXzkwh/37jV6WUNeYHQrbFhT4OGXJfBOuLxUt635dcGg/hBCnLmwXXtpApteKElB960+ky2s8lqkwL1zG7oJtksHAu/IA=; 25:V6wt3immaUwXy7bwP5J7xtxlOeppAAIsqtOa3bwPkZBlTec3wL/TH37GD0uDzTEutBBYhOUFpf3T/aS4kpugdZ05Y6y/nM4FdNYH+VO3WeMNzbzm7nGuXAgdE5TG1eHCuWUubrrDE8k2joJfAsAW+Ztol9tQCStxzk07r7CDWgGiHyXLgyvDwnM2nMxv8G7dA3DohTFw2xPk8Zwy0i5rSm+xdbf1bJSD3btqz4DSmVG0DriLDEfB6GthV1kwzFZG1rgfCfmmXTjJxIhpi+n9Mg==; 20:zrGlvW898lL2koyQ34NdT0Z02vfVfq7tn3tw4DgfaRtYPvoWQ4S6929h5cUaGlisbFmWdo9l/UWgoBXlDDqeVziofN3AarPxNsQA3jPJCFdpKrbxs1kaM9r5Xmvaq/O5zi9lq4fl+ZQAw0YXC1l2l5WkU5DPA3b9DMj+6sOhfYw6FZYmBLM/OOEnyWWMMQ6+WyUYarrWmbldfYOAXRMbUz6WCzB2i+HS+ZuyatMliOHNgJg0HZmkW4CCy6ZOGZk2JyS1Qc8x4eiaySSwi1DzHY2I2GYhlG/G7bzlxQw0163PJJ3T8pN1GUp+r+OUEVXbGQaOJGkZlLMjkhZRiTkEK98Ehfnqy5PeAhVj4DqsH2E= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1648; 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:SN1PR0301MB1648; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1648; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1648; 4:/J/hk1K9DM8MdXBezm+loOWUdYAoUbrJWVSjUKF93yPDvTIGfmqhglAFSClcVQeVTeqFBxlxhkx5X8HuCmoNcfdRlYhs0g367dcgWrJEfS3+lrgxIIYCgYoa4Qqw/Vfv4mC4OFj/RuJfkZBbVlELxWhgAY7j5op/RmkaMGBoI3nyt9hTM8abyRYRrl3QNx/ZCnPu4bjGC/6f/nQjISpQB9iZFFWJN0zDXm/EBJo2wkxYS23W32nVBKgE+l7UHsbU58ldKBuNnKuKNR/V2kI7Dx7j5wBTuyaJP3beCSyUR50= X-Forefront-PRVS: 0631F0BC3D X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1648; 23:F2BQL8GY0CJNSVJZcdBJnhn5zi07cGW5MMDPB7MA0Tv7H7a4lANU9zUkx/wom5kjgDw5EDa3xjVxUCNFz9IyT0+CCp7uaojgJYdRq5XlStJDGDGCHQL8prIKyFkNwqMnoj1auCXM+e8mVTzrHYGGAvq0fEb/nWKqEvZvYga/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VeQKvEP2oOE2pFuKr7QzbZ7kxGnFxH3nBqvi+wZxK5X/xfclu59oX4D4lVR8qr49U3RShKgxki/AzsyQLJ+0w== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2015 18:31:49.0181 (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: SN1PR0301MB1648 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150708_113216_130910_D4B4B84F X-CRM114-Status: GOOD ( 11.81 ) X-Spam-Score: -1.9 (-) 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: Frank Li 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.9 required=5.0 tests=BAYES_00, 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 From: Frank Li Change SNVS rtc to syscon interface. Enable onoff key and power off function. Signed-off-by: Frank Li --- arch/arm/boot/dts/imx7d-sdb.dts | 4 ++++ arch/arm/boot/dts/imx7d.dtsi | 27 +++++++++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 4d1a4b9..214eba9 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -223,6 +223,10 @@ }; }; +&snvs_poweroff { + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index b4cd8fd..308ad1b 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -322,17 +322,32 @@ }; snvs: snvs@30370000 { - compatible = "fsl,sec-v4.0-mon", "simple-bus"; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0 0x30370000 0x10000>; + compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd"; + reg = <0x30370000 0x10000>; - snvs-rtc-lp@34 { + snvs_rtc: snvs-rtc-lp { compatible = "fsl,sec-v4.0-mon-rtc-lp"; - reg = <0x34 0x58>; + regmap = <&snvs>; + offset = <0x34>; 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>; + interrupts = ; + linux,keycode = ; + wakeup; + }; }; clks: ccm@30380000 {