From patchwork Tue Jan 9 09:52:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10151565 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 6685060223 for ; Tue, 9 Jan 2018 10:13:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BF4126E47 for ; Tue, 9 Jan 2018 10:13:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40A7D28880; Tue, 9 Jan 2018 10:13:09 +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=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 B30A126E47 for ; Tue, 9 Jan 2018 10:13: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: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=KUz3xBM+DV/EKJdMeQPnKnj/hrDj9j42fOhhjcKaWM4=; b=jf8+BMDy9jbOdW gGqHvj5VtWeNvsUPj3KJoSVJCohutsbl6de1IbxbhMxEgGKe9d8rcxd+D/hDoEFI3Gpdl3oaQw1JX f95Zlfdatf7BWb/TcEdCbU9rrN08HPBPpJwIDa4lVWWfAovfjFLOdiYLCRlVEgRns7wp+IRkvPRw5 xvbzK3jYruUtUDVYWpVtMpzRJSFwuGKbM8YFlJ/L3bJfkUZMIStaPbQjj5KTTtWk+nJ3GATjBiPiM Tcoysks3wNaAOYnBZqAuZrGwMxdIVFRMMrUbE9b0zH/s2V8Z24x8TMKc/ZY+y2fPXMHb2eT37E2Lm uveAa47bNWKqHjUdY6Mg==; 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 1eYqty-0000e5-RH; Tue, 09 Jan 2018 10:13:02 +0000 Received: from mail-sn1nam01on062b.outbound.protection.outlook.com ([2a01:111:f400:fe40::62b] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYqqw-00066k-Bu for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2018 10:10:00 +0000 Received: from BN3PR03CA0094.namprd03.prod.outlook.com (10.174.66.12) by MWHPR03MB2702.namprd03.prod.outlook.com (10.168.207.136) 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:42 +0000 Received: from BN1AFFO11FD026.protection.gbl (2a01:111:f400:7c10::116) by BN3PR03CA0094.outlook.office365.com (2603:10b6:400:4::12) 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:42 +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 BN1AFFO11FD026.mail.protection.outlook.com (10.58.52.86) 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:03 +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 w09A9Ni7007608; Tue, 9 Jan 2018 03:09:24 -0700 From: Anson Huang To: , , , , , , , , , , , , , , Subject: [PATCH V4 1/2] clk: imx: imx7d: add the snvs clock Date: Tue, 9 Jan 2018 17:52:05 +0800 Message-ID: <1515491526-14060-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131599661510975004; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(39860400002)(376002)(39380400002)(396003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(2201001)(81166006)(85426001)(104016004)(59450400001)(97736004)(106466001)(316002)(2906002)(16586007)(8676002)(81156014)(39060400002)(72206003)(53936002)(105606002)(6666003)(8936002)(498600001)(305945005)(356003)(51416003)(110136005)(48376002)(8656006)(50226002)(5660300001)(68736007)(86362001)(50466002)(47776003)(54906003)(77096006)(7416002)(4326008)(36756003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2702; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD026; 1:4KcdgGu2X52/o3LaJb2jaDtwZoEQjnxoPFuq7MoPkhrV5yljlAVtwLabvg1p9Zet/Gdg5eIBiSP67pxuTdP1+fAvyiyFBSwih6Vuk78Z1hFsI49TEM+PjXJ5XOnq00rm MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0cc6bc14-b66a-4641-5e1c-08d557490763 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:MWHPR03MB2702; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2702; 3:wISxlTqQbHP3zHCj7OJdN5qxNDkX6HjMGdgemNs0ZFHJT9hRjX9x+lu7G9bDGc0ynIGJwa7aRuGIq/5cYqmpPX91gHulo7976WfxUVNqINuoKtsv1/OQkOBhlP7GLWSzwO6UsqljCmA7/KmrmA0qAfI5nQ+iSwame0UXZ7I8hQIWNamjcbdDy4cMr/CVZjt2uDYuFxmy7VnHIAdSbx/VblfDnosKLYuuTgCtmY7B7zWRthsJlyFNHEkAuMk26hHGCB9R+xqlfHJQgZtEKKBm+vYeHBEN4CghuPla5iqx6rw5jUG+/JvIfZ4YZJhBOEpxiKAZE4ZcsLa2/4/ALmDR5fJmwNG3q12jy/lo92r6Pp0=; 25:YXvaJeYjV/zUEmaCCLWR2B7cgQr3wUXSFuF8GP+roHHRtWg5sak7H5ENlE2AfDiM/dnLZ2eG4GIG2AGJON5jx5qJf0KXs7WHkpFmoWP19Cs8+r0LjV9Qx1OMwNJvaj0J+uSN0Ceh337+wbh223ODoeZ80+yy1MRRvHoeG5wVcSFRcltopxUnkcGY3iheKQ6VCLfUBSZxazWCb0NvWm3lRinuz36GKzAcdXHqDjY8SOPL3y+N5iLA92manbMJ3prEvvlZ7iMu3m4ttlff2vig+HgcKfhkmjz12whb/ZVJkOpZtifOWQe1ALnRY1uQgzu1wTqIy/cNdkKXPO72kMdy5g== X-MS-TrafficTypeDiagnostic: MWHPR03MB2702: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2702; 31:LfR4GnNwy8AToccQ+Bcro8fqnxfZtuN5iQnKDYNEdnc/jV7e73evdrOn99qwoFVyX2mSpwj210zv0wVAAoQqydxWwDITf59hB8F0JZcJchZ+t9WAfRa22V1UAZj7rv8hInVdMAoxKya5dFz4Ap9oQOXHA9QBcYDtdaw7+/zt3Q8Rdix2Psmnr+BxtV7G5XHAmPKQBjNCiOMMjzaY/c3emPOCWsE1zlMjZ8GwYMCjcvA=; 4:EwcvQf5n90N+/isAPEck1wLoXiGqzHjh1Xabqhh1A8Gl67fb0FhIitL1L78cOCm50eac+ez1DhbwUEKecl2U3Y+63oKz/bEWIr15gRZHyBFNrHKro9lLg8ebcp5vZZb6Wy/TP1ReDYOL3HuQ746DgtYdcKHPNT+I1XCGQRwkv1l4Ri3twVoyCOnsz3cUEuVuohkeJgA+ye1N55al+l3GSyUcWpxLuZlDkA/Wmu7eq55f6NcUWnaFkc6FGD9aSfNae1pcLRG153oFC/p3iMf1CFoZE0rk7ZRhP8UHboDfspkb8oTUc1llCiRVCEVwO1v3 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)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(201708071742011); SRVR:MWHPR03MB2702; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2702; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2702; 23:CMXPGan0ETKpMhVt+Z0MySvYsmdTRxOPvL6I3iI4R?= =?us-ascii?Q?HhUx0IktWXrcz4/zQu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HNYmZSuFurmpuNpkklV0keYTSpUizmia6sm34pW3WZ4TkOSIk4fDwZfhwa+9/fswlQwLU62rEwwd1KA5wDqCrDXytpztnXeSyiv8Y/CAa3CrL3Cvmapu3DVyjwm57jqbVKiu8Y2jif2F/IcrqZD7QPKqBi8Ol/9uFW9tPEScvMG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 10:09:03.7811 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0cc6bc14-b66a-4641-5e1c-08d557490763 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: MWHPR03MB2702 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180109_020954_672218_F803A3C1 X-CRM114-Status: GOOD ( 12.73 ) 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 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 Acked-by: Dong Aisheng Reviewed-by: Fabio Estevam Reviewed-by: Rob Herring --- 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 80dc211..f34f1ec 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -795,6 +795,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 */