From patchwork Thu Apr 19 10:18:01 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: 133726 Delivered-To: patch@linaro.org Received: by 10.80.173.174 with SMTP id a43csp613998edd; Thu, 19 Apr 2018 03:18:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+GydEiDmSgd4K1nZu+3Z8lrm07DIeK8cWdg++WaB+cmLRncl55pr9fkaOCbzTrjNXW5iR5 X-Received: by 2002:a17:902:b7c9:: with SMTP id v9-v6mr5540634plz.35.1524133125245; Thu, 19 Apr 2018 03:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524133125; cv=none; d=google.com; s=arc-20160816; b=uVzOcbTxKUtCrXaSqxi7da3IfDNguiPgaQR2jU5y+EFCsG75oQOq4R5nsGxkXigohx 1zuOFbupn8oSj27LBf79C0aYKzTLa1GlToIJnXHPwc+TpzGqn3UMb9zJDo5O/F9AMXFa mtEoip/p8sauubQSQTuczlKUWRZr2zgTmXcURdpyLPE9PPqeUFIf5ToRmZj55PAP/rCz IXN4KTqq2mC+yf+TyZR2p6TPpBPXG/X7RXOKqkh26Y8wQCY4TUWjrddUxIXC4bxu2Iya oZmF+c3W6W5kIBTHa6RbWex25vZp+HpQivbjG+zevaQVCY09ntYYX1wxb6NZUHrx8CJZ 9uow== 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=G4OpJvpFP7Z2V3Quh4KNftY7e2w9Sm/QqSdfwFobSDk=; b=N6SVATtol66WZr8gDc/GH3mWTfqDiUDNYAjuA4T1F3rVkscxIjjW3fvwCzM0TD54sl f/eXHwQWjKapg8WbEkxt2T6idUpWkSX2+tArfq7R2aMjcip1jbDts7OG4mvIcVjBBwEb s7zXD2cG7y4w/wVSsunMbEoBO1ZAHcfueryya07ancf6sJNdrJdqWrUqCdMQs8C42Aeb tldRf63z/+3mjXjCvZ9XkXPVhWqT4Kqjfl/PvBl18E5Dgj+L/nk42v7Zn9xBqUMlggSP AVt+IZXE9HoAxGVfjps9WAKsqu2vebl9Aj3MwUVRdYa/JxPJKOoX/rvSqz0l/aI+gvsR 90ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Y07fkJg0; 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 r18si3018088pfe.168.2018.04.19.03.18.45; Thu, 19 Apr 2018 03:18:45 -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=Y07fkJg0; 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 S1751420AbeDSKSn (ORCPT + 6 others); Thu, 19 Apr 2018 06:18:43 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33222 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751271AbeDSKSk (ORCPT ); Thu, 19 Apr 2018 06:18:40 -0400 Received: by mail-wr0-f195.google.com with SMTP id z73-v6so12540524wrb.0 for ; Thu, 19 Apr 2018 03:18:40 -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=Feetipr2RDB4eqVD5XPEiuzeGxFHWvVYuktxwxBn4dg=; b=Y07fkJg0LsyfLjEG+17+UiXRXzJwdFf3Cc2Y4x80IZTnH5IOmowqDxODbt+CUhDNb5 jDvUdUAOEA3Y6XDB875PSi7Pvje9xPF828NFMCURW7VkHx2vs/V/HenKheP8EzLe2RHS GIhM/VlEQX3djgmI8vY/C0J0Z8iIlfnGEeUXQ= 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=Feetipr2RDB4eqVD5XPEiuzeGxFHWvVYuktxwxBn4dg=; b=Ew0/nHa9fHRfWNvQ0GV0M7lY2/P9cNyCJbxaw9TleY0JxNcj3rSpe1OGFRxS8jIHdx 9Xl9IF+2rDRh2jEA0V0Ji2ScETts9FaKSWFB0pRzRESCQrm8ix58gqd58n1UD8N8LmSO eWcerLqQZj+0F/LmTbD5smb8gXlYkKFN76ZqcEbiifiINjkPhw8qlbuBMg4jMTEmoGpg g3zGCEPnUIXSCzds+bVruTeBji7y4I88+08eSn0WRg9dRWkkH9RUp4qOmstByFsLU9ct tRO/sJ6zV3UWsvokU0G1wqAgoEmMCFDeR1k/sSjyv9osg9BHU0zLoDvfm68uaxWAaWV6 el9Q== X-Gm-Message-State: ALQs6tCKWafD+EYjUKUDKbY0dC/O2KQ+cgkxWIQuaJxytuTx/xUhKvBs kRg15EC6jU+8Ph0iwgYyR31eHg== X-Received: by 2002:adf:b3c3:: with SMTP id x3-v6mr4355633wrd.94.1524133119121; Thu, 19 Apr 2018 03:18:39 -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 v66sm5220937wmd.41.2018.04.19.03.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 03:18:38 -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 Subject: [PATCH 04/15] clk: imx7d: reset parent for mipi csi root Date: Thu, 19 Apr 2018 11:18:01 +0100 Message-Id: <20180419101812.30688-5-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419101812.30688-1-rui.silva@linaro.org> References: <20180419101812.30688-1-rui.silva@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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. Signed-off-by: Rui Miguel Silva --- drivers/clk/imx/clk-imx7d.c | 3 +++ 1 file changed, 3 insertions(+) -- 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 f7f4db2e6fa6..9a1a18ceb132 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -891,6 +891,9 @@ 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]);