Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1851222ybi; Wed, 17 Jul 2019 23:07:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqySAMvtgpB46l9/YcqcMKE35W9dkmmWm3F1hdIr6QnDltRXf0AcvNErjFF9E+n9xmlBjgDY X-Received: by 2002:a63:de4f:: with SMTP id y15mr47460078pgi.239.1563430078770; Wed, 17 Jul 2019 23:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563430078; cv=none; d=google.com; s=arc-20160816; b=W9INXpmh1Z/SoU9KxqwNTJNrplHESM4GWBxKfTQVXa3zgX3Kxn0Ti1/y2aitvxN3Cj 5IqgAwJOVXFa6JLzr7D4ivur3vzydwhOweO1RNPiInkGZ6d8MGER8yLnw6BpfXKXOJNn L7tAEgIDApCpQbPO/i5pvMUxB0fLFmL9Ylm9O0tSBB/AU6o5oWw039jfgLYyJqtpsFej ELQMLYiRRWmpJEZ0ON+PnsTrFpNyYb2mFB301e1U7jpiQUQGTOBat93D1Zkx1fsqdgYD p66c2MLQ5OJkrRSLSborOq5sCT18BZ+gt48EwyblIuVEL+iYClU9S9l/vVq3Ng2IELSN emNA== 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=ejYldofp/ftAAUP8++/HWz53g5Xe+2N2cdIjI2Xaw/w=; b=qjDQjJGH5bt54zp0l7MwFJmW1CQEy67wRum8GYtF+LjDQN4yNsSkDMSV5dCy9/QwDC 8baekJq961pVu8XXgZ9IEpKhSrHeFWk5lE3KMB73vvpGdDPYq6rZkDfpcYlZVuFrxDfa /uEcZAxF1KViqNdkc1smQ3F3G0WXkOdU+MtZ8QMMs+PT641p4rVReEb1OBxsaF64cbV4 YcOsdUutuzX7KOAJGDz8EWtN4FSbfBzyYCJBKoGB88vV26RyHo5AAWHu+FXuXuM/VIgF uUPHR496WSvhs4OZlgHCBkkOtavpNk61FRsbh5HlmQu/OJ4VphKuW3gvXwzEn74AU9FV P2Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=K3fpAW5X; 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 b22si808731pjb.82.2019.07.17.23.07.40; Wed, 17 Jul 2019 23:07:58 -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=K3fpAW5X; 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 S2389055AbfGRGFG (ORCPT + 99 others); Thu, 18 Jul 2019 02:05:06 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56374 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbfGRGFG (ORCPT ); Thu, 18 Jul 2019 02:05:06 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190718060503euoutp0127e7cdbbd2929ffe051244ce716b9846~yazbMpm8I2618326183euoutp012 for ; Thu, 18 Jul 2019 06:05:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190718060503euoutp0127e7cdbbd2929ffe051244ce716b9846~yazbMpm8I2618326183euoutp012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563429903; bh=ejYldofp/ftAAUP8++/HWz53g5Xe+2N2cdIjI2Xaw/w=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=K3fpAW5Xgeffm4d/rbOANmeq9aygYF03E6Xj9tST1JWvOn/aG2G6j7rZpfVkgjxFW t4rlr/qiUlqyVdn7LmDDZGrYCGfViAJAVzm7NxBHKjn3u4JHu1xfBSTAw/sC2qA8ez XPy2gLYsIkM9mF68iBgrgRtpYcZpi+zTjA1Mw4jE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190718060502eucas1p1e8eba8bd897f6d408880bb4c955863de~yazaZJeXZ2232222322eucas1p1r; Thu, 18 Jul 2019 06:05:02 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id BE.AD.04325.E0C003D5; Thu, 18 Jul 2019 07:05:02 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190718060501eucas1p29de29ef5bf19f66880bcf57c50b268bc~yazZU4nJb1633816338eucas1p2n; Thu, 18 Jul 2019 06:05:01 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190718060501eusmtrp106081c9c8999e11b3dd18047d6d43625~yazZGn7Oy1082210822eusmtrp1y; Thu, 18 Jul 2019 06:05:01 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-a9-5d300c0efd51 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F3.4F.04146.D0C003D5; Thu, 18 Jul 2019 07:05:01 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190718060500eusmtip24b38c5578cae4cd1653f1609dc353f81~yazYYCMNP2022720227eusmtip2b; Thu, 18 Jul 2019 06:05:00 +0000 (GMT) Subject: Re: [PATCH v1 08/50] clk: samsung: change aclk266_isp clocks definitions Exynos5420 To: Chanwoo Choi , 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: Lukasz Luba Message-ID: Date: Thu, 18 Jul 2019 08:05:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <5ac878fa-21c8-afcd-9afe-13ed3cd36afb@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SfSzUcRzHfe/3yO70c8gnNbXboqxOrf74binVqt1frUfTg3LlN5SHul8n lDqhYsIo6fKQpthNRJdMmJwxFN00Gj2oo0fV2rFlyfLb71r+e73fn/fn+/l8ti9LKG2UNxsV e4rXxWqjVbQLWd8x1bvSVb4qdNW7x0vxUHUvhWsLayg8OPGRwqXtszLH9pXAfX33GfzswjiD 62wDFP6Z9YbC/Y1FNC7sa5Hhe+2vGXxn0CrD1u6teDilksbpze0MtoxfovDMQC25UampKqlC mh8v0xlNnSmD1jwoP6/JNpuQxl7ns4Pe7xIYzkdHxfO6gA1hLpHlnyvpE72+Ca8MjwgDKlqS iZxZ4NZC2Z0pJhO5sEquEkH1rxxKEhMI0r5YaEnYEfQ1jtH/WvJynpJSoQKBveWPQ3xDUP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YUgNbwCbhKzJxxmBrFZBFQlnn7+ArZLVCBCoq9tNhtEjaDEyZlP WEBsTgF7iXlbXjBDzDeTmLf5IZQtLnHryXwmCFteonnrbOYJjEKzkLTPQtIyC0nLLCQtCxhZ VjGKpJYW56bnFhvqFSfmFpfmpesl5+duYgTG+bZjPzfvYLy0MfgQowAHoxIP7w0l/Vgh1sSy 4srcQ4wSHMxKIry3XwKFeFMSK6tSi/Lji0pzUosPMZoCPTeRWUo0OR+YgvJK4g1NDc0tLA3N jc2NzSyUxHk7BA7GCAmkJ5akZqemFqQWwfQxcXBKNTB2nFxZIOfjG9by/Df7ZfdF28w4bOe+ WiPkm2x+0qlX5h1nz8kfi2Qz2Cp+n/6zwWjB1Ften1V/pHb0XfSdftqiwXqDstOhmjOZTVKu Dq4smSu57l97qXZmSsXr+5f8pKQ2BMU5br/Ve+SQrWuO9pIQjRtf2m4l3ojbznTGOXEHr/fl 3Q5z99UpsRRnJBpqMRcVJwIAnh57vwkDAAA= X-CMS-MailID: 20190718060501eucas1p29de29ef5bf19f66880bcf57c50b268bc X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190715124440eucas1p10bb25e412f32f0da95761f96831893e6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190715124440eucas1p10bb25e412f32f0da95761f96831893e6 References: <20190715124417.4787-1-l.luba@partner.samsung.com> <20190715124417.4787-9-l.luba@partner.samsung.com> <5ac878fa-21c8-afcd-9afe-13ed3cd36afb@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chanwoo, On 7/16/19 12:22 PM, Chanwoo Choi wrote: > Hi, > > On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: >> The ACLK266_ISP has different topology in Exynos5420 and 5422/5800. In >> Exynos5420 this clock does not have dedicated MUX which chooses PLL instead >> it takes the clock from 2-level mux from ACLK266. In Exynos5422 there is a >> dedicated clock tree and the PLL can be chosen. The patch adds needed >> MUXes in the exynos5800_mux_cloks, updates exynos5x_mux_clks and >> exynos5420_mux_clks properly. It also adds IDs to mange these clocks from >> DT. >> >> Signed-off-by: Lukasz Luba >> --- >> drivers/clk/samsung/clk-exynos5420.c | 17 +++++++++++++++-- >> 1 file changed, 15 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c >> index 9d54856dbcda..5f251279b4c8 100644 >> --- a/drivers/clk/samsung/clk-exynos5420.c >> +++ b/drivers/clk/samsung/clk-exynos5420.c >> @@ -432,6 +432,10 @@ PNAME(mout_group16_5800_p) = { "dout_osc_div", "mout_mau_epll_clk" }; >> PNAME(mout_mx_mspll_ccore_phy_p) = { "sclk_bpll", "mout_sclk_dpll", >> "mout_sclk_mpll", "ff_dout_spll2", >> "mout_sclk_spll", "mout_sclk_epll"}; >> +PNAME(mout_group17_5800_p) = { "dout_aclk266_isp", "dout_sclk_sw" }; >> +PNAME(mout_group18_5800_p) = { "dout_osc_div", "mout_sw_aclk266_isp" }; >> +PNAME(mout_group19_5800_p) = { "mout_sclk_cpll", "mout_sclk_dpll", >> + "mout_sclk_mpll", "mout_sclk_ipll"}; >> >> /* fixed rate clocks generated outside the soc */ >> static struct samsung_fixed_rate_clock >> @@ -494,6 +498,8 @@ static const struct samsung_mux_clock exynos5800_mux_clks[] __initconst = { >> MUX(CLK_SCLK_BPLL, "sclk_bpll", mout_bpll_p, SRC_TOP7, 24, 1), >> MUX(0, "mout_epll2", mout_epll2_5800_p, SRC_TOP7, 28, 1), >> >> + MUX(CLK_MOUT_ACLK266_ISP, "mout_aclk266_isp", mout_group19_5800_p, >> + SRC_TOP8, 12, 2), >> MUX(0, "mout_aclk550_cam", mout_group3_5800_p, SRC_TOP8, 16, 3), >> MUX(0, "mout_aclkfl1_550_cam", mout_group3_5800_p, SRC_TOP8, 20, 3), >> MUX(0, "mout_aclk432_cam", mout_group6_5800_p, SRC_TOP8, 24, 2), >> @@ -501,6 +507,8 @@ static const struct samsung_mux_clock exynos5800_mux_clks[] __initconst = { >> >> MUX_F(CLK_MOUT_USER_MAU_EPLL, "mout_user_mau_epll", mout_group16_5800_p, >> SRC_TOP9, 8, 1, CLK_SET_RATE_PARENT, 0), >> + MUX(CLK_MOUT_USER_ACLK266_ISP, "mout_user_aclk266_isp", >> + mout_group18_5800_p, SRC_TOP9, 12, 1), >> MUX(0, "mout_user_aclk550_cam", mout_group15_5800_p, >> SRC_TOP9, 16, 1), >> MUX(0, "mout_user_aclkfl1_550_cam", mout_group13_5800_p, >> @@ -510,6 +518,8 @@ static const struct samsung_mux_clock exynos5800_mux_clks[] __initconst = { >> MUX(0, "mout_user_aclk432_scaler", mout_group9_5800_p, >> SRC_TOP9, 28, 1), >> >> + MUX(CLK_MOUT_SW_ACLK266_ISP, "mout_sw_aclk266_isp", mout_group17_5800_p, >> + SRC_TOP13, 12, 1), >> MUX(0, "mout_sw_aclk550_cam", mout_group14_5800_p, SRC_TOP13, 16, 1), >> MUX(0, "mout_sw_aclkfl1_550_cam", mout_group12_5800_p, >> SRC_TOP13, 20, 1), >> @@ -524,6 +534,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_ACLK266_ISP, "dout_aclk266_isp", "mout_aclk266_isp", >> + DIV_TOP8, 12, 3), >> DIV(0, "dout_aclk550_cam", "mout_aclk550_cam", >> DIV_TOP8, 16, 3), >> DIV(0, "dout_aclkfl1_550_cam", "mout_aclkfl1_550_cam", >> @@ -574,6 +586,9 @@ static const struct samsung_mux_clock exynos5420_mux_clks[] __initconst = { >> MUX(0, "mout_aclk300_disp1", mout_group1_p, SRC_TOP2, 24, 2), >> MUX(0, "mout_aclk300_gscl", mout_group1_p, SRC_TOP2, 28, 2), >> >> + MUX(CLK_MOUT_USER_ACLK266_ISP, "mout_user_aclk266_isp", >> + mout_user_aclk266_isp_p, SRC_TOP4, 16, 1), >> + >> MUX(CLK_MOUT_MX_MSPLL_CCORE, "mout_mx_mspll_ccore", >> mout_group5_5800_p, SRC_TOP7, 16, 2), >> MUX_F(0, "mout_mau_epll_clk", mout_mau_epll_clk_p, SRC_TOP7, 20, 2, >> @@ -641,8 +656,6 @@ static const struct samsung_mux_clock exynos5x_mux_clks[] __initconst = { >> SRC_TOP4, 8, 1), >> MUX(0, "mout_user_aclk333_432_isp0", mout_user_aclk333_432_isp0_p, >> SRC_TOP4, 12, 1), >> - MUX(0, "mout_user_aclk266_isp", mout_user_aclk266_isp_p, >> - SRC_TOP4, 16, 1), >> MUX(0, "mout_user_aclk266", mout_user_aclk266_p, SRC_TOP4, 20, 1), >> MUX(0, "mout_user_aclk166", mout_user_aclk166_p, SRC_TOP4, 24, 1), >> MUX(CLK_MOUT_USER_ACLK333, "mout_user_aclk333", mout_user_aclk333_p, >> > > I checked it on Exynos5420/5422 TRM. > > Acked-by: Chanwoo Choi Thank you! Regards, Lukasz >