Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7285160yba; Thu, 2 May 2019 07:25:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDPIMZK/l16LyUNa2kirA+DnqJBg4se82h5b+xLpQlLw07pyaxMu/0odQlcDJgE4vh5E4J X-Received: by 2002:a63:1359:: with SMTP id 25mr4216789pgt.92.1556807109167; Thu, 02 May 2019 07:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556807109; cv=none; d=google.com; s=arc-20160816; b=0e2Qvz+do49Jxc61pXYbuc2iaH9oh9xasThZ6BaRqkCWFb0vF6zmSD6P/y5NWA4JK4 uXdCkdaXCv0s7RdkNkr5D5zFKL/rjDab6D9fyu1l60fDMjDrftXNf84MGyMdpeyxa41X MkYDWUlrL4MRqgemNdHe04FTRBPOLWX2iOkh0GceeUlzgDCKZ7x/AYCxHUEhzQGfit/C FNzC4tCsye1foWIEFJ0U9bB10Ljob1S9nWj54GoNV9GJr37wCAFws1oBJNIF8OOMJ7Ts 7B8N3kVQ3ER1TliQ9XlhGQlGF0Gh7K+0FXzLj4AiisPieSOyGW+GwACa84fmCRONNy3x 51DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=zbCRIGD19ZlsyDoT0AKDehhi/Wr3SiotaHEs37U/hi4=; b=E1Y2g9O91TWr0KrxstBZPTrOtUEEg3J7HfxBZErIeaOaKlDjXbFbYgztV+hkniUHg6 pq51PfkjvqjJvCc0B20HRyINOmOqin5FvNr5Mu95mew+W0FR4ED5oLkb7dLDd4RwUuvC RVM6qQZ002mcvnp9o8TnFJtOJOsyULezf+WqD8tAYPArI8y87JRZ23WOIsKbHRUxqyk5 2PNemp8nTxHziZ/33CanN8fW/Cr8yZNoAMEMj8jp5pou3YHUVPfvZ4JkRYJK719oY8R9 K12pH8HmIhdp2Sh6th3H8aT3WN2LVn2UqUqhraMKVQQO8VLjTkBwBSBWK5oij3Q84DEZ FhJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="pxlqr/ea"; 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 b21si34065551pgh.357.2019.05.02.07.24.53; Thu, 02 May 2019 07:25:09 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="pxlqr/ea"; 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 S1726415AbfEBOXK (ORCPT + 99 others); Thu, 2 May 2019 10:23:10 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:48526 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbfEBOXK (ORCPT ); Thu, 2 May 2019 10:23:10 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190502142308euoutp01b5aba6440a3cf010c3e5e4dce7ceb900~a47UXhOM51472614726euoutp01b for ; Thu, 2 May 2019 14:23:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190502142308euoutp01b5aba6440a3cf010c3e5e4dce7ceb900~a47UXhOM51472614726euoutp01b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1556806988; bh=zbCRIGD19ZlsyDoT0AKDehhi/Wr3SiotaHEs37U/hi4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=pxlqr/eayAkL3DFBVNm7Eu6kVJ1x8suad/kFq94PQaIqvMyykl/xSh9pr2NuMsP1/ SX41QxPaB/L7KB/Q3wlbdxNQS6TS/6KvJpiLfpXF3+0x85CgYGlCkIqwyP3Zu1btIU 0eyHqLZ1k0ouw6ZSfST5p0L4AAGzZ2neIvOVCUdQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190502142307eucas1p220f5c18851319ebded0db97e40cf96fe~a47TqdRt_0832308323eucas1p29; Thu, 2 May 2019 14:23:07 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 4D.14.04377.B4DFACC5; Thu, 2 May 2019 15:23:07 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190502142306eucas1p2c83555417d2dd37e99be73214c89d46c~a47S3b_3V0982609826eucas1p2O; Thu, 2 May 2019 14:23:06 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190502142306eusmtrp19fba09dedcf9fd9fcc251b0687b2734f~a47SpOs9e1828518285eusmtrp1B; Thu, 2 May 2019 14:23:06 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-f9-5ccafd4ba11c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id AF.F3.04146.A4DFACC5; Thu, 2 May 2019 15:23:06 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190502142305eusmtip20d0ef38e186a88ee355fa6941290bb73~a47R9fk-41443114431eusmtip2k; Thu, 2 May 2019 14:23:05 +0000 (GMT) Subject: Re: [PATCH v6 03/10] clk: samsung: add BPLL rate table for Exynos 5422 SoC To: Chanwoo Choi , 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, keescook@chromium.org, tony@atomide.com, jroedel@suse.de, treding@nvidia.com, digetx@gmail.com, willy.mh.wolff.ml@gmail.com From: Lukasz Luba Message-ID: Date: Thu, 2 May 2019 16:23:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <62f85c18-d3ac-3425-8ee3-538f8c677603@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTYRTGfXfv7q7S7HWanuwLVkQWmZbQW0YfFDUqpH+CUKlWXrVyU3e1 MkOWy8zKVUamUzOJmC4tMy2/yFDJ1NRWitKyJNenGYTTCk1yu5P87/c85znvOQdelpINiX3Z I+oETqNWxsgZN/rRsz+dK3f9bQsPKHvKkAc598Wk1/ZZTAqbO8Xk7s9BRK61FYjIi4sqcnlw iCJdXeUS0pH6XUJe1+YzZCSzGZGcriciUtbcLyGWM8UMafqeLiYN3TuJZdydjD3/gDbLFGOj WbQiT2umFTWGfomiwpTBKDJ1PxiFvtKEFA/bkxUjFQv3sKFuGyK4mCPHOc2qjQfdoruzfzNx +vkns4w1lBaZvS8gVxZwENRczaYuIDdWhosRDL9tpAVhQ5BdP+QUIwhaLXpquuXrx2GJUDAi 6C06LxbEMAJbzy+xPeWJ90JaQYvIXvDCtx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gJnH7QRRIL4uAisSKJwvB9ooKREic eb+CBcTmFRCUODnzCZjNKWAvsbb7CVgNs4CZxLzND6FscYlbT+YzQdjyEs1bZzNPYBSahaR9 FpKWWUhaZiFpWcDIsopRJLW0ODc9t9hQrzgxt7g0L10vOT93EyMw7rcd+7l5B+OljcGHGAU4 GJV4eCXunYoRYk0sK67MPcQowcGsJMIb9xEoxJuSWFmVWpQfX1Sak1p8iNEU6LmJzFKiyfnA lJRXEm9oamhuYWlobmxubGahJM7bIXAwRkggPbEkNTs1tSC1CKaPiYNTqoFRYaHTza7+UK7d G2aYF+qkWNY9rCn/OPee0ORfFgmbD14VcU6Z8Cs/Um7G3dXVrAxJkbuOVb09G7AvRKefYbrn 8crpR9hXNUr8dhB6dEvBsZWFgfeHX5T/9+TXFWdzGpZ/rspa070i+UlYxM176tEnJ2jsviS/ qz2W1zm0cdkvpfnb2CbV/RBWYinOSDTUYi4qTgQArQP2YxEDAAA= X-CMS-MailID: 20190502142306eucas1p2c83555417d2dd37e99be73214c89d46c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190419141943eucas1p220d77bacfc4fcba8ec6a10f540e1a27d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419141943eucas1p220d77bacfc4fcba8ec6a10f540e1a27d References: <1555683568-20882-1-git-send-email-l.luba@partner.samsung.com> <1555683568-20882-4-git-send-email-l.luba@partner.samsung.com> <62f85c18-d3ac-3425-8ee3-538f8c677603@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chanwoo, On 5/2/19 7:15 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 19. 4. 19. 오후 11:19, Lukasz Luba wrote: >> Add new table rate for BPLL for Exynos5422 SoC supporting Dynamic Memory >> Controller frequencies for driver's DRAM timings. >> >> Signed-off-by: Lukasz Luba >> --- >> drivers/clk/samsung/clk-exynos5420.c | 13 ++++++++++++- >> 1 file changed, 12 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c >> index d9e6653..ddee8bd 100644 >> --- a/drivers/clk/samsung/clk-exynos5420.c >> +++ b/drivers/clk/samsung/clk-exynos5420.c >> @@ -1323,6 +1323,17 @@ 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, 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), >> +}; >> + >> 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), >> @@ -1465,7 +1476,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; > > According to your previous reply, the released odroid-xu3 board by hardkernel > might be only CONFIG_SOC_EXYNOS5422_REV_0. Because the kernel configurattion > from hardkernel has 'CONFIG_SOC_EXYNOS5422_REV_0=y'. I'm ok about adding bpll rate_table. > > But, just I have one question. I think that this bpll rate_table is for > only Exynos5422 series. Because the kernel of hardkernel used > driver/clk/samsung/clk-exynos5422.c instead of clk-exynos5420.c commonn driver. > It means that the clk-exynos5422.c of hardkernel's kernel support only Exynos5422 > without any considering the Exynos5420 series. > > I think that it might need to check the soc version to use > bpll rate_table as following: Fair enough. > > --- a/drivers/clk/samsung/clk-exynos5420.c > +++ b/drivers/clk/samsung/clk-exynos5420.c > @@ -1438,7 +1438,10 @@ 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 = exynos5422_bpll_rate_table; > + > + if (soc == EXYNOS5800) > + exynos5x_plls[bpll].rate_table > + = exynos5422_bpll_rate_table; > } > I will add this check. Thank you. Regards, Lukasz > >> } >> >> samsung_clk_register_pll(ctx, exynos5x_plls, ARRAY_SIZE(exynos5x_plls), >> > >