Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp633347ybi; Tue, 16 Jul 2019 02:58:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7yiXZUNqFf3grHxWbPsSFYUUE6GCcS4dojtTItHX/5Xx1nZJJixSCS2ZvLyD+MDksPaEM X-Received: by 2002:a65:6114:: with SMTP id z20mr32914423pgu.141.1563271133604; Tue, 16 Jul 2019 02:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563271133; cv=none; d=google.com; s=arc-20160816; b=MnDY4PJIFaYco8Hj4EHcRWGXbE4iF+24KT7/ySL3gjR3KmgPeIUvAQsUKB7hb5v+Nd 2TrZbQak4MOhJjfOD5tCk47FkwHLpogdYSYgcC3/BbL+IG+cQvIr1seYolpfN3/CHWGG 9MU7JFfgvHLwWBi+bnNn/aagGLuAtzshaGiP43sxz9PvPep83zhVa2wOl/d8OK9SCKet 6Ak+nCF6XbzFj40GN5lOQANJBeCquqyUMtjMAPS/khFxONig912qKUu/xpfzOtUtr0TN quaPDk87JSfcGuXxNWFtR84cUGazAgBLIzvWNVnJpoici+bw6G5HmzaddlIEK5564pw7 B9vw== 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=8m7yojX5VERnehuP4IDCcAS+gpljyXXgYtBRJsLnIn4=; b=ySZIRRclsxzY6yiNQnt3bpaXK2wxQod+gg8yK/hoPs/WkhOhLdPmeurQx07s3q8X/l PlufCFHcjYCDxIMy3gXmdpGSG8dChTSWUth5Q8OjDGtogKdJU1rwuueo2OrlLrfJT/ly L4RM9Y5Dq3pQ3pfvyF6ugx3GlS0Z6IVnDWrqpE2YVSmFIuoLMoL9AfzVd3/SaB8ZOyBw SLCOXm/Q5Cp/zdQeKfC5VeCH4xW4LhZ6lskXKoCUSSaLBEyzpJ/r1mx1gNLrEUcUzUwm CIk7Dx33nidztWRK3O15+RUfx0UgJI27XAzr7VsdVJh1L3VrVISrLne5vfYYI0aF6mqu 5Nbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=QeHZ0Ror; 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 q2si19172324pll.230.2019.07.16.02.58.37; Tue, 16 Jul 2019 02:58:53 -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=QeHZ0Ror; 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 S1732469AbfGPJ6O (ORCPT + 99 others); Tue, 16 Jul 2019 05:58:14 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:53972 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731166AbfGPJ6O (ORCPT ); Tue, 16 Jul 2019 05:58:14 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20190716095811epoutp04d1ef6cb55b820ab8509d00cc6b6b7738~x2sZTItWW0463304633epoutp04a for ; Tue, 16 Jul 2019 09:58:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20190716095811epoutp04d1ef6cb55b820ab8509d00cc6b6b7738~x2sZTItWW0463304633epoutp04a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563271091; bh=8m7yojX5VERnehuP4IDCcAS+gpljyXXgYtBRJsLnIn4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=QeHZ0RorpZs9FWRbh0uLjGMBwI4qf2R3KXRXbY9vmxM2Q6iCdWhC7dkT6OFIK5/De +C+VUO7xBk8WLWMxdkBM9C6WIxtf2LspvccjsMkTsp0dEvxqptwGQvzoBKaWxwnAXp wSrggjymoBRc3qyxmIHDNX8WC0MQLHqIBj6y2a8Q= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20190716095810epcas1p29f5c6e495f69535a9e87b54ccf181655~x2sYhhVuz1876318763epcas1p2E; Tue, 16 Jul 2019 09:58:10 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.154]) by epsnrtp3.localdomain (Postfix) with ESMTP id 45nwnX0GP1zMqYkd; Tue, 16 Jul 2019 09:58:08 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 0F.60.04066.FAF9D2D5; Tue, 16 Jul 2019 18:58:07 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20190716095807epcas1p36f57bd2bd104c0c05c53db052ce8b210~x2sWKvmlN3194731947epcas1p30; Tue, 16 Jul 2019 09:58:07 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190716095807epsmtrp18101c7cdaf68d6f1cd11d6ebf43d71f2~x2sWJSu9X1917719177epsmtrp1L; Tue, 16 Jul 2019 09:58:07 +0000 (GMT) X-AuditID: b6c32a37-e3fff70000000fe2-c9-5d2d9faff48f Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 89.37.03638.FAF9D2D5; Tue, 16 Jul 2019 18:58:07 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190716095807epsmtip126140c206ac4fd539b9fc01f07544665~x2sV32aHp2724927249epsmtip1Q; Tue, 16 Jul 2019 09:58:07 +0000 (GMT) Subject: Re: [PATCH v1 10/50] clk: samsung: change ACLK100_NOC clocks definitions Exynos5x To: Lukasz Luba , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, kyungmin.park@samsung.com, a.hajda@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <63cb24f8-5666-3fb4-0c98-ecc54cd4266f@samsung.com> Date: Tue, 16 Jul 2019 19:01:13 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190715124417.4787-11-l.luba@partner.samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJsWRmVeSWpSXmKPExsWy7bCmge76+bqxBhuOWVvcWneO1WLjjPWs FvOPAFn9j18zW5w/v4Hd4mzTG3aLWw0yFpseX2O1+Nhzj9Xi8q45bBYzzu9jslh75C67xdLr F5ksLp5ytbjduILNonXvEXaLw2/aWS3+XdvI4iDksWbeGkaP9zda2T02repk89i8pN7j4Ls9 TB59W1YxenzeJBfAHpVtk5GamJJapJCal5yfkpmXb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q45bBYzzu9jslh75C67xdLr F5ksLp5ytbjduILNonXvEXaLw2/aWS3+XdvI4iDksWbeGkaP9zda2T02repk89i8pN7j4Ls9 TB59W1YxenzeJBfAHsVlk5Kak1mWWqRvl8CVMXXjGcaCs3IVWxZvZGlgPCDZxcjJISFgInF3 3hbGLkYuDiGB3YwSp1e+ZYFISEpMu3iUuYuRA8gWljh8uBii5i2jxNyri5hBaoQFYiROTegG axYROMco0ff3LDtIgllgGpPEifVgRUICJxgl9m8qBbHZBLQk9r+4wQZi8wsoSlz98ZgRxOYV sJP4c2sXWD2LgKrE0VlNYHFRgQiJSdd2skDUCEqcnPkEzOYUcJD4NKuLEWKXusSfeZeYIWxx iVtP5jNB2PISzVtnM09gFJ6FpH0WkpZZSFpmIWlZwMiyilEytaA4Nz232LDAKC+1XK84Mbe4 NC9dLzk/dxMjOJa1tHYwnjgRf4hRgINRiYf3xB6dWCHWxLLiytxDjBIczEoivLZftWOFeFMS K6tSi/Lji0pzUosPMUpzsCiJ88rnH4sUEkhPLEnNTk0tSC2CyTJxcEo1MFpkyOdeXqd5VbPF icvlaUyJW6L4i5Xen1J6A88Icp98vlS74PjcD7vzr2lsa5poMStRdX7rUbtgF5MNUlLHXf9V LUqK5k4yb30TWXwkRDzW7Jz7k9eZt/RcQ4RPmJ5fonv7zd5bn5d3i1oktLZ8PyV7PFr0t79s IUfFm3o31U0zH8/LmmW+VomlOCPRUIu5qDgRAEAwu8XhAgAA X-CMS-MailID: 20190716095807epcas1p36f57bd2bd104c0c05c53db052ce8b210 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190715124441eucas1p29f1205c20e9bea5b33f8f0b5747b1102 References: <20190715124417.4787-1-l.luba@partner.samsung.com> <20190715124417.4787-11-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, I checked the range of ratio as following: Looks good to me. But, you better to make it to fix the ratio range without adding ID. Please merge the code related to adding IDs into one patch. - Exynos5422 TRM ACLK_100_NOC_RATIO [23:20] - Exynos5420 TRM ACLK_100_NOC_RATIO [22:20] On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: > The ACLK100_NOC has different topology in Exynos5420 and 5422/5800. In > Exynos5420 this clock divider has 3 bits while in 5422/5800 has 4 bits. > The patch adds needed dividers in the exynos5800_div_clks, updates > exynos5x_div_clks and exynos5420_div_clks properly. It also adds IDs to > manage clocks from DT. > > Signed-off-by: Lukasz Luba > --- > drivers/clk/samsung/clk-exynos5420.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c > index 6164d0ca75e0..c13f34d3d9a1 100644 > --- a/drivers/clk/samsung/clk-exynos5420.c > +++ b/drivers/clk/samsung/clk-exynos5420.c > @@ -471,7 +471,8 @@ static const struct samsung_mux_clock exynos5800_mux_clks[] __initconst = { > SRC_TOP0, 4, 3), > MUX(CLK_MOUT_ACLK400_WCORE, "mout_aclk400_wcore", mout_group2_5800_p, > SRC_TOP0, 16, 3), > - MUX(0, "mout_aclk100_noc", mout_group1_5800_p, SRC_TOP0, 20, 2), > + MUX(CLK_MOUT_ACLK100_NOC, "mout_aclk100_noc", mout_group1_5800_p, > + SRC_TOP0, 20, 2), Please squash this code to the patch which add the IDs. Actually, it is not related to fix the rate range of clock. > > MUX(0, "mout_aclk333_432_gscl", mout_group6_5800_p, SRC_TOP1, 0, 2), > MUX(0, "mout_aclk333_432_isp", mout_group6_5800_p, SRC_TOP1, 4, 2), > @@ -534,6 +535,8 @@ static const struct samsung_mux_clock exynos5800_mux_clks[] __initconst = { > static const struct samsung_div_clock exynos5800_div_clks[] __initconst = { > DIV(CLK_DOUT_ACLK400_WCORE, "dout_aclk400_wcore", > "mout_aclk400_wcore", DIV_TOP0, 16, 3), > + DIV(CLK_DOUT_ACLK100_NOC, "dout_aclk100_noc", "mout_aclk100_noc", > + DIV_TOP0, 20, 4), > DIV(CLK_DOUT_ACLK266_ISP, "dout_aclk266_isp", "mout_aclk266_isp", > DIV_TOP8, 12, 3), > DIV(0, "dout_aclk550_cam", "mout_aclk550_cam", > @@ -569,7 +572,8 @@ static const struct samsung_mux_clock exynos5420_mux_clks[] __initconst = { > SRC_TOP0, 4, 2), > MUX(CLK_MOUT_ACLK400_WCORE, "mout_aclk400_wcore", mout_group1_p, > SRC_TOP0, 16, 2), > - MUX(0, "mout_aclk100_noc", mout_group1_p, SRC_TOP0, 20, 2), > + MUX(CLK_MOUT_ACLK100_NOC, "mout_aclk100_noc", mout_group1_p, > + SRC_TOP0, 20, 2), ditto. Please squash this code to the patch which add the IDs. Actually, it is not related to fix the rate range of clock. > > MUX(0, "mout_aclk333_432_gscl", mout_group4_p, SRC_TOP1, 0, 2), > MUX(0, "mout_aclk333_432_isp", mout_group4_p, > @@ -600,6 +604,8 @@ static const struct samsung_mux_clock exynos5420_mux_clks[] __initconst = { > static const struct samsung_div_clock exynos5420_div_clks[] __initconst = { > DIV(CLK_DOUT_ACLK400_WCORE, "dout_aclk400_wcore", > "mout_aclk400_wcore", DIV_TOP0, 16, 3), > + DIV(CLK_DOUT_ACLK100_NOC, "dout_aclk100_noc", "mout_aclk100_noc", > + DIV_TOP0, 20, 3), > }; > > static const struct samsung_gate_clock exynos5420_gate_clks[] __initconst = { > @@ -798,8 +804,6 @@ static const struct samsung_div_clock exynos5x_div_clks[] __initconst = { > DIV_TOP0, 8, 3), > DIV(CLK_DOUT_ACLK200_FSYS2, "dout_aclk200_fsys2", "mout_aclk200_fsys2", > DIV_TOP0, 12, 3), > - DIV(CLK_DOUT_ACLK100_NOC, "dout_aclk100_noc", "mout_aclk100_noc", > - DIV_TOP0, 20, 3), > DIV(CLK_DOUT_PCLK200_FSYS, "dout_pclk200_fsys", "mout_pclk200_fsys", > DIV_TOP0, 24, 3), > DIV(CLK_DOUT_ACLK200_FSYS, "dout_aclk200_fsys", "mout_aclk200_fsys", > -- Best Regards, Chanwoo Choi Samsung Electronics