Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp145872ima; Fri, 1 Feb 2019 00:50:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IZvYjlNZqW8HqL36rsH13KzrN2UqpRhx+sy2T47w2aDEMovtg/TiI0nX0i9IjqkEBPsxJ9B X-Received: by 2002:a63:fd0a:: with SMTP id d10mr1410658pgh.164.1549011033499; Fri, 01 Feb 2019 00:50:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549011033; cv=none; d=google.com; s=arc-20160816; b=ONmHbLAsbYQ7dKulpvvO9U7IH1gkjE7DunfP4j253jqo59XdEwYtD5Wu9KxwfJoDFk O6nuWKh6cfwFiSdGT3Ox6Hj2ifxd99GQx6XvJd6aSWmVu7UVRfPT9Zt0Mew8/7LLJQ7V C8nzodyJ8IHKAkV9JWb1z24gW7AXqeN0ExRHT0RNsY8i6MdSNGh4RcXuamuZB+kkEzYq UFqzfSd8VK51OtKVCplCkr8ZesCO7d8SFCqyk9C9ArRPdFIV9bFDxsuyP1u6JJEOy1In +/+p80Y687P5Bd+2xnFAsCK46hYTQ5uMjmQLywFdHOUxaKFt1UFVTnpSYJeSaXugrgBE 3dkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=ZhVPXQJDOYPfOvRAQbEOsJtAluOWxGuxTxMUeSiN9r4=; b=nPnDOmM/qCzLgHCfoXC3JVXibJPkdT9o8UHrFJLmAmPg4yhSh6fuoTsf9Qakl7jmWX kKth2OHBwoSjzZzxrC6I+O0HRx2DbamqDQGHPFr6kTDvAZ7XjiNeR6qmxltXconSRPkB 1uckBZMZzBjmP30gfL1lPp3ZO9Q4pH5RAk3oxPC0IwAzcmI050V3l9IsxZLF62A6qmnU 05Zsj+QrjgKamSHRaF0xFO4vFrQ317XHHe2r+45yC3VLGCXDaMt51Ju+UInF1jMI5VNW JXw7imaPxaGgNHqlDozS64BRFsgRd4vZSm+Q8EkDbFsZsO/e3/qcupg1axGji1w6T3Ex e7xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qiLvC6aE; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127si6571846pfg.255.2019.02.01.00.50.17; Fri, 01 Feb 2019 00:50:33 -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=@samsung.com header.s=mail20170921 header.b=qiLvC6aE; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729098AbfBAIoW (ORCPT + 99 others); Fri, 1 Feb 2019 03:44:22 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:17323 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726685AbfBAIoW (ORCPT ); Fri, 1 Feb 2019 03:44:22 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190201084419epoutp01be7df92e7b4c8afe6456ca3139be60a8~-MPz0Nfpg2028520285epoutp014 for ; Fri, 1 Feb 2019 08:44:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190201084419epoutp01be7df92e7b4c8afe6456ca3139be60a8~-MPz0Nfpg2028520285epoutp014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1549010659; bh=ZhVPXQJDOYPfOvRAQbEOsJtAluOWxGuxTxMUeSiN9r4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=qiLvC6aEcMxxmFRVBccmPIaxFbm/qcLEmGrHpMTcKKY5BcBCYv0SGf3dlYjRe8Uua Om7t7iRfUref25eCx7u+Hl7YoUP6ad+s34kIiw03Or0Vn62slV/O7r0wrQLrMTnMPP Lg2lmIGNJgg+M/j6j1dPhSmMWqFB1afCLN5VuUtI= Received: from epsmges1p1.samsung.com (unknown [182.195.40.155]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20190201084415epcas1p3491fc42304671bef4dbf2d26eab31a71~-MPvWkBeq1970119701epcas1p3P; Fri, 1 Feb 2019 08:44:15 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id F0.46.04074.ED6045C5; Fri, 1 Feb 2019 17:44:14 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20190201084414epcas1p3f302302313e90b13966aca98289aadd1~-MPu6Ma3o2143721437epcas1p3H; Fri, 1 Feb 2019 08:44:14 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190201084414epsmtrp1c90129596bafeba042d9ab70ae8b09d4~-MPu4qcKu3138631386epsmtrp1i; Fri, 1 Feb 2019 08:44:14 +0000 (GMT) X-AuditID: b6c32a35-27fff70000000fea-3e-5c5406de1515 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 41.7C.03971.ED6045C5; Fri, 1 Feb 2019 17:44:14 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190201084414epsmtip2eec3b5cddd11d74f61de0ffbf62bc084~-MPumtpms2316023160epsmtip2H; Fri, 1 Feb 2019 08:44:14 +0000 (GMT) Subject: Re: [PATCH v3 3/8] clk: samsung: add BPLL rate table for Exynos 5422 SoC To: Lukasz Luba , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Fri, 1 Feb 2019 17:44:14 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1548924594-19084-4-git-send-email-l.luba@partner.samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCJsWRmVeSWpSXmKPExsWy7bCmge49tpAYg9uLbCw2zljPajH/yDlW i/7Hr5ktzp/fwG5xtukNu8WtBhmLTY+vsVp87LnHanF51xw2i8+9RxgtZpzfx2Sx9shddouL p1wtbjeuYLM4/Kad1eLftY0sDgIe72+0sntsWtXJ5rF5Sb3HwXd7mDz6tqxi9Pi8SS6ALSrb JiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwfoaiWFssSc UqBQQGJxsZK+nU1RfmlJqkJGfnGJrVJqQUpOgWWBXnFibnFpXrpecn6ulaGBgZEpUGFCdsbs JWsZCx5LVry8F9PAeFi0i5GTQ0LAROLgpIfsXYxcHEICOxglFs9+ywThfG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tLHD5cDBIWEnjLKLG9lQPEFhYIlvjS+g6sV0RgOaPE3L9LWUAcZoG9 TBITei6zQky9zyjxZ99TRpAWNgEtif0vbrCB2PwCihJXfzwGi/MK2Ek8af8NFmcRUJG4tHgu O4gtKhAh8fHpPiaIGkGJkzOfsIDYnALeEi939YHVMAuoS/yZd4kZwhaXuPVkPhOELS/RvHU2 8wRG4VlI2mchaZmFpGUWkpYFjCyrGCVTC4pz03OLDQsM81LL9YoTc4tL89L1kvNzNzGCo1VL cwfj5SXxhxgFOBiVeHg3/AqKEWJNLCuuzD3EKMHBrCTCO5slJEaINyWxsiq1KD++qDQntfgQ ozQHi5I479O8Y5FCAumJJanZqakFqUUwWSYOTqkGRnG7rZ/r+d849G/pbfq/sO50yXKdW2tb ax01jy6W8l3w6kGz/GWHOdsvfQo//9hZ+8vDm4e2Zmxd/vHGWasc86MTjn/l4zzOqqP6mut5 XMk03QU+bLpyv5+YZXXNc2eqXyqV/ffJx9RLWgs7Eic//n/Y20z4/rLHzxf/tE7qYyj4LxcR 92n2/m9KLMUZiYZazEXFiQBEQO800gIAAA== X-CMS-MailID: 20190201084414epcas1p3f302302313e90b13966aca98289aadd1 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190131085007eucas1p2f16107042b8ce5638811840618bcf017 References: <1548924594-19084-1-git-send-email-l.luba@partner.samsung.com> <1548924594-19084-4-git-send-email-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 19. 1. 31. 오후 5:49, Lukasz Luba wrote: > Add new table rate for BPLL for Exynos5422 SoC supporting Dynamic Memory > Controller frequencies for driver's DRAM timings. > > CC: Sylwester Nawrocki > CC: Chanwoo Choi > CC: Michael Turquette > CC: Stephen Boyd > CC: Kukjin Kim > CC: Krzysztof Kozlowski > CC: linux-samsung-soc@vger.kernel.org > CC: linux-clk@vger.kernel.org > CC: linux-arm-kernel@lists.infradead.org > CC: linux-kernel@vger.kernel.org > Signed-off-by: Lukasz Luba > --- > drivers/clk/samsung/clk-exynos5420.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c > index 3e87421..8bf9579 100644 > --- a/drivers/clk/samsung/clk-exynos5420.c > +++ b/drivers/clk/samsung/clk-exynos5420.c > @@ -1325,6 +1325,19 @@ static const struct samsung_pll_rate_table exynos5420_pll2550x_24mhz_tbl[] __ini > PLL_35XX_RATE(24 * MHZ, 200000000, 200, 3, 3), > }; > > +static const struct samsung_pll_rate_table exynos5422_bpll_rate_table[] = { > + PLL_35XX_RATE(24 * MHZ, 933000000, 311, 4, 1), > + PLL_35XX_RATE(24 * MHZ, 825000000, 275, 4, 1), > + PLL_35XX_RATE(24 * MHZ, 728000000, 182, 3, 1), > + PLL_35XX_RATE(24 * MHZ, 633000000, 211, 4, 1), > + PLL_35XX_RATE(24 * MHZ, 543000000, 181, 2, 2), > + PLL_35XX_RATE(24 * MHZ, 413000000, 413, 6, 2), > + PLL_35XX_RATE(24 * MHZ, 275000000, 275, 3, 3), > + PLL_35XX_RATE(24 * MHZ, 206000000, 206, 3, 3), > + PLL_35XX_RATE(24 * MHZ, 165000000, 110, 2, 3), > + PLL_35XX_RATE(24 * MHZ, 138000000, 184, 2, 4), Except for 825Mhz, I can't find the target frequency on Exynos5422 TRM document. Usually, Exynos TRM specified the supported stable clocks. It means that undefined clocks are not stable as I knew. Where do you find them? When I calculated the PLL frequency with PMS value, it is correct. But, just we need to check the reference of undefined clocks on TRM in order to guarantee the stable operation. Remove 933/138Mhz because exynos5433-dmc.c doesn't use 933Mhz and 138Mhz and also Exynos5422 TRM doesn't define 933/138Mhz on pll table. > +}; > + > static const struct samsung_pll_rate_table exynos5420_epll_24mhz_tbl[] = { > PLL_36XX_RATE(24 * MHZ, 600000000U, 100, 2, 1, 0), > PLL_36XX_RATE(24 * MHZ, 400000000U, 200, 3, 2, 0), > @@ -1467,7 +1480,7 @@ static void __init exynos5x_clk_init(struct device_node *np, > exynos5x_plls[apll].rate_table = exynos5420_pll2550x_24mhz_tbl; > exynos5x_plls[epll].rate_table = exynos5420_epll_24mhz_tbl; > exynos5x_plls[kpll].rate_table = exynos5420_pll2550x_24mhz_tbl; > - exynos5x_plls[bpll].rate_table = exynos5420_pll2550x_24mhz_tbl; > + exynos5x_plls[bpll].rate_table = exynos5422_bpll_rate_table; Exynos5422 used the same PLL table for apll, kpll, bpll and so on. You don't need to make the separate pll table. Just add new entries to exynos5420_pll2550x_24mhz_tbl table. > } > > samsung_clk_register_pll(ctx, exynos5x_plls, ARRAY_SIZE(exynos5x_plls), > -- Best Regards, Chanwoo Choi Samsung Electronics