From patchwork Mon Jan 22 20:34:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Link Mauve X-Patchwork-Id: 13526266 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2241C46CD2 for ; Mon, 22 Jan 2024 21:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pRheBtQ6H5qMuMJ1Gi40jfWNMxUmNj5+o1SQnmHSJ88=; b=txH1b3X04QCVnG j5oFLQtcZM5G48gu5LQNZZONlHv8WUvPQD5+8Lk2WYKjEHAS49x72bGpsnqJ3MmRntoq4qmlDwTCV kc9nFOSgonoQLI4KmqYvIGQCuZUP4BjDH1knvBGSmcZc6dD3PTILTsiKNNvK0339l9R1/T46R3fYu nlhsQw5V6JOtdPGgZ88Aa1B4whA8MOn3OPQW6y8PzlnfVOvuT6NSQVe6NUewljqGZJytAoO5jGDmD ZcIm/pzERVoJE5br+90WE6af16cSHgArAvk13Wt4OvlYDk5TyhR42TzBA2slp3pwJz6+9hER2W579 3edVVAqQVrUjRLyD3zBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rS1iU-00E9ud-16; Mon, 22 Jan 2024 21:20:26 +0000 Received: from luna.linkmauve.fr ([82.65.109.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rS1iQ-00E9sc-20; Mon, 22 Jan 2024 21:20:23 +0000 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 79E38DDADBF; Mon, 22 Jan 2024 21:35:14 +0100 (CET) From: Emmanuel Gil Peyrot To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Cristian Ciocaltea , =?utf-8?b?VGFtw6Fz?= =?utf-8?b?IFN6xbFjcw==?= , Christopher Obbard , Shreeya Patel , John Clark , Dragan Simic , Chris Morgan , Emmanuel Gil Peyrot , Andy Yan , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Nicolas Frattaroli Subject: [PATCH 0/2] Add the thermal zones of the rk3588 to its dts Date: Mon, 22 Jan 2024 21:34:56 +0100 Message-ID: <20240122203502.3311520-1-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_132022_797301_6AE54FAA X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The driver got added back in 45d7b3867a5cabb97fc31f16122cda8540c3a30c, but the dts never got updated, so here it is! I’ve added it to the rk3588s because that’s where most of the definitions are, but I’ve only tested on a rk3588 so maybe there are subtle changes. The rk3588 TRM also documents slightly different values (in part 1 section 14.5.3) than the driver, but I’ve left the values alone since I have no way to determine which one is (more) correct. Only the CPU is properly mapped, as neither the GPU nor the NPU have been added to the dts for now, I’ve left some TODOs there. All of the thermal zones report almost the same value on my rock-5b board, I’m not sure if this is due to a programming error or if this is to be expected. For instance, after running for a while, all of the zones report 44384 m℃, despite having used neither the GPU nor the NPU. Additionally, the alert and crit temperatures have been arbitrarily chosen based on other dts files, not based on any knowledge of the thermal behaviours of this specific SoC. Emmanuel Gil Peyrot (2): arm64: dts: rockchip: Add the rk3588 thermal zones arm64: dts: rockchip: Enable the tsadc on Rock-5B .../boot/dts/rockchip/rk3588-rock-5b.dts | 4 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 181 ++++++++++++++++++ 2 files changed, 185 insertions(+)