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: 6690651 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 6516B9F380 for ; Mon, 29 Jun 2015 17:34:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 689D5204D9 for ; Mon, 29 Jun 2015 17:34:42 +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 432B5204D6 for ; Mon, 29 Jun 2015 17:34:41 +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 1Z9cuT-0001Pf-QF; Mon, 29 Jun 2015 17:31:57 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9crU-0006gS-CP for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2015 17:28:53 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150629_102852_620270_DFB983D6 X-CRM114-Status: GOOD ( 13.86 ) X-Spam-Score: -7.5 (-------) Cc: Doug Anderson , Lukasz Majewski , Kevin Hilman , Heiko Stuebner , linux-pm@vger.kernel.org, Sachin Kamat , linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com, Tomasz Figa , linux-clk@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.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 */