From patchwork Thu Jan 4 15:06:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10144009 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 8B479602A0 for ; Thu, 4 Jan 2018 07:29:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78ECA2846C for ; Thu, 4 Jan 2018 07:29:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6733528474; Thu, 4 Jan 2018 07:29:22 +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=-2.3 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_FUTURE_06_12, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham 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 BB54428455 for ; Thu, 4 Jan 2018 07:29:19 +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: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:In-Reply-To:References: List-Owner; bh=kvJLF7VxM2wz7yXvwYjypDbLlLx5u/VKHfzwz17HxDA=; b=BWEK0sXb5YGys6 a2vOaWltGJxeUuVl+7i7jUSe038UOWnffPcE8omFSF9BDWe1B+s7ZHulsvhEtJ7YVNexlbLBnfJvK MFtFIn4aqsVvPXYvxQE3TtJRi6+fMIb4+8MvFGVizLxoj2DfrFADc49zaeztA2xBJd0G63uX3XvVm Hamh7kN+Zsml3/son3EF6RvHH+rI83h51nsSRGQC1UZ6rPHEu5hOnxPwfNDlAl/Tmb5IvIVMhH6eE gw6N9TT8mwawFrA9Yhmvoai8hbtnKJ8YR1ILBQ5r98Sku/oAGS9nzvgVArmpQcamTbRo0LC7wnhms UlL8v5PBaKE6V+hixtGQ==; 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 1eWzxi-0000JP-47; Thu, 04 Jan 2018 07:29:14 +0000 Received: from mail-cys01nam02on0040.outbound.protection.outlook.com ([104.47.37.40] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWzxc-0000I3-PE for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2018 07:29:11 +0000 Received: from DM5PR03CA0058.namprd03.prod.outlook.com (10.174.189.175) by DM5PR03MB2697.namprd03.prod.outlook.com (10.168.197.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Thu, 4 Jan 2018 07:28:56 +0000 Received: from BN1AFFO11FD019.protection.gbl (2a01:111:f400:7c10::138) by DM5PR03CA0058.outlook.office365.com (2603:10b6:4:3b::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Thu, 4 Jan 2018 07:28:56 +0000 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; 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 BN1AFFO11FD019.mail.protection.outlook.com (10.58.52.79) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Thu, 4 Jan 2018 07:28:29 +0000 Received: from anson-OptiPlex-790.ap.freescale.net (anson-OptiPlex-790.ap.freescale.net [10.192.242.177]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w047SnGL004933; Thu, 4 Jan 2018 00:28:50 -0700 From: Anson Huang To: , , , , 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 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?udT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yedGoq0ZUzU/iejud4HQwcb3mOMRSRsevpfvVKoGYC5atBHSC1p2mFnnPz5769M3uwOil+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_232908_941930_90D45C94 X-CRM114-Status: GOOD ( 13.27 ) 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: mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, linux@armlinux.org.uk, stefan@agner.ch, robh+dt@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, shawnguo@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 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 Reviewed-by: Fabio Estevam Acked-by: Dong Aisheng --- 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 */