From patchwork Mon Oct 2 10:32:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adriana Reus X-Patchwork-Id: 9980621 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 C5BC060384 for ; Mon, 2 Oct 2017 10:32:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6E8E2837D for ; Mon, 2 Oct 2017 10:32:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB54E28986; Mon, 2 Oct 2017 10:32:48 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C90F2837D for ; Mon, 2 Oct 2017 10:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751081AbdJBKcs (ORCPT ); Mon, 2 Oct 2017 06:32:48 -0400 Received: from mail-eopbgr20067.outbound.protection.outlook.com ([40.107.2.67]:14112 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750986AbdJBKcr (ORCPT ); Mon, 2 Oct 2017 06:32:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B0LGTC9G4VGTDnZoGxBXEZtQkHLDVOfNwWyWC2gZQS4=; b=D7wtDlSt0RE56Tnwqq0QFUH63AOYQuiqHrv+8IzfHTpaFMSutSB9qZw0LFozhNbJWHfBx9e6CpbCShFh2bDOKf6mhA+MF6XZfT6nt9JJ0m73zZ3LmSft4tDSe+5p1E4lBVqYVzVICzGLYpW2XMpPVjsGnS+QPMzRLP6QvpjKK+M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=adriana.reus@nxp.com; Received: from fsr-ub1664-141.ea.freescale.net (192.88.146.1) by VI1PR0402MB3376.eurprd04.prod.outlook.com (2603:10a6:803:2::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 2 Oct 2017 10:32:44 +0000 From: Adriana Reus To: sboyd@codeaurora.org, mturquette@baylibre.com Cc: anson.huang@nxp.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Adriana Reus Subject: [PATCH RESEND 1/2] clk: imx: imx7d: Fix parent clock for OCRAM_CLK Date: Mon, 2 Oct 2017 13:32:10 +0300 Message-Id: <1506940331-16742-2-git-send-email-adriana.reus@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506940331-16742-1-git-send-email-adriana.reus@nxp.com> References: <1506940331-16742-1-git-send-email-adriana.reus@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.146.1] X-ClientProxiedBy: AM5P190CA0018.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::31) To VI1PR0402MB3376.eurprd04.prod.outlook.com (2603:10a6:803:2::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a443b343-922e-484e-a1ef-08d50980eb13 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR0402MB3376; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3376; 3:BOsMALRBRW3RcPYf5/Z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I0FOqs4W2mwcUjQwNuo8MoOftmJyhLEki2Wq0jgJG6/Glp5GqcfHgJS9IlTbzjvLxeEiScNfHGPq5cC24vQM9Fhfjz9T3dkbbAmu2pzdOL157o9zXtZDPrwJaesTctRV0I0+V3rco/CSub4su+LNUGunU2eTIlrwfZW59HCrhnxz7ep8PTJeQAH8Xm8iqLvnGVUx4u5G2VPNtM8+xEmrocyCq/NxzAPHPY+GYIR0f9J+YznQf774gmcpdHz++loca1VQOssbSdXAWYf+AFafD5pOkbd3l917xifQYq9aJ2DIrFcNu+CD/q3IbBEJ9j+ZAvbEdB+wOIX0EF6e; 4:k+lbRvxEiFrCNH/WpeoWqvjDopQvDUoBP64I/QpI7XT5usRSEnrxsMaGFrJJptJrIwpvDQEIu24iXdRvEtH0iDVG8ORJCPqWx4B1PVmcxSx5JwBuidI/1hu6iHxXYW4XyqSAanIFslIiIqoHevZy/11ot47BpK+kO/fOT+1kwyZ5M7CnpbOGI3lLgC9JROJ0jGv7gjCB5SjIqUo/zcO8MTK81v5JMMtWtIUHygKKHUNp0FIsEvplA3Ca6CJp7KaEZRsylW6PbkqUXxOkqB5uMj5JAM42AsjYYbZLqXjz2YpK+BLDP9iX5CnASSe7ttgq2ib4RvY/Qw1Dd3jukuRNdQ== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(264314650089876); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0402MB3376; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0402MB3376; X-Forefront-PRVS: 0448A97BF2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(199003)(189002)(478600001)(97736004)(6506006)(33646002)(66066001)(106356001)(189998001)(6666003)(48376002)(105586002)(47776003)(50466002)(36756003)(5660300001)(86362001)(2906002)(6116002)(3846002)(76176999)(68736007)(6486002)(50226002)(5003940100001)(81166006)(81156014)(8936002)(50986999)(8676002)(101416001)(4326008)(6306002)(316002)(305945005)(2950100002)(7736002)(6512007)(16526017)(53936002)(25786009)(16586007)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3376; H:fsr-ub1664-141.ea.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0402MB3376; 23:neVkKMWHDJTOPg1/QN/PmbJ7Uqmbo/GUOOsluV2?= =?us-ascii?Q?ed+bXZxJ4sz5KWK03GUb18/1e3BgdjVg0HslfKlieZ2IVW4uoh8Zh5bbYs3U?= =?us-ascii?Q?hBFTcqdfmcXtHHJBPT5jPDOR5Lwut3lyEab5dhBns5ULr3LEYZNqYpulS40U?= =?us-ascii?Q?r2XUSnqKFHd7PAEBpJindvEq3FXc0mbXoJr7I1IErEi2lYhQYiy11RACYGZp?= =?us-ascii?Q?UE57gElwc6G2QMsAsjAvnEDI55SXKr2Ox9XjAlY/vHkD6QfYoKvE5Q7K7Wtq?= =?us-ascii?Q?CvU8riw0g3N7r044DgVLDaJvdTaLVx6n2XxD3dNkZzUgxXNC5N83+vlGNByC?= =?us-ascii?Q?/vVSmLqUT0Y0MC6hFoPreoXf72w0gcutqz1JWsV/h+lTtTD2+dvmWRXYFTmJ?= =?us-ascii?Q?FBpHkPHa4sgX8y3wU+QjvINxqQSZB1zj7MoE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4cOu9M1TjeaiTmA1UDbmaPl7CCL4HSDEHmmlyIBC8jOQLZTCftG2ddTvZD37yhtmiExF2TxWTMu6KJ3A8IEWd3jGXzyt+rvBEL0SSfnz37QHn/4SsrUnR+mJ63EcI+ca1AISYjuq1UBz1FRjGF0Bazr9vKieWVeZtPnxQ3ropQJztRkhi9LtE7Q==; 5:aWbaG4PjMbatJhPOcx+IYBPHS7kq7nkMSA4clJ7q7zc2pJ1+AirlCr8UuhrBIgGLUvnqXJO4kmaimcLVZnF+J22FavS4CTvvs0Mf9iQKM795Rtiv3tnEfZ30sXhanZEjZqmBZjHBaICIVHYMnVRqbA==; 24:WnNKvoZ86fSWWGs0w/K89Mgh/+UpBv2bUCMksLva6N6FzxgrHr0XiSAZjg8nM8cMP31U+QOX8RW+FWlE99m7ZG5R51vmB77X8PYk7TrQnTk=; 7:Db9Ww7iiFLbBMPg3kJpEpZfovEv+2NuLApR7J0b8mLs3Be/DH43mUE3uEX5BH0fteyNVpZZttH4k8xqhxzZIple0R0ssgdIPxGRNxM+9BqN04fQD3AKsVNnWZAj6JUrcVvQ492WrxyOAL15UlV4z/eoKie5GAsTvvrSq/Ies14Lvx7slcTUKGEnj3zNaVeNGA6ppdonD5kRsziEaifus0457vb1eFSGAz9JdYI2X21I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2017 10:32:44.1564 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3376 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The parent of OCRAM_CLK should be axi_main_root_clk and not axi_post_div. before: axi_src 1 1 332307692 0 0 axi_cg 1 1 332307692 0 0 axi_pre_div 1 1 332307692 0 0 axi_post_div 1 1 332307692 0 0 ocram_clk 0 0 332307692 0 0 main_axi_root_clk 1 1 332307692 0 0 after: axi_src 1 1 332307692 0 0 axi_cg 1 1 332307692 0 0 axi_pre_div 1 1 332307692 0 0 axi_post_div 1 1 332307692 0 0 main_axi_root_clk 1 1 332307692 0 0 ocram_clk 0 0 332307692 0 0 Reference Doc: i.MX 7D Reference Manual - Chap 5, p 516 (https://www.nxp.com/docs/en/reference-manual/IMX7DRM.pdf) Fixes: 8f6d8094b215 ("ARM: imx: add imx7d clk tree support") Signed-off-by: Adriana Reus --- drivers/clk/imx/clk-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 2305699..0ac9b30 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -797,7 +797,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_MAIN_AXI_ROOT_CLK] = imx_clk_gate4("main_axi_root_clk", "axi_post_div", base + 0x4040, 0); clks[IMX7D_DISP_AXI_ROOT_CLK] = imx_clk_gate4("disp_axi_root_clk", "disp_axi_post_div", base + 0x4050, 0); clks[IMX7D_ENET_AXI_ROOT_CLK] = imx_clk_gate4("enet_axi_root_clk", "enet_axi_post_div", base + 0x4060, 0); - clks[IMX7D_OCRAM_CLK] = imx_clk_gate4("ocram_clk", "axi_post_div", base + 0x4110, 0); + clks[IMX7D_OCRAM_CLK] = imx_clk_gate4("ocram_clk", "main_axi_root_clk", base + 0x4110, 0); clks[IMX7D_OCRAM_S_CLK] = imx_clk_gate4("ocram_s_clk", "ahb_root_clk", base + 0x4120, 0); clks[IMX7D_DRAM_ROOT_CLK] = imx_clk_gate4("dram_root_clk", "dram_post_div", base + 0x4130, 0); clks[IMX7D_DRAM_PHYM_ROOT_CLK] = imx_clk_gate4("dram_phym_root_clk", "dram_phym_cg", base + 0x4130, 0);