Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp630514ybg; Sat, 26 Oct 2019 04:37:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsy/tnoAQOLdpVzbFpDm3wvRimfxqVrm+txBwg3wdIaB5jb/gaVgdUgkPYozfwM0Duzp6L X-Received: by 2002:a17:906:24c9:: with SMTP id f9mr7800125ejb.201.1572089842895; Sat, 26 Oct 2019 04:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572089842; cv=none; d=google.com; s=arc-20160816; b=Z+MySQedTrqIJEnknisUhRDsO04ZWUMgJVoTaspQHMOHw7k2lfcXaUHiQQMdfZPYOB J+wI//1Nx8Td7aCuHbXokXieyF/Eob8mRZgu8n53htEPaHl/PVFxm6dcRZhRoA8IJbhO Gv5nk+kUiZmEO7ue5DvNblE+vCHnp3rvNJCGBAV8zkss3CGkSaR5NoGP1onYro4r6a3L HlYejA7uzhUB+xXfNKnjxWhRMt+xhatO1N/i6MbyJSqPQUVXmQUcaAPKzx0aDdipbN9V XAQD3DkiEG5OqHMMG5mqIViTGaWxMuqobGTvl3ddDATW+MZODMuBE6S+fg9h72uGw6oI KoMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mewBrOU+RTKuwOEtVzPyVlWHLg2lLKfc1bD4oA5nDkM=; b=YNcE6S0W7BeeJVQXo75RX1+eRGiA8ngau0MJu6IEE9Aa5pAgKHRoMhPHtDK7L144mq C6AztrV0HfH3bwoiSDjDWyXl8+FxQTrbDSlJFtzPzojwVaLFCMgGrI1U5Mev0u3dt15d +Irt557T128/D0Dg1VNAhY68o/w04k7Vj3ZSU1JIgeW3Efse4KFJ6zIMDx7jcKP7a3tI ZpP0ndrxFJjZtbyDIbpa/cQJoGSsRD0gMZIMJAxK3mDDoJqYZHeOKzFWfPfc3SODXHtn s+6w4WLTpI7kqkXzg37YrEQzCypceOLBVuzBIIb1YbYcf7EMMOoXQrNyE4fw1DiftOR/ uK+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SFZ++fOB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w27si3407422eda.296.2019.10.26.04.36.59; Sat, 26 Oct 2019 04:37:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b=SFZ++fOB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbfJZLeQ (ORCPT + 99 others); Sat, 26 Oct 2019 07:34:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:53662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbfJZLeP (ORCPT ); Sat, 26 Oct 2019 07:34:15 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4399120863; Sat, 26 Oct 2019 11:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572089655; bh=/ZgfzByLCwOTe4PepmJqOGeav5FVx+wp6pJk4rlUrY4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SFZ++fOBoaobWkYaC1HW+9PAkgg7FGHkb3r4nQwrAYZfY1BGE/j8F91wljhS1VAfK DukWFoYMMDHj5NJrGkeUG+LthKqiRlSV5iJjoUh+SCAwjXyhKYxZJVimlGjASN6DBw IkavLbHLo6UoMmt157zDge/joFQWLhsxaywxp9MY= Date: Sat, 26 Oct 2019 19:34:00 +0800 From: Shawn Guo To: Fancy Fang Cc: "sboyd@kernel.org" , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "mturquette@baylibre.com" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , dl-linux-imx Subject: Re: [PATCH v3] clk: imx7ulp: do not export out IMX7ULP_CLK_MIPI_PLL clock Message-ID: <20191026113357.GH14401@dragon> References: <20191015031501.2703-1-chen.fang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191015031501.2703-1-chen.fang@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 15, 2019 at 03:17:23AM +0000, Fancy Fang wrote: > The mipi pll clock comes from the MIPI PHY PLL output, so > it should not be a fixed clock. > > MIPI PHY PLL is in the MIPI DSI space, and it is used as > the bit clock for transferring the pixel data out and its > output clock is configured according to the display mode. > > So it should be used only for MIPI DSI and not be exported > out for other usages. > > Signed-off-by: Fancy Fang > --- > ChangeLog v2->v3: > * Keep 'IMX7ULP_CLK_MIPI_PLL' macro definition. Please follow Stephen's suggestion to add a comment for IMX7ULP_CLK_MIPI_PLL telling the clock shouldn't be used. Shawn > > ChangeLog v1->v2: > * Keep other clock indexes unchanged as Shawn suggested. > > Documentation/devicetree/bindings/clock/imx7ulp-clock.txt | 1 - > drivers/clk/imx/clk-imx7ulp.c | 3 +-- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/clock/imx7ulp-clock.txt b/Documentation/devicetree/bindings/clock/imx7ulp-clock.txt > index a4f8cd478f92..93d89adb7afe 100644 > --- a/Documentation/devicetree/bindings/clock/imx7ulp-clock.txt > +++ b/Documentation/devicetree/bindings/clock/imx7ulp-clock.txt > @@ -82,7 +82,6 @@ pcc2: pcc2@403f0000 { > <&scg1 IMX7ULP_CLK_APLL_PFD0>, > <&scg1 IMX7ULP_CLK_UPLL>, > <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>, > - <&scg1 IMX7ULP_CLK_MIPI_PLL>, > <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>, > <&scg1 IMX7ULP_CLK_ROSC>, > <&scg1 IMX7ULP_CLK_SPLL_BUS_CLK>; > diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk-imx7ulp.c > index 2022d9bead91..459b120b71d5 100644 > --- a/drivers/clk/imx/clk-imx7ulp.c > +++ b/drivers/clk/imx/clk-imx7ulp.c > @@ -28,7 +28,7 @@ static const char * const scs_sels[] = { "dummy", "sosc", "sirc", "firc", "dumm > static const char * const ddr_sels[] = { "apll_pfd_sel", "upll", }; > static const char * const nic_sels[] = { "firc", "ddr_clk", }; > static const char * const periph_plat_sels[] = { "dummy", "nic1_bus_clk", "nic1_clk", "ddr_clk", "apll_pfd2", "apll_pfd1", "apll_pfd0", "upll", }; > -static const char * const periph_bus_sels[] = { "dummy", "sosc_bus_clk", "mpll", "firc_bus_clk", "rosc", "nic1_bus_clk", "nic1_clk", "spll_bus_clk", }; > +static const char * const periph_bus_sels[] = { "dummy", "sosc_bus_clk", "dummy", "firc_bus_clk", "rosc", "nic1_bus_clk", "nic1_clk", "spll_bus_clk", }; > static const char * const arm_sels[] = { "divcore", "dummy", "dummy", "hsrun_divcore", }; > > /* used by sosc/sirc/firc/ddr/spll/apll dividers */ > @@ -75,7 +75,6 @@ static void __init imx7ulp_clk_scg1_init(struct device_node *np) > clks[IMX7ULP_CLK_SOSC] = imx_obtain_fixed_clk_hw(np, "sosc"); > clks[IMX7ULP_CLK_SIRC] = imx_obtain_fixed_clk_hw(np, "sirc"); > clks[IMX7ULP_CLK_FIRC] = imx_obtain_fixed_clk_hw(np, "firc"); > - clks[IMX7ULP_CLK_MIPI_PLL] = imx_obtain_fixed_clk_hw(np, "mpll"); > clks[IMX7ULP_CLK_UPLL] = imx_obtain_fixed_clk_hw(np, "upll"); > > /* SCG1 */ > -- > 2.17.1 >