Received: by 10.223.176.5 with SMTP id f5csp2477916wra; Thu, 1 Feb 2018 01:02:04 -0800 (PST) X-Google-Smtp-Source: AH8x224rb33HxrE/o5dUubW3Me8c+aAp3ZUGAnoWXH9lD+v+Len3uv8Z/o0bc3nH1hsCf/C3FGCk X-Received: by 10.99.99.129 with SMTP id x123mr29266208pgb.437.1517475724626; Thu, 01 Feb 2018 01:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517475724; cv=none; d=google.com; s=arc-20160816; b=u0kK1r9651GW5ga976EsUtB7fH+KWiompAuZA2WyAteLX9L1hYXKiUT1FRiowAPulJ pAKmc4wDkiONjdfEFrjLBZHjPyo+2ZCbQp3l+Tvn7gQTyfwSLX5u7Yg8Xxa64fxFRCtR e764LagDyUy7Lb1LoAU88Zy17WM21Vt3ZBEiSl7U0M8cWDh8XzbJhVa3+jX5i2j03W8Y iRpBqUnhaFhdpgRq7Yj1w9WKOyZX432HzykL72t5onq/QC7Qayp4wmNYLXH+HALG8FoG WydRfZCleI8p5i4ungUipivM02CCdDhmT/iJhNhB8L9Pf6UX4cVJs8bPeVana8s6QouB dMiQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=y21PjD6c7Wfx4D8CFxaRo/FHbfBUoPmVKA4Sw90RowU=; b=DUpYkvP/Cok4VihwNu/6kIdga+YvE5EAAS9HYwEg1ZV8/iKXEI+ztChyJN7KbTh6q3 xmXiZXGTM9edyTa1lpWmSOEI/Lg4g/C48huGq/6VXR+RNAo21tlvJ4l5FfLhR9Qt6yQL kvGVu/ggmxdG5/n3yqUGG9NsgG+YegutyE5CSWakwnr1FeufRAIJb1p+JXtzOcDk5SJU kakOYyJ/8cHhmu+GY+j7Kk+wagQGgy03YedJffYwCepd03PQmigbX1HrgdDEe3CiXeEB xlq6ZX3S8FMDNYSMHZJLrpmk3qOn3Jx6boQM8da6UkoCzyd0sE5GVoUh2kjpEsdtR9Ke +m1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CwO2jOnn; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17-v6si1233506plr.511.2018.02.01.01.01.49; Thu, 01 Feb 2018 01:02:04 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=CwO2jOnn; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751935AbeBAJAS (ORCPT + 99 others); Thu, 1 Feb 2018 04:00:18 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:22711 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751608AbeBAJAQ (ORCPT ); Thu, 1 Feb 2018 04:00:16 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w118x4ix012034; Thu, 1 Feb 2018 02:59:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517475544; bh=aG58BNszOhns4DKmEJYQZDvGCLZpfDko+cxzKCdxCgo=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=CwO2jOnnkHS1tY1q3awq5RNmK7javPU1G9mDW3b1lIeR5Zso2+UN5PHey17Iq1A0+ 4Apf2qKVVaNVkNjdB4ibM0ienCYAFX1RWFvNlSZF2QOgO8hG1kqGicu1s4wRsYhjVY c9gqJT/DOVb7+/HmDZCd4U5NTZr6Eq9Ze/tRiiHA= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w118x3oO001750; Thu, 1 Feb 2018 02:59:04 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 1 Feb 2018 02:59:03 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 1 Feb 2018 02:59:03 -0600 Received: from [172.24.190.171] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w118wvC3017658; Thu, 1 Feb 2018 02:58:58 -0600 Subject: Re: [PATCH v6 04/41] clk: davinci: Add platform information for TI DA850 PLL To: David Lechner , , , CC: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Kevin Hilman , Bartosz Golaszewski , Adam Ford , References: <1516468460-4908-1-git-send-email-david@lechnology.com> <1516468460-4908-5-git-send-email-david@lechnology.com> From: Sekhar Nori Message-ID: <834cb7ce-9406-a806-3ec1-a59766bd8a9d@ti.com> Date: Thu, 1 Feb 2018 14:28:57 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1516468460-4908-5-git-send-email-david@lechnology.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > This adds platform-specific declarations for the PLL clocks on TI DA850/ > OMAP-L138/AM18XX SoCs. > > Signed-off-by: David Lechner > +static const struct davinci_pll_clk_info da850_pll1_info __initconst = { > + .name = "pll1", > + .unlock_reg = CFGCHIP(3), > + .unlock_mask = CFGCHIP3_PLL1_MASTER_LOCK, I guess this will change with the cfgchip handling discussion last week. > + .pllm_mask = GENMASK(4, 0), > + .pllm_min = 4, > + .pllm_max = 32, > + .pllout_min_rate = 300000000, > + .pllout_max_rate = 600000000, > + .flags = PLL_HAS_POSTDIV, > +}; > + [...] > +void __init da850_pll_clk_init(void __iomem *pll0, void __iomem *pll1) > +{ > + const struct davinci_pll_sysclk_info *info; > + > + davinci_pll_clk_register(&da850_pll0_info, "ref_clk", pll0); > + > + davinci_pll_auxclk_register("pll0_auxclk", pll0); > + > + for (info = da850_pll0_sysclk_info; info->name; info++) > + davinci_pll_sysclk_register(info, pll0); > + > + davinci_pll_obsclk_register(&da850_pll0_obsclk_info, pll0); > + > + davinci_pll_clk_register(&da850_pll1_info, "oscin", pll1); Both PLL0 and PLL1 use the same reference clock. So this should be "ref_clk". I dont think we ever need to register a clock called oscin along with "ref_clk". There is only one reference clock. It can either be obtained using internal oscillator or external oscillator. Thanks, Sekhar