Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp721690rdb; Fri, 26 Jan 2024 08:42:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEC7g1cUZCr+ZhJtVTPWcklJPw/dAQN0n+vZV7ZVDcdrON/7lwPMUBLvUTjadZN2rJq5VhO X-Received: by 2002:a17:902:8349:b0:1d8:a5c7:a383 with SMTP id z9-20020a170902834900b001d8a5c7a383mr14880pln.60.1706287335199; Fri, 26 Jan 2024 08:42:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706287335; cv=pass; d=google.com; s=arc-20160816; b=R5sYcRPVeiDlTKAKa/vj1qDApIN61Pw41h3Fr7K74FSByAXgkUfHhA8WXJjd3UM2iI qBvU+RlE0Bnp9p53hVrQnD/PsdKW5sXan/p3XvUAc7wS1mDu0M2LLJqF4VZgtdmtbGII vjRYig9IFUHRWzsovaF0PX2Sxo9yZTFMERXDnUtkIpIcuUHbY9PGKmSE4ohO4rp312m+ jbHN1mIrmdE+5ePvEgZyr8QHZF7GMLhkXKVM3Wh2UBTa3VYLawb2EklFtkqrv0sKPq64 Ra7OkEeglQMPqqZiIhxHoMfZId06ZV+Ih6/kPZI4RWrnMk9HoMZRI1/RoQi57LOjoo5a OOfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OWBbrXOlEMtQrpTERmyWZ5PDzGuH9nl5QnsIjdcviQg=; fh=XsehFTxO15IVQIUb9nhBTwNO6OKwwa8oTUspkX+Xaoc=; b=X69OJ4ATBjA0PaSHaoBIg81InDp4Xt6e7CSQE/OKhFzEazPIRWr+DAzl4B8cmwu1j2 YAJV7LfQmSK0GT2QfwJIdRVeMSTUam3RoLvROMyVYBwR2V+JLc8rXvk+NXRWDWK5dzUv 6YgrntT2Z0j+i3ZOkixZ0BGCccYfTAvaz1oesxGCenjg4gpzk8LebAD8yqy8Kv+YqkDv Y0psSEbIxTSX8Gt3YfQbTcyXMiKWpHHkkPbjiJhPcN6isNg9U85FbkDeUv7zRl2XDJGz BraWxLa7CFTlCBw432ZfDFxei7ifvTN8vWSZd0+TMGGe2o2Gx8W4Doj9aJyztD2Sa1va qgMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QTlmYaPZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x20-20020a170902821400b001c9c83947d1si1329856pln.645.2024.01.26.08.42.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 08:42:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QTlmYaPZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BF9852849D5 for ; Fri, 26 Jan 2024 16:36:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B41731DDD5; Fri, 26 Jan 2024 16:36:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QTlmYaPZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D63391DA22; Fri, 26 Jan 2024 16:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706286960; cv=none; b=lTHtuJmTGpSUA3+yhtEKHbJ0PxPX7B9sDN9pJlr0XymKSCnMoQ4CskgsgQsj9uOJtOXWDwd3m80a3TYbI6IzKqss6K5p4y6oyTS8NfqP+bY4Ex5FNVaisUoyk+Jo55m46QRU+P5M9QEpFIOQhuspjhQFIh5dPKbKstBRQ7ZpC0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706286960; c=relaxed/simple; bh=1CvEZcDRXJkLYSzovAlFWb7VTNYLLAWd7l3AIviMY/0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VFeEh/aFFjqB6Y/NYY5W2xitgPu7puixn11Nq80Mux9jp0vWinprmIwSFoO/jTxqAaWml94CZ6t8weiOJlscVOwbXWeVIhZYHNWNO0HW+DvgesoqVQ36KIM7nR+9gm/tTTbnKWoXKEXt1qChyX6VBpzixiSLTyq2GWvgPg0+gak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QTlmYaPZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59E45C433F1; Fri, 26 Jan 2024 16:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706286958; bh=1CvEZcDRXJkLYSzovAlFWb7VTNYLLAWd7l3AIviMY/0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QTlmYaPZfmk0WzHXYdceMMa/gKFOZmoiQQeszLWFCww0as7M20/nv+JeMMwgXU1t8 0Ocpmgjbg3Hfxyq56UzmzAji+I5+BfkmssrLQmGXH91zqHF4Vl8aTaZV7uWl1jMLY8 SAHKlwS7lXgTm1ZP8hwVePGQzGxCh4xIKMctxnHl23wtrP6IE9O5gl0aQ03urPZt1Z 1mzHGgAUmksymZl3wRtQoZF5ZjDtC0C2a2dhDwZ4P1IYGdXmBk+qUzMKeo3sBRTTVR EZjs5yn5oMEpM+IpbSZR713pFDKjc6rw6WU0txTmbI9NxviioBtVBRYiG7IO4ZjqBc 8f3fgxpGaswEw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rTPBa-00000000808-1LoK; Fri, 26 Jan 2024 17:36:11 +0100 Date: Fri, 26 Jan 2024 17:36:10 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: dts: qcom: sc8280xp: Introduce additional tsens instances Message-ID: References: <20240126-sc8280xp-tsens2_3-v2-1-8504d18828de@quicinc.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240126-sc8280xp-tsens2_3-v2-1-8504d18828de@quicinc.com> On Fri, Jan 26, 2024 at 07:12:45AM -0800, Bjorn Andersson wrote: > The SC8280XP contains two additional tsens instances, providing among > other things thermal measurements for the GPU. > > Add these and a GPU thermal-zone. > > Signed-off-by: Bjorn Andersson > --- > Changes in v2: > - Drop TM/SROT comments > - Remove polling delays, rely on interrupts > - Link to v1: https://lore.kernel.org/r/20240118-sc8280xp-tsens2_3-v1-1-e86bce14f6bf@quicinc.com > --- > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 37 ++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > index febf28356ff8..7bfbb1bd8f4a 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > @@ -4033,6 +4033,28 @@ tsens1: thermal-sensor@c265000 { > #thermal-sensor-cells = <1>; > }; > > + tsens2: thermal-sensor@c251000 { > + compatible = "qcom,sc8280xp-tsens", "qcom,tsens-v2"; > + reg = <0 0x0c251000 0 0x1ff>, > + <0 0x0c224000 0 0x8>; > + #qcom,sensors = <11>; > + interrupts-extended = <&pdc 122 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 124 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; > + > + tsens3: thermal-sensor@c252000 { > + compatible = "qcom,sc8280xp-tsens", "qcom,tsens-v2"; > + reg = <0 0x0c252000 0 0x1ff>, > + <0 0x0c225000 0 0x8>; > + #qcom,sensors = <5>; > + interrupts-extended = <&pdc 123 IRQ_TYPE_LEVEL_HIGH>, > + <&pdc 125 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; These should go before tsens0 based on the unit address. > + > aoss_qmp: power-management@c300000 { > compatible = "qcom,sc8280xp-aoss-qmp", "qcom,aoss-qmp"; > reg = <0 0x0c300000 0 0x400>; > @@ -5212,6 +5234,21 @@ cpu-crit { > }; > }; > > + gpu-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + > + thermal-sensors = <&tsens2 2>; > + > + trips { > + cpu-crit { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; Shall you submit a follow-on patch to set the polling delays to zero for the other thermal zones (cpu, cluster, mem) so that we don't poll for those? Looks good to me otherwise: Reviewed-by: Johan Hovold Johan