From patchwork Tue Aug 20 17:35:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2847277 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3F1A89F2F4 for ; Tue, 20 Aug 2013 18:33:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CEEE204B4 for ; Tue, 20 Aug 2013 18:33:14 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 03A2F2047E for ; Tue, 20 Aug 2013 18:33:13 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBpr2-0006UB-Ax; Tue, 20 Aug 2013 17:36:28 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBpqs-0003BR-VK; Tue, 20 Aug 2013 17:36:18 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBpqb-00037I-Lz for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2013 17:36:02 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRU00FXABIHB1C0@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2013 18:35:40 +0100 (BST) X-AuditID: cbfec7f4-b7f5f6d000000ff6-42-5213a8eca0f4 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 4A.28.04086.CE8A3125; Tue, 20 Aug 2013 18:35:40 +0100 (BST) Received: from amdc1227.digital.local ([106.116.147.199]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MRU00L3RBJEI280@eusync2.samsung.com>; Tue, 20 Aug 2013 18:35:40 +0100 (BST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH] ARM: dts: exynos4210: Work around lack of cpufreq regulator lookup Date: Tue, 20 Aug 2013 19:35:36 +0200 Message-id: <1377020136-14838-1-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.8.3.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphluLIzCtJLcpLzFFi42I5/e/4Fd03K4SDDA71y1nMP3KO1aL/zUJW ize9HSwWvQuuslmcbXrDbrHp8TVWixnn9zFZLL1+kcliwvS1LBaHVxxgsnh1sI3FYv2M1ywO PB5r5q1h9Fjw+Qq7x+vJExg9Lvf1MnlsXlLv0bdlFaPH501yHhvnhgZwRHHZpKTmZJalFunb JXBlHHjRwlZwka9i+ul+5gbGjdxdjBwcEgImEn8a9bsYOYFMMYkL99azdTFycQgJLGWU+D9z IguE08ck0Tj5AjNIFZuAmsTnhkdsILaIgKrE57YF7CBFzALzmSX2fGsHSwgLhErs6TkBZrMA Fd3b18YOYvMKOEl0/5nABLFOQWLZl7XMExi5FzAyrGIUTS1NLihOSs811CtOzC0uzUvXS87P 3cQICbkvOxgXH7M6xCjAwajEw7uhUDhIiDWxrLgy9xCjBAezkgjvtgygEG9KYmVValF+fFFp TmrxIUYmDk6pBsZAIRmWLzwzuk8ui2Qo5No96dvhyWeERY8FrecJ2nnIVZzv25qMvNfGTc6f 2nfFHd12qOi/lJhxRmrOiX9HwgsTnkr2bWicLK9RdyE0lWFi6YVlwowWYovP2turK8RFhhau XsBb/JpxT3npZnVVEdmGrEb5EsaO/DMzwiRfza5x9Tww/0VWtRJLcUaioRZzUXEiALdwpLYX AgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130820_133601_833173_ABA92D22 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -9.7 (---------) Cc: Mark Rutland , devicetree@vger.kernel.org, Kukjin Kim , Ian Campbell , Pawel Moll , Stephen Warren , Tomasz Figa , Rob Herring , Kyungmin Park , Kumar Gala , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-7.0 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 Exynos cpufreq drivers does not support device tree based regulator lookup, so it can get the VDD ARM regulator only by its name. To get cpufreq working for now, this patch works this around by renaming the regulator in board dts files to vdd_arm, which is the name expected by the driver. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- arch/arm/boot/dts/exynos4210-origen.dts | 7 ++++++- arch/arm/boot/dts/exynos4210-trats.dts | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210-origen.dts b/arch/arm/boot/dts/exynos4210-origen.dts index 382d8c7..46378fe 100644 --- a/arch/arm/boot/dts/exynos4210-origen.dts +++ b/arch/arm/boot/dts/exynos4210-origen.dts @@ -192,7 +192,12 @@ }; buck1_reg: BUCK1 { - regulator-name = "VDD_ARM_1.2V"; + /* + * HACK: The real name is VDD_ARM_1.2V, + * but exynos-cpufreq does not support + * DT-based regulator lookup yet. + */ + regulator-name = "vdd_arm"; regulator-min-microvolt = <950000>; regulator-max-microvolt = <1350000>; regulator-always-on; diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210-trats.dts index 1c164f2..63cc571 100644 --- a/arch/arm/boot/dts/exynos4210-trats.dts +++ b/arch/arm/boot/dts/exynos4210-trats.dts @@ -290,7 +290,12 @@ }; varm_breg: BUCK1 { - regulator-name = "VARM_1.2V_C210"; + /* + * HACK: The real name is VARM_1.2V_C210, + * but exynos-cpufreq does not support + * DT-based regulator lookup yet. + */ + regulator-name = "vdd_arm"; regulator-min-microvolt = <900000>; regulator-max-microvolt = <1350000>; regulator-always-on;