Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4221659ybi; Mon, 15 Jul 2019 05:48:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHvVLncxOvB3a5lgbFXUIFGDCRC0OvkkKIieZCUIn8gBM/yDrDB8eLRE8QXYobyDy3DEex X-Received: by 2002:a17:90a:bf02:: with SMTP id c2mr29326941pjs.73.1563194896343; Mon, 15 Jul 2019 05:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563194896; cv=none; d=google.com; s=arc-20160816; b=a1oNVWi+QMw6aOH14D73veW3D6d6dM2Lsm6bZy+3uv23d5ncSxpxW+UOKRK/Bi1nCo Go+5H9umpZAs2JwEnlP2pq0NW4KyU45YsQWcIkUdROWL2yIQLwsDP5FoVb8QPsmWxPfo C8v+oEiFG0vvXM6d0lcW2SmRJ9NUaqG6n8WMAjS5MXVlV12dFnP9i0Fmsvtc+atte6mb j6RELM4EbQVKxhAl/FdRH9cYsix3XZUu94xvonZr8WGYIUVh/vExV0xgq3BGHdT1Vyqf I6OgxfAKtjGuxYr2T6I1jo8fEgPjMYO9dpEtljXPPGSN2gkaOKfACLqGpN/bErcaQhBx LXlA== 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=kj3mAoTibXuXqP7RtEEJ98wUQnanVJPJVicA1HV43MM=; b=RzY8tjcjAS/Ji8bng9ZuEGNSK4EcRIBwYCaTWqfHHK538cx6YFpUbVyxB886loku1X 0WMHTlZgPLAY/K58UfzoZr/C4EQ1PLUwcjd8d5IJXkhdgqNkojqoHODGFlRmJRchCe0L G40mtPsvxhCdbuwWyet2X/an17GC2CqOtJCyfyivitF6RiIt11hf3JGNK8IdvNTKfZNE LDij7u9msS2uv3ivkhFTflvLqgZbmidY19SrIsmXWr5Wd6L0o3rYGo/VATSfxQMDUPey KBAq1LWPCo7UME6ES17if9EG2VIWycQHx6PAx6Xj0wKTDqW1iRnfbOkul2wsTmF554T4 Lsag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sRJh8JNw; 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 g90si15529369plb.282.2019.07.15.05.47.58; Mon, 15 Jul 2019 05:48:16 -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=sRJh8JNw; 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 S1730650AbfGOMqx (ORCPT + 99 others); Mon, 15 Jul 2019 08:46:53 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60313 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730299AbfGOMo6 (ORCPT ); Mon, 15 Jul 2019 08:44:58 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190715124457euoutp01369fb93b0fe0b247662729a69cc04972~xlUumsYi61972419724euoutp01S for ; Mon, 15 Jul 2019 12:44:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190715124457euoutp01369fb93b0fe0b247662729a69cc04972~xlUumsYi61972419724euoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563194697; bh=kj3mAoTibXuXqP7RtEEJ98wUQnanVJPJVicA1HV43MM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sRJh8JNwlPL5lAlWJFWpH18BE095zmkxQ8nEKS4EIrRCS4qrxc/6f8i6A6w38xd9F LjwADpkdOzGrvKGHQnHBsybkQVs7Lm0avrpHHGbQkP87ClZoZRgI665mz7JA7VpuaB Pgfyy3SUMEREy80G75Qg8Aj7MOy+DunQ0jGqZ514= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190715124456eucas1p1f99829193ba832bd2e59a205828f76a6~xlUtw49YN0154001540eucas1p1M; Mon, 15 Jul 2019 12:44:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id DC.B0.04325.8457C2D5; Mon, 15 Jul 2019 13:44:56 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190715124456eucas1p2acf15d00e3fa7b77fe3a2b10ce1ab74f~xlUs7DUvv0800208002eucas1p2n; Mon, 15 Jul 2019 12:44:56 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190715124456eusmtrp17476f77b4fab1799e2326d2805ff5c7f~xlUs6cWlj0488104881eusmtrp1b; Mon, 15 Jul 2019 12:44:56 +0000 (GMT) X-AuditID: cbfec7f5-fbbf09c0000010e5-e5-5d2c7548549e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FE.07.04140.7457C2D5; Mon, 15 Jul 2019 13:44:55 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190715124455eusmtip254a7da76ff3fdd558aa332875e37ed99~xlUsEoy4D1115211152eusmtip2R; Mon, 15 Jul 2019 12:44:55 +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 27/50] ARM: dts: exynos: align bus_wcore OPPs in Exynos5420 Date: Mon, 15 Jul 2019 14:43:54 +0200 Message-Id: <20190715124417.4787-28-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: H4sIAAAAAAAAA0WSe0hTYRjG/c7Z2Y6jyWlqfpokLKSyUruAn2SmkHAgMv+SqKRmHlSatx21 LPESeGWpqJmEl0TFNc17tkxFpzlSy1upTdRKQTErzOtIRptn1n+/93ney8PHR+LiTsKBDI+M ZeSRUpmEL+S19euHT9JxJ4Lcd74eQbr6DwRqKm4g0OT6IoHK+4xl7vx3HA0PNwrQ+4crAqRL cUTN8xMEWlXMEmi8vYSPioe7MPSib0aAqidHMTQ64IemU5V8lNbZJ0C9KxkEMkw08Xys6bqy OkD/mkoT0M2qLD7dUpVM9/zswOicVhWg15oPBQiuCb1CGFl4PCN3874lDFO8GeFHD4jvLW8v Eylg0CobWJKQOgs3Mof42UBIiiklgFv1CxhXrAOom3xpdtYAXMxd5e2NpGaNAc6oAbDyUzr+ b0RbMERkA5LkU65QrYoxDdhQVQD26YNNPTj1GYMdC68Jk2FNBcDpV5O7W3mUM0zdLsZMLKIu wDbtEs5dc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/dxMjMHK2Hfu5ZQdj17vg Q4wCHIxKPLwOKdqxQqyJZcWVuYcYJTiYlUR4bb8ChXhTEiurUovy44tKc1KLDzGaAh01kVlK NDkfGNV5JfGGpobmFpaG5sbmxmYWSuK8HQIHY4QE0hNLUrNTUwtSi2D6mDg4pRoYdygzR/cd qKqabrBWItnguOA7TTnWfQ/+JhgIvN4ws3DCkdv39ol8+3P12O2HJ4NtY+RqBfkTeGZ/3+77 13E5x+NffZ8PhSzKCTrmILF7hmHd3CmmDtHFXwUlbmU6TLhlHGt38TfbysTksydSdEvfu63U EGfY/k9ms8G9mQsOKn1dozb54ZNN05RYijMSDbWYi4oTAePgB9OyAgAA X-CMS-MailID: 20190715124456eucas1p2acf15d00e3fa7b77fe3a2b10ce1ab74f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190715124456eucas1p2acf15d00e3fa7b77fe3a2b10ce1ab74f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190715124456eucas1p2acf15d00e3fa7b77fe3a2b10ce1ab74f 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 This is the most important bus in the Exynos5x SoC. The whole communication inside SoC does through that bus (apart from direct requests from CCI to DRAM controller). It is also modeled as a master bus in devfreq framework. It is also the only one OPP table throughout other buses which has voltage values. The devfreq software controls the speed of that bus and other buses. The other buses follows the rate of the master. There is only one regulator. The old lowest OPP had pair 925mV, 84MHz which is enough for this frequency. However, due to the fact that the other buses follows the WCORE bus by taking the OPP from their table with the same id, e.g. opp02, the children frequency should be stable with the set voltage. It could cause random faults very hard to debug. Thus, the patch removes the lowest OPP to make other buses' lowest OPPs working. The new lowest OPP has voltage high enough for buses working up to 333MHz. It also changes the frequencies of the OPPs to align them to PLL value such that it is possible to set them using only a divider without reprogramming OPP. Reprogramming the PLL was not set, so the real frequency values were not the one from the OPP table, which could confuse the governor algorithms which relay on OPP speed values making the system to behave weird. Signed-off-by: Lukasz Luba --- arch/arm/boot/dts/exynos5420.dtsi | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index f8c36ff0d4c3..a355c76af5a5 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -1107,22 +1107,18 @@ compatible = "operating-points-v2"; opp00 { - opp-hz = /bits/ 64 <84000000>; - opp-microvolt = <925000>; + opp-hz = /bits/ 64 <150000000>; + opp-microvolt = <950000>; }; opp01 { - opp-hz = /bits/ 64 <111000000>; + opp-hz = /bits/ 64 <200000000>; opp-microvolt = <950000>; }; opp02 { - opp-hz = /bits/ 64 <222000000>; + opp-hz = /bits/ 64 <300000000>; opp-microvolt = <950000>; }; opp03 { - opp-hz = /bits/ 64 <333000000>; - opp-microvolt = <950000>; - }; - opp04 { opp-hz = /bits/ 64 <400000000>; opp-microvolt = <987500>; }; -- 2.17.1