From patchwork Fri May 18 09:27:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 136262 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp998114lji; Fri, 18 May 2018 02:28:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpj+aE2tdJP6iOktt7UKxYLgmzwxC4DZEum1YIUo7/qx7O+Ro3byPCpu6U8s9YLeRu5uDYw X-Received: by 2002:a17:902:7e4a:: with SMTP id a10-v6mr8902894pln.276.1526635717974; Fri, 18 May 2018 02:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526635717; cv=none; d=google.com; s=arc-20160816; b=FI154QlIqDq0nzBxsOacOTllccAd5LsWiFShw1XepAteF2avssZfS7j7yB8d2VsmMl LErs0seDC6HBRT2sR21PWOVUZNFjojd25980IYpQElYb+d7eyH/mcOPgn/sDfzo+apA0 0pMYCsqNYj+o8amwyTgLfd+e8sz7w3rdp78b20fZUvOGPBKP5cGxTpXADJbDeJFsQMFN LZu5B0Ezg9K9zP5OhEZ/F7YRFy5lOCwukBt6ZaeNJFlPpK9O5XU0n92GY8q9TrOgOiQ7 Etyw0VaHNek7dooGkic50vMNM8bNabGiGiUZ8jBoWEwnYLztJjkOLgiO1+tyng6DjzkQ S+uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=yWllDycaIBhpVhFrBgjVgEgKz/V5+w78bWiv/eXJ2ZI=; b=Sd/6asM6ihZ1/fwOTifoCqst4dyw40F0Erm0o80Q3U9xr4DvepFvrxHeRqOh9cEB5i 7uS0V1yqxWuNYpl6Y/b7zSf/WPbPGH5GGdq3OU5esXK3gYCy3d9fngGXGkXekHvXhP70 JRo0MDNpiVjvTXvwQbW1Mva52jiuAInaNGl+A/uY6dVQAo2uuHGP0gnsZEbGc6idyYSy v/eW1ByeJ/2Si53qDZ32FsRSQ3HJQfxb8BDMPJafpFn7idUenqmUyy/YhNY0PfnMmauW 9qZJjYvxWlVWSiDDk/54heVeZn1YDSEb0UtRdi+9irDEwQDzdXbnGF3tV4Ve4t4zWdrg PI3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KOfJyXAM; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si6884200plh.556.2018.05.18.02.28.37; Fri, 18 May 2018 02:28:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KOfJyXAM; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753422AbeERJ2f (ORCPT + 5 others); Fri, 18 May 2018 05:28:35 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54406 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753379AbeERJ2a (ORCPT ); Fri, 18 May 2018 05:28:30 -0400 Received: by mail-wm0-f68.google.com with SMTP id f6-v6so12980213wmc.4 for ; Fri, 18 May 2018 02:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Sxw46gnlz9mtv1XXl/Vo2KttgxadVIeBrluz36BuYaM=; b=KOfJyXAMxO5+/fUmuHFS32W5IYSPbAGBc4o0hdoLfjqMdkzygva3J0C4mpINhu/u2v PFrriEzVOS3EApz0ABYLj+O1XHsSKgtJ0g1FVickEt6E+euOtIbkAEYtjYjKfL4B8mcy nnmTSli8+Ntxerx/3ab6NDyBO7wSf2Nn73nuc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Sxw46gnlz9mtv1XXl/Vo2KttgxadVIeBrluz36BuYaM=; b=WqOgZyD0GGAKGhVub5W6mh2nLexz72/GuUyy6U4TWgnf7LDI6/RUhfQC0tWGk2dvaW 4Viwx9rFExZM5+QBwCGJghLrnv9Jm4aqPelHh3AoGK4i3uCIQIdtUwO1sFuztcw1fU4h 8ByCpJJJHRqtQ+W+FxLNdS9POBZCCqVl7uxMkp0cGBAaxwQEJhR3cujOW1iDtNs74v9g n78bTeJNeA1zwIVDEnVotgceeGL5mVOM7DyLDJimgPf2btO60NTt1jpNDcdLtYDsTFWS zdnbCIc/4b0J93rFP46RqxOWuezqAyjz5bEp76p20E3sFI5O+OFm8d6mERjpdz50iAOo xgHQ== X-Gm-Message-State: ALKqPwexssu3VWWFi4G2Km7P3ghPMVlvWk3PMgiucnkkFfhI+E9AO7iC gwbwHVvHe97ySe246w6Fz69QHQ== X-Received: by 2002:a1c:59c4:: with SMTP id n187-v6mr4069161wmb.51.1526635709059; Fri, 18 May 2018 02:28:29 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id d125-v6sm6544514wmd.24.2018.05.18.02.28.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 02:28:28 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Steve Longerbeam , Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Shawn Guo , Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , linux-clk@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v5 03/12] clk: imx7d: fix mipi dphy div parent Date: Fri, 18 May 2018 10:27:57 +0100 Message-Id: <20180518092806.3829-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518092806.3829-1-rui.silva@linaro.org> References: <20180518092806.3829-1-rui.silva@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Fix the mipi dphy root divider to mipi_dphy_pre_div, this would remove a orphan clock and set the correct parent. before: cat clk_orphan_summary enable prepare protect clock count count count rate accuracy phase ---------------------------------------------------------------------------------------- mipi_dphy_post_div 1 1 0 0 0 0 mipi_dphy_root_clk 1 1 0 0 0 0 cat clk_dump | grep mipi_dphy mipi_dphy_post_div 1 1 0 0 0 0 mipi_dphy_root_clk 1 1 0 0 0 0 after: cat clk_dump | grep mipi_dphy mipi_dphy_src 1 1 0 24000000 0 0 mipi_dphy_cg 1 1 0 24000000 0 0 mipi_dphy_pre_div 1 1 0 24000000 0 0 mipi_dphy_post_div 1 1 0 24000000 0 0 mipi_dphy_root_clk 1 1 0 24000000 0 0 Fixes: 8f6d8094b215 ("ARM: imx: add imx7d clk tree support") Acked-by: Dong Aisheng Signed-off-by: Rui Miguel Silva --- drivers/clk/imx/clk-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 975a20d3cc94..f7f4db2e6fa6 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -729,7 +729,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_LCDIF_PIXEL_ROOT_DIV] = imx_clk_divider2("lcdif_pixel_post_div", "lcdif_pixel_pre_div", base + 0xa300, 0, 6); clks[IMX7D_MIPI_DSI_ROOT_DIV] = imx_clk_divider2("mipi_dsi_post_div", "mipi_dsi_pre_div", base + 0xa380, 0, 6); clks[IMX7D_MIPI_CSI_ROOT_DIV] = imx_clk_divider2("mipi_csi_post_div", "mipi_csi_pre_div", base + 0xa400, 0, 6); - clks[IMX7D_MIPI_DPHY_ROOT_DIV] = imx_clk_divider2("mipi_dphy_post_div", "mipi_csi_dphy_div", base + 0xa480, 0, 6); + clks[IMX7D_MIPI_DPHY_ROOT_DIV] = imx_clk_divider2("mipi_dphy_post_div", "mipi_dphy_pre_div", base + 0xa480, 0, 6); clks[IMX7D_SAI1_ROOT_DIV] = imx_clk_divider2("sai1_post_div", "sai1_pre_div", base + 0xa500, 0, 6); clks[IMX7D_SAI2_ROOT_DIV] = imx_clk_divider2("sai2_post_div", "sai2_pre_div", base + 0xa580, 0, 6); clks[IMX7D_SAI3_ROOT_DIV] = imx_clk_divider2("sai3_post_div", "sai3_pre_div", base + 0xa600, 0, 6);