From patchwork Tue Dec 17 21:41:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Lunn X-Patchwork-Id: 3366061 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 70369C0D4B for ; Tue, 17 Dec 2013 21:42:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1D4120260 for ; Tue, 17 Dec 2013 21:42:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 92C48202C8 for ; Tue, 17 Dec 2013 21:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753095Ab3LQVmF (ORCPT ); Tue, 17 Dec 2013 16:42:05 -0500 Received: from vps0.lunn.ch ([178.209.37.122]:35009 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752795Ab3LQVmE (ORCPT ); Tue, 17 Dec 2013 16:42:04 -0500 Received: from lunn by vps0.lunn.ch with local (Exim 4.80) (envelope-from ) id 1Vt2OQ-0000rw-AH; Tue, 17 Dec 2013 22:41:30 +0100 From: Andrew Lunn To: mark.rutland@arm.com Cc: rjw@rjwysocki.net, Jason Cooper , linux ARM , linux-pm@vger.kernel.org, Sebastian Hesselbarth , Andrew Lunn Subject: [RFC PATCH v5 4/4] mvebu: Dove: Add PMU node for cpufreq driver Date: Tue, 17 Dec 2013 22:41:13 +0100 Message-Id: <1387316473-3250-5-git-send-email-andrew@lunn.ch> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1387316473-3250-1-git-send-email-andrew@lunn.ch> References: <20131204145413.GD29200@e106331-lin.cambridge.arm.com> <1387316473-3250-1-git-send-email-andrew@lunn.ch> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 The cpufreq driver uses the PMU node in the device tree, since it is part of the PMU device. The dove-cpufreq driver needs access to the DDR and CPU clock, which are the two clocks the CPU can use. There is also an interrupt generated when the DFS hardware completes a change of frequencey. Add these to the DT. Signed-off-by: Andrew Lunn Tested-by: Sebastian Hesselbarth --- arch/arm/boot/dts/dove.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index 4c8028513133..42b9810e96c1 100644 --- a/arch/arm/boot/dts/dove.dtsi +++ b/arch/arm/boot/dts/dove.dtsi @@ -136,6 +136,16 @@ marvell,#interrupts = <5>; }; + pmu: pmu@d0000 { + compatible = "marvell,dove-pmu"; + reg = <0xd0000 0x0700>, + <0xd8000 0x0140>; + clocks = <&core_clk 1>, <&core_clk 3>; + clock-names = "cpu", "ddr"; + interrupt-parent = <&pmu_intc>; + interrupts = <0>; + }; + pmu_intc: pmu-interrupt-ctrl@d0050 { compatible = "marvell,dove-pmu-intc"; interrupt-controller;