From patchwork Tue Mar 17 09:36:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 450910 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0728714007F for ; Tue, 17 Mar 2015 20:37:29 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=sru4YNVr; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932810AbbCQJh1 (ORCPT ); Tue, 17 Mar 2015 05:37:27 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34699 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932242AbbCQJhP (ORCPT ); Tue, 17 Mar 2015 05:37:15 -0400 Received: by wibg7 with SMTP id g7so43777298wib.1; Tue, 17 Mar 2015 02:37:13 -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=sDtItUJl8ZOCZkN4NIFxHu6J+XJW4fRikvwM6Mr6nMA=; b=sru4YNVr3qh+QhEbFIdXnRJksn6gx3rRZ8dnyebHgDbrxwRv1Es9Fz8cA+yoaiqD/l baRr4l90na+HT7dET4Gvkmqqmu3q9EF44z5pYbnQptLM9a8kqK6WzdJVBvSp8PhjY9J1 wPgkmok/0kW97oSMHxngBDAbSqTQH/bHtn/h6QFqMuN69r/9ioT0m7kMw1RUwpPY+aFy aPWVYan9mpHJI4hUPrjlYviOovDpLOnxyf8//nyCsDVossRx/PnsQdEYdHKwA9IRF4w9 uKEiV4U26jiIVQpd5/WekXIGq3FL7Qxj+DMieJqtsVOQ7fGBCa7K1UR4mn0JjJXLO/eN nygw== X-Received: by 10.180.91.107 with SMTP id cd11mr11680078wib.61.1426585033454; Tue, 17 Mar 2015 02:37:13 -0700 (PDT) Received: from cizrna.lan ([109.72.12.78]) by mx.google.com with ESMTPSA id q10sm19113700wjr.41.2015.03.17.02.37.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 02:37:12 -0700 (PDT) From: Tomeu Vizoso To: linux-tegra@vger.kernel.org Cc: Mikko Perttunen , Tomeu Vizoso , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Stephen Warren , Thierry Reding , Alexandre Courbot , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/8] of: Add binding for NVIDIA Tegra ACTMON node Date: Tue, 17 Mar 2015 10:36:11 +0100 Message-Id: <1426584991-11110-2-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426584991-11110-1-git-send-email-tomeu.vizoso@collabora.com> References: <1426584991-11110-1-git-send-email-tomeu.vizoso@collabora.com> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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 Reviewed-by: Alexandre Courbot --- v6: * Wrap a few lines at 80 * Fix paths to other bindings * Remove operating-points property v2: * Add operating-points property --- .../devicetree/bindings/arm/tegra/actmon.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 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..adb60da --- /dev/null +++ b/Documentation/devicetree/bindings/arm/tegra/actmon.txt @@ -0,0 +1,28 @@ +Tegra124 Activity Monitor + +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@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"; + };