From patchwork Tue Jul 15 18:34:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 4557111 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 49AA9C0514 for ; Tue, 15 Jul 2014 18:35:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 795AF2017E for ; Tue, 15 Jul 2014 18:35:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6A0E520158 for ; Tue, 15 Jul 2014 18:34:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932836AbaGOSe6 (ORCPT ); Tue, 15 Jul 2014 14:34:58 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:43179 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932828AbaGOSe5 (ORCPT ); Tue, 15 Jul 2014 14:34:57 -0400 Received: by mail-pd0-f176.google.com with SMTP id y10so3155288pdj.21 for ; Tue, 15 Jul 2014 11:34:57 -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=Z+J1cVsdk63j8iPYrd0plLWyC8ZY1Ld36DwTYJxrq8k=; b=VWx7moUCjE7b6M31zuDRAez8/4zSqk95X7EUUd9106BRoXVNsz7FrLA/xQ985Dt0fQ qi/eNijpESypZBMb1bVwKsjzY8Ft9hivRPL56lyhOpIIR3zKU1wR2HhrQitOyL6bQCY7 XsHUMxeVHMTe5SD4tKlkOZGRjpD+5fXbXiCdZN5riYqIuLUw/JdTLnmu36SzjxRZ61FZ jBumQbNH4aXc+NJQvLOWlhfkKE5qiyzUBLqqJTelTVU2FcpnFnvx/NaoO1NGOn+CtJ/i SeLZtucm3QjLw0FfEJ14MDBaC2S4K2jfzhAXLInmFUU0X6Z5IRnl13g6oYUbi/31L+xx clxQ== X-Received: by 10.66.193.5 with SMTP id hk5mr3096040pac.146.1405449296985; Tue, 15 Jul 2014 11:34:56 -0700 (PDT) Received: from localhost.localdomain ([122.167.175.14]) by mx.google.com with ESMTPSA id vk5sm14664746pbc.44.2014.07.15.11.34.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Jul 2014 11:34:56 -0700 (PDT) From: Abhilash Kesavan To: myungjoo.ham@samsung.com, linux-pm@vger.kernel.org, kgene.kim@samsung.com Cc: rjw@sisk.pl, t.figa@samsung.com, kesavan.abhilash@gmail.com, devicetree@vger.kernel.org Subject: [PATCH v3 3/7] ARM: dts: Add PPMU device tree support for Exynos5250 Date: Wed, 16 Jul 2014 00:04:26 +0530 Message-Id: <1405449266-26267-1-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1400779322-4410-4-git-send-email-a.kesavan@samsung.com> References: <1400779322-4410-4-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=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 | 26 ++++++++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 8 ++++++ 2 files changed, 34 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..a6a2eba --- /dev/null +++ b/Documentation/devicetree/bindings/arm/exynos/ppmu-exynos5.txt @@ -0,0 +1,26 @@ +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@0x10C40000 { + compatible = "samsung,exynos5250-int-busfreq"; + reg = <0x10C40000 0x2000 + 0x10C50000 0x2000 + 0x10CB0000 0x2000 + 0x13660000 0x2000>; + }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 834fb5a..5284f00 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -778,4 +778,12 @@ clocks = <&clock CLK_SSS>; clock-names = "secss"; }; + + ppmu@10C40000 { + 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 */ + }; };