From patchwork Tue Apr 21 15:34:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 6250301 Return-Path: X-Original-To: patchwork-linux-arm@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 82FA2BF4A6 for ; Tue, 21 Apr 2015 15:37:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 69F5F202F2 for ; Tue, 21 Apr 2015 15:37:24 +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 DFAA5202D1 for ; Tue, 21 Apr 2015 15:37:19 +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 1YkaCP-0000qx-Fq; Tue, 21 Apr 2015 15:34:57 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkaCK-0000nO-Pz for linux-arm-kernel@lists.infradead.org; Tue, 21 Apr 2015 15:34:54 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NN5004H6XXFJQ40@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 22 Apr 2015 00:34:27 +0900 (KST) X-AuditID: cbfee61b-f79536d000000f1f-d4-55366e0397e3 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 17.17.03871.30E66355; Wed, 22 Apr 2015 00:34:27 +0900 (KST) Received: from amdc1032.localnet ([106.116.147.136]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NN5003V4XXDN210@mmp2.samsung.com>; Wed, 22 Apr 2015 00:34:27 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Thomas Abraham Subject: Re: [PATCH 0/8] cpufreq: add generic cpufreq driver support for Exynos5250/5800 platforms Date: Tue, 21 Apr 2015 17:34:16 +0200 Message-id: <1679462.DpWxpX0JY5@amdc1032> User-Agent: KMail/4.8.4 (Linux/3.2.0-70-generic-pae; KDE/4.8.5; i686; ; ) In-reply-to: <1429622278-12216-1-git-send-email-b.zolnierkie@samsung.com> References: <1429622278-12216-1-git-send-email-b.zolnierkie@samsung.com> MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEIsWRmVeSWpSXmKPExsVy+t9jQV3mPLNQg6k3RS2uf3nOavH/0WtW i6O/Cyx6F1xls+h//JrZ4uvhFYwWbx5uZrTY9Pgaq8XlXXPYLD73HmG0mHF+H5PF0wkX2SwO v2lntehYxmixatcfRouNXz0cBDz+Pr/O4rFz1l12j02rOtk87lzbw+axeUm9R9+WVYwe26/N Y/b4vEkugCOKyyYlNSezLLVI3y6BK2N/b3lBj0nFi+Ub2BsY32l1MXJySAiYSMw+9JoRwhaT uHBvPVsXIxeHkMB0Ron5v9rZIZxvjBJ31rawgFSxCVhJTGxfBdYhIqAlMXf+VDYQm1ngJIvE 7wveILawQIrE2olv2EFsFgFVie27jrN2MXJw8ApoShyexQsSFhXwlNg5/QDYGE4g+/zll6wg tpCAh8TEWfvB4rwCghI/Jt9jgRgvL7Fv/1RWCFtHYn/rNLYJjAKzkJTNQlI2C0nZAkbmVYyi qQXJBcVJ6blGesWJucWleel6yfm5mxjBMfVMegfjqgaLQ4wCHIxKPLwrJpiGCrEmlhVX5h5i lOBgVhLhFRQyCxXiTUmsrEotyo8vKs1JLT7EKM3BoiTOO0dXLlRIID2xJDU7NbUgtQgmy8TB KdXAaPBl56f886Z6zyr1N9xo4GZcesL6Sk/o9RMz1zc4HCgWn1aqfEC6h/3cX4Pm17Pf+n5r udNW90I1u1P2Ue2TS68v3C96vYa39JPE7iOnlSNlTtyz8t/r+DVwuscb89vbi69b+0o6fmWr E9XSXXZFMLtGq7hn9kLZ8Fmvvwie7Pw4vVH8SrbsaiWW4oxEQy3mouJEALBMDoWlAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150421_083452_993664_E04246C3 X-CRM114-Status: GOOD ( 17.92 ) X-Spam-Score: -5.0 (-----) Cc: Lukasz Majewski , Kukjin Kim , Mike Turquette , Heiko Stuebner , Kevin Hilman , linux-pm@vger.kernel.org, Viresh Kumar , Tomasz Figa , linux-kernel@vger.kernel.org, Chanwoo Choi , Kukjin Kim , linux-arm-kernel@lists.infradead.org, Sylwester Nawrocki , Javier Martinez Canillas , linux-samsung-soc@vger.kernel.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: , 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 On Tuesday, April 21, 2015 03:17:50 PM Bartlomiej Zolnierkiewicz wrote: > Hi, > > This patch series adds generic arm_big_little_dt cpufreq driver > support for Exynos5420/5800 (using the new CPU clock type which > allows it). It also: > - enhances arm_big_little[_dt] driver with CPU cluster regulator > support > - fixes CPU clock configuration data and CPU operating points > setup for Exynos5800 > - adds CPU cluster regulator supplies for ODROID-XU3 board > > This patch series has been tested on Exynos5800 based ODROID-XU3 > board. > > Depends on: > - next-20150330 branch of linux-next kernel tree > - "[PATCH 0/6] cpufreq: use generic cpufreq drivers for Exynos4210 > platform" [1] > - "[PATCH 0/6] cpufreq: use generic cpufreq drivers for Exynos4x12 > platform" [2] > - "[PATCH] cpufreq: exynos: remove dead ->need_apll_change method" [3] > - "[PATCH 0/4] cpufreq: use generic cpufreq drivers for Exynos5250 > platform" [4] > > [1] http://www.kernelhub.org/?msg=721136&p=2 > [2] http://marc.info/?l=linux-pm&m=142868881101873&w=2 > [3] https://lkml.org/lkml/2015/3/27/574 > [4] https://lkml.org/lkml/2015/4/13/611 > > Changes over Thomas' original v12 code: > - split Exynos5420 and Exynos5800 support > - moved E5420_[EGL,KFC]_DIV0() macros to clk-exynos5420.c > - disabled cpufreq if big.LITTLE switcher support is enabled > - enhanced arm_big_little[_dt] driver with CPU cluster regulator > support > - fixed CPU clock configuration data for Exynos5800 > - fixed CPU operating points setup for Exynos5800 > - added CPU cluster regulator supplies for ODROID-XU3 board > > Best regards, > -- > Bartlomiej Zolnierkiewicz > Samsung R&D Institute Poland > Samsung Electronics > > > Bartlomiej Zolnierkiewicz (4): > cpufreq: arm_big_little: add cluster regulator support > ARM: dts: add cluster regulator supply properties for > exynos5422-odroidxu3 > clk: samsung: exynos5800: fix cpu clock configuration data > ARM: dts: Exynos5800: fix CPU OPP > > Thomas Abraham (4): > clk: samsung: exynos5420: add cpu clock configuration data and > instantiate cpu clock > ARM: dts: Exynos5420: add CPU OPP and regulator supply property > ARM: Exynos: use generic cpufreq driver for Exynos5420 > ARM: Exynos: use generic cpufreq driver for Exynos5800 > > .../bindings/cpufreq/arm_big_little_dt.txt | 4 + > arch/arm/boot/dts/exynos5420.dtsi | 38 +++++ > arch/arm/boot/dts/exynos5422-odroidxu3.dts | 8 + > arch/arm/boot/dts/exynos5800.dtsi | 39 +++++ > arch/arm/mach-exynos/exynos.c | 8 + > drivers/clk/samsung/clk-exynos5420.c | 88 ++++++++++- > drivers/cpufreq/arm_big_little.c | 153 +++++++++++++++++--- > include/dt-bindings/clock/exynos5420.h | 2 + > 8 files changed, 320 insertions(+), 20 deletions(-) If you are using exynos5420-arndale-octa.dts, exynos5420-peach-pit.dts, exynos5420-smdk5420.dts or exynos5800-peach-pi.dts please use the attached patch instead of patch #2/8. Sorry for the inconvenience. From: Bartlomiej Zolnierkiewicz Subject: [PATCH v2 2/8] ARM: dts: Exynos5420/5800: add cluster regulator supply properties Add cluster regulator supply properties as a preparation to adding generic arm_big_little_dt cpufreq driver support for Exynos5420 and Exynos5800 based boards. Cc: Kukjin Kim Cc: Doug Anderson Cc: Javier Martinez Canillas Cc: Andreas Faerber Cc: Sachin Kamat Cc: Thomas Abraham Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 8 ++++++++ arch/arm/boot/dts/exynos5420-peach-pit.dts | 8 ++++++++ arch/arm/boot/dts/exynos5420-smdk5420.dts | 8 ++++++++ arch/arm/boot/dts/exynos5422-odroidxu3.dts | 8 ++++++++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 8 ++++++++ 5 files changed, 40 insertions(+) Index: b/arch/arm/boot/dts/exynos5420-arndale-octa.dts =================================================================== --- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts 2015-04-21 16:26:53.022509881 +0200 +++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts 2015-04-21 17:25:30.250396715 +0200 @@ -369,6 +369,14 @@ }; }; +&cpu0 { + cpu-cluster.0-supply = <&buck2_reg>; +}; + +&cpu4 { + cpu-cluster.1-supply = <&buck6_reg>; +}; + &usbdrd_dwc3_1 { dr_mode = "host"; }; Index: b/arch/arm/boot/dts/exynos5420-peach-pit.dts =================================================================== --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts 2015-04-21 16:26:53.022509881 +0200 +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts 2015-04-21 17:26:32.034394727 +0200 @@ -676,6 +676,14 @@ }; }; +&cpu0 { + cpu-cluster.0-supply = <&buck2_reg>; +}; + +&cpu4 { + cpu-cluster.1-supply = <&buck6_reg>; +}; + &i2c_2 { status = "okay"; samsung,i2c-sda-delay = <100>; Index: b/arch/arm/boot/dts/exynos5420-smdk5420.dts =================================================================== --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts 2015-04-21 16:26:53.022509881 +0200 +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts 2015-04-21 17:27:04.338393689 +0200 @@ -420,3 +420,11 @@ }; }; }; + +&cpu0 { + cpu-cluster.0-supply = <&buck2_reg>; +}; + +&cpu4 { + cpu-cluster.1-supply = <&buck6_reg>; +}; Index: b/arch/arm/boot/dts/exynos5422-odroidxu3.dts =================================================================== --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts 2015-04-21 17:23:44.334400124 +0200 +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts 2015-04-21 17:24:05.454399445 +0200 @@ -355,6 +355,14 @@ dr_mode = "otg"; }; +&cpu0 { + cpu-cluster.0-supply = <&buck2_reg>; +}; + +&cpu4 { + cpu-cluster.1-supply = <&buck6_reg>; +}; + &i2c_0 { status = "okay"; Index: b/arch/arm/boot/dts/exynos5800-peach-pi.dts =================================================================== --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts 2015-04-21 16:26:53.030509881 +0200 +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts 2015-04-21 17:27:47.674392295 +0200 @@ -638,6 +638,14 @@ }; }; +&cpu0 { + cpu-cluster.0-supply = <&buck2_reg>; +}; + +&cpu4 { + cpu-cluster.1-supply = <&buck6_reg>; +}; + &i2c_2 { status = "okay"; samsung,i2c-sda-delay = <100>;