Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp83143rdb; Mon, 22 Jan 2024 12:41:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2PXXELGL5un4KTsrSOl6Gge3SO0nzK8ma5/AnivhE7pw9Pnp6jM78dYGJ/xirpKtULosM X-Received: by 2002:a17:906:3082:b0:a28:a7cf:b014 with SMTP id 2-20020a170906308200b00a28a7cfb014mr6155491ejv.2.1705956060326; Mon, 22 Jan 2024 12:41:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705956060; cv=pass; d=google.com; s=arc-20160816; b=ghlyQ6aw9RydXGW8x8R9PRlMZ+L+SyeMiX0dURc2qQ7yN20UDSP57E91js/iHLZ3cL +yzX50ErAxwEI2strAwJs1Cr4/0eZ2ntXzT9NxzDZUK/kIW9F2ODzfYNSn+nu7ecjgDp JZ0ItkfuFwv4wX7f5UtBrhGfOhxoU+ix6RjcfPCcTsFAlbZQnQPo/WiFqRBUqAlpfvS+ t7XyhPDv4/v6uf8dqsALQMwaHgtwRnMZ80KqnG7pA4ZcMjMxr7atHjlSkDWTkhKZByMs BTY7qOdZEPC/fs+holFFIMKtd/0GNrmVY0HtHRFtYPSMTZ13LAcNbPXcq5zjy2x8gFR/ g+Ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from; bh=3UwfzMKsT9RUhcBs5ZtbKOM7/q9Y1oGu7eN9H6yNvAo=; fh=d8hvjnIA2Pl0hjDO21DPTab/Gwi6WRXVJFcQWr+WbVw=; b=bQXsHRtf2trgGwAz7akdLaRoGj6eRNjP6rAhR1GmJHOADMLK34qlxn3mxWnHQS/b8f 2frIXPHDMnL7am1JO1dm/mhWmNS4WCR/zKDOnAoYfWn8JnrhuP/1zODo54CPyxFGov+u BSrJgMRL2gaCLmD3kU7NeTarhpbUq6ULVcQI9GcC1IXQh+KJX3f5jNBT2XtmWShx2GZB gHZl18TgTValjNjYX5EqDw0iyfktygwtDxsPA2QGOnA1uIL0SLJ1fNw5fZMM8XMrcrDd SpbFFMNvUUPWtbAOKGQsRdhQ320jNRmwadHDXK4i+FrcoThPltkOucKZvRULuMNvY05U ei4g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-34129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34129-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z3-20020a05640240c300b0055c62997f71si608339edb.169.2024.01.22.12.41.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 12:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-34129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34129-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B19A1F29798 for ; Mon, 22 Jan 2024 20:41:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9229047A74; Mon, 22 Jan 2024 20:40:45 +0000 (UTC) Received: from luna.linkmauve.fr (luna.linkmauve.fr [82.65.109.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0E4047A53; Mon, 22 Jan 2024 20:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.65.109.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705956045; cv=none; b=I4zcP04Sy2lKyrs8kPw0xmFzE3aszcoLu1MpXZuKeFS5WhTAVHyi0utibevmuO6egU2x0WX1hOrpxldltjEneT3oexjYpbdn9q+FQvt1yhT9OlqDOBgm6mIjsimRlyasY4Cqusij/1jnEOrseqdPD5dK4GpT/VZ7GGK3DHAiZqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705956045; c=relaxed/simple; bh=bAPGFNo77+D9kNCksfSqKSycd65DXYyf8t7nE08TAF8=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=tTwujwy2xOJRUpq4iubghjK2rT1ZvYvh6yUsfF9WjEUL8YuDucwQAq3I4A4AV0QSx0jkaSSVPxnwBowgr8pJPFiDhmo56UTrMPOD6aj44QEreJDurYAdLqd5yl+a6LSSB3F2jb6X8CUPYVR2uGnKKZnnmYddxZf5xQER8k7t90Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr; spf=pass smtp.mailfrom=linkmauve.fr; arc=none smtp.client-ip=82.65.109.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linkmauve.fr 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?q?Tam=C3=A1s=20Sz=C5=B1cs?= , 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(+) -- 2.43.0