Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1353036lqh; Mon, 6 May 2024 05:29:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWghsvLthMd/vBdh4gmeSA0uAL5kuPvRA1tvigwL24VdXoQQdLzrKeB8derQr9n8Yh++1WomSOJ6n+AzvL+8SoFK57D9d95Ne/3c778OA== X-Google-Smtp-Source: AGHT+IF5XmYr0b4qn8Oc8PL37cnkuv1GIX0cpNcCTyKMTqqimHy4BcaQeHJZsieEelBLhYetbMOD X-Received: by 2002:a17:906:757:b0:a59:a7b7:2b90 with SMTP id z23-20020a170906075700b00a59a7b72b90mr5284813ejb.30.1714998554148; Mon, 06 May 2024 05:29:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714998554; cv=pass; d=google.com; s=arc-20160816; b=HF9exLuLvc+o1ZMC3/JEEb0Qzahz7+y5gkBjWRmiEaaZciVppp2dT1PtbnF1iUGm7x o1EtqHS6ePSnfiS2rX0UGdAMpHxuYEdOBUV3O+QLK3AgciRLBGQ8fuEnDResvUUZwxeo 2EXX2Ry1QFeVOzF2zuFrilpo1cSSeY59uz/aV2BvQ9B0O21haeZV/H71NKjuB2xqow/M jqM2dBUe0x3IMO8wRLY/vrvzA4Px0vOFwFzTrajLLzWsrUpZ6Xofk60/vZIXPaEMvqsj zSCCyfe0tLO8OUi7blrPA17cRB88D4KdWXd9vdoO8w27TEcxfbDnOIHSl5IPXrde3F+N XLag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=adS52XGOjAf9NFDpaofMTlIleiOLUvYtp7jAKoj1FWE=; fh=DWtFO+d9moKhF1hwxnXFuph+Z4wdE5OC3TqUL1S/X3A=; b=bns+c25zmuknguF+0wjtpoRGwSt7PF7EzwPgC21ncLASsSZmH6920GxReDF49upq2I 9/pkqqPc1AOdoMb18wQjSkEHHOHd0ah7XVCyde4dVlFNct+bt1mDXqc+TTIEmi4ee15e Fcv1Vi9tA666cU44K6af/PK6CNK9JVrVhTB4HHk4q6Ai4NwKTO5yzpV1jJPvgr3tCUus DpZbcGJB9VelKIkJFhdRSwMfSTfXi2qTHIDeWvNZZCqNP2DpXdGiBLralEMsSxa74nst ldDOYH3YTYWXCeAnAbumv/20gyg0dlFA4qYWbHjvPo+TsbjYmI+dXwwyCE02oPFy1qKx BtKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cknow.org header.s=key1 header.b=SWUc0BpI; arc=pass (i=1 spf=pass spfdomain=cknow.org dkim=pass dkdomain=cknow.org dmarc=pass fromdomain=cknow.org); spf=pass (google.com: domain of linux-kernel+bounces-169811-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cknow.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 jz10-20020a170906bb0a00b00a59c8e62ba6si1497841ejb.215.2024.05.06.05.29.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:29:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169811-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=@cknow.org header.s=key1 header.b=SWUc0BpI; arc=pass (i=1 spf=pass spfdomain=cknow.org dkim=pass dkdomain=cknow.org dmarc=pass fromdomain=cknow.org); spf=pass (google.com: domain of linux-kernel+bounces-169811-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cknow.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 BDBA51F248D4 for ; Mon, 6 May 2024 12:29:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2504D143C61; Mon, 6 May 2024 12:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cknow.org header.i=@cknow.org header.b="SWUc0BpI" Received: from out-184.mta1.migadu.com (out-184.mta1.migadu.com [95.215.58.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04802143C53 for ; Mon, 6 May 2024 12:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998544; cv=none; b=FwTD+MT75m50Eqq3ADBqZNC7gWxzGmM5o8Q7HqZmkg6kEbIMUvDZGA0F14y4njzGUgN4dacPVzVub4U1yEVwth3TzI3zYImGPvrj9id0t6Tpe77YrH7AlNrw5Zc9qb+57Z1seNMDnsdfJRPi6gw5uzrjukNwBtHqtbs2+8ZX2zU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998544; c=relaxed/simple; bh=EGHZPmqvH4r1KctOg6eqewuTMYhyTlB8DsvRBoa8TDs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jJEMrW7kyV8jq405R3pwF1ni9bNJHjL7FPkvrJ7BTUo5ERL6bq7BwFQ2qyw17B3B2eDni2mEWSa3E0/hwQEwXmVd0wp4BqMUFb2Dbvt8r/2fRbRdTDCUvBEKMyYj/uaXB5y2DL4gVB63OUceROQRo8a/QcWV6/XgrVC9ykelnqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow.org; spf=pass smtp.mailfrom=cknow.org; dkim=pass (2048-bit key) header.d=cknow.org header.i=@cknow.org header.b=SWUc0BpI; arc=none smtp.client-ip=95.215.58.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cknow.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1714998540; 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: in-reply-to:in-reply-to:references:references; bh=adS52XGOjAf9NFDpaofMTlIleiOLUvYtp7jAKoj1FWE=; b=SWUc0BpIni3DNRfn8cUmU/S7IH9xdi7XJ4z+ZZRH7gm/RTzYlhrYmjj2zDCQx466aMGh1F eI503oK8ijiOQj72yq1YfIfqmbSol0BmH+lfpAZr8bt2+SBH3XYmo1MMN7Lw4duS+eObGF rF0+s7RsflXzGqVGP70xnWc57uULqOQX4R2EN0PUEvpCoyvsFTIbgU0qPnah7koyOc4wpI aMWIqWYjKMU1X/hoTMTbpUlS0q47KGEi9iqZM/9Nv3Z698c7nV26ZhCUiVbZ/OiaAnwDKg jFbJa3U3eiF3K6rxcQpD/g8H4VvaqaXoGRu8anaYWVJvzAyRV1CGq0NYyAphrA== From: Diederik de Haas To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Alexey Charkov Cc: Daniel Lezcano , Dragan Simic , 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, Alexey Charkov Subject: Re: [PATCH v4 2/6] arm64: dts: rockchip: enable thermal management on all RK3588 boards Date: Mon, 06 May 2024 14:28:50 +0200 Message-ID: <2543817.5xW6y1K4kI@bagend> Organization: Connecting Knowledge In-Reply-To: <20240506-rk-dts-additions-v4-2-271023ddfd40@gmail.com> References: <20240506-rk-dts-additions-v4-0-271023ddfd40@gmail.com> <20240506-rk-dts-additions-v4-2-271023ddfd40@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3764040.TKpFhyqhbS"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Migadu-Flow: FLOW_OUT --nextPart3764040.TKpFhyqhbS Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Diederik de Haas Date: Mon, 06 May 2024 14:28:50 +0200 Message-ID: <2543817.5xW6y1K4kI@bagend> Organization: Connecting Knowledge In-Reply-To: <20240506-rk-dts-additions-v4-2-271023ddfd40@gmail.com> MIME-Version: 1.0 Hi, 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) Cheers, Diederik --nextPart3764040.TKpFhyqhbS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCZjjNAgAKCRDXblvOeH7b bqzGAQD1bM1bOXBrGILEfvogB5p+W1FcHVZbgNHh5ucp7mH02QEAqaUP/WdxYNiG IwPC/uXaAjTKHHAb6H06K4aElQrtvwI= =Nb8T -----END PGP SIGNATURE----- --nextPart3764040.TKpFhyqhbS--