From patchwork Thu Mar 7 04:13:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 2230171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 54063DF223 for ; Thu, 7 Mar 2013 04:18:33 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UDSEf-0000di-Iy; Thu, 07 Mar 2013 04:15:18 +0000 Received: from mail-pb0-f52.google.com ([209.85.160.52]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UDSDl-0000Xe-S3 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2013 04:14:23 +0000 Received: by mail-pb0-f52.google.com with SMTP id ma3so38831pbc.39 for ; Wed, 06 Mar 2013 20:14:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=y219Jvuihxf9SuKJYJfDmytb7+vWCRTdMruX82dVS2E=; b=ItmyusaRHlPLByAha1avFVTONj3xl83/rOq40u+9yZSeAeZJbQWAbta/H7Ja/CACv7 fEVeuHVKGz3oQZCYZrqkw6/mrEI0rRKeRYqRWUe/SXLkPkbCvyht2qt5spWBTD9VxXBA Sal2ZmHz6/VvN5kQuTPl0y1a6R+HPbQ02lEfDt9WdaJw3Dy2TjYCt+n79DSahK299bnY sa6VUWSuUKV7zsPdW8zbEAtLT+0KQH7BKxZ6VClH1lviazisdvwUPMyZSVsrZXFPFagu oSRRrPiSq3dzeBThtm3fabipkHGfZ+3fsjjkrmtMxH+Qmig0VMolV2U+w1Qnii78omqZ EM7g== X-Received: by 10.68.231.135 with SMTP id tg7mr40752943pbc.113.1362629660585; Wed, 06 Mar 2013 20:14:20 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id vd4sm113478pbc.35.2013.03.06.20.14.14 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 06 Mar 2013 20:14:19 -0800 (PST) From: Amit Daniel Kachhap To: linux-pm@vger.kernel.org Subject: [PATCH V3 4/4] dts: Add cpufreq controller node for Exynos5440 SoC Date: Thu, 7 Mar 2013 09:43:47 +0530 Message-Id: <1362629627-10012-4-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1362629627-10012-1-git-send-email-amit.daniel@samsung.com> References: <1362629627-10012-1-git-send-email-amit.daniel@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130306_231422_383958_184EF7AB X-CRM114-Status: GOOD ( 13.70 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (amitdanielk[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.52 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Kukjin Kim , Viresh Kumar , linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, "Rafael J. Wysocki" , linux-samsung-soc@vger.kernel.org, Thomas Abraham , Inderpal Singh , 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 Add cpufreq controller device node for Exynos5440 SoC for passing parameters like controller base address, interrupt and cpufreq table. This node is added outside cpu0 as this driver is now a platform driver and a new device structure is needed. Signed-off-by: Amit Daniel Kachhap --- Changes in V3: * Moved the DT node outside cpu0 node as the driver is now a platform driver. arch/arm/boot/dts/exynos5440.dtsi | 12 ++++++++++++ arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos5440.dtsi b/arch/arm/boot/dts/exynos5440.dtsi index 5f3562a..4b29a5a 100644 --- a/arch/arm/boot/dts/exynos5440.dtsi +++ b/arch/arm/boot/dts/exynos5440.dtsi @@ -63,6 +63,18 @@ }; + cpufreq@160000 { + compatible = "samsung,exynos5440-cpufreq"; + reg = <0x160000 0x1000>; + interrupts = <0 57 0>; + operating-points = < + /* KHZ uV */ + 1200000 1025000 + 1000000 975000 + 800000 925000 + >; + }; + serial@B0000 { compatible = "samsung,exynos4210-uart"; reg = <0xB0000 0x1000>; diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index acaeb14..0a446c4 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -145,6 +145,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { static const struct of_dev_auxdata exynos5440_auxdata_lookup[] __initconst = { OF_DEV_AUXDATA("samsung,exynos4210-uart", EXYNOS5440_PA_UART0, "exynos4210-uart.0", NULL), + OF_DEV_AUXDATA("samsung,exynos5440-cpufreq", 0x160000, + "exynos5440-cpufreq", NULL), {}, };