Message ID | 20240105-fp4-thermals-v1-1-f95875a536b7@fairphone.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-17972-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp6268943dyb; Fri, 5 Jan 2024 06:55:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFq/tv+W+PuAJvDqSZpBVlOXqJB0RndPba7r5N6T/UwoLEH21MMFtVZxn4iMfm1wDyaALRb X-Received: by 2002:a05:6870:3929:b0:205:f103:773 with SMTP id b41-20020a056870392900b00205f1030773mr14143oap.54.1704466549037; Fri, 05 Jan 2024 06:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704466549; cv=none; d=google.com; s=arc-20160816; b=rOv9GTv0Yv+mTLjmpgWxHAUNNJp5ewHw8E0QLpBCTaJOgfCHTWIgPos8kLLwECopBV q0RaeWM8uBE14ZAwPxos2Nr5ug6TXzlaB6d9/dXCLY9/wp+LExBL8QKcf9Qsjr2gPM1Q lk06ZtPWOt9BldRHiWbGPGRpOp99ONJq4cZ2NjnUPtGnXrN2b0eve6HYWyGfq9RrbRht Y3zslASRKoCAd7UfvwbZ+RiJbcxWBrRD4Y64Mtf58BDhdJXfjjB4INs8zpF6/bDIWYra gujkiec7UytFYLSAa7lvifblllbU8MIHKGMs5916/pnpqkVv3OZvBGh4Y9NnzMUFPsiv gixw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=jvqHpSG2cKdnmJ9eXRXA0NxGczv5lsHJ2CQrOmhp7+4=; fh=3mH2ef/VUEdjQnV3Q4zAXe5p9XzLKmCAjpNf8WRIbIM=; b=iQvkEhj2G1chlzZxRoGAwlBmdPIOIJA0Z1hOOl559JtWR2pF3u1/kS+XC9+aqzCC/P STGpUUIzeKIDh3Dbmw47YwQjuMXMV6WXhEJEFoQ9Cs3X/6e0w0zcd3xL3eZg2Op4Ek9e 6frmv4igz9/o0AQn87YnQ1WIoYuLI8UIpf+WmVqAW8Q1lbXHWyLp2gQwHONEj3LFzSUP 2Knup+qvJyTScuIV5NYxjaRwf532tJqc3Kk1w/z9Dfi4J2Hto6HrmJQn3123bg6QpeSq mTjaEJ0PFnIu3TL1X0K5sZbBCZK7J7VMsB4R4GcI7t5uD/X8KuKJaTyflmHKPA55Cnzv eXdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="TQAZM/lL"; spf=pass (google.com: domain of linux-kernel+bounces-17972-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17972-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id oq32-20020a05620a612000b00781711b5778si1801339qkn.107.2024.01.05.06.55.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17972-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="TQAZM/lL"; spf=pass (google.com: domain of linux-kernel+bounces-17972-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17972-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5DC8F1C23784 for <ouuuleilei@gmail.com>; Fri, 5 Jan 2024 14:55:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 074C82E823; Fri, 5 Jan 2024 14:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="TQAZM/lL" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 EB6E32E62D for <linux-kernel@vger.kernel.org>; Fri, 5 Jan 2024 14:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a2821884a09so134618966b.2 for <linux-kernel@vger.kernel.org>; Fri, 05 Jan 2024 06:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1704466480; x=1705071280; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jvqHpSG2cKdnmJ9eXRXA0NxGczv5lsHJ2CQrOmhp7+4=; b=TQAZM/lL5eIxYThN3x0CoCFE4XF6qNwW0Q/68HhpoOc52k2zo3rtZFGB3vTs/o+QvS SqSNzPscDL21Qhf6o0ahbWuQBf35I/H14TmDb9Y3w6Q3KauuDAydhtHoinLFOwG0trH9 TCqxW8jQB+UM600Yc0P2Vc3YJPfboL18suE915J/tip5H6DBR3xS36T6HVdaSUNdjptH takugx60vxz46lJILjrV3I93/GPjbXcDG8aZYFW7aK33Jc75q4DnDUJCvchfv0FVgIPF 15IsQCbisTlZHUo6HPexoAcLIUKvEyy64+gAGcBSDfkzW9JavnTCO+0THgj7DIaMFWk/ /w4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704466480; x=1705071280; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jvqHpSG2cKdnmJ9eXRXA0NxGczv5lsHJ2CQrOmhp7+4=; b=ebCXqjrjcRPi45+6XjZw0ZURGvQF17w977HTPNiZPBbJpODnWpXBLVaXB6I1JEIb8+ AdWWRsD78vdSazPNyMdCcHL6oXYdfqbIdHfBOTQQUTo7ErtrcyWxLa3YMEo11FBOl7u6 wineJYnKHWbMBaXgRFyMIe/RNh0cG0HGwCNqAQ4WecHPKe3F7glfuL8sY+nYqk3rpL5n 439zFUSZA1L7Kg9nnoh/98zW0HB6DfCBF4X2rbjntsFzmuoswZhStKNT/mDMMfbEjAWX 1IkWMbJjZR9VdCSiyMNhIvswPTK5lbxBMG6k5P8aAYuMbma/QvwqP+gDcvPf/qibhN48 4l8g== X-Gm-Message-State: AOJu0YwB8oAU20TyTHo18s80472mTt43Tb++emN2n+Hv2m9Rfc2s1fTK NPr7XeujjIzeVfJYaVx60AmJ5ISjl/8s4A== X-Received: by 2002:a17:906:dfd0:b0:a29:3cad:1c5d with SMTP id jt16-20020a170906dfd000b00a293cad1c5dmr566975ejc.37.1704466480300; Fri, 05 Jan 2024 06:54:40 -0800 (PST) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id a17-20020a1709065f9100b00a2471bb0d11sm963140eju.31.2024.01.05.06.54.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:54:40 -0800 (PST) From: Luca Weiss <luca.weiss@fairphone.com> Date: Fri, 05 Jan 2024 15:54:27 +0100 Subject: [PATCH 1/2] arm64: dts: qcom: sm7225-fairphone-fp4: Add PMK8003 thermals Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240105-fp4-thermals-v1-1-f95875a536b7@fairphone.com> References: <20240105-fp4-thermals-v1-0-f95875a536b7@fairphone.com> In-Reply-To: <20240105-fp4-thermals-v1-0-f95875a536b7@fairphone.com> To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss <luca.weiss@fairphone.com> X-Mailer: b4 0.12.4 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787262715960910873 X-GMAIL-MSGID: 1787262715960910873 |
Series |
More thermal configuration for Fairphone 4
|
|
Commit Message
Luca Weiss
Jan. 5, 2024, 2:54 p.m. UTC
Configure the thermals for the XO_THERM thermistor connected to the
PMK8003 (which is called PMK8350 in software).
The ADC configuration for PMK8350_ADC7_AMUX_THM1_100K_PU has already
been added in the past.
The trip points can really only be considered as placeholders, more
configuration with cooling etc. can be added later.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 25 +++++++++++++++++++++++
1 file changed, 25 insertions(+)
Comments
On 1/5/24 15:54, Luca Weiss wrote: > Configure the thermals for the XO_THERM thermistor connected to the > PMK8003 (which is called PMK8350 in software). > > The ADC configuration for PMK8350_ADC7_AMUX_THM1_100K_PU has already > been added in the past. > > The trip points can really only be considered as placeholders, more > configuration with cooling etc. can be added later. > > Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> > --- > arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 25 +++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > index ade619805519..b7ccfe4011bb 100644 > --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > @@ -112,6 +112,20 @@ active-config0 { > }; > }; > }; > + > + xo-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&pmk8350_adc_tm 0>; > + > + trips { > + active-config0 { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + }; > + }; > }; > }; > > @@ -490,6 +504,17 @@ conn-therm@1 { > }; > }; > > +&pmk8350_adc_tm { > + status = "okay"; > + > + xo-therm@0 { > + reg = <0>; > + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>; > + qcom,ratiometric; > + qcom,hw-settle-time-us = <200>; My ocd would rather see the boolean property at the end anyway Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index ade619805519..b7ccfe4011bb 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -112,6 +112,20 @@ active-config0 { }; }; }; + + xo-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 0>; + + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; }; }; @@ -490,6 +504,17 @@ conn-therm@1 { }; }; +&pmk8350_adc_tm { + status = "okay"; + + xo-therm@0 { + reg = <0>; + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + &pmk8350_rtc { status = "okay"; };