From patchwork Tue Jun 16 21:29:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Huey X-Patchwork-Id: 6620391 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8A4E89F358 for ; Tue, 16 Jun 2015 21:33:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AAD16207EA for ; Tue, 16 Jun 2015 21:33:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84704207E8 for ; Tue, 16 Jun 2015 21:33:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z4yQa-0006fH-5x; Tue, 16 Jun 2015 21:29:52 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z4yQV-0006Y7-JU for linux-arm-kernel@lists.infradead.org; Tue, 16 Jun 2015 21:29:48 +0000 Received: by padev16 with SMTP id ev16so20216660pad.0 for ; Tue, 16 Jun 2015 14:29:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7Z/Si8kzL31Czayagk29C0OgAkK57THmNiIyocxjAu8=; b=FK9PMxP4tmYUcCjkuO60TrhH6OOOfDGcniKHhsh/3RrMVAq/p1ywlISftXRqmFGW6I ZhmuF7Uo9rGrCbxbHlDAdhCLU2UfgpXkWXuY44+fT57NYE4hOlawrqK9h29btrNMAi0l WR5D76wrn9rScfnjjWn6ufUa4aPeDB8NPx78SzRLv1/eTqXk2JnJXpyRIHrBo+BW3wWF HTY763O4Dxl7Qk5mqhW3m+LpFbpfGNPKwynHrAmYYriB3r8p6nQuk94/jU4VBvlyQq/u kROiOv7HP0P/Cd74ilGaQb8TfedjdW0lRaMZUmIjf/L6wuCSDwk2qNZ+x2YU5+k5i8Ju 6rJg== X-Gm-Message-State: ALoCoQn3Ow3sgldbwZLniFLABtWJU0+dwEpAAvvVU7GjYpDQasjRjUVcmjr18biWn0zbbZ92g2Lb X-Received: by 10.66.222.161 with SMTP id qn1mr4366883pac.66.1434490165469; Tue, 16 Jun 2015 14:29:25 -0700 (PDT) Received: from minbar.corp.sfo1.mozilla.com (corp-nat.p2p.sfo1.mozilla.com. [63.245.219.53]) by mx.google.com with ESMTPSA id k5sm2404367pdn.10.2015.06.16.14.29.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Jun 2015 14:29:24 -0700 (PDT) From: Kyle Huey X-Google-Original-From: Kyle Huey To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Stephen Warren , Thierry Reding , Alexandre Courbot , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] ARM: tegra124: pmu support Date: Tue, 16 Jun 2015 14:29:10 -0700 Message-Id: <1434490150-7071-1-git-send-email-khuey@kylehuey.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150616_142947_672820_53BC8F85 X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Kyle Huey , Jon Hunter X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 patch modifies the device tree for tegra124 based devices to enable the Cortex A15 PMU. The interrupt numbers are taken from NVIDIA TRM DP-06905-001_v03p. This patch was tested on a Jetson TK1. Updated for proper ordering and to add interrupt-affinity values. Signed-off-by: Kyle Huey --- arch/arm/boot/dts/tegra124.dtsi | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi index 13cc7ca..de07d7e 100644 --- a/arch/arm/boot/dts/tegra124.dtsi +++ b/arch/arm/boot/dts/tegra124.dtsi @@ -913,41 +913,50 @@ nvidia,xcvr-hsslew = <12>; status = "disabled"; }; cpus { #address-cells = <1>; #size-cells = <0>; - cpu@0 { + A15_0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0>; }; - cpu@1 { + A15_1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <1>; }; - cpu@2 { + A15_2: cpu@2 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <2>; }; - cpu@3 { + A15_3: cpu@3 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <3>; }; }; + pmu { + compatible = "arm,cortex-a15-pmu"; + interrupts = , + , + , + ; + interrupt-affinity = <&A15_0>, <&A15_1>, <&A15_2>, <&A15_3>; + }; + thermal-zones { cpu { polling-delay-passive = <1000>; polling-delay = <1000>; thermal-sensors = <&soctherm TEGRA124_SOCTHERM_SENSOR_CPU>; };