From patchwork Tue Jan 9 09:52:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10151521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F1C3F60223 for ; Tue, 9 Jan 2018 10:09:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6633286B5 for ; Tue, 9 Jan 2018 10:09:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB33F28A12; Tue, 9 Jan 2018 10:09:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52F0C286B5 for ; Tue, 9 Jan 2018 10:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LuEnAD4Ub9Ej47hIXoz55VV1uFd9aUasidDrgcoB2e0=; b=TS2e5/eU5IBfxa qHTm74DoOAuVIYqhf+3GsUfcCgjL48eWBkO73NPwnxZeRYOlTBsEm0wpuSEulwyD4cxB8GjGHe3wD uogr0Bu6kyvHmTPnNkUq9NTzudxhc06lTYglBlJn0+c7yYzCbM7t1cmtkkTxpovTIJDwwLleyGheF KzeyqW9FNzGenwvU1qhgi1mGFz/7GPivowLNde5LDVHZqY4AXxhoyJhbqivDAZiAwpU1x7f2AF5v1 3L/ZdQXH23jeABubMhwIyv7LI64qEU98cxMHAsc4hp/ueXlV9j3YE7RB6l/MSu1OJkjc4HPvLHwQf F92wzER7ulvJTQasdeCQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eYqqv-00068l-Nw; Tue, 09 Jan 2018 10:09:53 +0000 Received: from mail-dm3nam03on0056.outbound.protection.outlook.com ([104.47.41.56] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYqqr-000661-Bj for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2018 10:09:51 +0000 Received: from BN6PR03CA0068.namprd03.prod.outlook.com (10.173.137.30) by CY4PR03MB2694.namprd03.prod.outlook.com (10.173.43.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Tue, 9 Jan 2018 10:09:36 +0000 Received: from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::174) by BN6PR03CA0068.outlook.office365.com (2603:10b6:404:4c::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Tue, 9 Jan 2018 10:09:36 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.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 BL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Tue, 9 Jan 2018 10:09:05 +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 w09A9Ni8007608; Tue, 9 Jan 2018 03:09:30 -0700 From: Anson Huang To: , , , , , , , , , , , , , , Subject: [PATCH V4 2/2] ARM: dts: imx7s: add snvs rtc clock Date: Tue, 9 Jan 2018 17:52:06 +0800 Message-ID: <1515491526-14060-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1515491526-14060-1-git-send-email-Anson.Huang@nxp.com> References: <1515491526-14060-1-git-send-email-Anson.Huang@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131599661460421906; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(39860400002)(39380400002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(51416003)(54906003)(48376002)(36756003)(53936002)(2950100002)(305945005)(5660300001)(16586007)(2201001)(76176011)(85426001)(59450400001)(50466002)(7416002)(72206003)(6666003)(316002)(498600001)(77096006)(356003)(110136005)(39060400002)(8656006)(86362001)(97736004)(8676002)(8936002)(68736007)(50226002)(106466001)(4326008)(104016004)(2906002)(47776003)(81156014)(105606002)(81166006)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2694; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD046; 1:/ubl9YGDbyEvL3a5BKKmmkkHuvl0hNee4N3ocEpcqKARxQDAWMuFcD2d1kECjxnao/dBqhnpYcgFVQqNmBPuJjYuzSd8kmNj4ki1H2DRffFmC8GyVmSg7j3VwO0/3m/H MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ae925cb-b2d4-41b9-9bb5-08d55749045d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:CY4PR03MB2694; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2694; 3:8HV1BkUT72btA5czrsG5g2DL8VK3HScb556jRW0l2rJyzSn2cPO78/8rV3FIZJPrD4PD26w8Q8AuEaCYtRNO7NyWRNBzl9yA3s99i4DgH+um6I8c10E2Tox+c5JcBN/onXQObl0netImiD8Iue7pL3aBOjI75N1a309QaqNdPcWqgKfxQWsmSPsqZniddyc7XTeT+raaVKF3y7EACqQchlVsXmMpxpEgZlHRfE866MnwUOwu1uruHvAlS9mvlUoaz7u2gKgqemsnkCXJWuDzCIeyme66Jg5dcaKxnISQr+1TpIqk04n58MGtBPMNgvxRId1A1gvAdyYsGP7yMU6Jghli6yIrULcF6GrMlMvsT0c=; 25:RMoXJh5wCaaIIRftdlMsubR1cvN2xAACpM0D5q5Pp3JG2ciJQzlclavlJhV1NukoxwqbvDR5XDEHz51HTIXXApFTNSjH+o076T9GSJhDE5OtnTD/tbGp7/cHJJqa+gpb7KwectxNjEXUHcfJak0G7FhraVBFaMqfFPp6mS9XrBcHnqEmM5w8vEUeHcmbOwSyO31SB5UAXHmUd/YgRNb0MVi0kzRu1+umuj5KMGrDmoOf9IV3zZ0oyeyagzncn2L31k85m44brQYwM6LXdn7fCMX+OBhEf+PnuRzeeas78ngJfY0fSV2xDUXvfhcUqXHe+98TKGkKWoyt4k3Eo9Kaag== X-MS-TrafficTypeDiagnostic: CY4PR03MB2694: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2694; 31:GOR/vrmTGQLOilPGAEmxKHYgQ81HI0vcs8BqTgX43yVoJHb5fXD61knFMm+zcfhOqdAe/R4Bpklgt2HcD783isfa53CjhElpZB79HNFDqmZ2fzru0dvM6g2YPKo2maBUpys5fH/hunCFFf5KppZZsAd2aPe0iA/ZlifTIQ5Sc+sinla0VAkdE8NWCiAO+QzV/ky3BiEUtAbxLu5U3t3DUtZhTVVOrgvDcAa1EsJI7P4=; 4:Dk2sM0Onv8v1dBIbLwf5UFzafjLzThKDNVrBTVn1knodFoiTmoaDr4H2RaJGk06OEGVyIokwd85QjuFnpcwVDiNAsLD/XhkQdUO87cLJ+/E3EqLRmlf7UhHgOAIZ5u8Rimv3P06LuCGBtr5No41vGLfbVEPrO+sDT3tlMVZyOuAtG/YJTuN6IR4mLzatxBOWJBGyO5PToPZ+Znm/NjX72+MJNUsB6b0KrSE3lWIqpna5VZ8JZHrAqageJZUNl+KVv+iwLd/YqflnbBmb3k/UxQQ5o8+lYrWkFX8sd5xfp54giFtG5CkbXJPKneyJeanG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3231023)(944510075)(944921075)(946801075)(946901075)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123565025)(20161123556025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(201708071742011); SRVR:CY4PR03MB2694; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY4PR03MB2694; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2694; 23:pmVz9uW0nyOV+nWYLS23bXYuUGrVgEGIWV6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8rbo8wC11Rz82t/U99AvOje2l5UE5O7yWGMluqzMdKGi3PUkLTsA9dcYK6v2oghw1yvyYqVMxeaniXdbmZYVOuMpIq+PSGlpQb4vPDDYownp+WaCo6cjjmLL9sPfynme3mdgzlHojtJKd2dxYP7SAW8Twuq4TvyQKMyTOyjOXA2UNIdBrAt94+qnGur4PZs4sSuMF2REAToY+R5QwUWDILty84tgMplbbNowVUrC9Rs7Sec/HlAZHqM21q5/2V8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 10:09:05.7769 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ae925cb-b2d4-41b9-9bb5-08d55749045d X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2694 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180109_020949_463056_1E4366AB X-CRM114-Status: GOOD ( 11.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add i.MX7 SNVS RTC clock. Signed-off-by: Anson Huang Acked-by: Dong Aisheng Reviewed-by: Rob Herring --- change since v3: add optional for clocks in binding doc statement. Documentation/devicetree/bindings/crypto/fsl-sec4.txt | 17 +++++++++++++++++ arch/arm/boot/dts/imx7s.dtsi | 2 ++ 2 files changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt index 76aec8a..3c1f3a2 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt +++ b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt @@ -415,12 +415,27 @@ Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node value type: Definition: LP register offset. default it is 0x34. + - clocks + Usage: optional, required if SNVS LP RTC requires explicit + enablement of clocks + Value type: + Definition: a clock specifier describing the clock required for + enabling and disabling SNVS LP RTC. + + - clock-names + Usage: optional, required if SNVS LP RTC requires explicit + enablement of clocks + Value type: + Definition: clock name string should be "snvs-rtc". + EXAMPLE sec_mon_rtc_lp@1 { compatible = "fsl,sec-v4.0-mon-rtc-lp"; interrupts = <93 2>; regmap = <&snvs>; offset = <0x34>; + clocks = <&clks IMX7D_SNVS_CLK>; + clock-names = "snvs-rtc"; }; ===================================================================== @@ -543,6 +558,8 @@ FULL EXAMPLE regmap = <&sec_mon>; offset = <0x34>; interrupts = <93 2>; + clocks = <&clks IMX7D_SNVS_CLK>; + clock-names = "snvs-rtc"; }; snvs-pwrkey@020cc000 { diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 9aa2bb9..02baf42 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -551,6 +551,8 @@ offset = <0x34>; interrupts = , ; + clocks = <&clks IMX7D_SNVS_CLK>; + clock-names = "snvs-rtc"; }; snvs_poweroff: snvs-poweroff {