From patchwork Fri May 22 14:36:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6465111 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 6F10BC0020 for ; Fri, 22 May 2015 14:41:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8518D20483 for ; Fri, 22 May 2015 14:41:32 +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 8E88E20458 for ; Fri, 22 May 2015 14:41:31 +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 1Yvo6I-0001Vl-Gi; Fri, 22 May 2015 14:39:02 +0000 Received: from mail-by2on0131.outbound.protection.outlook.com ([207.46.100.131] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yvo5D-0000bA-Pl for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2015 14:37:57 +0000 Received: from CH1PR03CA009.namprd03.prod.outlook.com (10.255.156.154) by BLUPR03MB1347.namprd03.prod.outlook.com (10.163.80.25) with Microsoft SMTP Server (TLS) id 15.1.166.22; Fri, 22 May 2015 14:37:32 +0000 Received: from BN1AFFO11FD046.protection.gbl (10.255.156.132) by CH1PR03CA009.outlook.office365.com (10.255.156.154) with Microsoft SMTP Server (TLS) id 15.1.154.19 via Frontend Transport; Fri, 22 May 2015 14:37:32 +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 BN1AFFO11FD046.mail.protection.outlook.com (10.58.53.61) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Fri, 22 May 2015 14:37:32 +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 t4MEbKvC021930; Fri, 22 May 2015 07:37:28 -0700 From: To: , , , , , Subject: [PATCH v4 2/6] Document: dt: fsl: snvs: change support syscon Date: Fri, 22 May 2015 22:36:35 +0800 Message-ID: <1432305399-30571-3-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; BN1AFFO11FD046; 1:jl7z53zL2RD/N2owoyZUq7e74+aOdZd7fI8tHyCisMcXRhQxmM3/H9f5pqvZFJpCFV2+DwXxYg700auJphnpEyIZQQqAELAl92QD+SnsZNZySZtFYV2dHVSNvvNPH4EOczJhKn5jHGfjBev0ZJN6sQctZPKgk4K4Ny7yqCgFeS4mN42aa0Xw4UJ3vWeNDhtJGU9VGZlfh5Fcm88ZdadOuUv6+cCVndAuxMA4pF3thYd8QHvmpYsb5d+KM9g0PIdJO2YZJH/FGVysm4pBza/r796qtvT0EQNNjbCZhBDCFK3RViB6qeoQA7eCcUikGLEkOpZc5+COGvaAYlww6hO0Yg== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(189002)(199003)(46102003)(77096005)(81156007)(87936001)(85426001)(48376002)(2201001)(86152002)(77156002)(105606002)(68736005)(92566002)(97736004)(62966003)(4001540100001)(2950100001)(64706001)(106466001)(5001960100002)(189998001)(107886002)(5001830100001)(5001770100001)(69596002)(5001860100001)(19580395003)(6806004)(47776003)(36756003)(76176999)(86362001)(50226001)(50986999)(104016003)(19580405001)(50466002)(229853001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1347; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1347; 2:M198cO0O5+xQydkLnMhsFhZrHiD9/nQIYPtbtNGbY+OV6cpakfTB+fpcv+068xnU; 2:2pNzp7ldXckPIHOf6ENMMbyMxatVQfSUFbrHs9bXNhzvJUfo6kOr6bwY5yAgzdGDGekaeiwh5/jrfMhZw1GYkygPXiDLsdpKLnDbVr/V0GqCJw/luWTNQkFRksgRhtvOWJ2sa6TP0BRWoDkDlGtTudqTS83P99563s14VHFVJb+7MbQTQ8tisMGwLOnNCEpuNK9vvtzvp3Y4Wshh6iYy21Bjb6mlCAMYk0beA7yym28=; 6:bt5zhz8F2tRGvXd9xHOLZnT9nOdfHy1UZw2po11oBl3VMZ23Iw/BoRpt2/nc+588YOBsEiMLNFuseBk5io7LOvvspDoKAKNOdHvCFVZOZRQNFJBhEKfLxM/ivo2MbwGikNu+LdwpXcz/U/TTMs4zQM2QSXa69hebk0uhbSaU/nTl20AA7rCiOpTWxSHdnJ2GgsnwVHLNknN+mL8mWO4Uucgq9KkyPUBQE7ZcHTGycbyUaGJOvb0WFM4Hfe2tl5kHPDc+eQCEIiHH1cSQx2pgZshi/NO/7bpq4WnFSUi8Gf4hmWIC4AEmPY/S3ZLKivBDMkRWp+11fw8NSRTjBZwkUw==; 3:MObpbdpEbT3qu43vMRkTGnGbgh9c4qZ7uB0xvCSI/4bQGWIMndNKNS/eT+k06E8xadG6ezt+6r7R7LBJSXnBXgdnBbOjz8VgXi3snFVDtAo69yYGImGwBoCygMiunXlhfQA0S4I0f5EZ6ijKl/uMDV+J9FaKDJQ5yXMy9nBCOAlAAlMG9cL/+grWZPWRp+otq+q/RGEpgP6FZMjrX1+mxF5t+v9yLBklhJS5r20L4czTY+Fm9Ypetff35AJG0rcNu1dIZ4XawvKPfBJyj8x13gTKvECD4gJKpZYMYQcF/iXGS4O43xPBiL+VFTZIdv89 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1347; 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:BLUPR03MB1347; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1347; X-Forefront-PRVS: 058441C12A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1347; 9:xHZiOv8FjD81O3qpCbXi0+3GoRxyMssqqeGP53FvTw?= =?us-ascii?Q?qqil7sCFZ5WMzrOGZ5Ab6aBZ2OVNK/1uC7GbgVSt0ybyBnotNe2g4JUQ5eRa?= =?us-ascii?Q?fuIlbmG6jUsCpJjQbMjfhWUMGdlWU4FqOp3OYdi8ozjUF45vIVE5VXu1Iewo?= =?us-ascii?Q?4PYr6ChgMAI5VTVveZ74IxMHwUIsUQSH3VXzFru+xe9PVWnhyAjhLFvQ38em?= =?us-ascii?Q?9ViPMhP33X2nTVHtlReYWPL5AnJNtieY41DBnzq4ik4Z+kfrm56x29z0oSfi?= =?us-ascii?Q?tRxGf8VFHrKMZc/fs+OgrU4oiKBBCOp2E3JvOGFLo6+mmtRO+PmoVx6IRb76?= =?us-ascii?Q?Xkkf3Pb+L2gkzn+ZKreR65phlpbeX4p/Q1bkOAgj9FUroNnCwSwjVBf4jGtn?= =?us-ascii?Q?ckdYX7QH7ad1c6simI5vGEq6AF7EW3uwTrH1lzfLMpp1NswtY7stEILsHGxH?= =?us-ascii?Q?MjFmETAOTDCL2TGO4xQ+CiBabjviXOVYHvNjTLkKl60EpqzVJ+Ir91GgJQ2C?= =?us-ascii?Q?8c9VK4BV6cv4hmkOkLulS4hPnI+VksUtG120BGqeW8CLyW1pOyLmDRlWY0Cf?= =?us-ascii?Q?oU5WfMn0n2PVa5zQPXAaabdtzoNaO9ybCJY0oYScBG9h8ElCP7VxRPVq0VFE?= =?us-ascii?Q?mYNevRG+7PE7b8YayhwaMhLRj+kZt7ZjZQdgpcxDYayuR7++hAYOo96aTQaZ?= =?us-ascii?Q?MBLK7YddjzxC0eDeZG76lQB9hZPqo8aMxXbNnQNfPKCZKQUr1KNO51rxRN6M?= =?us-ascii?Q?gS9MQkDJCV+UCi78a0EVNZcgbAAFJc/MURwIrCHJN8HsunPJ74aFs9N0YG4d?= =?us-ascii?Q?4Unz5T0bqYyqQNLeGKiICTxnpDSKBaa+mHM54sm7sln+oV7sF+Bs9bsi7dLz?= =?us-ascii?Q?3heGfSNgSTZr0TDMroGPviWhNEF+OfArQn0RGC3z+xgZy53lRGrXSSmO4IVJ?= =?us-ascii?Q?RpAon7bHUMrpx2acY4QIOSK32mXLfn6St5tyjYHM8kONPuTUMjXw0syuF0tR?= =?us-ascii?Q?wT4wZ85yfDhBRvppse8S2jIPPKDL/vlS6l5/IGp1SBRxSJyURSgTCAiHnIuF?= =?us-ascii?Q?Qe8EBNFoyDMUsUiNXPHH8jeUbi52bAcIo0hg1ud3es3IYzYYccoHbPMEy17q?= =?us-ascii?Q?gVWT9Ie1A=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1347; 3:0uvRYLyKuY3pZDW/tm/NTz8vVsOlEvDqBTPugbC2RYCYabPxNd27JdKhEEB95JgaXXdeZZBh7xt84/41cirJBIsMqdPC25TRsHkz3j7LzELdlhGk9HVbWKv3cdWoFaigynxYrmuTElbt6bu5AiqdQw==; 10:cWjvJcGfX+QqG+q+E6l4EpePfEtzK8nr/0mzDUHLdoWkwZBQhH/17xJVLfBVP1LtpAF5bUcy/PHJ0F991iMRjQaEjFKZOQezX21Wu9963M8=; 6:ZKin4hkZIB0aPtl0AeLJ0Pb+e0Tuz/u2Hv8wjEZlwE739qWZvOimW8rfwxmeiQks X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2015 14:37:32.2955 (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: BLUPR03MB1347 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150522_073755_966137_EFEF9C74 X-CRM114-Status: UNSURE ( 7.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.1 (-) Cc: devicetree@vger.kernel.org, Frank Li , rtc-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.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 snvs actually is multi fucntion driver. Change to use syscon to access register. Signed-off-by: Frank Li --- .../devicetree/bindings/crypto/fsl-sec4.txt | 28 ++++++++++++---------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt index e402277..87f5921 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt +++ b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt @@ -288,12 +288,13 @@ Secure Non-Volatile Storage (SNVS) Node Node defines address range and the associated interrupt for the SNVS function. This function monitors security state information & reports - security violations. + security violations. This also included rtc, + system power off and ON/OFF key. - compatible Usage: required Value type: - Definition: Must include "fsl,sec-v4.0-mon". + Definition: Must include "fsl,sec-v4.0-mon" and "syscon". - reg Usage: required @@ -324,7 +325,7 @@ Secure Non-Volatile Storage (SNVS) Node the child address, parent address, & length. - interrupts - Usage: required + Usage: optional Value type: Definition: Specifies the interrupts generated by this device. The value of the interrupts property @@ -341,7 +342,7 @@ Secure Non-Volatile Storage (SNVS) Node EXAMPLE sec_mon@314000 { - compatible = "fsl,sec-v4.0-mon"; + compatible = "fsl,sec-v4.0-mon", "syscon"; reg = <0x314000 0x1000>; ranges = <0 0x314000 0x1000>; interrupt-parent = <&mpic>; @@ -358,16 +359,19 @@ Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node Value type: Definition: Must include "fsl,sec-v4.0-mon-rtc-lp". - - reg + - interrupts Usage: required - Value type: - Definition: A standard property. Specifies the physical - address and length of the SNVS LP configuration registers. + Value type: + Definition: Specifies the interrupts generated by this + device. The value of the interrupts property + consists of one interrupt specifier. The format + of the specifier is defined by the binding document + describing the node's interrupt parent. EXAMPLE - sec_mon_rtc_lp@314000 { + sec_mon_rtc_lp@1 { compatible = "fsl,sec-v4.0-mon-rtc-lp"; - reg = <0x34 0x58>; + interrupts = <93 2>; }; ===================================================================== @@ -443,12 +447,10 @@ FULL EXAMPLE compatible = "fsl,sec-v4.0-mon"; reg = <0x314000 0x1000>; ranges = <0 0x314000 0x1000>; - interrupt-parent = <&mpic>; - interrupts = <93 2>; sec_mon_rtc_lp@34 { compatible = "fsl,sec-v4.0-mon-rtc-lp"; - reg = <0x34 0x58>; + interrupts = <93 2>; }; };