Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4224241ybi; Mon, 15 Jul 2019 05:50:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaD1i9vouqRRz0KiKGXWrOde3gPZwH3qPkewRVASpacf/eX2cnHn19mrO7z/CQAREGUw4D X-Received: by 2002:a17:902:4401:: with SMTP id k1mr4918724pld.193.1563195056610; Mon, 15 Jul 2019 05:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563195056; cv=none; d=google.com; s=arc-20160816; b=PWRDBPLsM5bNRWDDiu4PYtok8U0kAqhHkQUON+Ce0WFEq00CkMRLSOUj9LAy0B5GBC Q91gQzgC/KYMlAhyeJqLtm7sr+25s5b66eodgYqRVy1p8jlVYtggkY4/MyApTeLsYMne iYR3g5VxYY7yu2iyyqfTcxXsMzkacsiUS0cfttAzUYRS7mC7PK3iK22KluWBuPT5Fxb8 UkQPlW7+pfBnSsN1hJ04tSS+V/tSc1NNVu6eVErzOn9SmzIPeYJzItWK78RRPWiMK9/Y o19Hsq4PUgJGZ7xYGJ04hxBbD53qtVtSuzCWcJncyI5oRn1QN4vB4b/hunIM/0amhAcj FVQw== 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=I0OgqZ2CWuBbzFVPzjbpMciCe+FwTz52wvrMkQPDL5M=; b=AIuR3SEBOnajtD9kQB1evmONZDks15xMleah9CqcUCcGTZ72A+FGmQGdB75x4/lOGs 9FeTemuhptdU41hv8iGqLVn8wmtjBWg+EJRHDNKxKECsqpp8uMiS9XXKg8Fw3FWzgfXF QaMUQe7WKeGw91hkawqar+Osx9m6RinDke/bb96s22IApOy0/MNXH3yZpbh4fQYtgGpt B9Ux2LS6iQV9+s2ZqdoGS8nxX55rgrQ5DnA5sXP9JWTHFBiOr4+XzW+ZswfddZlNT9hF vnCzS4/IpN4SBzAUPD32R2wdkr6fadI6NueOn+2cZqwu/n/Hme2jc2nakOfWjnjMEwDx Hs8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ObnQuiRv; 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 k65si16038972pge.422.2019.07.15.05.50.37; Mon, 15 Jul 2019 05:50:56 -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=ObnQuiRv; 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 S1730432AbfGOMr6 (ORCPT + 99 others); Mon, 15 Jul 2019 08:47:58 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60182 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730184AbfGOMoq (ORCPT ); Mon, 15 Jul 2019 08:44:46 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190715124445euoutp01c1eed5a3e367bd16113feecae14e3734~xlUjfEAnJ1950319503euoutp01j for ; Mon, 15 Jul 2019 12:44:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190715124445euoutp01c1eed5a3e367bd16113feecae14e3734~xlUjfEAnJ1950319503euoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563194685; bh=I0OgqZ2CWuBbzFVPzjbpMciCe+FwTz52wvrMkQPDL5M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ObnQuiRvdNyYX9RLbw5zfKcJ7MZ2NjnNrcvhxw8X05vJ0upeI3HsX6Jb6Fzea4GUr GvPbT4STPD4HhxVpVuZdo2xUR2g/ETfyhTXfBTX75RQCsEYZpKf2mfs79RAefkZc+a KR/WxW6lN/GAv8jaYLvAoJ3LNf1VyeoQvUKcqYDo= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190715124445eucas1p1cadbf6f8142613a4c6698072f6a76f2d~xlUjA0E280156501565eucas1p1E; Mon, 15 Jul 2019 12:44:45 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 76.25.04298.D357C2D5; Mon, 15 Jul 2019 13:44:45 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190715124444eucas1p2683c9896e8be45d6a0cd4afeb681a2ea~xlUiPFHjO0850908509eucas1p2R; Mon, 15 Jul 2019 12:44:44 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190715124444eusmtrp1f2cf85a295731db67f52673a8212a215~xlUh7zPut0462004620eusmtrp1L; Mon, 15 Jul 2019 12:44:44 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-ad-5d2c753d0c8a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 1E.F6.04140.C357C2D5; Mon, 15 Jul 2019 13:44:44 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190715124443eusmtip2d58fdac071ad32fdd16f4b5966dd5450~xlUhJJv4X1176011760eusmtip2z; Mon, 15 Jul 2019 12:44:43 +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 13/50] clk: samsung: add DPLL rate table in Exynos5420 Date: Mon, 15 Jul 2019 14:43:40 +0200 Message-Id: <20190715124417.4787-14-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: H4sIAAAAAAAAA0WSaUwTQRTHnW73aKW6FoQJciQ1GrzAJn4YORQSSdYYTflkohhdYAMEWrBr VdRoUfHACoIE1EgFU5UUPKgN1oqo0IBiuFEQo1HQiHc4asQIcZdF/fZ7v/m/eS+ToTC1Gw+k 0g27OKOBzdQQSnld80T7ihjT8m0r84YxNHCjHUe1527iqG/8A44ueYSycOgzhjo6bpGo7fAX Eg2Yg5Bj6DmORiyvcdTjvkigcx0NMnTd84pEV/q6ZKirNR69zK0iUN59D4mavhzH0dTzWnms L1NjrQHM9/48knHYTxLMbdsh5tG3ehlT4LQDZswRoiO3KKNTuMz03ZwxYs0OZVrv+QdktnXu 3pHmVWYw6pMPFBSkV8EGZxkhspquArD8rTYfKAUeB/DzQD2QijEAr/6+h/3t6HF4gdRxDcD8 XNm/jj5XgVBQFEGHQ5d9p5jxo20AeiaSxAxGv5DB+nd3cfHAl14PPzbXTrOcXgR73J3Ta6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S9ZLzczcxAuNm27GfW3Ywdr0LPsQo wMGoxMPrkKIdK8SaWFZcmXuIUYKDWUmE1/YrUIg3JbGyKrUoP76oNCe1+BCjKdBRE5mlRJPz gTGdVxJvaGpobmFpaG5sbmxmoSTO2yFwMEZIID2xJDU7NbUgtQimj4mDU6qBMVts+YpvB12O f882iLI+mPNzDdfNlJbItyZ39z5XYnPYHakw0eDU0mVlz5auXKwXYhK+aUb6fL2XabWfbjf2 nv66rsnvmE3l3pfztieINiwK/vR/R5fVYcvz//x03hrsm8HdHCO76dz9tdHNTboPn7padMVv +XL6k4kVS1yy+IbVdpPWzj4RMl2JpTgj0VCLuag4EQDO9qW9sQIAAA== X-CMS-MailID: 20190715124444eucas1p2683c9896e8be45d6a0cd4afeb681a2ea X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190715124444eucas1p2683c9896e8be45d6a0cd4afeb681a2ea X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190715124444eucas1p2683c9896e8be45d6a0cd4afeb681a2ea 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 DPLL has fixed frequency left by the bootloader and it is not possible to change it. With this patch the DPLL gets rate table the same for the whole PLL family (similar as APLL, KPLL according to RM) so the frequency might be changed to one of the values defined there. It is needed for further patches which change the DPLL frequency to feed the clocks with proper base. It also sets CLK_IS_CRITICAL for SCLK_DPLL due to some drivers which could disable master clock, which is then populated higher and tries to disable PLL, which casues system crash. The flag is needed for this kind of use cases. Signed-off-by: Lukasz Luba --- drivers/clk/samsung/clk-exynos5420.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index 7f8221527633..2395b02ce8c5 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -694,7 +694,8 @@ static const struct samsung_mux_clock exynos5x_mux_clks[] __initconst = { MUX(0, "mout_sclk_rpll", mout_rpll_p, SRC_TOP6, 16, 1), MUX_F(CLK_MOUT_EPLL, "mout_sclk_epll", mout_epll_p, SRC_TOP6, 20, 1, CLK_SET_RATE_PARENT, 0), - MUX(0, "mout_sclk_dpll", mout_dpll_p, SRC_TOP6, 24, 1), + MUX_F(CLK_MOUT_SCLK_DPLL, "mout_sclk_dpll", mout_dpll_p, + SRC_TOP6, 24, 1, CLK_IS_CRITICAL, 0), MUX(0, "mout_sclk_cpll", mout_cpll_p, SRC_TOP6, 28, 1), MUX(CLK_MOUT_SW_ACLK400_ISP, "mout_sw_aclk400_isp", @@ -1514,6 +1515,7 @@ static void __init exynos5x_clk_init(struct device_node *np, if (_get_rate("fin_pll") == 24 * MHZ) { exynos5x_plls[apll].rate_table = exynos5420_pll2550x_24mhz_tbl; + exynos5x_plls[dpll].rate_table = exynos5420_pll2550x_24mhz_tbl; exynos5x_plls[epll].rate_table = exynos5420_epll_24mhz_tbl; exynos5x_plls[kpll].rate_table = exynos5420_pll2550x_24mhz_tbl; } -- 2.17.1