From patchwork Wed Jul 1 13:10:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 6703371 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A3240C05AC for ; Wed, 1 Jul 2015 13:13:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D6809206DF for ; Wed, 1 Jul 2015 13:13:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0ADEE206DD for ; Wed, 1 Jul 2015 13:13:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752950AbbGANNq (ORCPT ); Wed, 1 Jul 2015 09:13:46 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:40654 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753362AbbGANNn (ORCPT ); Wed, 1 Jul 2015 09:13:43 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NQT00CGY8QRYW30@mailout3.samsung.com>; Wed, 01 Jul 2015 22:13:39 +0900 (KST) X-AuditID: cbfee61a-f79516d000006302-4e-5593e78388a2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 9D.3E.25346.387E3955; Wed, 1 Jul 2015 22:13:39 +0900 (KST) Received: from AMDC1976.DIGITAL.local ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NQT00JFV8NW34B0@mmp1.samsung.com>; Wed, 01 Jul 2015 22:13:39 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Thomas Abraham , Sylwester Nawrocki , Michael Turquette , Kukjin Kim , Kukjin Kim , Viresh Kumar , Krzysztof Kozlowski Cc: Tomasz Figa , Lukasz Majewski , Heiko Stuebner , Chanwoo Choi , Kevin Hilman , Javier Martinez Canillas , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com, Doug Anderson , Andreas Faerber Subject: [PATCH v3 2/4] ARM: dts: Exynos5250: add CPU OPP and regulator supply property Date: Wed, 01 Jul 2015 15:10:36 +0200 Message-id: <1435756238-845-3-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1435756238-845-1-git-send-email-b.zolnierkie@samsung.com> References: <1435756238-845-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMLMWRmVeSWpSXmKPExsVy+t9jAd3m55NDDR4tNbdo3lRssXHGelaL 61+es1qcXXaQzeL/o9esFtd+z2CzeP3C0KJ3wVU2i/7Hr5ktvh5ewWjx5uFmRotNj6+xWnzs ucdqcXnXHDaLz71HGC1mnN/HZHHxlKvF4TftrBYdyxgtVu36w2ix8auHg6jH+xut7B6zGy6y ePyd3crssXPWXXaPTas62TzuXNvD5rF5Sb1H35ZVjB7br81j9th8utrj8ya5AO4oLpuU1JzM stQifbsEroy+FS9ZCx5KVeyf187YwPhUtIuRk0NCwESi6f4kRghbTOLCvfVsXYxcHEICixgl Nv1Zwgzh/GKUeDNvJRNIFZuAlcTE9lWMIAkRgRVMEtOf7GMHcZgFfjNLPHqwmx2kSlggUuLy urNsIDaLgKrErEf/WEFsXgE3iYZbK9kh9slJnDw2GSzOKeAuce5fG9gdQkA1f4D+ncDIu4CR YRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcFQ8k9rBuLLB4hCjAAejEg+vgNjkUCHWxLLi ytxDjBIczEoivF+mAoV4UxIrq1KL8uOLSnNSiw8xSnOwKInznsz3CRUSSE8sSc1OTS1ILYLJ MnFwSjUwWv/uXC5dUhnzfsPMfwZ+Z3cevKqT/iBhzcmAxypFO+zPxXZdixNlNBK0Z5l3tLvA tfZb8gn2TE89yX+uVb6Fv0rf55wzNtvydKenTKt+euuD1ZFXj19+4x32j+l/d3nBtzn+5bzW 9lw39ty9Y9J3pnuB+IEvx1fYRpSfMSv5KbFZZ/HnFMfjSizFGYmGWsxFxYkAz1o2G4YCAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thomas Abraham For Exynos5250 platforms, add CPU operating points and CPU regulator supply properties for migrating from Exynos specific cpufreq driver to using generic cpufreq driver. Changes by Bartlomiej: - split Exynos5250 support from the original patch - added CPU regulator supply property for Google Spring board - put the new cpu nodes in alphabetical order Cc: Kukjin Kim Cc: Doug Anderson Cc: Javier Martinez Canillas Cc: Andreas Faerber Signed-off-by: Thomas Abraham Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos5250-arndale.dts | 4 ++++ arch/arm/boot/dts/exynos5250-smdk5250.dts | 4 ++++ arch/arm/boot/dts/exynos5250-snow.dts | 4 ++++ arch/arm/boot/dts/exynos5250-spring.dts | 4 ++++ arch/arm/boot/dts/exynos5250.dtsi | 22 ++++++++++++++++++++++ 5 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts index 7e728a1..db3f65f 100644 --- a/arch/arm/boot/dts/exynos5250-arndale.dts +++ b/arch/arm/boot/dts/exynos5250-arndale.dts @@ -117,6 +117,10 @@ }; }; +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; + &dp { status = "okay"; samsung,color-space = <0>; diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 4fe186d..15aea76 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -74,6 +74,10 @@ }; }; +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; + &dp { samsung,color-space = <0>; samsung,dynamic-range = <0>; diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index b7f4122..a4133df 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -235,6 +235,10 @@ }; }; +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; + &dp { status = "okay"; pinctrl-names = "default"; diff --git a/arch/arm/boot/dts/exynos5250-spring.dts b/arch/arm/boot/dts/exynos5250-spring.dts index d03f9b8..c1edd6d 100644 --- a/arch/arm/boot/dts/exynos5250-spring.dts +++ b/arch/arm/boot/dts/exynos5250-spring.dts @@ -65,6 +65,10 @@ }; }; +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; + &dp { status = "okay"; pinctrl-names = "default"; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index bf9bee6..0c7ef12 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -63,6 +63,28 @@ 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 + >; cooling-min-level = <15>; cooling-max-level = <9>; #cooling-cells = <2>; /* min followed by max */