Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1365352lqh; Mon, 6 May 2024 05:52:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaxPQt/j9fTj8IooNlb2nvCPkKBTKGp7uM6yCBIWzuO7JkC6DiLZ+e4mZfTVqufCJvg9a5g1lIsdWowRqs+eqNOLkyssgerw8oEZ7I7Q== X-Google-Smtp-Source: AGHT+IFjmOnzSUzopvh34g4jmq93hOozX3WgvLdRxUzOpHBoPf8eKTo5h2G0cv1ABv++2vHZef1G X-Received: by 2002:a50:8ad5:0:b0:56e:2c34:cfec with SMTP id k21-20020a508ad5000000b0056e2c34cfecmr6529231edk.7.1714999954491; Mon, 06 May 2024 05:52:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714999954; cv=pass; d=google.com; s=arc-20160816; b=ixoR39WAIy8d8MunZEk8DJ22/IVsUMQYaLu8JmJbs3iT2EN6aVGzPjykpX4hVDlWTh no9bXpFoR2GqXmarH3GAfiQw1TLKXO2EyxCY/478uzbEXQsOep9sEH2qR1GLEWfsjZyG tkXqml6aUe4dOAiyiuWfi1w5iAD4T9MYni2hGLHr4kilixKS6M3qqZ646cJgOs/oKjm/ riCD4zrYugfEZgt+SmfeOv8xKWs/7dpd/hyD6N05O4lH6Zylb7mcwU8f8WRv7ftOqbnI zCHRo2mMZ/QNY5i/TcL97DHGmODg/LCxUw+E7qZ8YQFtC5DPnGYSU1C8NjN6B4oO7KL8 Xqfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:dkim-signature:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=IcAm2WrGck6byiy+v8QNJrY6eKW4T+0LgdGn5v1lLbM=; fh=CbP/7Qyzuw5G8SZp8w5RvGQZoxc4KVj9j97fCf/8fXY=; b=GZuOEWA4AJylU/Tt2GM4fVrg4+EBzHtdBa8YXYt1LomdLQ3Lpt+gl7gNLsBR6vN0Hd yYPJOiuWR3B37bsuTFirKIup/8RsYupEwZIzusXCizh4qYsOWj47UNPc8FDtiLPBFAjl /htYfEZFf20uzsp3oAd4kurO2m5lr+ljF1U3+pkQCZD1n9IqpF0zPlbn9ddBfyn/Z9lb 5aVI3vf67DIgyr1+KbsVIBW6Lkbe8SQU/0439E+eoEe7rkZBdHHO6AYVFs8q4aQKjVH+ QfM1UsqH7bSP6bsWU0GvQg6XEZMH7puYmNGwkdh5a5a9Ao58F74DlhlxYqm+GLpRkPG/ +jgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=DEhFH1LD; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-169843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169843-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a21-20020a50c315000000b005726d4099fbsi4981932edb.32.2024.05.06.05.52.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:52:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=DEhFH1LD; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-169843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169843-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.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 091F81F2266C for ; Mon, 6 May 2024 12:52:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 335FD76F1B; Mon, 6 May 2024 12:52:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="DEhFH1LD" Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 482FE78685; Mon, 6 May 2024 12:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714999929; cv=none; b=u8vJHgY+JlB97L/zP3Q1tMJROCMN0G9WpwFyd0CpcF1DNVVK4gBnduzYwYeD7ToVp1zdC67dBB5sxPsUfduu5G6hz5Hoxzg3xNYeaOqXSPnpoCfiUMPgwQ5QFhB+a8/WfVEscmFJHIp8zmdpGhTgBHrDlA03I75Zzn4+HUh1qps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714999929; c=relaxed/simple; bh=FV8UQO0S1djsen3MpBE9cS2jqNvRP6rmoNXoPs4e2Io=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=kUio5pv9aQtktxcGBuJRk/EjF8SyKS86IdX2fc1x7MPwsyN8DDe6wKPmdTnx7e+1w7WGKOtvf6MgI95YVFM+XgyPyAGeeMyGCM1MmVKiseEAcCX529hdAKKbw4ID3dbLBpzrp5s0kJ215oxY5zvuQRAYkGHbDKKWB9zthvTpfIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=DEhFH1LD; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1714999920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IcAm2WrGck6byiy+v8QNJrY6eKW4T+0LgdGn5v1lLbM=; b=DEhFH1LDh4TTBT2TfjjW0xq0TwYRYMMugmJ8I375PFBqP9tG2nTqogmv4k0fmu1eeIawwu 5WCOl3bIj5SxFlkPSplKtRyPzCEZx8KiMznb86aAWsdBlisFba5INw+HNAmtW9pL8PX7o6 mTpC/HKVXzQljAFKtc04q/LUrz7wQacVZEZNQTGnX0vGqN+Q12UbFhlri6Atm0DyDap68p K1BV5hC2SJC7yUlAARVKc+byCwufqGfO6KtYS1eVA5LU7nPIfpms9OG1erjHviTt//SwjP HF0DSW6LbqPSXzLC5bWxwCAnVJNbykTt+tDk1L6fMt0GDVJ58G2Fr4gnEmddxQ== Date: Mon, 06 May 2024 14:52:00 +0200 From: Dragan Simic To: Diederik de Haas Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Alexey Charkov , Daniel Lezcano , Viresh Kumar , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/6] arm64: dts: rockchip: enable thermal management on all RK3588 boards In-Reply-To: <2543817.5xW6y1K4kI@bagend> References: <20240506-rk-dts-additions-v4-0-271023ddfd40@gmail.com> <20240506-rk-dts-additions-v4-2-271023ddfd40@gmail.com> <2543817.5xW6y1K4kI@bagend> Message-ID: X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org Hey Diederik and Alexey, On 2024-05-06 14:28, Diederik de Haas wrote: > On Monday, 6 May 2024 11:36:33 CEST Alexey Charkov wrote: >> This enables the on-chip thermal monitoring sensor (TSADC) on all >> RK3588(s) boards that don't have it enabled yet. It provides >> temperature >> monitoring for the SoC and emergency thermal shutdowns, and is thus >> important to have in place before CPU DVFS is enabled, as high CPU >> operating performance points can overheat the chip quickly in the >> absence of thermal management. >> >> Signed-off-by: Alexey Charkov >> --- >> arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 4 >> ++++ >> 8 files changed, 32 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts >> b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index >> b8e15b76a8a6..21e96c212dd8 100644 >> --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts >> +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts >> @@ -742,6 +742,10 @@ regulator-state-mem { >> }; >> }; >> >> +&tsadc { >> + status = "okay"; >> +}; >> + >> &uart2 { >> pinctrl-0 = <&uart2m0_xfer>; >> status = "okay"; > > I built a kernel with v3 of your patch set and someone tested it on a > ROCK 5B > 'for me' and it had the following line in dmesg: > > rockchip-thermal fec00000.tsadc: Missing rockchip,grf property > > I'm guessing that turned up due to enabling tsadc, but (also) in v4 I > didn't > see a change wrt "rockchip,grf". > Should that be done? (asking; I don't know) Nice catch! As it turns out, having "rockchip,grf" defined isn't needed for the RK3588, so this warning is of somewhat false nature. In more detail, having "rockchip,grf" defined is actually required only for some Rockchip SoCs, e.g. RK356x. I can get this covered in my soon-to-be-submitted device-tree cleanup patch series, if Alexey is fine with that.