Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbeADH3D (ORCPT + 1 other); Thu, 4 Jan 2018 02:29:03 -0500 Received: from mail-cys01nam02on0080.outbound.protection.outlook.com ([104.47.37.80]:7418 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751988AbeADH26 (ORCPT ); Thu, 4 Jan 2018 02:28:58 -0500 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; armlinux.org.uk; dkim=none (message not signed) header.d=none;armlinux.org.uk; dmarc=fail action=none header.from=nxp.com; From: Anson Huang To: , , , , CC: , , , , , , , , Subject: [PATCH 1/2] clk: imx: imx7d: add the snvs clock Date: Thu, 4 Jan 2018 23:06:41 +0800 Message-ID: <1515078402-22135-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131595245100205073;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(336005)(7966004)(376002)(346002)(39860400002)(396003)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(16586007)(4326008)(68736007)(104016004)(54906003)(2201001)(85426001)(86362001)(110136005)(53936002)(7416002)(8656006)(48376002)(316002)(50466002)(47776003)(97736004)(8936002)(50226002)(51416003)(36756003)(72206003)(59450400001)(498600001)(81156014)(81166006)(8676002)(6636002)(106466001)(105606002)(2906002)(6666003)(77096006)(356003)(5660300001)(305945005)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB2697;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD019;1:5W//Iizxz1eZn4bZcMKaadVnkAotWV6izBGDvFOAU0vb9tBIYQQMGbCGm2AzILEoEmq8E3TTGHCAIF5H4JzcRJSvh8ewvw40RzrDSJE1xi3Ov2/sGmY9FSh3l23Z3nAf MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5cc0ee5e-3438-4828-0411-08d55344c0cb X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307);SRVR:DM5PR03MB2697; X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2697;3:73brlkWG2bglYC7TITQZiZhcG9CP0zHEzAQMbtxmVYAEP3elZg8nHzO2zVDWxxUOmLg7mKqdPRuvBB3gdvRJhpUqWtxQFbwI++0lOTZe6SD0mYLjYMfAy8pgQcmFHK1RTUFQEr1vHptO9HPxVX8MJScMavWaHsoAkNu/LoFGB3UQ9NKd9Vpp/D/rLvFd8QSZgv6CxgaR+qUtiWEsucCNCkBrImkHmrYKGgOQfAolNzR8N9eJlpJ+ZlJCCY+rJz7lKG1PiuFC7a8q4x8UBHpuwO8jBzzgMCaH7WKrB4+ecMP1vvi9Z3UWcbXXi0i3dIGiKgOU/NTNEdQGai/Y8LqpaVYPaKwf4XIWe7TrXFibZcU=;25:HqVdKOd+QhrBbgv4GPvC2hWkE/oRJw1Lobkskb6EzbgdYfUcTpkoZ5jQpjyxVcLOjMyQGWd05cDmz2wWV8syTZ3pBMOTVrm/3Qt9HjDLmvQ8u2PJr2t1dCZpZIRH3EwT0Pk/egWWiNOmzyS9EMDOF+JLsTg+MP1lkCAJFoOuBZNSO4cVhs3bQFmQrcQo2AHyfVKw+JOA2b0+0Hb637B9JrL60vVPInwpsVuUcffxzDcgU6W9Playun/LPYYobNycaBAN0zXOy7hQn53VUhhI7TGUIgzVM/yPYbezdi+fFvErg7bfJPoBuvViCto4lKn3Cz0z8THnyjeN1ZtqAgmrTw== X-MS-TrafficTypeDiagnostic: DM5PR03MB2697: X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2697;31:t5FuTQK56ZJkwIket1agNzSeJEhs+M7MbziW6l2GGuSaikJ0x9OBNUISai5Lrp2n6db8z8TzEIAue0WGe/+ZU6+RmSncY9U0d/cNFtK/7zkxE8SZh1sh1kOXZX3loY/uZapa28mSP39hCcbFuDfQxD4g1R5Oyg8AJPfUPfwvASH2OFjEM8uVY0kxlEbiGf+GEYTe4Sow626ey42RU2ZLBb8NS+dlMkp+t5OVXoDqkWw=;4:/YYYl7et8oZ3LDOs9oJUPDPTUXHHO7Gaad99rOyfQe0Y0obtOgPQ3e+H57xQpp7U3kg4blDC9CtSjbmmELHIVuJ9l4V4annBeCNrkWAlnCIHe7C8UmoqtuD5AvWmG/RYoZ4ZOVMj0lOxKx7iiZKtQQt+eF48qy3CDypv1HZmvU6eF/NFoqZ+jZ3cEX5E1oJFPdAINngR+HRmRPFG963AYcDgCjrP+Xpiax+2lbOgZUJCE6QgmX8JwKWNYw+OdACkFbLCN3Fi/1lGkLyG1zQuUZ/mFSjaycjLupIA1OTgTmHNlsgbAVR6jYXPkzukkQvT 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)(93006095)(93001095)(3231023)(944510075)(944921075)(946801075)(946901075)(3002001)(10201501046)(6055026)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123563025)(20161123561025)(20161123565025)(20161123556025)(20161123559100)(201708071742011);SRVR:DM5PR03MB2697;BCL:0;PCL:0;RULEID:(100000803101)(100110400095)(400006);SRVR:DM5PR03MB2697; X-Forefront-PRVS: 054231DC40 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR03MB2697;23:cHHZIV1L7l841k+GR8XZyYa4isPIHEdfXgsvkAJVI?= =?us-ascii?Q?udTVVPor4MxpowcyhH5nrXCqhRkdLQLIciTAmAaS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C5atBHSC1p2mFnnPz5769M3uwOil+ag9TuyV5H4DcKTa92aPFF7aGMnRS5hq3JsFGMYZiXXjeLG2akn1FLVkqGpHIXi4axfuhje6gRJrQxRU5SZ8e9m5S2ce/AqK6jUvBju36S SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2018 07:28:29.8489 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5cc0ee5e-3438-4828-0411-08d55344c0cb 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: DM5PR03MB2697 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: According to the i.MX7D Reference Manual, SNVS block has a clock gate, accessing SNVS block would need this clock gate to be enabled, add it into clock tree so that SNVS module driver can operate this clock gate. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx7d.c | 1 + include/dt-bindings/clock/imx7d-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 992938b..a284c6f 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -799,6 +799,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_DRAM_PHYM_ALT_ROOT_CLK] = imx_clk_gate4("dram_phym_alt_root_clk", "dram_phym_alt_post_div", base + 0x4130, 0); clks[IMX7D_DRAM_ALT_ROOT_CLK] = imx_clk_gate4("dram_alt_root_clk", "dram_alt_post_div", base + 0x4130, 0); clks[IMX7D_OCOTP_CLK] = imx_clk_gate4("ocotp_clk", "ipg_root_clk", base + 0x4230, 0); + clks[IMX7D_SNVS_CLK] = imx_clk_gate4("snvs_clk", "ipg_root_clk", base + 0x4250, 0); clks[IMX7D_USB_HSIC_ROOT_CLK] = imx_clk_gate4("usb_hsic_root_clk", "usb_hsic_post_div", base + 0x4420, 0); clks[IMX7D_SDMA_CORE_CLK] = imx_clk_gate4("sdma_root_clk", "ahb_root_clk", base + 0x4480, 0); clks[IMX7D_PCIE_CTRL_ROOT_CLK] = imx_clk_gate4("pcie_ctrl_root_clk", "pcie_ctrl_post_div", base + 0x4600, 0); diff --git a/include/dt-bindings/clock/imx7d-clock.h b/include/dt-bindings/clock/imx7d-clock.h index e2f99ae..dc51904 100644 --- a/include/dt-bindings/clock/imx7d-clock.h +++ b/include/dt-bindings/clock/imx7d-clock.h @@ -452,5 +452,6 @@ #define IMX7D_OCOTP_CLK 439 #define IMX7D_NAND_RAWNAND_CLK 440 #define IMX7D_NAND_USDHC_BUS_RAWNAND_CLK 441 -#define IMX7D_CLK_END 442 +#define IMX7D_SNVS_CLK 442 +#define IMX7D_CLK_END 443 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */ -- 1.9.1