From patchwork Mon Jun 29 17:26:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 6690501 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 C94F29F380 for ; Mon, 29 Jun 2015 17:28:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFBDE20465 for ; Mon, 29 Jun 2015 17:28:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ACA0A20457 for ; Mon, 29 Jun 2015 17:28:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbbF2R2l (ORCPT ); Mon, 29 Jun 2015 13:28:41 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:33806 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753550AbbF2R2e (ORCPT ); Mon, 29 Jun 2015 13:28:34 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NQP02FRGV7ID590@mailout4.samsung.com>; Tue, 30 Jun 2015 02:28:30 +0900 (KST) X-AuditID: cbfee61a-f79516d000006302-83-5591803e1491 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 16.B6.25346.E3081955; Tue, 30 Jun 2015 02:28:30 +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 <0NQP0081NV60N630@mmp1.samsung.com>; Tue, 30 Jun 2015 02:28:30 +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 , Sachin Kamat Subject: [PATCH v2 2/4] ARM: dts: Exynos5250: add CPU OPP and regulator supply property Date: Mon, 29 Jun 2015 19:26:10 +0200 Message-id: <1435598772-21708-3-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1435598772-21708-1-git-send-email-b.zolnierkie@samsung.com> References: <1435598772-21708-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsVy+t9jAV27homhBhufy1k0byq22DhjPavF 9S/PWS3OLjvIZvH/0WtWi6O/CyxevzC06F1wlc2i//FrZouvh1cwWrx5uJnRYtPja6wWH3vu sVpc3jWHzeJz7xFGixnn9zFZXDzlanH4TTurxck/vYwWHcsYLVbt+sNosfGrh4OYx/sbrewe sxsusnj8fX6dxWPnrLvsHptWdbJ53Lm2h81j85J6j74tqxg9tl+bx+yx+XS1x+dNcgHcUVw2 Kak5mWWpRfp2CVwZN9/uYirYL10x9e4dxgbGc2JdjJwcEgImEtc/TWSBsMUkLtxbz9bFyMUh JLCIUWLFyy4mCOcXo8TXfwvAqtgErCQmtq9iBEmICKxgkpj+ZB87iMMssJFF4tmaRnaQKmGB SIlLn7eygdgsAqoS82edB4vzCnhInHx+gglin5zEyWOTWUFsTgFPiQ2vT4HVCwHVdP/uZZnA yLuAkWEVo2hqQXJBcVJ6rqFecWJucWleul5yfu4mRnB0PJPawbiyweIQowAHoxIPr8f7CaFC rIllxZW5hxglOJiVRHiZYieGCvGmJFZWpRblxxeV5qQWH2KU5mBREuc9me8TKiSQnliSmp2a WpBaBJNl4uCUamA80fJY3PzgWjmDju8X7tdvrD7ZdeJL/gWtH4Fe/xTmfe5bs06EVyuhPP0T +47q9FVKSRyM2yI/SbVYTG5+dC6sT/bsIgXZUj7/+8uLGXYd/azcbS+wPX5JN+t/kQt+/xeL /dlzIFIs6Z7hgQ+mNtoNepasQZazd6zMfH7HWq6teEP46uZpYfVKLMUZiYZazEXFiQCg8P4o igIAAA== 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 Cc: Kukjin Kim Cc: Doug Anderson Cc: Javier Martinez Canillas Cc: Andreas Faerber Cc: Sachin Kamat Signed-off-by: Thomas Abraham Signed-off-by: Bartlomiej Zolnierkiewicz --- 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..c64cec3 100644 --- a/arch/arm/boot/dts/exynos5250-arndale.dts +++ b/arch/arm/boot/dts/exynos5250-arndale.dts @@ -560,3 +560,7 @@ status = "okay"; samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>; }; + +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 4fe186d..4b9f9ce 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -414,6 +414,10 @@ }; }; +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; + &pinctrl_0 { max77686_irq: max77686-irq { samsung,pins = "gpx3-2"; diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index b7f4122..b23deda 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -277,6 +277,10 @@ vdd_pll-supply = <&ldo8_reg>; }; +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; + &i2c_0 { status = "okay"; samsung,i2c-sda-delay = <100>; diff --git a/arch/arm/boot/dts/exynos5250-spring.dts b/arch/arm/boot/dts/exynos5250-spring.dts index d03f9b8..38b54d9 100644 --- a/arch/arm/boot/dts/exynos5250-spring.dts +++ b/arch/arm/boot/dts/exynos5250-spring.dts @@ -99,6 +99,10 @@ vdd_pll-supply = <&ldo8_reg>; }; +&cpu0 { + cpu0-supply = <&buck2_reg>; +}; + &i2c_0 { status = "okay"; samsung,i2c-sda-delay = <100>; 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 */