From patchwork Wed Oct 29 14:50:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 404662 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 3E28014008B for ; Thu, 30 Oct 2014 01:51:48 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933487AbaJ2Ovb (ORCPT ); Wed, 29 Oct 2014 10:51:31 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:34190 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932962AbaJ2Ov2 (ORCPT ); Wed, 29 Oct 2014 10:51:28 -0400 Received: by mail-wi0-f180.google.com with SMTP id hi2so4823836wib.1 for ; Wed, 29 Oct 2014 07:51:27 -0700 (PDT) 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=Fla7ZI7uCipXk6JLG4LvjyuXnuCwN5zfAAAILQuz+WA=; b=E2wC0YlzDeodnp1Df+sSrRRvxdbU+4Al5xiCXn90SFtjwXylGqkJw1caJiA+7u1SSM qYrikuiQAbLk37f/mLaH4iphBf+Z542CSexSWsNajQpCUDEzPmiTXSC+bAWzoBZadxsK HBWAcWOnxw3kLOU86UKvf7Y7bbV4bASIP/XpJ0DM6PUQA8q1cshfOfV0LaCr6gN/shKy rZnVkZanTpEZY791tcGSz6NOYRTM+iPzPxLXim68SB14s6+DYqbAAJvyBGYopbdzkTCk ZnlIZoS3tZKLbWyCIvjDUmfFTDFNstKXBz4+HnHwLWukKXCe3S9yXdvD+qLwM4VVDafR njjQ== X-Received: by 10.194.60.109 with SMTP id g13mr12272114wjr.109.1414594287501; Wed, 29 Oct 2014 07:51:27 -0700 (PDT) Received: from cizrna.lan (37-48-36-243.tmcz.cz. [37.48.36.243]) by mx.google.com with ESMTPSA id ge1sm18981866wib.4.2014.10.29.07.51.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Oct 2014 07:51:26 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@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 Subject: [PATCH 1/3] of: Add binding for NVIDIA Tegra ACTMON node Date: Wed, 29 Oct 2014 15:50:11 +0100 Message-Id: <1414594232-15684-2-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1414594232-15684-1-git-send-email-tomeu.vizoso@collabora.com> References: <1414594232-15684-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 --- .../devicetree/bindings/arm/tegra/actmon.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 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..593683f --- /dev/null +++ b/Documentation/devicetree/bindings/arm/tegra/actmon.txt @@ -0,0 +1,26 @@ +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 + +Example: + actmon@0,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"; + };