From patchwork Mon Apr 27 15:00:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 6281421 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@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 01845BF4A6 for ; Mon, 27 Apr 2015 15:02:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8EC042012E for ; Mon, 27 Apr 2015 15:01:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3BEEC201F4 for ; Mon, 27 Apr 2015 15:01:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964867AbbD0PA2 (ORCPT ); Mon, 27 Apr 2015 11:00:28 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:55756 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964864AbbD0PA1 (ORCPT ); Mon, 27 Apr 2015 11:00:27 -0400 Received: from ayla.of.borg ([84.193.93.87]) by baptiste.telenet-ops.be with bizsmtp id M30H1q00P1t5w8s0130Hng; Mon, 27 Apr 2015 17:00:24 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1YmkW9-00029e-5l; Mon, 27 Apr 2015 17:00:17 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1YmkW9-0007mF-Rs; Mon, 27 Apr 2015 17:00:17 +0200 From: Geert Uytterhoeven To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Marc Zyngier Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] ARM: gic: Document Power and Clock Domain optional properties Date: Mon, 27 Apr 2015 17:00:11 +0200 Message-Id: <1430146811-29862-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 On some SoCs, the GIC may be part of a PM Domain (hardware Power and/or Clock Domain). Document the related optional DT properties. Note: As the current GIC driver doesn't support Runtime PM yet, PM Domain constraints must be handled elsewhere in e.g. platform code. Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- To preserve DT stability, we would like to add these properties to the affected shmobile dtsi files. On Thu, Mar 26, 2015 at 11:39 AM, Marc Zyngier wrote: > On 25/03/15 21:19, Geert Uytterhoeven wrote: >> I would like to add the clock and GIC dependency on the clock in the DTS now, >> for reasons of DTS stability. But that means I need a temporary workaround >> to avoid the clock from being disabled, until the GIC driver handles this. >> >> I don't expect a fix for the GIC code to just show up magically. I just wanted >> you to be aware of the problem. GIC is not the only problematic module here, >> there are others, cfr. the last slide of [2]. > > As long as there is an agreement from the DT people on the presence of > that extra property in the GIC node, I'm happy with that. I'd like it to > be documented though. Full thread at http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/331876.html Documentation/devicetree/bindings/arm/gic.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/gic.txt b/Documentation/devicetree/bindings/arm/gic.txt index 2da059a4790cb3c6..b21113b35f085f27 100644 --- a/Documentation/devicetree/bindings/arm/gic.txt +++ b/Documentation/devicetree/bindings/arm/gic.txt @@ -58,6 +58,14 @@ Optional regions, used when the GIC doesn't have banked registers. The offset is cpu-offset * cpu-nr. +- power-domains : A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle, used when the GIC + is part of a Power or Clock Domain. + +- clocks : A phandle and clock specifier as defined by bindings of + the clock controller specified by phandle, used when the GIC + is part of a Clock Domain. + Example: intc: interrupt-controller@fff11000 {