From patchwork Thu Dec 4 16:14:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5438961 X-Patchwork-Delegate: eduardo.valentin@ti.com 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 A3B50BEEA8 for ; Thu, 4 Dec 2014 16:16:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC4C020272 for ; Thu, 4 Dec 2014 16:16:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EFA5F20265 for ; Thu, 4 Dec 2014 16:16:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932124AbaLDQPn (ORCPT ); Thu, 4 Dec 2014 11:15:43 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:35607 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932541AbaLDQPj (ORCPT ); Thu, 4 Dec 2014 11:15:39 -0500 Received: by mail-wi0-f182.google.com with SMTP id h11so28384689wiw.9 for ; Thu, 04 Dec 2014 08:15:38 -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=MYYlsoaY03WRQdxa6hIweXzB7351IKXHd3rnLI/VEz9RqR6YcsSNyBUbHsMyKpxmty NV1SGt34dbRiqZrSHSW+3Tho3nDimZqJ2GSQvBDMN7VzQmH+/WCT1dyB+rDMoJUsw8lp Y9Xd0uptJf6tMM+MMOIdoEJ8fnjwbHQzmglz+N45Qt/jLyoHW3O+Gohne+tnemFocwG5 aLKpuZurUp98C6pdbnmPxOJ8V1DnDWvKBnQSzdcPTP2zGckFzVvma0fIyPm5wzwpf6WD 2uXahOpZ4qKqSYeBNLJoQAfsGNmLaxPD1wdZxPYhNHZUwPpPzbJaKc0DlZA0y0+GS1C8 +7rw== X-Received: by 10.180.74.68 with SMTP id r4mr22093061wiv.33.1417709738106; Thu, 04 Dec 2014 08:15:38 -0800 (PST) Received: from cizrna.lan (37-48-35-67.tmcz.cz. [37.48.35.67]) by mx.google.com with ESMTPSA id m6sm32391153wix.10.2014.12.04.08.15.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Dec 2014 08:15:37 -0800 (PST) From: Tomeu Vizoso To: linux-pm@vger.kernel.org Cc: Javier Martinez Canillas , Alexandre Courbot , Mikko Perttunen , 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 v3 1/3] of: Add binding for NVIDIA Tegra ACTMON node Date: Thu, 4 Dec 2014 17:14:41 +0100 Message-Id: <1417709696-29281-2-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1417709696-29281-1-git-send-email-tomeu.vizoso@collabora.com> References: <1417709696-29281-1-git-send-email-tomeu.vizoso@collabora.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,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 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 + >; + };