From patchwork Mon Nov 24 12:28:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5365681 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7304C9F2F5 for ; Mon, 24 Nov 2014 12:30:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A351F203C4 for ; Mon, 24 Nov 2014 12:30:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9E4B220394 for ; Mon, 24 Nov 2014 12:30:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751631AbaKXM3j (ORCPT ); Mon, 24 Nov 2014 07:29:39 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:40285 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752152AbaKXM3i (ORCPT ); Mon, 24 Nov 2014 07:29:38 -0500 Received: by mail-wi0-f177.google.com with SMTP id l15so5556914wiw.10 for ; Mon, 24 Nov 2014 04:29:36 -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=hm8nR18zbiFg3utegti4CtJg6ZLlZ201EbDdWqcy2fvuVkEPrmXrkpGSQlJWfFqr5b bgz4/rsFnh/S5atTpVY6LxLEIFcH2FFTzyEX3HMsTNo5MqXcuWQfaA1fLxmeDlKEWvyi F1UHEWAapcwT6rgZAg0SrQTTbn7XBDc5j/zRCjRfp2flnPSbvMWMMh+cdwo5Vayn0Kyh TZO7BSJkOcVmgdhh6AY2s/nJh5YUpHrvPhLCAnvf5dEhtyXam+LqHdlOHnDoTS9GR4qC VdI9s7w0CO7EUDanVQoxoW9A/OppY1Bbrq38ocj16PJ17ZT9+AG/p+LS02O36L+jhGkX hG3w== X-Received: by 10.180.228.37 with SMTP id sf5mr21591381wic.35.1416832176539; Mon, 24 Nov 2014 04:29:36 -0800 (PST) Received: from cizrna.lan (37-48-39-106.tmcz.cz. [37.48.39.106]) by mx.google.com with ESMTPSA id n8sm6187915wjx.0.2014.11.24.04.29.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Nov 2014 04:29:35 -0800 (PST) From: Tomeu Vizoso To: linux-pm@vger.kernel.org Cc: Javier Martinez Canillas , Tomeu Vizoso , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Stephen Warren , Thierry Reding , Alexandre Courbot , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] of: Add binding for NVIDIA Tegra ACTMON node Date: Mon, 24 Nov 2014 13:28:16 +0100 Message-Id: <1416832111-367-2-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1416832111-367-1-git-send-email-tomeu.vizoso@collabora.com> References: <1416832111-367-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 + >; + };