Received: by 10.223.176.5 with SMTP id f5csp3127065wra; Thu, 1 Feb 2018 11:10:54 -0800 (PST) X-Google-Smtp-Source: AH8x226vTcstGBySE93GB6ujdeYkZjIwu1JD2SCg+P1p3IQYCpGpogcZ1xOHquq2J+s6KDTdWsqe X-Received: by 2002:a17:902:aa95:: with SMTP id d21-v6mr22897849plr.16.1517512254174; Thu, 01 Feb 2018 11:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517512254; cv=none; d=google.com; s=arc-20160816; b=VLMh1DN7q8lpzl5hcKLA3YZiDtG5ZLBZenVMe5hdiMz3TyUH8AtSTlf676A/3oxiJD QDQyODJpvX0B2oeaSQkZkyGq+VL3mDNzw/AagsHvaQNs/wzW2WmuJe2CKAVqge/P+eTS nb/kyDTMJGtel31d++95NfD8JGEA0qtzk8/Ydh9T7cEo6IOWm9gL57emVA3Fvujir+Uw ZYCTYJLRu9gfabWvxH6bl8LV4ve7y8Ed7+u1WrchvhH6G9LTtonUhncvR8LVVALaAZLE /YV7dKsxpsw1cgQDCRzKt2XSCZBMoo8bLUT7TS1BPGl81AjVtdIFFaK+6UJeVNyHoLLd p5sQ== 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=hWNZq8mqYKKHUdhtGldStHte66fvh6IWKPnfV6AM+dk=; b=sLU0X85JP1WZwe1Ane+U98cG9SNgitxKWK7kt0FaGeHauCllvdpLCEcx4F4cQacfXn ZpPaCT/neMDn6+z3Ne38tqnPN6g+Q/4X0e4ntxhnYBZyd39Warr7ZkVmk2RAO5eQIuXm HMQAXmStDfWT2kvfYkuf/cvzF2bgoWdI/yaeghtxQN3VBqsgqnuOqh1CoCbYHc/6xFcV PP6tETfxKisUEmNsIxlsvr1hHdi7R3bcjMvouWdUx6sfwXpFc8HiwyLv7iLNkaVQJtpH KEpQtM0JbQQNdjDc08AEawxzdAkXheXjGpGAFn6wZ39NCXEuCi9Sd+ZKSrmygIJokMT0 L7HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=zT9WVoDp; 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 f89-v6si201604plb.344.2018.02.01.11.10.37; Thu, 01 Feb 2018 11:10:54 -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=fail header.i=@lechnology.com header.s=default header.b=zT9WVoDp; 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 S1754638AbeBATEI (ORCPT + 99 others); Thu, 1 Feb 2018 14:04:08 -0500 Received: from vern.gendns.com ([206.190.152.46]:52977 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753341AbeBATED (ORCPT ); Thu, 1 Feb 2018 14:04:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hWNZq8mqYKKHUdhtGldStHte66fvh6IWKPnfV6AM+dk=; b=zT9WVoDp7PY30NTo87DOWzmh5a pPSfJiHwKqIMgLhEomkc+XGsyr+9ISqjk+XR7pL9z2lLqPhOaiTiDA9MZn040VJONn1xT1p/tdJj+ ONP+iQWoaCWrgVNZT7Wtm3Yq4DE9yyY5gXm/aO8VULRF5MvLZCD4U1bzi0G1u3uU58d7Y+jhuunIQ Q+6xPs/IPWjS+5errTKUbW+rg0Ciw5q19IR9eU9kBpa4CVh08R9aywBZ7IUI8TSiU2s1osAFTCCp+ O1FH/CcvsVd9ZVnLaPGiu2o1qR1kyemsU1E6olejbiKbR2dk6iwP1iXaBA6nkQcDwwOi5JtODYgkC Acv1enaQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:46364 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ehK8e-002GOM-1j; Thu, 01 Feb 2018 14:03:12 -0500 Subject: Re: [PATCH v6 04/41] clk: davinci: Add platform information for TI DA850 PLL To: Sekhar Nori , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Kevin Hilman , Bartosz Golaszewski , Adam Ford , linux-kernel@vger.kernel.org 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> From: David Lechner Message-ID: <6f0146e4-72bc-7bc2-2135-44950949cd77@lechnology.com> Date: Thu, 1 Feb 2018 13:04:03 -0600 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: <834cb7ce-9406-a806-3ec1-a59766bd8a9d@ti.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.