From patchwork Thu May 17 12:50:25 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: 136149 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp155350lji; Thu, 17 May 2018 05:51:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp/+NeZNwnb4BL7i5u1pR0rG2qHIKrn1acPD3bAvIw5kFAnBCeGyyuIlyqfwkNyiFIZslVp X-Received: by 2002:a17:902:7241:: with SMTP id c1-v6mr5121531pll.217.1526561466230; Thu, 17 May 2018 05:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526561466; cv=none; d=google.com; s=arc-20160816; b=BQ9PtyihriBAr7tABhYc0xVqribMDX0755X4ANQQvVD24E+ILfQ+v/3trMZDIn8e7a fR2wG2eRrBrpD3hh86ThPcjyWeezvjX1A05qWPsPNs7UsdFZrAXp1jA2CSmOOZtwthNU 6Z7PuYKCdn4U6rm8YKOV/+jMF/3P7m+T+fRbpqHBgko+UlPb0wb9ewbJfXEyFfFp6ZpY K9w0XpGud1oIbcOdi9KL8XckWn68TJt+ntkcRJersWRzCSd/bRpKmN7qsjO8Ha+HHlLh GW0TTApTJEiZTKdRvRPPukqm9+crOocim8Uvp93cix4l2b+3xMW6KJpH9yeVjceIkFaX 1ANw== 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=SLvnP/vMH5COwpZjb6zhcyndJ8F9800yQgJ2fwzNdK4=; b=uiEMUwvpmCfc7+fGXRZuJCnx0V4TSg9rmts7GebTu5CwCbt7ve6mI+qC190HZSSQZS APIG6KW2WeG9dreaps+lF/iMZ9l0IGjZl/6y5Ul0pAHFPm+s54TMvi205RgXvjdhYm33 juD3MvHEdFuCOHfzh1lMoHHGNnNU6JNaKNQSuFeUtWRJWCMDskKVq2fGKZGQjX9TJSqs AJvNVbpI1EqA9dTPoKMworo2I5L5Ad/GC6GC98rPcH+XY8G2omGZ4OCrdrEvb9TTTjfu e3kC/8LfTkvpxVqjttbbJ4S+DPb5EKwTTx4otGoPwuniSbzCsVNq74LmWHdCTgo5rCBK i/9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fMyzX5TM; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 a33-v6si4972897pli.275.2018.05.17.05.51.06; Thu, 17 May 2018 05:51:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fMyzX5TM; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751695AbeEQMvD (ORCPT + 4 others); Thu, 17 May 2018 08:51:03 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:38646 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbeEQMvB (ORCPT ); Thu, 17 May 2018 08:51:01 -0400 Received: by mail-wr0-f193.google.com with SMTP id 94-v6so5571316wrf.5 for ; Thu, 17 May 2018 05:51:01 -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=SLvnP/vMH5COwpZjb6zhcyndJ8F9800yQgJ2fwzNdK4=; b=fMyzX5TMIAlHJ+6S9Ax9R5DlSu1bj11HyOICYDBxeRoXjMJs7KVlvV7gmF2nE05RDW Kil+Q2PVwS21NXhewkoEXJZkgabsI9K8mZ67hwttpZZRuIbDhJS3nAb/iSkf/48/O2EL j26erwCYZt+7zq9UhoYnsJzslu0XJTJmMPimk= 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=SLvnP/vMH5COwpZjb6zhcyndJ8F9800yQgJ2fwzNdK4=; b=cO3i3w+ABjW0zKn+id3yhg4qxlTiukozoMdwKaNyaNcm4XKtx2r0jvcEPxoKSNh0SU hheyQVR+ePzrJYzTMkvbthOi5152E0Vi6vIiBex+b+TgQnX3Ny6isJxg5D4g1MS4sSnZ Y5tQYVxEstIr68SX/DoZwmn8qHKyq43u4raqb6N+u3eM3UzDavMmZrmESzlWNUxqNZ0M TRGbBMiSbpFcKvzEdMCuUUygwRA1N8fLqd0Hsn2hlXCIlZ5K6XD/5gqsE6lwB83FWkXF lOT2s0WfC8dSbKsbZ/vQMOJ22ZUzGcABP/p/b6VwEGBKQLNagRQq2Ox7bC0GOClPv7hh eQ7w== X-Gm-Message-State: ALKqPwcQR4bGXVeY0KY5UisyPfZb28uh05lvjtqk7kP/RzOIgQD0gnU2 ohdaNr81HL3xSVmoAGYrF5LRBQ== X-Received: by 2002:adf:b807:: with SMTP id h7-v6mr4069671wrf.113.1526561460580; Thu, 17 May 2018 05:51:00 -0700 (PDT) Received: from localhost.localdomain ([2001:8a0:6606:9100:b159:5390:182d:7dce]) by smtp.gmail.com with ESMTPSA id 33-v6sm6077665wrs.5.2018.05.17.05.50.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 05:50:59 -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 , Rui Miguel Silva , linux-clk@vger.kernel.org Subject: [PATCH v4 04/12] clk: imx7d: reset parent for mipi csi root Date: Thu, 17 May 2018 13:50:25 +0100 Message-Id: <20180517125033.18050-5-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517125033.18050-1-rui.silva@linaro.org> References: <20180517125033.18050-1-rui.silva@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org To guarantee that we do not get Overflow in image FIFO the outer bandwidth has to be faster than inputer bandwidth. For that it must be possible to set a faster frequency clock. So set new parent to sys_pfd3 clock for the mipi csi block. Cc: linux-clk@vger.kernel.org Acked-by: Shawn Guo Signed-off-by: Rui Miguel Silva --- drivers/clk/imx/clk-imx7d.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.0 diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index f7f4db2e6fa6..27877d05faa2 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -891,6 +891,8 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clk_set_parent(clks[IMX7D_PLL_AUDIO_MAIN_BYPASS], clks[IMX7D_PLL_AUDIO_MAIN]); clk_set_parent(clks[IMX7D_PLL_VIDEO_MAIN_BYPASS], clks[IMX7D_PLL_VIDEO_MAIN]); + clk_set_parent(clks[IMX7D_MIPI_CSI_ROOT_SRC], clks[IMX7D_PLL_SYS_PFD3_CLK]); + /* use old gpt clk setting, gpt1 root clk must be twice as gpt counter freq */ clk_set_parent(clks[IMX7D_GPT1_ROOT_SRC], clks[IMX7D_OSC_24M_CLK]);