From patchwork Fri Mar 14 19:25:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 3834931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D95859F2BB for ; Fri, 14 Mar 2014 19:30:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5A7D2034C for ; Fri, 14 Mar 2014 19:30:06 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 65D8520340 for ; Fri, 14 Mar 2014 19:30:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOXlw-0002ei-M2; Fri, 14 Mar 2014 19:28:01 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOXlN-0006yf-DH; Fri, 14 Mar 2014 19:27:25 +0000 Received: from devils.ext.ti.com ([198.47.26.153]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOXkI-0006oh-0Q for linux-arm-kernel@lists.infradead.org; Fri, 14 Mar 2014 19:26:27 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2EJPtQY023843; Fri, 14 Mar 2014 14:25:55 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2EJPtY6023120; Fri, 14 Mar 2014 14:25:55 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 14 Mar 2014 14:25:54 -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 s2EJPsA4023337; Fri, 14 Mar 2014 14:25:54 -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 s2EJPst18990; Fri, 14 Mar 2014 14:25:54 -0500 (CDT) From: Dave Gerlach To: , , Subject: [RFC 5/9] ARM: dts: AM4372: Add opp-modifier device entry and add higher OPPs Date: Fri, 14 Mar 2014 14:25:31 -0500 Message-ID: <1394825135-60110-6-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140314_152618_657927_175B9AFB X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: Jisheng Zhang , devicetree@vger.kernel.org, Nishanth Menon , Dave Gerlach , Viresh Kumar , Anson Huang , "Rafael J. Wysocki" , cpufreq@vger.kernel.org, kernel@pengutronix.de, Shawn Guo 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 AM4372. Within this, nodes are defined with the opp-modifier propety that are defined as a list of frequency, offset from base register, and efuse 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 AM4372. Signed-off-by: Dave Gerlach --- arch/arm/boot/dts/am4372.dtsi | 30 ++++++++++++++++++++++++++++++ include/dt-bindings/opp/ti.h | 6 ++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index c6bd4d9..dbaa2e3 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi @@ -9,6 +9,7 @@ */ #include +#include #include "skeleton.dtsi" @@ -33,6 +34,17 @@ compatible = "arm,cortex-a9"; device_type = "cpu"; reg = <0>; + + operating-points = < + /* kHz uV */ + 300000 950000 + 600000 1100000 + 720000 1200000 + 800000 1260000 + 1000000 1325000 + >; + + platform-opp-modifier = <&mpu_opp_modifier>; }; }; @@ -662,6 +674,24 @@ dma-names = "tx", "rx"; }; + opp_modifier: opp_modifier@0x44e10610 { + compatible = "opp-modifier-reg-bit"; + reg = <0x44e10610 0x04>; + + opp,reg-bit-enable-low; + + mpu_opp_modifier: mpu_opp_modifier { + opp-modifier = < + /* kHz offset value */ + 1000000 0 AM43XX_EFUSE_SMA_OPP_NITRO_1GHZ_BIT + 800000 0 AM43XX_EFUSE_SMA_OPP_TURBO_800MHZ_BIT + 720000 0 AM43XX_EFUSE_SMA_OPP_120_720MHZ_BIT + 600000 0 AM43XX_EFUSE_SMA_OPP_100_600MHZ_BIT + 300000 0 AM43XX_EFUSE_SMA_OPP_50_300MHZ_BIT + >; + }; + }; + mcasp0: mcasp@48038000 { compatible = "ti,am33xx-mcasp-audio"; ti,hwmods = "mcasp0"; diff --git a/include/dt-bindings/opp/ti.h b/include/dt-bindings/opp/ti.h index 58436c1..d3717be 100644 --- a/include/dt-bindings/opp/ti.h +++ b/include/dt-bindings/opp/ti.h @@ -19,4 +19,10 @@ #define AM33XX_EFUSE_SMA_OPP_TURBO_800MHZ_BIT (1 << 8) #define AM33XX_EFUSE_SMA_OPP_NITRO_1GHZ_BIT (1 << 9) +#define AM43XX_EFUSE_SMA_OPP_50_300MHZ_BIT (1 << 0) +#define AM43XX_EFUSE_SMA_OPP_100_600MHZ_BIT (1 << 2) +#define AM43XX_EFUSE_SMA_OPP_120_720MHZ_BIT (1 << 3) +#define AM43XX_EFUSE_SMA_OPP_TURBO_800MHZ_BIT (1 << 4) +#define AM43XX_EFUSE_SMA_OPP_NITRO_1GHZ_BIT (1 << 5) + #endif /* __DT_BINDINGS_OPP_TI_H__ */