From patchwork Thu May 22 17:21:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 4224981 Return-Path: X-Original-To: patchwork-linux-pm@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 E471FBF90B for ; Thu, 22 May 2014 17:22:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 088CE2038F for ; Thu, 22 May 2014 17:22:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1A332038E for ; Thu, 22 May 2014 17:22:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751733AbaEVRWc (ORCPT ); Thu, 22 May 2014 13:22:32 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:54964 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724AbaEVRWb (ORCPT ); Thu, 22 May 2014 13:22:31 -0400 Received: by mail-pa0-f45.google.com with SMTP id ey11so2773996pad.18 for ; Thu, 22 May 2014 10:22:31 -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=nmaPZPbXkF3mgtR120C1rkvXvy2zkpAiZJAvFTolEo4=; b=U1qcb8LNM7ShGz6Y8iaU9iw92wJ12jocXbFdBiGzQVMACaZCra9dBOYJprq/I++laX Im6HPSb7C4htlnVrkC7g7sqdpad1NnS26ygbazb7pIbFvZ4LDW03fgcfExHdsJ0GLfjA YCDGQoVW259EjsBURJfEPCDMpEeaRdBX5q4L5FebqmuvyXpwCijA23RSTm1eQz+RLdOe aB+5uezpo5KGaTZ5UfbUzd8g5BBIwI7DFCmUJMajtpHagjCpF8Ki1ovOhOINoQmYtuaN foQ+g4SybhzAZ2YWHvFkEc6QnJg0wootjswT/h62v345fa5xx6gYDEGd7FMFqnUZ7ciJ jHVg== X-Received: by 10.68.241.68 with SMTP id wg4mr70017699pbc.66.1400779351244; Thu, 22 May 2014 10:22:31 -0700 (PDT) Received: from localhost.localdomain ([122.171.109.13]) by mx.google.com with ESMTPSA id cj1sm1718316pac.40.2014.05.22.10.22.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 May 2014 10:22:30 -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.org, devicetree@vger.kernel.org Cc: kesavan.abhilash@gmail.com Subject: [PATCH RFC v2 3/7] ARM: dts: Add PPMU device tree support for Exynos5250 Date: Thu, 22 May 2014 22:51:58 +0530 Message-Id: <1400779322-4410-4-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 2.0.0.rc0 In-Reply-To: <1400779322-4410-1-git-send-email-a.kesavan@samsung.com> References: <1400779322-4410-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 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 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 | 27 ++++++++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 8 ++++++ 2 files changed, 35 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..08a4aaf --- /dev/null +++ b/Documentation/devicetree/bindings/arm/exynos/ppmu-exynos5.txt @@ -0,0 +1,27 @@ +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: "samsung,exynos5250-int-busfreq", "samsung,exynos5420-int-busfreq" +- 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-int-busfreq"; + 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 68a3e6f..f20355a 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -750,4 +750,12 @@ clocks = <&clock 348>; clock-names = "secss"; }; + + ppmu { + compatible = "samsung,exynos5250-int-busfreq"; + reg = <0x10C40000 0x2000 /* PPMU_DDR_C */ + 0x10C50000 0x2000 /* PPMU_DDR_L */ + 0x10CB0000 0x2000 /* PPMU_DDR_R */ + 0x13660000 0x2000>; /* PPMU_RIGHT */ + }; };