Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1366427lqh; Mon, 6 May 2024 05:54:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWwyAcvJMqu/FAiBI+KTpmHIBdMJRUW9erdAdc/j6ntCZGEgBLHFVaE9sAKZgiwtxtHfjIN8pJmBa9HHR3nPQX8C27vHeuFL59nxqyDQ== X-Google-Smtp-Source: AGHT+IFxaXUm4YeZQj6GXQpzYVk8M9gCZcRXIkHbMQ4/IDlSs7zsxW06iDcd9fNz+Wf+r5T6AQx3 X-Received: by 2002:a17:907:7246:b0:a59:b342:3ed5 with SMTP id ds6-20020a170907724600b00a59b3423ed5mr3892611ejc.15.1715000083053; Mon, 06 May 2024 05:54:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715000083; cv=pass; d=google.com; s=arc-20160816; b=C8Br+bGjuw1DwUiFRDA0reEsQx/40pZVv5Sb6JZ08NUvcSrPGRhggA+qg2UsvnyFsi 0fAf//Y3kY1l9Su+La7mZo2VBwBfpcafK7PK/wzUvivBNFTTt1FiTLx/VBiQSfTAB090 jE2lPG7uPJ338e2TLXpa1CpKoBoh8mvEMwJ051BDEZ6BwvEkZCZkdu9xjel1jbhXbVAK t/VNiMNJIQfQALajSvHhRu7LTdce7Ka6tQZMmb9fI/cllV8BK4DKWG10UXMQDQ49nUEV t+fhFejsJhrbZhuO2WSoxD07TM6f3ILg1raUgR8y2VejBDFHGcYppB/jYgh/3NFDtYmx e2hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=IYJUMLyOfuPVkBGsjqvkIOkmksaH29NkjD+X1QlY6WE=; fh=Vu1rd9+YQgWF0VVHDoIBfX46hi2KJxK0/ZJZ4/PvTLU=; b=QaINcOxNNlTatv4UTmFXtHpTF8qU9Sy7G2M0+fuvUph5R/x/bELQ0xi/v9e/JHSyy1 B8/VXLJIK+2IJTL2ycLL1xAP5zQGHkhx0afgXHVcjV97IEjeCSsDOldhCn9Upssp4y7b 60vsPgNKkf5iAPD8K3tfXNxR2g5RMG3IzOwaI1EgUmMAk76RlXWX/4u69LtcjZiKdOYQ MiBJY+/HFO4CYo/gMM3nAMqmJrlNKdkMAvz6BSigUY1PBiDrEodZRbW38uyQNNEMwDE9 8IFvX/BZl7lKers+tyAQXC8pCjb6qV5BY0O9qsUYNLXc6JtJUScJZvPgD2wVdEho3u3g 4qpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BF3fbcQo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-169854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id du17-20020a17090772d100b00a59d2a8b56dsi862256ejc.136.2024.05.06.05.54.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:54:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169854-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BF3fbcQo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-169854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 C48A21F22327 for ; Mon, 6 May 2024 12:54:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A891D5FB9A; Mon, 6 May 2024 12:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BF3fbcQo" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 131966BB29; Mon, 6 May 2024 12:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715000057; cv=none; b=l8QTkWOXFc1UVn4og53tVbAI/RTOhRfTa/9iaJ/6ix4vO08GWdXzHammSoM2ciMz2JnvQxu8wP2raBpPhfxkS+Oijrk7AW33MAikcA4lB/NUHOx34+jVR/MZH7m9Cpm0UoG4WY+Ajxz6Ql9jgDMWTB+QUMENvi/8pv84AuaJatU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715000057; c=relaxed/simple; bh=E29O+zMWl54OXMlXahFL9wvPKNx96W/D2EieMI10Y/w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KHQVro7JaSP8wBlLi44b4jv1ii6pSlsmSD3hlqeIV284RQvu/Y7OS99H6d5Wpn6GaxvFz64RshGTJtTFl4gsGCSbAxWGFKkslUE3feqABrMZlI0bPowuOUnvJUtPsStqmQXEiAd9s4U0bkfI48wttIzTeQLPE2ot1/nuHsc8UAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BF3fbcQo; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-51f29e80800so2020175e87.2; Mon, 06 May 2024 05:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715000054; x=1715604854; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IYJUMLyOfuPVkBGsjqvkIOkmksaH29NkjD+X1QlY6WE=; b=BF3fbcQoIMk3XTJYeL5bDMvtsnGmu+My9/JmRckN6IjsfWsaN37APcJrKTeXzGDLHf eG7kUdnLzpeS2+AhUrcATHPW9YB7m2vChQItecg3TzhaBvJVlCHlWgy0cL8GrII4/835 zEXLOkqXIk2dr/pYVj03aGUHWXiu2DwrbRvO0wJkiBafst4FPt0hXrTcMoVZ4z2fEKrQ ngxc63zvUOrQ0YTRg0Js9a6BaBoXP8j4T0a/CP9rc8kSEaNd5hDIOp3HMYQVWfO7iMqQ GZGZBKsRo0oeuyY3w+Tv3B0kdIZZe2eiJIoPQubCVQTxVCA2LvF4gdvkv3L79IEl04ke 5BUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715000054; x=1715604854; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IYJUMLyOfuPVkBGsjqvkIOkmksaH29NkjD+X1QlY6WE=; b=O88JYHySBcZuCSkEEkUOQw6VZqBj6AZRTfg0T+3vScNGh8Y8tV3PXoZxtXE4ppBWf2 +J1HgvDqTLkPfNnPSlnzYuRyARilllQuJERxyuiwYWiizDgK2AatR3ozE+WJI35zLI/Q Yx14Y26AHpBv+x7dCvGwivPkcbTsPtuL6YUad7FyMCZrIpmht89XqsLHWTWKygvQlrWf P6B1FghXG7dDshfxaB++meFt9o8eXUINtNLOjmeILBcY1o1lDChCqbkqsNgu6kAQJ3yk HZle4e93rI6C/BguVLOgBicqaW8NlGnLAKjGQks47AYhngoHQDMowrDBv9UZIs0QlKEN TmQQ== X-Forwarded-Encrypted: i=1; AJvYcCUYvUUb334/0gme1cf6H1iO9qWVXppxT8MQEtvla43ZTCCQz0wK2cJBBbrNePiY46p0lTDvJsKjISz0aJ/WGGK9rXJxWMJVf6IT9pmdG/SsXUykSLLa2ZTyd2jWn9TlcPCVmxYNfIAqkw== X-Gm-Message-State: AOJu0YwLVxa/Acr3unn+vvvf/vUnpWdOgw1Zgo8AbgIyjuG2c2B5Fzn1 ZbMSrxBDSMZFsZMO/uTdm7JNry0/nLhev/JkQTuxhjHv2kSeALi7rSWqb59Sr69d36i01yKFgwu PJHrzmWIXsvXRTJR1p7JZNmQCouI= X-Received: by 2002:a19:f51a:0:b0:51e:eeb1:f24b with SMTP id j26-20020a19f51a000000b0051eeeb1f24bmr5882309lfb.34.1715000053829; Mon, 06 May 2024 05:54:13 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240506-rk-dts-additions-v4-0-271023ddfd40@gmail.com> <20240506-rk-dts-additions-v4-2-271023ddfd40@gmail.com> <2543817.5xW6y1K4kI@bagend> In-Reply-To: <2543817.5xW6y1K4kI@bagend> From: Alexey Charkov Date: Mon, 6 May 2024 16:54:02 +0400 Message-ID: Subject: Re: [PATCH v4 2/6] arm64: dts: rockchip: enable thermal management on all RK3588 boards To: Diederik de Haas Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Diederik, On Mon, May 6, 2024 at 4:29=E2=80=AFPM Diederik de Haas wrote: > > 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 temperatur= e > > 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 =3D "okay"; > > +}; > > + > > &uart2 { > > pinctrl-0 =3D <&uart2m0_xfer>; > > status =3D "okay"; > > I built a kernel with v3 of your patch set and someone tested it on a ROC= K 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 did= n't > see a change wrt "rockchip,grf". > Should that be done? (asking; I don't know) I'm getting the same. Neither the mainline TSADC driver [1], nor the downstream one [2] seems to use the grf pointer on RK3588 at all. It still works in spite of that warning, although I can't see how (or if) it configures the reset mechanism without those GRF registers. Best regards, Alexey [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree= /drivers/thermal/rockchip_thermal.c#n818 [2] https://github.com/radxa/kernel/blob/stable-5.10-rock5/drivers/thermal/= rockchip_thermal.c#L961