Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1074690imc; Mon, 11 Mar 2019 06:03:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYRIWvL1IcbudXTsbcD+ZNv4XmclyD/biZUazFr84qcwJNldgTajwe6ulbC/DT+gvGrnyx X-Received: by 2002:a63:c0e:: with SMTP id b14mr30044335pgl.236.1552309408062; Mon, 11 Mar 2019 06:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552309408; cv=none; d=google.com; s=arc-20160816; b=ZJ/F35JXFq30fhyWidVToHBl+eOwCdpLCa1rbDGKp+xcfPVZDTkR5RIzjIbgV7xiTC gyCV/ZK/QnljMHINDs/GGmmjOVRnkOjCkTsBYy5nOI98lL4HHEGobpr+qoP5v/ZQO1zA 7duhHhtwN2cMAaO1KpmFQD4qBxZgMJU2+pnioU3ZEoRAgB93uBOdlK61+MJn6wk+Rhip 3kdmo9Wi7UE6Qzib5MHdCBWmCV0PdS31lxBZBdyfMvXNrGAtecTty1EAZPc5E2/KT8ne 9XktSP81WP3Pe3ejD52SO+4fv2sTaTl/h8RvJw7VM7uDnn41DmOhuxYrCRAGZdvDzxCw 4IPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=Vsj1/DY8qdiEMEHweQlnPnFxHGIigyMAREBxPq1HGaY=; b=mtjd3oFQTYgB7kneaa9oe/rYRjUcLKrxoJkkwJSx4M7G2DyJH1r6foumtE+KyXfW+D nlbQed0fHBXCzphW/8z9ApphTH8ow/U2EVgqKEsxidnkCnwQN7i8ou8LPSI1+CI1aA25 RMuY3yybfm/hST7cyBqdIr2Ckaxd/WcWOa6nJaUWAZdCh5wRgByuZIVGIGw/x9RGptEx s/XWaJSd6JcIT5dGG1ffgK6cKow5HWlYuA7jZfs2joENhbgBn+hOkNe8hfcJg/PXpBdP 18GFQ0lpyybSlYcT8fCL+GJk1qizJJjDJfWC/GzDZ2LJ2FKVIx0wtY458Z1GE2fw3RW+ mrNA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si4767982pgq.421.2019.03.11.06.03.06; Mon, 11 Mar 2019 06:03:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727125AbfCKNCW (ORCPT + 99 others); Mon, 11 Mar 2019 09:02:22 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:42973 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbfCKNCV (ORCPT ); Mon, 11 Mar 2019 09:02:21 -0400 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1h3KZE-0006T7-KV; Mon, 11 Mar 2019 14:02:08 +0100 Message-ID: <1552309326.2453.14.camel@pengutronix.de> Subject: Re: [PATCH 2/3] clk: imx8mq: add hdmi_phy_27m clock as pll's reference clock From: Lucas Stach To: Anson Huang , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , Fabio Estevam , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "mturquette@baylibre.com" , "sboyd@kernel.org" , Abel Vesa , "agx@sigxcpu.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" Cc: dl-linux-imx Date: Mon, 11 Mar 2019 14:02:06 +0100 In-Reply-To: References: <1551929772-22633-1-git-send-email-Anson.Huang@nxp.com> <1551929772-22633-2-git-send-email-Anson.Huang@nxp.com> <1551960333.9298.37.camel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, den 07.03.2019, 12:56 +0000 schrieb Anson Huang: > Hi, Lucas > > Best Regards! > Anson Huang > > > -----Original Message----- > > > > From: Lucas Stach [mailto:l.stach@pengutronix.de] > > Sent: 2019年3月7日 20:06 > > > > > > To: Anson Huang ; shawnguo@kernel.org; > > > > s.hauer@pengutronix.de; kernel@pengutronix.de; Fabio Estevam > > > > > > > > ; robh+dt@kernel.org; mark.rutland@arm.com; > > > > mturquette@baylibre.com; sboyd@kernel.org; Abel Vesa > > > > > > ; agx@sigxcpu.org; linux-arm- > > > > kernel@lists.infradead.org; devicetree@vger.kernel.org; linux- > > kernel@vger.kernel.org; linux-clk@vger.kernel.org > > > > Cc: dl-linux-imx > > Subject: Re: [PATCH 2/3] clk: imx8mq: add hdmi_phy_27m clock as pll's > > reference clock > > > > Am Donnerstag, den 07.03.2019, 03:41 +0000 schrieb Anson Huang: > > > There is another 27MHz OSC inside i.MX8MQ's display block and it can > > > be one of reference clocks of all PLLs, add it into clock tree and > > > also add it as PLL's reference clock. > > > > > > > > > Signed-off-by: Anson Huang > > > --- > > >  drivers/clk/imx/clk-imx8mq.c | 3 ++- > > >  1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/clk/imx/clk-imx8mq.c > > > b/drivers/clk/imx/clk-imx8mq.c index a9b3888..bb1bf9b 100644 > > > --- a/drivers/clk/imx/clk-imx8mq.c > > > +++ b/drivers/clk/imx/clk-imx8mq.c > > > @@ -26,7 +26,7 @@ static u32 share_count_nand; > > > > > >  static struct clk *clks[IMX8MQ_CLK_END]; > > > > > > -static const char * const pll_ref_sels[] = { "osc_25m", "osc_27m", > > > "dummy", "dummy", }; > > > +static const char * const pll_ref_sels[] = { "osc_25m", "osc_27m", > > > +"osc_hdmi_phy_27m", "dummy", }; > > >  static const char * const arm_pll_bypass_sels[] = {"arm_pll", > > > "arm_pll_ref_sel", }; > > >  static const char * const gpu_pll_bypass_sels[] = {"gpu_pll", > > > "gpu_pll_ref_sel", }; > > >  static const char * const vpu_pll_bypass_sels[] = {"vpu_pll", > > > "vpu_pll_ref_sel", }; @@ -281,6 +281,7 @@ static int > > > > imx8mq_clocks_probe(struct platform_device *pdev) > > > > > >   clks[IMX8MQ_CLK_32K] = of_clk_get_by_name(np, "ckil"); > > > > > >   clks[IMX8MQ_CLK_25M] = of_clk_get_by_name(np, "osc_25m"); > > > > > >   clks[IMX8MQ_CLK_27M] = of_clk_get_by_name(np, "osc_27m"); > > > > > > + clks[IMX8MQ_CLK_HDMI_PHY_27M] = of_clk_get_by_name(np, > > > +"osc_hdmi_phy_27m"); > > > > This is not acceptable. This adds a new required clock input, without > > bothering to add the corresponding binding information or thinking about > > backwards compatibility. At this point there are existing DTs out there, which > > don't provide this required clock, which will cause a full boot regression. This > > can only be an optional clock input at this point. > > What do you think if we don't get such clock from DT? Just register this fixed clock > in clock driver directly, then there will be no dependency of DT. I don't think that's a good idea, as there can probably be use-cases where having the XTAL unpopulated is actually a valid system configuration, so not having this clock must be valid for the CCM driver. Regards, Lucas