From patchwork Tue Jan 9 09:20:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10151461 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 A7EEA602B3 for ; Tue, 9 Jan 2018 09:53:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FFDD2873B for ; Tue, 9 Jan 2018 09:53:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93A90289FC; Tue, 9 Jan 2018 09:53:56 +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 1F7012873B for ; Tue, 9 Jan 2018 09:53:56 +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=AiTIAm7t6R2/IyK0xyrT9Bu29R5riGjKdGdNeKsgwgI=; b=EOcZLexYE1qWXg G2gbv+JSKfBziTPTqqv2Kb0jbyLAIO7t4xziJJBz8hDsSd1td898z//x/uI71/lUAN5LQGPPKfeAR QBo/LAldVVrMttHUHAuHMrwqm3fk0Zfg3eq7rukdV4x/UIrBr7Q+RXuHvk7aNeOCwkO4o2zh0yVtP c2v/fPOpllJMkKPQY76FVhf4N9TIzpLTgscqCT0R3sBa4s7Yw+MLVY95VuLHPbizKCK92+jRMRl0y BVuf3vqVkapy4349Y5tS01RlR9sN+jFf0PgNMFuMg5yHjio4gqKuZuDAJb+TNlhfDEqoj2Rtrj2OR 5sD2LarfjFo7eZ68jEKw==; 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 1eYqbM-0005WO-5b; Tue, 09 Jan 2018 09:53:48 +0000 Received: from mail-sn1nam01on0072.outbound.protection.outlook.com ([104.47.32.72] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYqMY-00010s-Aj for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2018 09:40:24 +0000 Received: from DM5PR03CA0052.namprd03.prod.outlook.com (10.174.189.169) by CY4PR03MB2696.namprd03.prod.outlook.com (10.173.43.139) 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 09:38:18 +0000 Received: from BY2FFO11OLC004.protection.gbl (2a01:111:f400:7c0c::112) by DM5PR03CA0052.outlook.office365.com (2603:10b6:4:3b::41) 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 09:38:18 +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 BY2FFO11OLC004.mail.protection.outlook.com (10.1.15.184) 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 09:37:47 +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 w099cB4Z013151; Tue, 9 Jan 2018 02:38:11 -0700 From: Anson Huang To: , , , , , , , , , , , , , , Subject: [PATCH V3 1/2] clk: imx: imx7d: add the snvs clock Date: Tue, 9 Jan 2018 17:20:50 +0800 Message-ID: <1515489651-13488-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131599642676300583; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(6666003)(36756003)(59450400001)(50466002)(85426001)(86362001)(316002)(47776003)(54906003)(81156014)(8676002)(110136005)(97736004)(2201001)(81166006)(8656006)(7416002)(16586007)(68736007)(48376002)(50226002)(305945005)(53936002)(498600001)(8936002)(105606002)(5660300001)(104016004)(72206003)(39060400002)(51416003)(356003)(77096006)(4326008)(2906002)(106466001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2696; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC004; 1:/DqLbXApxhYQNkcCNTAMfN6Zfv8CoFUSrkCJPUnVVgEMS+//gJAzEWz7Swv+Aq8ubsuczvZMHGFDvjXWGjJ/xeAhorR46zOcntCU/i0Wub38QvopH3XjBbGsxtjcBMtx MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22b0b492-4e1a-46d5-0b27-08d55744a4c1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:CY4PR03MB2696; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 3:Uw/7fGVBDP4i/2EVtMNLlYuybcZO98EMq1DinqTag3/FCwwJl+LH/PhwNY0Bptjvu8e6cJ+fpdwmHRpEgbeGpSXSsiMA/2y1yWxO1ENgFyG6RSjHXlAqgWFoutJ9OgSSk9qbYizjK9znom91rd5zmUciGJXWKXAi9DDxxjhYh9TTqvTxqBqb5fGuH68oKPCwUHN8zRoTY8ohSU/LlBk5XbVPHdFN19IMAgiQ8tr3jHREwVNL80/MCZbxLBLLH800vPndeE5DMLXOGK6NkZmA7KWTib3stBHGzTUDWNN2LYUDfWCONhJ0t8LMfmRNC0ORMM94i43rj30Z1T+FDMC1iDrDwD3en3suYrPDvNax1bI=; 25:3GYe5JY8Z8EK0oaTy9/AXZYtBUefRFiBMdK3Pyyi4HwXWDS1Wl8rI0yeh06WX7HvbMixkqxwC5K4Ml1Z2vL1b0gbY/fhF5WNNoIvJwXL6QFTzPhLqqqJ+e/khLJ8wDJwgdEpthyQMI6Vylfz1sizTv6HY1DMcyp1joBqqgV9J2Xa8oLp6d7V9ImwzZFZ24d6w/3reTtqn7Gxtr4WNml7pdBWVD5JtcqL30dkD+YF6SmZ1yWGk75Wj/zaHf/UcV2+4zc0dzbaCYT406QWoe+TXJlVW0dQuI8nXyts6AByDOv78HKLv7/qNPSkW4rRwdIH9UmtYvfyAxzBFzZRyXQX/A== X-MS-TrafficTypeDiagnostic: CY4PR03MB2696: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 31:sV93Wkrz8KFi/0lrs7rX+u3HdOjmb6z8xEl7y9ZXqmgsYw0Gda74IzamHcG8xSAI39YkrfPmrgUgjNBo6+0XIpgINyyFDmY9tgbTLGXvfKXF5XKsaVoBu700be96bkk9EzkN+uIbF5s5nXTG4uduPjyty1RL13Pe06EhtgTSVG8yLxS7uN8sfW2CZ+IIoKBCn0VRi7L+cqQB2IN1MYcxWWUNvmYO471FqUHn2SeCTjY=; 4:GEEgi/5AA/E3Hkr6VbO660YF+R3Fn6+yDa3WiDS2Wwe2+m2QUhc8XFlYd9XqQUokhqz4xcpa4i9MbfPOkhLQDpm95uT8dA1CHm/17HHc/rIJoTJSRwVelbYvYca5QWArjXD9mpoKWtUGiEfRl2D4tdhktOc60aPs+8EcBUns5ksSVJnPN+sh3daNcXRErLe0XQSRKQ9Azg5mKfguPxxhOXeC6gG/HqL1zfS8XdW7h9506HbLQWubpmkk4Qra6A6mRZZW1pdW3wRFWu1tXDSS/OCVTKCpcQFRXVBdmj4xV5o0IZ/sCn9JlIxPYiFKDdFC 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)(20161123561025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123559100)(20161123556025)(20161123565025)(20161123563025)(201708071742011); SRVR:CY4PR03MB2696; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY4PR03MB2696; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2696; 23:wOuugmaIjFGgBAg85WpoOF4o41mj2ifFqvtzs/ZmB?= =?us-ascii?Q?gmjS4Vf06Oys9xKA0DD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EjQQAcEIEJenryjo1NCM3MEYps/oyG5YmYhoi32rLd/H6YlURrM/0goJhUaLHZ9tp4bqZgJoT3ozR5mA+NiZkXUOihHCRVJPJ/ZSC6eVp4WUo1Me3R1+nBpz7tKoAkyE8sf+aaMS5KIzyW/k5XZE5ukXA4j6C2wphSI0eSk31/nCc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 09:37:47.3804 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22b0b492-4e1a-46d5-0b27-08d55744a4c1 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: CY4PR03MB2696 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180109_013831_239050_25B84542 X-CRM114-Status: GOOD ( 12.92 ) 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 --- 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 */