Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4224490ybi; Mon, 15 Jul 2019 05:51:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQijAYsk866yNbTavqEua4+NQ7CPKdiWxyDAFIk2e1bbJGnV9KiLSpFUOI8XyhulYwV3e9 X-Received: by 2002:a17:902:8ec7:: with SMTP id x7mr27875387plo.224.1563195070488; Mon, 15 Jul 2019 05:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563195070; cv=none; d=google.com; s=arc-20160816; b=ADheOaeDaWZw7zYTkdmYw+1y/eFev2Yy9wsU7izHN8J5vO/FlWVyeQDHPJri3+CR+H o8gVnTH8Y2mVoX8I6WL4juwg2HCuv9qa8pzijE6uDwlbwycyBlCX+z+7umyxWvGfLuq/ vnRvALd5M5AgEiFi9gxrqf793KnFamrQ5L0NXcV/sw1WGzpsVnsvjNo1IgZ1CiQqE9pY hsYbY4R+5U0CtSN6OdvVr3pClg3J6+0fLl4ifIuc40EgFskC5F/xaFWl4rcMxBF7jyL2 1ijkk49NzEn56nr3qB1HSl3Tu2LA30OS7iYAHUxdZv3ZTE3Mmuqc2VVIkx2SQy5aj3FC o7Ig== 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:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=gu9S300xYsEx15w8bkMWrWNLeNOczHmD9nwzaFLG/Q0=; b=p6C0ZKdfaMRPmjaKbPqbTmZWMLsmnvnoS27fIcqPTXZbHOHiOP03g7s38HepqXXlY6 IMBkY6EEMB/V9TgLkOilMT4qAGZQXegSLvqkuhko8AU+RBlU0u782UYK4ck8tfk8pvoh EMcL4ojbs/mZ5BrEdnVUnVxj4HfWsO0Tb70a/HtNfVtK1ntzgRj4qwhAjOrR6IQoOSVf qSgcJKrmJYOKavg5LeOq2CV0lVBep7lxbebdGxzil4noa/aQhXUHpg4RvIdYGCFM5SNb OA7WUI+fJRkKOiV51gPQY9PLAXEtlt2JP53dxwSuJP3ll9AFWJ7lVBZX7R+DCZK5tg1P c6ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZGdo5RDJ; 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 q10si15936611pgf.529.2019.07.15.05.50.51; Mon, 15 Jul 2019 05:51:10 -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=ZGdo5RDJ; 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 S1730536AbfGOMsG (ORCPT + 99 others); Mon, 15 Jul 2019 08:48:06 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49611 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730176AbfGOMon (ORCPT ); Mon, 15 Jul 2019 08:44:43 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190715124442euoutp02885e13085533cc018292cd3af6b8ac7c~xlUgRYkpj0714907149euoutp02J for ; Mon, 15 Jul 2019 12:44:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190715124442euoutp02885e13085533cc018292cd3af6b8ac7c~xlUgRYkpj0714907149euoutp02J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563194682; bh=gu9S300xYsEx15w8bkMWrWNLeNOczHmD9nwzaFLG/Q0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZGdo5RDJN83TPwxAVCYdN34OxDPWSl5V5Em9YAzPqAcWTFdyMs70hA5ww80V1sY65 A8iJiZixM6RWN91UoaC+JNMBkfku6d04PmQ33Qszi9gnUpUJuRwhQ2TECFVL5o8vq4 C/XzlwE9URrpEZV57h0q86sOZMeqZFr3nknOHrLI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190715124441eucas1p20e985dad3877d2802343860d50bf6ca7~xlUfeD1nd3211032110eucas1p2s; Mon, 15 Jul 2019 12:44:41 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 92.25.04298.9357C2D5; Mon, 15 Jul 2019 13:44:41 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190715124440eucas1p10bb25e412f32f0da95761f96831893e6~xlUeXun6M3092130921eucas1p1V; Mon, 15 Jul 2019 12:44:40 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190715124440eusmtrp1c68b5749bd29027e7777e0b3ab1c33b1~xlUeFQGj20462004620eusmtrp14; Mon, 15 Jul 2019 12:44:40 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-a1-5d2c75395952 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F4.40.04146.7357C2D5; Mon, 15 Jul 2019 13:44:40 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190715124439eusmtip2e2b53f69de81a94d3e4c2d6eb2253db3~xlUdSAdnM1242312423eusmtip2M; Mon, 15 Jul 2019 12:44:39 +0000 (GMT) From: Lukasz Luba To: 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, cw00.choi@samsung.com, kyungmin.park@samsung.com, a.hajda@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, Lukasz Luba Subject: [PATCH v1 08/50] clk: samsung: change aclk266_isp clocks definitions Exynos5420 Date: Mon, 15 Jul 2019 14:43:35 +0200 Message-Id: <20190715124417.4787-9-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190715124417.4787-1-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNKsWRmVeSWpSXmKPExsWy7djP87qWpTqxBj/WCVvcWneO1WLjjPWs Fte/PGe1mH8EyO1//JrZ4vz5DewWZ5vesFvcapCx2PT4GqvFx557rBaXd81hs5hxfh+Txdoj d9ktll6/yGRx8ZSrxe3GFWwWrXuPsFscftPOavHv2kYWB2GPNfPWMHq8v9HK7rFpVSebx+Yl 9R4H3+1h8ujbsorR4/MmuQD2KC6blNSczLLUIn27BK6Me1NmsxTsVqrYP30rYwPjftkuRk4O CQETiTnP/rN3MXJxCAmsYJS4/fUUK4TzhVHiy6Y7zCBVQgKfGSXOf1OD6Vj5oJEJIr6cUeLx TDu4hgsnpwElODjYBPQkdqwqBKkREVjCKHHkZxJIDbPATSaJPU92soIkhAWiJC7cfswGUs8i oCrx41QlSJhXwE7i9LXzjBC75CVWbzgAdgOngL3Ez2kX2EDmSAicY5c4u34pE0SRi0T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S4tz03GJDveLE3OLSvHS95PzcTYzAqNl27OfmHYyXNgYfYhTg YFTi4XVI0Y4VYk0sK67MPcQowcGsJMJr+xUoxJuSWFmVWpQfX1Sak1p8iNEU6KaJzFKiyfnA iM4riTc0NTS3sDQ0NzY3NrNQEuftEDgYIySQnliSmp2aWpBaBNPHxMEp1cAYnrVAhX3a50Xn fmXFbVkn/6Fv44H0/67uoVcn7j6d65b69IPsZm+Dz68PHneOawmUbP2a5uu3KmJNIW+qv5Rh 4Tc73diNfgxMfnX2f33iGXZcTrLcoH5h8b0IjQtnu3bcWGkk3nu6aPuMfZF3Yn99jctTuHKs c7PwFT2X/d+PX/3qfe2RzCc9JZbijERDLeai4kQArPw0f7ACAAA= X-CMS-MailID: 20190715124440eucas1p10bb25e412f32f0da95761f96831893e6 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.17.1