From patchwork Fri Mar 14 19:25:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 3834751 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 35FB5BF540 for ; Fri, 14 Mar 2014 19:26:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5145D20328 for ; Fri, 14 Mar 2014 19:26:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5CE9820340 for ; Fri, 14 Mar 2014 19:26:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755942AbaCNT0d (ORCPT ); Fri, 14 Mar 2014 15:26:33 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:43240 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755935AbaCNT0a (ORCPT ); Fri, 14 Mar 2014 15:26:30 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2EJPt0q023193; Fri, 14 Mar 2014 14:25:55 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2EJPt10018281; Fri, 14 Mar 2014 14:25:55 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 14 Mar 2014 14:25:55 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2EJPtMG023341; Fri, 14 Mar 2014 14:25:55 -0500 Received: from localhost (lta0274052.am.dhcp.ti.com [128.247.71.78]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id s2EJPst18994; Fri, 14 Mar 2014 14:25:54 -0500 (CDT) From: Dave Gerlach To: , , CC: , , , "Rafael J. Wysocki" , Jisheng Zhang , Anson Huang , Shawn Guo , Viresh Kumar , Nishanth Menon , Dave Gerlach Subject: [RFC 6/9] ARM: dts: omap443x: Add opp-modifier entry and add higher OPPs Date: Fri, 14 Mar 2014 14:25:32 -0500 Message-ID: <1394825135-60110-7-git-send-email-d-gerlach@ti.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394825135-60110-1-git-send-email-d-gerlach@ti.com> References: <1394825135-60110-1-git-send-email-d-gerlach@ti.com> MIME-Version: 1.0 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Add an entry for opp_modifier which configures OPPs on omap443x. Within this, nodes are defined with the opp-modifier propety that are defined as a list of frequency, offset from base register, and register value. The CPU node passes a phandle to the appropriate child node to get the correct table. This patch also adds higher eFused OPPs for omap443x. Signed-off-by: Dave Gerlach --- arch/arm/boot/dts/omap443x.dtsi | 16 ++++++++++++++++ include/dt-bindings/opp/ti.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/arm/boot/dts/omap443x.dtsi index 8c1cfad..1c7e730 100644 --- a/arch/arm/boot/dts/omap443x.dtsi +++ b/arch/arm/boot/dts/omap443x.dtsi @@ -9,6 +9,7 @@ */ #include "omap4.dtsi" +#include / { cpus { @@ -20,9 +21,12 @@ 600000 1200000 800000 1313000 1008000 1375000 + 1200000 1388000 >; clock-latency = <300000>; /* From legacy driver */ + platform-opp-modifier = <&mpu_opp_modifier>; + /* cooling options */ cooling-min-level = <0>; cooling-max-level = <3>; @@ -42,6 +46,18 @@ #thermal-sensor-cells = <0>; }; + + opp_modifier: opp_modifier@0x4A002218 { + compatible = "opp-modifier-reg-bit"; + reg = <0x4A002218 0x04>; + + mpu_opp_modifier: mpu_opp_modifier { + opp-modifier = < + /* kHz offset value */ + 1200000 0 OMAP4_EFUSE_HAS_PERF_SILICON_BIT + >; + }; + }; }; }; diff --git a/include/dt-bindings/opp/ti.h b/include/dt-bindings/opp/ti.h index d3717be..cb62c32 100644 --- a/include/dt-bindings/opp/ti.h +++ b/include/dt-bindings/opp/ti.h @@ -25,4 +25,6 @@ #define AM43XX_EFUSE_SMA_OPP_TURBO_800MHZ_BIT (1 << 4) #define AM43XX_EFUSE_SMA_OPP_NITRO_1GHZ_BIT (1 << 5) +#define OMAP4_EFUSE_HAS_PERF_SILICON_BIT (1 << 17) + #endif /* __DT_BINDINGS_OPP_TI_H__ */