From patchwork Sat Apr 26 20:38:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 4069611 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A9FC6BFF02 for ; Sat, 26 Apr 2014 20:42:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B41E52022A for ; Sat, 26 Apr 2014 20:42:39 +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 C77A620256 for ; Sat, 26 Apr 2014 20:42:38 +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 1We9Nt-0002uO-AD; Sat, 26 Apr 2014 20:39:41 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1We9Nl-0002qY-Qb for linux-arm-kernel@lists.infradead.org; Sat, 26 Apr 2014 20:39:34 +0000 Received: by mail-pa0-f41.google.com with SMTP id kp14so1092087pab.0 for ; Sat, 26 Apr 2014 13:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=K2724p3CLWEgrFRLZXoTdnF4zEDHpQjBLM8uQ+bTBHA=; b=GJaDalCE7NtGyr1HPKrvLnTTB6XxmCAyrNWPXK5eBaYW3yvx6pgtHHhJdvMU20VVQp ql8YS4Z4Zcvdro+7bmuPuCwthknhbvJfJGwiG9xUY4bUMYhNCH9SMqRnSffDw62bGsDt 6onxHjaAVdOirxuUc/ZPljJ/eYNsrWd0VMUp/hs7BeoyP8Ojf5NQTjUQCAi8rX4+U3Qd oeg0Lbk4b7WnN66nrZn6OJRdoQfhUg641nAh56iLOrowaC3xMxcf0TkVgLNKOwyhRJEU 3Jd9PihaJH2/hPimljrlXYuKBG1CsrmFZWYGOW8EKPRwcPO2j8nwwh3yw7Ry4G1WxH1j kD+g== X-Received: by 10.66.102.72 with SMTP id fm8mr15927652pab.86.1398544752709; Sat, 26 Apr 2014 13:39:12 -0700 (PDT) Received: from localhost.localdomain ([122.171.91.187]) by mx.google.com with ESMTPSA id ff4sm61718492pad.24.2014.04.26.13.39.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Apr 2014 13:39:12 -0700 (PDT) From: Abhilash Kesavan To: linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, t.figa@samsung.com, myungjoo.ham@samsung.com, rafael.j.wysocki@intel.com, linux-pm@vger.kernel.or, devicetree@vger.kernel.org Subject: [PATCH RFC 3/8] ARM: dts: Add PPMU device tree support for Exynos5250 Date: Sun, 27 Apr 2014 02:08:43 +0530 Message-Id: <1398544728-2075-4-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398544728-2075-1-git-send-email-a.kesavan@samsung.com> References: <1398544728-2075-1-git-send-email-a.kesavan@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140426_133933_877183_E91A3A65 X-CRM114-Status: GOOD ( 12.68 ) X-Spam-Score: 0.0 (/) Cc: cw00.choi@samsung.com, kesavan.abhilash@gmail.com, b.zolnierkie@samsung.com 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=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 PPMU is required by the exynos5250 devfreq driver. Add a device tree node for it. Signed-off-by: Abhilash Kesavan --- .../bindings/arm/exynos/ppmu-exynos5.txt | 29 ++++++++++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 9 +++++++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/exynos/ppmu-exynos5.txt diff --git a/Documentation/devicetree/bindings/arm/exynos/ppmu-exynos5.txt b/Documentation/devicetree/bindings/arm/exynos/ppmu-exynos5.txt new file mode 100644 index 0000000..fc29664 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/exynos/ppmu-exynos5.txt @@ -0,0 +1,29 @@ +Exynos PPMU driver +------------------- + +Performance events are primitive values used to get performance data. These +events provide information about the behavior of the SoC that can be used +when analyzing system performance. These events are made visible using the +PPMU logic. +Exynos PPMU driver is used by the exynos5 devfreq drivers to control the +bus frequency/voltage. + +Required properties: +- compatible: should be one of the following. + * samsung,exynos5250-ppmu - for exynos5250 type ppmu. + * samsung,exynos5420-ppmu - for exynos5420 type ppmu. +- reg: + * physical base address of the PPMUs (e.g DDR, Right Bus, Left bus etc) + and length of memory mapped region. + +Example: +-------- + + ppmu { + compatible = "samsung,exynos5250-ppmu"; + reg = <0x10C40000 0x2000 + 0x10C50000 0x2000 + 0x10C60000 0x2000 + 0x10CB0000 0x2000 + 0x13660000 0x2000>; + }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 3742331..2bf8369 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -736,4 +736,13 @@ clocks = <&clock 348>; clock-names = "secss"; }; + + ppmu { + compatible = "samsung,exynos5250-ppmu"; + reg = <0x10C40000 0x2000 /* PPMU_DDR_C */ + 0x10C50000 0x2000 /* PPMU_DDR_R1 */ + 0x10CB0000 0x2000 /* PPMU_DDR_L */ + 0x13660000 0x2000 /* PPMU_DDR_RIGHT */ + 0x10C60000 0x2000>; /* PPMU_DDR_CPU */ + }; };