Received: by 10.223.176.5 with SMTP id f5csp460946wra; Fri, 2 Feb 2018 00:26:19 -0800 (PST) X-Google-Smtp-Source: AH8x225bAaoU1oXVn55athvoGc+8Xq0HNVjHLRtu3hUrK/xAys1hKJxrC1Eu1NmwDO52F6Oa4h3h X-Received: by 2002:a17:902:8501:: with SMTP id bj1-v6mr9287533plb.5.1517559979660; Fri, 02 Feb 2018 00:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517559979; cv=none; d=google.com; s=arc-20160816; b=OtYL197VOxenNuOtGVA9cmfsy35YlAOtgghOhjGzGMVcVk5ZVlHjA5mWm4wX04NiHv OIemtR2ULODuJBalTBzsdTW32taRdW3DEoJ8jiGPlKVamTzGJZ/9M1youESQMk6Q7e9O 7m4dSa0I8iC25Ppo07f6uq+onXHLVfUsS97y6+UlNCuEEjM+l6RZTTn48FTv54w8cURI QRB3SAQb9+XblifSj08uHwxsjHTGprxK9RcuJRA46omB6fT7wAtxV2QedAgtQfwDixMQ Vr9VKI1cP7kzE6L0INxVc96A/L8clqquWvFEBonWDwFdnlimuI03YN/za+dzt2AoBLsg UkBg== 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=kYtAtxNtFfcskflDH3hSc7jM+YIN7Ez2r34unJ7ZUZg=; b=KynjHMTKUK4XN/GnpWy2oepykH5uaBrCScu3ohESlw3gRNzFyPlJd8CVLuMDI0UWvj chunUpAMVsO3l90sZy5YedRw/mDIZ12bFLoAm7o87dOB1MMa5YRiGVnLEu6ksFH+9LO3 G5cmKpiZsbT4NmramVczMJ2lKtF8K6EwXx3pNDY+1vv7xIvqIakrvZk+TNU1eFJ5HxrO v+FypyesA2bK0itfthP9xDswROD0yvVRANSxvs959MTYtghWNkBL1+pCwHw+Uj/h4+ek AWUL9NIsU2+wSc9D+LmMu/a4wfKYderQRuMfmjfq+2IusosXmLtujAwKk218EmYBAvAI sRqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HosePZGw; 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 y5si1319295pfl.267.2018.02.02.00.26.04; Fri, 02 Feb 2018 00:26:19 -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=HosePZGw; 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 S1751857AbeBBIYZ (ORCPT + 99 others); Fri, 2 Feb 2018 03:24:25 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:64929 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751804AbeBBIYS (ORCPT ); Fri, 2 Feb 2018 03:24:18 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w128NBPc019089; Fri, 2 Feb 2018 02:23:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517559791; bh=cdpZBqBUdBYxBErHBRGZk5O2owZC3rr4BQNiBKYPeug=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=HosePZGw6MmBSBOJoflUxHp4Po4QQ8xmfdW0EHhukKroEsw5kLXfxBnagKcO0jpNO 9cIABCm1PVczjoBYlY3n+42QrbKzpNu2nQjmwwv3LaVq39sJE4wxqedKnfR1KqO0HH Hmu8sg8ncjhsKCetQXpUWuF5HhCyIfN+IKrG9mm4= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w128NBbi032672; Fri, 2 Feb 2018 02:23:11 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 2 Feb 2018 02:23:10 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 2 Feb 2018 02:23:10 -0600 Received: from [172.24.190.171] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w128N4QT005993; Fri, 2 Feb 2018 02:23:07 -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> <834cb7ce-9406-a806-3ec1-a59766bd8a9d@ti.com> <6f0146e4-72bc-7bc2-2135-44950949cd77@lechnology.com> From: Sekhar Nori Message-ID: Date: Fri, 2 Feb 2018 13:53:04 +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: <6f0146e4-72bc-7bc2-2135-44950949cd77@lechnology.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit 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 Friday 02 February 2018 12:34 AM, David Lechner wrote: > On 02/01/2018 02:58 AM, Sekhar Nori wrote: >> 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. > > Actually no, there really weren't any changes to the clock drivers because > of this change. Only a small change in mach-davinci. > >> >>> +    .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. >> > > As per my response to the previous path, this depends on which both > which SoC and which diagram in the TRM for that SoC you are looking at. > It works either way. I see the distinction you are making between clock inputs to the two PLLs now. A comment somewhere (probably in pll.c) should do it. Thanks, Sekhar