From patchwork Fri Jul 3 06:11:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory CLEMENT X-Patchwork-Id: 6712891 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2B99FC05AC for ; Fri, 3 Jul 2015 06:12:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2EF6220778 for ; Fri, 3 Jul 2015 06:12:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 52E3920773 for ; Fri, 3 Jul 2015 06:12:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbbGCGM2 (ORCPT ); Fri, 3 Jul 2015 02:12:28 -0400 Received: from down.free-electrons.com ([37.187.137.238]:55216 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754128AbbGCGMR (ORCPT ); Fri, 3 Jul 2015 02:12:17 -0400 Received: by mail.free-electrons.com (Postfix, from userid 106) id AD0C693; Fri, 3 Jul 2015 08:12:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from localhost (von69-1-88-162-9-206.fbx.proxad.net [88.162.9.206]) by mail.free-electrons.com (Postfix) with ESMTPSA id A635F66B; Fri, 3 Jul 2015 08:12:14 +0200 (CEST) From: Gregory CLEMENT To: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory CLEMENT Cc: Thomas Petazzoni , Ezequiel Garcia , linux-arm-kernel@lists.infradead.org, Mike Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Lezcano , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Maxime Ripard , Boris BREZILLON , Lior Amsalem , Tawfik Bayouk , Nadav Haklai Subject: [PATCH RFC 5/5] ARM: mvebu: Update Armada 38x DT for dynamic frequency scaling Date: Fri, 3 Jul 2015 08:11:57 +0200 Message-Id: <1435903917-20486-6-git-send-email-gregory.clement@free-electrons.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435903917-20486-1-git-send-email-gregory.clement@free-electrons.com> References: <1435903917-20486-1-git-send-email-gregory.clement@free-electrons.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In order to support dynamic frequency scaling: - the cpuclk Device Tree node must be added - the clock property of the CPUs must be filled including the clock-latency property. Signed-off-by: Gregory CLEMENT --- arch/arm/boot/dts/armada-380.dtsi | 3 +++ arch/arm/boot/dts/armada-385.dtsi | 6 ++++++ arch/arm/boot/dts/armada-38x.dtsi | 9 +++++++++ 3 files changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/armada-380.dtsi b/arch/arm/boot/dts/armada-380.dtsi index 5102d19cc8f4..f9dbc75bea73 100644 --- a/arch/arm/boot/dts/armada-380.dtsi +++ b/arch/arm/boot/dts/armada-380.dtsi @@ -61,6 +61,9 @@ device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0>; + clocks = <&cpuclk 0>; + clock-latency = <1000000>; + clock-names = "cpu0"; }; }; diff --git a/arch/arm/boot/dts/armada-385.dtsi b/arch/arm/boot/dts/armada-385.dtsi index 8e67d2c083dd..62660dd377be 100644 --- a/arch/arm/boot/dts/armada-385.dtsi +++ b/arch/arm/boot/dts/armada-385.dtsi @@ -61,11 +61,17 @@ device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0>; + clocks = <&cpuclk 0>; + clock-latency = <1000000>; + clock-names = "cpu0"; }; cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <1>; + clocks = <&cpuclk 0>; + clock-latency = <1000000>; + clock-names = "cpu1"; }; }; diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 04ecfe6e2bc6..08409e92f3f3 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -369,6 +369,15 @@ #clock-cells = <1>; }; + cpuclk: clock-complex@18700 { + compatible = "marvell,armada-380-cpu-clock", + "marvell,armada-xp-cpu-clock"; + reg = <0x18700 0xA0>, <0x1c054 0x40>, + <0xe4260 0x8>; + clocks = <&coreclk 1>; + #clock-cells = <1>; + }; + mbusc: mbus-controller@20000 { compatible = "marvell,mbus-controller"; reg = <0x20000 0x100>, <0x20180 0x20>;