From patchwork Tue Dec 9 13:15:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 419051 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6FAE31400D2 for ; Wed, 10 Dec 2014 00:17:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757232AbaLINQM (ORCPT ); Tue, 9 Dec 2014 08:16:12 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:40004 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757230AbaLINQJ (ORCPT ); Tue, 9 Dec 2014 08:16:09 -0500 Received: by mail-wi0-f173.google.com with SMTP id r20so7836457wiv.6 for ; Tue, 09 Dec 2014 05:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=on9bpFLVRalapTc3x4BN5LAd/QqhbbmnwqRyWJx1I6w=; b=maMKAkQ0UdlfGu1TX2+MNoQ4qW+xRJCnBaxXUMP/MPSVz1caTGePomNjAIJ5caAMWn w5xaMiLePbfiBYOmOvO6usXkpf3Yrab1YLc4DpukAti78496/e6izngguBP61l12TRcZ bAHM0hGrT2mx/gsjoit1blTVsz7poaX/l4N577CznXx4fHeFg+ZepO6RTJ3fCruvI8FZ l3V44RE733U3frIg7BYIXeFf2XeAwteD0GKQaQ0UsDR7WGtE8JPEstiSFbe2NKrdS7+d DVgRtL/mTXXOom2tokr1UPnJfPNPgn5OY44yeSWUon6EiANZFhyXOGj3/MYuWQRGKd4H uEzg== X-Received: by 10.194.7.97 with SMTP id i1mr4728195wja.31.1418130967346; Tue, 09 Dec 2014 05:16:07 -0800 (PST) Received: from cizrna.lan (37-48-35-115.tmcz.cz. [37.48.35.115]) by mx.google.com with ESMTPSA id ef1sm13815720wic.0.2014.12.09.05.16.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Dec 2014 05:16:06 -0800 (PST) From: Tomeu Vizoso To: linux-pm@vger.kernel.org Cc: Javier Martinez Canillas , Alexandre Courbot , Mikko Perttunen , Arto Merilainen , Tomeu Vizoso , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Stephen Warren , Thierry Reding , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/3] of: Add binding for NVIDIA Tegra ACTMON node Date: Tue, 9 Dec 2014 14:15:04 +0100 Message-Id: <1418130912-24725-2-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1418130912-24725-1-git-send-email-tomeu.vizoso@collabora.com> References: <1418130912-24725-1-git-send-email-tomeu.vizoso@collabora.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This block gathers statistics about various counters and can be configured to fire interrupts when thresholds are crossed. Signed-off-by: Tomeu Vizoso --- v2: * Add operating-points property --- .../devicetree/bindings/arm/tegra/actmon.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/tegra/actmon.txt diff --git a/Documentation/devicetree/bindings/arm/tegra/actmon.txt b/Documentation/devicetree/bindings/arm/tegra/actmon.txt new file mode 100644 index 0000000..b4069df --- /dev/null +++ b/Documentation/devicetree/bindings/arm/tegra/actmon.txt @@ -0,0 +1,38 @@ +Tegra124 Activity Monitor driver + +Required properties: + +- compatible: should be "nvidia,tegra124-actmon" +- reg: offset and length of the register set for the device +- interrupts: standard interrupt property +- clocks: Must contain a phandle and clock specifier pair for each entry in clock-names. See ../clock/clock-bindings.txt for details. +- clock-names: Must include the following entries: + - actmon + - emc +- resets: Must contain an entry for each entry in reset-names. See ../reset/reset.txt for details. +- reset-names: Must include the following entries: + - actmon +- operating-points: Supported operating points. See ../power/opp.txt for details. + +Example: + actmon@6000c800 { + compatible = "nvidia,tegra124-actmon"; + reg = <0x0 0x6000c800 0x0 0x400>; + interrupts = ; + clocks = <&tegra_car TEGRA124_CLK_ACTMON>, + <&tegra_car TEGRA124_CLK_EMC>; + clock-names = "actmon", "emc"; + resets = <&tegra_car 119>; + reset-names = "actmon"; + operating-points = < + /* kHz uV */ + 102000 800000 + 204000 800000 + 300000 820000 + 396000 850000 + 528000 880000 + 600000 910000 + 792000 980000 + 924000 1010000 + >; + };