From patchwork Tue Aug 26 08:51:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 35954 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B66C520551 for ; Tue, 26 Aug 2014 08:52:11 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id v1sf49880837yhn.4 for ; Tue, 26 Aug 2014 01:52:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=h9FiXiKIObJCT+wrUMNF+v1MQYXi/yHX6nqPlW5vsAo=; b=aRsLEM1S96O+tRaN6x2BvmdO1348cJK+bsVLydowPNBn/KkSToYOr1T7eKA9XAoWNN EF+EreIF0vj6d//MVbqZb1oGcOFEHxBtGnz5KqEi889oMD9sxaDRibz5kbUZKYJJzdaa Ft0sjlwj8tC+wDIjGYgfT0oQGkoutwoyzEejnHevi3cyXjcc1lAwpa8BvfZLOIdb5VU8 C6E2XQ+ipYP0k69uk5Cga9P9+oav0HnS8sJyfzZRDDoSg4lRr4/rRXqW2I8MQblxypDu EnmzJVVihejfwv3QODaGy3VqeI0XPFGeEN6fHQETMjUdAI3idUFx5DmWidA3Od6e43s0 OBhA== X-Gm-Message-State: ALoCoQnIjXKB6DslyEh8OniuJyM/WaM5KN4pNUuUCXU4EB4Ek+0e/VEa6Gpwjg9qaoQEoH2bKlCr X-Received: by 10.236.133.230 with SMTP id q66mr16323777yhi.36.1409043131545; Tue, 26 Aug 2014 01:52:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.10 with SMTP id u10ls20050qgu.64.gmail; Tue, 26 Aug 2014 01:52:11 -0700 (PDT) X-Received: by 10.220.105.201 with SMTP id u9mr22834042vco.11.1409043131464; Tue, 26 Aug 2014 01:52:11 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id i4si1162497vcr.34.2014.08.26.01.52.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 01:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so16770344vcb.9 for ; Tue, 26 Aug 2014 01:52:11 -0700 (PDT) X-Received: by 10.220.169.72 with SMTP id x8mr30684vcy.45.1409043131335; Tue, 26 Aug 2014 01:52:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp180831vcb; Tue, 26 Aug 2014 01:52:10 -0700 (PDT) X-Received: by 10.70.131.199 with SMTP id oo7mr35257881pdb.95.1409043130460; Tue, 26 Aug 2014 01:52:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si2887093pas.213.2014.08.26.01.52.09 for ; Tue, 26 Aug 2014 01:52:10 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934149AbaHZIwI (ORCPT + 6 others); Tue, 26 Aug 2014 04:52:08 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:49508 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934028AbaHZIwG (ORCPT ); Tue, 26 Aug 2014 04:52:06 -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 s7Q8pfRo018730; Tue, 26 Aug 2014 03:51:41 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7Q8pe8c025343; Tue, 26 Aug 2014 03:51:40 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Tue, 26 Aug 2014 03:51:40 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7Q8pcpA016638; Tue, 26 Aug 2014 03:51:39 -0500 From: Tero Kristo To: , CC: Subject: [PATCH] ARM: dts: omap54xx-clocks: Fix the l3 and l4 clock rates Date: Tue, 26 Aug 2014 11:51:38 +0300 Message-ID: <1409043098-12510-1-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: t-kristo@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Similarly to DRA7, OMAP5 has l3 and l4 clock rates incorrectly calculated. Fixed by using proper divider clock types for the clock nodes. Signed-off-by: Tero Kristo Reported-by: Tomi Valkeinen Tested-by: Tomi Valkeinen --- arch/arm/boot/dts/omap54xx-clocks.dtsi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/omap54xx-clocks.dtsi b/arch/arm/boot/dts/omap54xx-clocks.dtsi index e67a23b..58c2746 100644 --- a/arch/arm/boot/dts/omap54xx-clocks.dtsi +++ b/arch/arm/boot/dts/omap54xx-clocks.dtsi @@ -367,10 +367,12 @@ l3_iclk_div: l3_iclk_div { #clock-cells = <0>; - compatible = "fixed-factor-clock"; + compatible = "ti,divider-clock"; + ti,max-div = <2>; + ti,bit-shift = <4>; + reg = <0x100>; clocks = <&dpll_core_h12x2_ck>; - clock-mult = <1>; - clock-div = <1>; + ti,index-power-of-two; }; gpu_l3_iclk: gpu_l3_iclk { @@ -383,10 +385,12 @@ l4_root_clk_div: l4_root_clk_div { #clock-cells = <0>; - compatible = "fixed-factor-clock"; + compatible = "ti,divider-clock"; + ti,max-div = <2>; + ti,bit-shift = <8>; + reg = <0x100>; clocks = <&l3_iclk_div>; - clock-mult = <1>; - clock-div = <1>; + ti,index-power-of-two; }; slimbus1_slimbus_clk: slimbus1_slimbus_clk {