From patchwork Tue Jan 9 02:51:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10150901 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 4B1C160210 for ; Tue, 9 Jan 2018 03:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45DFF286E1 for ; Tue, 9 Jan 2018 03:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A1082876A; Tue, 9 Jan 2018 03:09:10 +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 428A7286E1 for ; Tue, 9 Jan 2018 03:09:08 +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=jaKZZp1v+vMzJazcgtq7CNJm03t9Is1tFvYbPwCdTws=; b=Sb0y49qa/WboOg uVOERtOSqXiph/wlvR+qqrv2mENjlhoVhlU5sVdSsGsiCJuuKiB9wm5UvH8oxFgsPkB3abcwd+XMk ROtJggKmLvRRp5NYMaf84sdh/Q7rh7GGB8rWqoaf0QXeWIa/AG2UKfQH6rAvr5K4s9ktf9WHWyLGH 9D2JfwTVv6aZsIonPIwI4I57BbBDOjZRiMWwMYKAizIdVeT50KQ1V4MbujEr5rg7eabNHbUozRQSX e29tjAdaLYWkE+DmnQqBSRs0qkG/sRjxKzzsaX9Corl6X/l7y6ULKBbe3rlUwy+T5+qFhimvUMSfY EkqUQBcI6RccI6TPMq6g==; 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 1eYkHg-0003Dy-Q3; Tue, 09 Jan 2018 03:09:04 +0000 Received: from mail-by2nam01on0070.outbound.protection.outlook.com ([104.47.34.70] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYkHc-0003Bc-Mc for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2018 03:09:02 +0000 Received: from BN3PR03CA0113.namprd03.prod.outlook.com (2603:10b6:400:4::31) by SN2PR03MB2366.namprd03.prod.outlook.com (2603:10b6:804:e::17) 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 03:08:45 +0000 Received: from BY2FFO11FD042.protection.gbl (2a01:111:f400:7c0c::158) by BN3PR03CA0113.outlook.office365.com (2603:10b6:400:4::31) 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 03:08:45 +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 BY2FFO11FD042.mail.protection.outlook.com (10.1.14.227) 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 03:08:15 +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 w0938XBw031714; Mon, 8 Jan 2018 20:08:40 -0700 From: Anson Huang To: , , , , , , , , , , , , , , Subject: [PATCH V2 2/2] ARM: dts: imx7s: add snvs rtc clock Date: Tue, 9 Jan 2018 10:51:16 +0800 Message-ID: <1515466276-5541-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1515466276-5541-1-git-send-email-Anson.Huang@nxp.com> References: <1515466276-5541-1-git-send-email-Anson.Huang@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131599408953703567; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(396003)(376002)(346002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(50226002)(76176011)(110136005)(81166006)(97736004)(316002)(4326008)(81156014)(8936002)(54906003)(106466001)(77096006)(68736007)(51416003)(8656006)(105606002)(86362001)(104016004)(305945005)(72206003)(59450400001)(8676002)(39060400002)(6666003)(498600001)(53936002)(48376002)(50466002)(16586007)(5660300001)(2906002)(47776003)(85426001)(2201001)(356003)(2950100002)(36756003)(7416002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2366; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD042; 1:2M+c3LuUJ+HMK645lbaEDYN4PSIvmkVhD1/DmbWW7yVR0nmvbUl83vpk8jwP51UnubVQvScornJo+zjhMms7pF1mFjF7E8l8Ni2d6GC3enKEJVLuaTTm0AT8vFPQRu78 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 13d8bcc3-f762-49ce-3c8f-08d5570e39cd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:SN2PR03MB2366; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2366; 3:rs2J1UrHVeNa6+iE7ynZvEpi7CKFXF/XS7F75ZTGzPcvmNVMkKEFrykWOFYLIEq2aIMzeB8AFkL5hqB8uEK6RFsrL8ic1niSv3cJkyOXNYWT4u9qzR71kWSJYBWaghfkj9GRarztj+VfvIJaYgRGHeZVnC6wsYiQHAwyoQsU3AKmC/91CvnkX1pIBFrqFDf8SLzFhXt9dnz8agpZ3LX6LF2jHuLJpk80t2bDrEtocjN77cRhUgj4jwtSFndMB+DWxzq4DUhkQUdo8t08Sy5UnYlpN4NFkNLzXawNPvVQlz6oQ4cgFZrwwH2u24acPd9/BCxVg82FndMhxBnGr81HphiTgoKohRT6oLQ+jfQoM1U=; 25:DxxzWzKT8yBSSsCFkGhFKF4c5b+pvwVAl6+6r2N5siORdsR45HvtFwwhnmGIFr5YTrXDsWhk8WCAstlS1by9+XGDdkzZ8cHk6AfeChxXo8eOF6jqCsWCdpHv+ohhxdZtDnrdRPVadNspedJ+8hs2q28KdwSkRMMGSI8EPwbO2I4R8G/nohNRhlRcTaDJF8LmjNLYTpih2QlCwu2rUCVizKtGU38qxW/yIWNpgfo8M4RPsFxKQo4ISWKq1qmc7Z7XcRlpNixy1M2e7x8jxKPuRqF+uas3DjOPJ8/sjIKDudjBiqPfktKFztLXco4pvsMo0XFy0e3VxPnM2Od4JpAphA== X-MS-TrafficTypeDiagnostic: SN2PR03MB2366: X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2366; 31:vP/LrSycxSAeyNeE6m7OLiZgjn+uus33C1OUhcOD4flUeADjpshjTQf4GpQGb4H/6xkME63G9N2IVYwBagjBGg681q7E0mW0CdlHI5BSwqqTRA0BGvSYZREc6h6wE83i0umasljhcU3eiIej3D1BH3H+l0dsSVbYDTB55XsVPrUu/Bp+q8IOAevzzBhT529dWTMpbc5iJY0TTJwKtCvVuuK3NWQQO2UtpIJuS3wyP/k=; 4:Sk9fmEPRSv0YzbvRHQjgmZ05OpFCQTaHKyPtAc19dwgLY5d5HzALjrV3dl0qyWQUsg0JY/WDiknCRA7gFS/HsTVPS/77K46TTTijokCtbI87iAWjd5U5zFtR7YTjpBu8pagTCyT56z9QGC4aaD6elfeikwp7dfdoV9VOqdhU9lU6ZxSvrq7e7YNpa9RZZ7qkLvO5/VLRvzSz3w0QEYn1Um0L2e50oBwVxHPv9sBS1rSkcqHcOR+SC+3MyChWY/fbJPjq/SdetD3OIMogLYLzfVX241CkX+vkb4yHNrnbjjLqh8JQYLst/tORsBwp/hI5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(6055026)(6096035)(20161123565025)(20161123561025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(20161123556025)(201708071742011); SRVR:SN2PR03MB2366; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:SN2PR03MB2366; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2366; 23:Hln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xoI6rXc+vwV69T1j0aPctwUyWZ5I=; 7:aCRYxS7Nv4BFJY/52QKoo7XyyL72dhhp3Hw9df10QmAFJFxEqw3Q095+8NF2/ln1dR41a667yRkzpyvFAzKUQ9zQ8bEs4D3vApcGpxRg4eEOasA+hENxtTKG+Mirly51DinT63LKNuYc6apvECNDF8HDUrsmxS25HOK+/OOM8CTPSbSEKfpD9JyENFy6GhlAQmVAwoiTE1Uh9cgNqQsw8CZjZ0t01UMSjzct/IeQ/EruXkdpdmNp6ucvsE9Hf81r SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 03:08:15.1207 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 13d8bcc3-f762-49ce-3c8f-08d5570e39cd 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: SN2PR03MB2366 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180108_190900_783303_1F3D0DEF X-CRM114-Status: GOOD ( 12.11 ) 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 --- changes since v1: update snvs lp rtc binding-doc for clock info. Documentation/devicetree/bindings/crypto/fsl-sec4.txt | 16 ++++++++++++++++ arch/arm/boot/dts/imx7s.dtsi | 2 ++ 2 files changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt index 76aec8a..da66ac4 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-sec4.txt +++ b/Documentation/devicetree/bindings/crypto/fsl-sec4.txt @@ -415,12 +415,26 @@ Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node value type: Definition: LP register offset. default it is 0x34. + - clocks + Usage: required if SNVS LP RTC requires explicit enablement of clocks + Value type: + Definition: A list of phandle and clock specifier pairs describing + the clocks required for enabling and disabling SNVS LP RTC. + + - clock-names + Usage: required if SNVS LP RTC requires explicit enablement of clocks + Value type: + Definition: A list of clock name strings in the same order as the + clocks property. + 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 +557,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 {