From patchwork Fri Apr 3 16:43:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 6157881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EE7439F350 for ; Fri, 3 Apr 2015 16:49:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13436203F1 for ; Fri, 3 Apr 2015 16:49:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 23BA8203ED for ; Fri, 3 Apr 2015 16:49:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ye4jI-000158-EJ; Fri, 03 Apr 2015 16:46:00 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ye4i6-0007ey-Dh for linux-arm-kernel@lists.infradead.org; Fri, 03 Apr 2015 16:44:47 +0000 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 <0NM800413P6BIHB0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Sat, 04 Apr 2015 01:44:35 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-bb-551ec372d3ee Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E8.9C.20081.273CE155; Sat, 4 Apr 2015 01:44:35 +0900 (KST) Received: from amdc1032.digital.local ([106.116.147.136]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NM800HELP5F7X50@mmp1.samsung.com>; Sat, 04 Apr 2015 01:44:34 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Thomas Abraham , Sylwester Nawrocki , Mike Turquette , Kukjin Kim , Kukjin Kim , Viresh Kumar Subject: [PATCH 4/6] ARM: dts: Exynos4210: add CPU OPP and regulator supply property Date: Fri, 03 Apr 2015 18:43:47 +0200 Message-id: <1428079429-4252-5-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1428079429-4252-1-git-send-email-b.zolnierkie@samsung.com> References: <'@samsung.com> <1428079429-4252-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsVy+t9jAd3iw3KhBj/ms1g0byq22DhjPavF 9S/PWS3OLjvIZvH/0WtWi6O/Cyx6F1xls+h//JrZ4uvhFYwWbx5uZrTY9Pgaq8XlXXPYLD73 HmG0mHF+H5PF0wkX2SwOv2lntTj5p5fRomMZo8WqXX8YLTZ+9XAQ8ZjdcJHF4+/z6yweO2fd ZffYtKqTzePOtT1sHpuX1Hv0bVnF6LH92jxmj82nqz0+b5IL4IrisklJzcksSy3St0vgypj9 YCpLwXLRiuXP9rA0MF4W7GLk5JAQMJGYPOERK4QtJnHh3no2EFtIYBGjxN2POV2MXED2b0aJ 3VcOMoMk2ASsJCa2r2IESYgIfGCUeP3uGxuIwywwhUXixJIJjCBVwgJhEmd+NYB1sAioSpx8 tZ4dxOYVcJc439jI1MXIAbROQWLOJBuQMKeAh8TUO/ehNkdKrPh+lXECI+8CRoZVjKKpBckF xUnpuYZ6xYm5xaV56XrJ+bmbGMHh/0xqB+PKBotDjAIcjEo8vA8C5UKFWBPLiitzDzFKcDAr ifBO3gkU4k1JrKxKLcqPLyrNSS0+xCjNwaIkzjtHFyglkJ5YkpqdmlqQWgSTZeLglGpgnC/5 +93XWwld6uJPefiDdtqaS0eIiBnNyFMOYNRPyM+/H/01UjlodWntL0Mr+SzXhA96UnpTH4fd e781+MO37/6yJS/YJs9pPLH0654S3mpNvjmmMY7uayvmHbCcsOdMt8jJVcmxKjOLK+L73Y6w nTdWeSXV2VtlmSX9dVmp//TIg02Gk3iUWIozEg21mIuKEwGC4rS8ewIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150403_094446_617281_3800F638 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Doug Anderson , Lukasz Majewski , Kevin Hilman , Heiko Stuebner , linux-pm@vger.kernel.org, Sachin Kamat , b.zolnierkie@samsung.com, Tomasz Figa , linux-kernel@vger.kernel.org, Chanwoo Choi , linux-samsung-soc@vger.kernel.org, Andreas Faerber , Javier Martinez Canillas , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 Exynos4210 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: - removed Exynos5250 and Exynos5420 support for now Cc: Kukjin Kim Cc: Doug Anderson Cc: Javier Martinez Canillas Cc: Andreas Faerber Cc: Sachin Kamat Cc: Andreas Farber Cc: Javier Martinez Canillas Signed-off-by: Thomas Abraham Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210-origen.dts | 4 ++++ arch/arm/boot/dts/exynos4210-trats.dts | 4 ++++ arch/arm/boot/dts/exynos4210-universal_c210.dts | 4 ++++ arch/arm/boot/dts/exynos4210.dtsi | 12 ++++++++++++ 4 files changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210-origen.dts b/arch/arm/boot/dts/exynos4210-origen.dts index b811461..5b0941f 100644 --- a/arch/arm/boot/dts/exynos4210-origen.dts +++ b/arch/arm/boot/dts/exynos4210-origen.dts @@ -335,3 +335,7 @@ }; }; }; + +&cpu0 { + cpu0-supply = <&buck1_reg>; +}; diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210-trats.dts index 32c5fd8..9b5bdd0 100644 --- a/arch/arm/boot/dts/exynos4210-trats.dts +++ b/arch/arm/boot/dts/exynos4210-trats.dts @@ -483,3 +483,7 @@ }; }; }; + +&cpu0 { + cpu0-supply = <&varm_breg>; +}; diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts b/arch/arm/boot/dts/exynos4210-universal_c210.dts index d4f2b11..5bf74da 100644 --- a/arch/arm/boot/dts/exynos4210-universal_c210.dts +++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts @@ -567,3 +567,7 @@ &mdma1 { reg = <0x12840000 0x1000>; }; + +&cpu0 { + cpu0-supply = <&vdd_arm_reg>; +}; diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index be89f83..df075e64 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -40,6 +40,18 @@ device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0x900>; + clocks = <&clock CLK_ARM_CLK>; + clock-names = "cpu"; + clock-latency = <160000>; + + operating-points = < + 1200000 1250000 + 1000000 1150000 + 800000 1075000 + 500000 975000 + 400000 975000 + 200000 950000 + >; cooling-min-level = <4>; cooling-max-level = <2>; #cooling-cells = <2>; /* min followed by max */