From patchwork Tue Mar 12 09:58:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 2254281 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 75F724006E for ; Tue, 12 Mar 2013 09:59:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932554Ab3CLJ7F (ORCPT ); Tue, 12 Mar 2013 05:59:05 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:37664 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932304Ab3CLJ7B (ORCPT ); Tue, 12 Mar 2013 05:59:01 -0400 Received: by mail-ie0-f173.google.com with SMTP id 9so6087422iec.32 for ; Tue, 12 Mar 2013 02:59:00 -0700 (PDT) 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=pqdx+cT2WuCElxfqsfybCh7B5IOOeeY5HYPKRD7HBO8=; b=QvB5ffpKW/RuBQ2yMkP5c+hc4bLM8b3EU3k/ksIdf++iY0oRZR+u4eO5sHGFiWRy6c Cs6L4EhoDK1krRw0PHKyceufj868rSyRDTHZmbHorgEaYLAVDR3p0b2qaHOHk7fMyebO TNkgnUWmGbcLK0sGs4Osq1ycxJYJc4ehE2QXUeihlrekjLukwOLj8BWLQ2nB3I2aWivh AKdosJw+xceYMFC+H1koXaGwk2uLr1n0CEjO4Bn3uvSUa5nPiYlo4JmtVFZCgi2CT2Od 7f4U75AzNCfKaZXB8NIUYTuMCRhefgp3M2WBefHGFc0XJ3ng39zDEX5A09A61wxXCsE1 Eqaw== X-Received: by 10.50.12.193 with SMTP id a1mr11369920igc.24.1363082340055; Tue, 12 Mar 2013 02:59:00 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id dy5sm20446316igc.1.2013.03.12.02.58.54 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 12 Mar 2013 02:58:58 -0700 (PDT) From: Amit Daniel Kachhap To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kukjin Kim , Thomas Abraham , cpufreq@vger.kernel.org, Inderpal Singh , Viresh Kumar , Sylwester Nawrocki , Russell King - ARM Linux Subject: [PATCH V4 4/4] dts: Add cpufreq controller node for Exynos5440 SoC Date: Tue, 12 Mar 2013 15:28:19 +0530 Message-Id: <1363082299-10561-5-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1363082299-10561-1-git-send-email-amit.daniel@samsung.com> References: <1363082299-10561-1-git-send-email-amit.daniel@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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 --- 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), {}, };