From patchwork Fri Jan 18 13:23:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 2002701 Return-Path: X-Original-To: patchwork-linux-pm@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 A9FC43FD86 for ; Fri, 18 Jan 2013 13:23:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751712Ab3ARNX2 (ORCPT ); Fri, 18 Jan 2013 08:23:28 -0500 Received: from mail-da0-f41.google.com ([209.85.210.41]:48651 "EHLO mail-da0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618Ab3ARNX1 (ORCPT ); Fri, 18 Jan 2013 08:23:27 -0500 Received: by mail-da0-f41.google.com with SMTP id e20so1638620dak.28 for ; Fri, 18 Jan 2013 05:23:27 -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=O8WUAPHjE3GU0ISFa3ypwoZTO96aoufaKGu/ZjvyY08=; b=eDg30fFaXhOrjb8DwmIo5ARBoya9wJcnqdCWHZyJpyPYC+HLJlxXJk39vbN9GBrkwD XHZkvsEKS4R9U5LLX3T189qP8UFxETZ1kVsQyB3p7T11l2t4S85+mZ4tpbHDjTY7kt2m 48GhruXj+O8F/0eR40JQnEtdLKGQ5dCK7Y4xRBqVU5WCTgwhMDSLxI4q2hJDx29sOlva 7/uow7uQEgRh4rztbnqri1mUEpECIK6uHT7vHgc7XDxHSjGn0m36kKy+6DDefp5EWNLP l5rDxfd1gxjqX2TGYRevNSQMpSs4H6ZJn4JkIVzTvl5WlmkPxXmfAKiV+L2tze2UpcJ1 QOIg== X-Received: by 10.68.191.5 with SMTP id gu5mr5229418pbc.145.1358515406971; Fri, 18 Jan 2013 05:23:26 -0800 (PST) Received: from ubuntu.ubuntu-domain ([122.172.181.158]) by mx.google.com with ESMTPS id a4sm3439124pax.25.2013.01.18.05.23.21 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Jan 2013 05:23:26 -0800 (PST) From: Abhilash Kesavan To: myungjoo.ham@samsung.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, kgene.kim@samsung.com Cc: kyungmin.park@samsung.com, rjw@sisk.pl, jhbird.choi@samsung.com Subject: [PATCH v4 1/4] ARM: EXYNOS5: Add PPMU device tree support Date: Fri, 18 Jan 2013 18:53:14 +0530 Message-Id: <1358515394-7423-1-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1357733199-17206-1-git-send-email-a.kesavan@samsung.com> References: <1357733199-17206-1-git-send-email-a.kesavan@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org PPMU is required by the devfreq driver. Add a device tree node for it. Signed-off-by: Abhilash Kesavan Acked-by: MyungJoo Ham Cc: Jonghwan Choi Cc: Kukjin Kim --- Changes since v3: * Modified the dt bindings as per updated devfreq driver Changes before v3: * No change Tested after merging for-rafael branch of git://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git with for-next branch of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git .../bindings/arm/exynos/ppmu-exynos5.txt | 24 ++++++++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 5 ++++ 2 files changed, 29 insertions(+), 0 deletions(-) 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..06d40d5 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/exynos/ppmu-exynos5.txt @@ -0,0 +1,24 @@ +Exynos5 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. +Exynos5 PPMU driver is used by the exynos5 devfreq driver to control the bus +frequency/voltage. + +Required properties: +- compatible: should be one of the following. + * samsung,exynos5-ppmu - for exynos5250 type ppmu. +- reg: + * physical base address of the Right PPMU and length of memory mapped + region + +Example: +-------- + + ppmu { + compatible = "samsung,exynos5250-ppmu"; + reg = <0x13660000 0x2000>; + }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 30485de..96ef6ed 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -732,4 +732,9 @@ interrupt-parent = <&combiner>; interrupts = <24 1>; }; + + ppmu { + compatible = "samsung,exynos5250-ppmu"; + reg = <0x13660000 0x2000>; /* PPMU_DDR_RIGHT */ + }; };