From patchwork Tue May 21 14:25:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 10953915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5172E14B6 for ; Tue, 21 May 2019 14:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4211528714 for ; Tue, 21 May 2019 14:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3656C28A0E; Tue, 21 May 2019 14:25:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E4F8128714 for ; Tue, 21 May 2019 14:25:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=T9LzUL2B0XxEJQMXVnyEkJldJLxGp95kpDqiiIaDQMg=; b=GPJBfoEMgMAsDs FLbftze9qeDdS4WoK38BiIc+WPdK2hLqsfQe8N/yQNHK2CHwl3IQzUTVKddkCWY7H++LtXYaBCS0v 04DxoRP+WGYd9VXLhI8udGjq23u8ha/7yqrabHG5ugsqwDpwY54qxp609leWWk1CbzgRsm6D/4t8t KkSX5FqdZRVZjiiVRiG1274aGNsq7iTqw4TBNhZZ7VVBx+DNMJcNC566qF22pPBrhLJICKduizwgd 1dRC+6hUu9YfbHt92dQxayTfkAvN9OxDWaDxT9RiRJDwCabZ+fBe920pQxUhKITGbbKfNkPfEJnu+ PiHvCJP0qCrSc/tBd2lQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hT5hq-0005h4-Rm; Tue, 21 May 2019 14:25:30 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hT5hl-0005Y3-K4 for linux-arm-kernel@lists.infradead.org; Tue, 21 May 2019 14:25:29 +0000 X-Originating-IP: 90.88.22.185 Received: from localhost.localdomain (aaubervilliers-681-1-80-185.w90-88.abo.wanadoo.fr [90.88.22.185]) (Authenticated sender: miquel.raynal@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 0D0A1FF815; Tue, 21 May 2019 14:25:06 +0000 (UTC) From: Miquel Raynal To: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Mark Rutland Subject: [PATCH resend 0/2] Marvell A7k/A8k thermal throttling Date: Tue, 21 May 2019 16:25:02 +0200 Message-Id: <20190521142504.31558-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190521_072525_957548_B3F12464 X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Antoine Tenart , Maxime Chevallier , Nadav Haklai , Thomas Petazzoni , Miquel Raynal , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, This series works on top of Gregory's series adding both CPUfreq (already merged) and a suitable AP806 clock driver. These two patches can fly as-is and do not depend on Gregory's work to apply and should probably merged independently. With his patches, all the pieces where available to enable thermal throttling on the AP806 embedded in Marvell Armada 7k/8k SoCs. This is just the glue to make it actually work. Patch 1 changes the core numbering in the thermal-zone node to be in sync with the CPU numbering in the DT (from 0 to 3 instead of from 1 to 4). Patch 2 adds trip points and cooling maps to actually enable the feature. Tested with an Armada 7k DB. Thanks, Miquèl Miquel Raynal (2): arm64: dts: marvell: Change core numbering in AP806 thermal-node arm64: dts: marvell: Enable AP806 thermal throttling with CPUfreq .../boot/dts/marvell/armada-ap806-dual.dtsi | 2 + .../boot/dts/marvell/armada-ap806-quad.dtsi | 5 + arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 110 +++++++++++++++--- 3 files changed, 103 insertions(+), 14 deletions(-)