From patchwork Tue May 26 16:25:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6484031 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 BD9789F399 for ; Tue, 26 May 2015 16:33:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2761202EB for ; Tue, 26 May 2015 16:33:01 +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 E657020497 for ; Tue, 26 May 2015 16:33:00 +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 1YxHjS-0006Mm-No; Tue, 26 May 2015 16:29:34 +0000 Received: from mail-by2on0107.outbound.protection.outlook.com ([207.46.100.107] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxHhW-0004rG-5w for linux-arm-kernel@lists.infradead.org; Tue, 26 May 2015 16:27:36 +0000 Received: from BY2PR03CA007.namprd03.prod.outlook.com (10.255.93.24) by BY1PR03MB1353.namprd03.prod.outlook.com (10.162.109.23) with Microsoft SMTP Server (TLS) id 15.1.172.22; Tue, 26 May 2015 16:27:10 +0000 Received: from BY2FFO11FD049.protection.gbl (10.255.93.4) by BY2PR03CA007.outlook.office365.com (10.255.93.24) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Tue, 26 May 2015 16:27:10 +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 BY2FFO11FD049.mail.protection.outlook.com (10.1.15.186) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Tue, 26 May 2015 16:27:09 +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 t4QGQvfg026040; Tue, 26 May 2015 09:27:06 -0700 From: To: , , , , Subject: [PATCH v5 2/6] Document: dt: fsl: snvs: change support syscon Date: Wed, 27 May 2015 00:25:58 +0800 Message-ID: <1432657562-5592-3-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; BY2FFO11FD049; 1:DkAPK3uZsKniTfD/QVGVvhH+W3fNoFLedY6ej9XDRbXdnf36zjTnlVHsnI1ceLibQUIRptTrJc7pEs0+wQnEi4MZuxat+vSEjq4bC2Wk64utQJ1X5NEKRGPsOSi95Lkx9yBQ49UtlBY1U+C2DDJw7zeYGbuHqcC0+uLzZhhqy79EQyS7AElgtxNQypsMJ/qX4f3Ek7b34cpwJ+GN6A1VaswdKuOB3cHFEIEl21qf7jsuN13hcMO+q+Lo1sPyov3PvviIFSbTj1Sx+lLAVvUyrrEL+6a+OVGZD6D0z1wLctRgMKt5uF7VlZ4erqVQmpiUTtHeXavhxRN1HZI3Pp8U6w== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(189002)(199003)(86152002)(87936001)(85426001)(229853001)(64706001)(47776003)(6806004)(76176999)(50986999)(2201001)(105606002)(48376002)(86362001)(92566002)(19580405001)(19580395003)(5001860100001)(77096005)(68736005)(5001830100001)(62966003)(97736004)(77156002)(50466002)(5001770100001)(189998001)(81156007)(50226001)(104016003)(46102003)(2950100001)(107886002)(36756003)(4001540100001)(106466001)(5001960100002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1353; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1353; 2:b7OHP6aowebDuE5pgh13yeH1E1H0GxXxr5WdjCTfbebwF4h7rv84eQqa0/yClQnY; 2:Khj3fIlQ5X/PUKPPtuEeVKJoZozr9Dg12LlTIgdUbcaERB4i+EXRtl311gUMBtGXoPqY3IaXaqQicWNGAVGooeeDceJVk2PadCxglYgSiTyeaGiCeicPgLMgNCZkjDDBqvcHju6vOZmqvwbA6oTuyG7UeY5IibmJBfu99CslkC+IY02+iMtfMHu8C7AtrHCZ3G9R+8kr86zl22P3uDDU1yTw2+xO8CZLgVsSEEmvJWY=; 6:G/6+XP2rPnVXd04t1SxgyLZutOUV6j+uotbsRpDGpoUneVAwE+3jHPkhCP5lCaoSaFiUR0NAB7pO5NrYmRcwrY1mGk82p9jaacEUSl0vudxmFQy77gIVeXwQpwcFV8BAeB3n2jv/xgdiLlt6qL2pTDKF2GJqjdp74ebf31MJoZqVVEVK5Dol2Kswm5EuYWsu+ODwXLJ6pKVGbZiq8rr6Im1fe7bI/EnhEgCZc7RFV4Ko+igM2eZrABQtGM6GVg9kfCdEXz6Olg5snMo+g5zaIJJTERQy7osLJIXLcCQNeZsZGDJWBpTyzQ7SO0O5l0n+wmMHlk02USUxau2GQ5/TUg==; 3:xDYgMyvniY3hXBiODKGyFsPdZ98pMkbuBixv7E+wEcw7srH0DvT2vN4Y2p1GLAM5A0SGy42JuC02YA0etDaWDrusSx9n6281b38uD+JANr6/E5F4BQjYibH4fqZDjTO892dgoQLI1qFkwq2UZfHe5bKjjoLeilq3SEhc/byqaXJiVVy0G+cK3Aa2tUg9NlmqClsTPUNiwr2gsK1eYq6rn69513iubj2XE9A2o+goAg0RVrfDOW7R556hjgHKcUE7/+A8Fq1U0k9c0B+AUjEPnB1RjM4F2OnJ/AvRlNMJSQMApxlPymHXcsvvz62GvZ+N X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1353; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520002)(5005006)(3002001); SRVR:BY1PR03MB1353; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1353; X-Forefront-PRVS: 0588B2BD96 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1353; 9:k8fFjXdZsDFv74CzQaPkELmKFPLbk9UyBFaTOErnSs?= =?us-ascii?Q?Dqm4bbOrcC/st/if6+zEHMa+nEqyFw/4siwiCiFaK+rXWF73QjHE1kM1a8vi?= =?us-ascii?Q?anEr/tv3zfDeANFpanbRd6lPIN50RgjEfZyeZsw7GgjUSstHg9HCLPndSAcA?= =?us-ascii?Q?YFXShEem3Esr+Qks7fW+Oa1FF4h+guPt4ssdmUPgbF0HSYtH3CJCdA1335vV?= =?us-ascii?Q?94ZTdIvGu40b8Yz6A71c4Q1yQU/4v4gFN4caZ0DhignV6r9Jb19T/jScZc+/?= =?us-ascii?Q?2ghE8Dv8O9MRYPQCo+PPBfXSFWBhk94JkhbFfDTfjYjD+nkvcrN0gtnX99rq?= =?us-ascii?Q?G4lBWahjePBQGpFco2qmOARwVQbN+O6JzK1VZP+kSy2fLiZBhke6iVqNRLSx?= =?us-ascii?Q?28K17ycbm2t4pqlp7bScLfDighvHcGWQ0sAbN1p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z8v5ra8eyHUXWR8F8NiwfZcjmJEpCzh/HQLYGzCtbDj8WzGzldgBVOKvh1UIU=; 6:+rn8nfEfbj4+lkGqKMhUfqvPhTMTJFe0K3RfNpIqdF33k8B7+7BHaY7Hi80E4sBw X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2015 16:27:09.4927 (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: BY1PR03MB1353 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150526_092734_308443_6FB96D8B X-CRM114-Status: UNSURE ( 9.14 ) 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. Change snvs parent interrupt to option because single function may have seperated irq number. Signed-off-by: Frank Li --- .../devicetree/bindings/crypto/fsl-sec4.txt | 42 +++++++++++++++------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt index e402277..b21e7c2 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,31 @@ 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. + + - regmap + Usage: required + Value type: + Definition: this is phandle to the register map node. + + - offset + Usage: option + value type: + Definition: LP register offset. default it is 0x34. 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>; + regmap = <&snvs>; + offset = <0x34>; }; ===================================================================== @@ -443,12 +459,12 @@ 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>; + regmap = <&sec_mon>; + offset = <0x34>; + interrupts = <93 2>; }; };