From patchwork Fri Aug 3 06:51:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10554607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DCB6CA637 for ; Fri, 3 Aug 2018 06:52:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C62E52C085 for ; Fri, 3 Aug 2018 06:52:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA9F12C239; Fri, 3 Aug 2018 06:52:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8225B2C08D for ; Fri, 3 Aug 2018 06:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbeHCIqs (ORCPT ); Fri, 3 Aug 2018 04:46:48 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:33760 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728040AbeHCIqs (ORCPT ); Fri, 3 Aug 2018 04:46:48 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180803065157euoutp021f28c1421217ea61df81c55a5cbeb9b3~HTTvGjpUU1854618546euoutp02O for ; Fri, 3 Aug 2018 06:51:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180803065157euoutp021f28c1421217ea61df81c55a5cbeb9b3~HTTvGjpUU1854618546euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1533279117; bh=3M2K/NkpdNUlxxcvCaGFtAQo7pJ6EtF0kx5Qatj+LF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kd7pJUKGu58osi9yobyc9q73sEXCR9YLfyro6mgrc2EGyJxFKzypT+aR41d+zsJk7 59OB2GIqgCMCT/QPbf1sqFxYWhyyaKhfMkJOFO1lw1jL7d40zHCTq7AhTknYarhbQC YhHzIa/pNF9bi0xCEgaSqO17DrF5QepHW/BLykE8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180803065156eucas1p1a84f2c51559c70d98446574efd3d8676~HTTutJNNM1343313433eucas1p1M; Fri, 3 Aug 2018 06:51:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 6F.50.05751.C8BF36B5; Fri, 3 Aug 2018 07:51:56 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180803065156eucas1p11664d8adddb5f481eb83fc60879ac542~HTTuAQaDG1343313433eucas1p1L; Fri, 3 Aug 2018 06:51:56 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180803065155eusmtrp1f32c76ea118e885d18ee0e5830741d0d~HTTtx2Stm1526815268eusmtrp1o; Fri, 3 Aug 2018 06:51:55 +0000 (GMT) X-AuditID: cbfec7f4-c47ff70000001677-2c-5b63fb8c4a10 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2A.86.04178.B8BF36B5; Fri, 3 Aug 2018 07:51:55 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.116.147.25]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180803065155eusmtip201a4ba69fe3299b723c46294a4fab9fa~HTTtflEBY1671816718eusmtip2x; Fri, 3 Aug 2018 06:51:55 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/2] ARM: dts: exynos: Convert exynos5250.dtsi to opp-v2 bindings Date: Fri, 3 Aug 2018 08:51:46 +0200 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180803065147.6542-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKIsWRmVeSWpSXmKPExsWy7djP87o9v5OjDZ4cULLYOGM9q8X58xvY LWac38dksfbIXXYHFo9NqzrZPPq2rGL0+LxJLoA5issmJTUnsyy1SN8ugSvjwLb7LAXrFStm b73H1MD4RaKLkZNDQsBEYlljL3MXIxeHkMAKRonW/2ugnC+MEmv2TWeEcD4zSnyffYYVpuXi wd2sEInljBLHe+4xQThfGSWaTh0Cq2ITMJToetvFBmKLCKhKfG5bwA5SxCzQxyhxfe9cZpCE sECwxMu+Y+wgNgtQ0fZlPewQK+QlVm84AFbDKWArcf3NKzaQZgmBM2wSP46fAiviFSiTeH/i G1SDi8SZw7ug7hOWeHV8C1RcRuL05B4WiOZmRon2GbPYIZweRomtc3awQVRZSxw+fhGomwPo Pk2J9bv0IcKOEh2tn9lBwhICfBI33gqChJmBzEnbpjNDhHklOtqEIKrVJGYdXwe39uCFS8wQ tofEm60d0HCcwChx8OAMlgmM8rMQli1gZFzFKJ5aWpybnlpslJdarlecmFtcmpeul5yfu4kR GPmn/x3/soNx15+kQ4wCHIxKPLwXVJOjhVgTy4orcw8xSnAwK4nwvu0ECvGmJFZWpRblxxeV 5qQWH2KU5mBREue90x8XLSS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f481eb83fc60879ac542~HTTuAQaDG1343313433eucas1p1L@eucas1p1.samsung.com> X-CMS-MailID: 20180803065156eucas1p11664d8adddb5f481eb83fc60879ac542 X-Msg-Generator: CA X-RootMTR: 20180803065156eucas1p11664d8adddb5f481eb83fc60879ac542 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180803065156eucas1p11664d8adddb5f481eb83fc60879ac542 References: <20180803065147.6542-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Convert Exynos5250 to OPP-v2 bindings. This is a preparation to add proper support for suspend operation point, which cannot be marked in opp-v1. Signed-off-by: Marek Szyprowski Reviewed-by: Chanwoo Choi Acked-by: Bartlomiej Zolnierkiewicz --- arch/arm/boot/dts/exynos5250.dtsi | 130 ++++++++++++++++++++---------- 1 file changed, 88 insertions(+), 42 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index da163a40af15..8746189990eb 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -54,62 +54,108 @@ device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0>; - clock-frequency = <1700000000>; clocks = <&clock CLK_ARM_CLK>; clock-names = "cpu"; - clock-latency = <140000>; - - operating-points = < - 1700000 1300000 - 1600000 1250000 - 1500000 1225000 - 1400000 1200000 - 1300000 1150000 - 1200000 1125000 - 1100000 1100000 - 1000000 1075000 - 900000 1050000 - 800000 1025000 - 700000 1012500 - 600000 1000000 - 500000 975000 - 400000 950000 - 300000 937500 - 200000 925000 - >; + operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; /* min followed by max */ }; cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <1>; - clock-frequency = <1700000000>; clocks = <&clock CLK_ARM_CLK>; clock-names = "cpu"; - clock-latency = <140000>; - - operating-points = < - 1700000 1300000 - 1600000 1250000 - 1500000 1225000 - 1400000 1200000 - 1300000 1150000 - 1200000 1125000 - 1100000 1100000 - 1000000 1075000 - 900000 1050000 - 800000 1025000 - 700000 1012500 - 600000 1000000 - 500000 975000 - 400000 950000 - 300000 937500 - 200000 925000 - >; + operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; /* min followed by max */ }; }; + cpu0_opp_table: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <925000>; + clock-latency-ns = <140000>; + }; + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <937500>; + clock-latency-ns = <140000>; + }; + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <950000>; + clock-latency-ns = <140000>; + }; + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <975000>; + clock-latency-ns = <140000>; + }; + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <140000>; + }; + opp-700000000 { + opp-hz = /bits/ 64 <700000000>; + opp-microvolt = <1012500>; + clock-latency-ns = <140000>; + }; + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <1025000>; + clock-latency-ns = <140000>; + }; + opp-900000000 { + opp-hz = /bits/ 64 <900000000>; + opp-microvolt = <1050000>; + clock-latency-ns = <140000>; + }; + opp-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <1075000>; + clock-latency-ns = <140000>; + }; + opp-1100000000 { + opp-hz = /bits/ 64 <1100000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <140000>; + }; + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1125000>; + clock-latency-ns = <140000>; + }; + opp-1300000000 { + opp-hz = /bits/ 64 <1300000000>; + opp-microvolt = <1150000>; + clock-latency-ns = <140000>; + }; + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-microvolt = <1200000>; + clock-latency-ns = <140000>; + }; + opp-1500000000 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <1225000>; + clock-latency-ns = <140000>; + }; + opp-1600000000 { + opp-hz = /bits/ 64 <1600000000>; + opp-microvolt = <1250000>; + clock-latency-ns = <140000>; + }; + opp-1700000000 { + opp-hz = /bits/ 64 <1700000000>; + opp-microvolt = <1300000>; + clock-latency-ns = <140000>; + }; + }; + soc: soc { sysram@2020000 { compatible = "mmio-sram";