Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp235813rdd; Tue, 9 Jan 2024 02:27:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoivnImsFzlHI+HqcM4SFEaYEWCKd3GTQM018xh8ac2oU9U+6ckxGqr9fdFJ6Llhw7FBdR X-Received: by 2002:a9d:6213:0:b0:6db:ffb0:7a4d with SMTP id g19-20020a9d6213000000b006dbffb07a4dmr3398753otj.45.1704796026236; Tue, 09 Jan 2024 02:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704796026; cv=none; d=google.com; s=arc-20160816; b=nM3IQid5XMRfnOT7/ANttSFNFeuwHb9sBwYP7X1ChbtlC7AqKjbsnSXFkQTYns2QGk r+NKyrrvNvFMsYQ1KC8aLTW8TtHepA2WOUEyqaBpX+mxCuUCDYiNff3iy7UbFB70o0Am /oAD11NV84jKifAQMGF1G0pO+co4g487f3W9VwEfVX+ZdzftdLEWteZQ8ig8+6Wr8Jhb hzJ65EtTUSqwGbNW5l4R4akAsVai+rKroN4s5abxK8ITKgHi1KaNsT1vPQk49IM/T+wj 5KEk8XnoXdApv4q/DcOUAKzHgbIiCzLxMgR5t3WWGEYp3nRtAl8W1qVqCG0C1f7moQ67 gKUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=kgqGlkcMY7u56Ey8Ssan/W4yPE2JFQtM3N3GgOR/j04=; fh=QHlD4UvcdH825uF/WTqACG60NbU7H0QqlUijXAtOGco=; b=ZbyQqwu+upQhR+ogySI2F4DCZIqLmcwkWjWYXszo4WrZBwxS4itYe9eJhZvKmc69zh 9YiPVQkOGwpqg91BEqDDuhb5WVRs7THBc53DJNP96eGu9YV5lcrZPB4x8gTCzKzcFVRb HRtHN6sSJ+OSYqNUvQF6hxAfVDcW37C70nzItE205bdg3ywqPRwZyR4P6N65Kz/sUuzC yR2OJ7zxPoPLyY69V0996z3zM4/Q9Zh4W310CpPPnjMHwvvPfSvA8Z3opZzIllIvZfm2 YOoXnDxeZ1KDVZA6hq0GLHprf6uvui58y1Z6M8oiYMWkue65oYtYcMOdoc/smhLcPjkc yTZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gR8WJl1J; spf=pass (google.com: domain of linux-kernel+bounces-20715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n10-20020a05622a11ca00b00429ac3f910fsi310100qtk.168.2024.01.09.02.27.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 02:27:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gR8WJl1J; spf=pass (google.com: domain of linux-kernel+bounces-20715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 000171C2117C for ; Tue, 9 Jan 2024 10:27:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05A85360A3; Tue, 9 Jan 2024 10:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gR8WJl1J" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 C4505360AB for ; Tue, 9 Jan 2024 10:26:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-dbed729a4f2so1966803276.2 for ; Tue, 09 Jan 2024 02:26:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704796015; x=1705400815; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kgqGlkcMY7u56Ey8Ssan/W4yPE2JFQtM3N3GgOR/j04=; b=gR8WJl1J//qv9if6koihIbit0Zd7NxTDX7R0irdnFoqdnSsM5W4AYuMSN/Q1P+Lq9k vc/6hEtrPhFqo9ZNhdcH2Zm/QJ1vQFQOiOU87J6V14C2vYYdc53AZt2Q7JXBnrBUC5Cm FtbqfYYhpdiRIioTF7l2TbUMNd0uz3azs+u7705vmcZ8wqCAcE5DlMTzMZ1FVH8PBtPV nf6oN/wvRmysmK+WpdAgfi2AdzAx1SFcz+WA46hi5WCMIz3JsYjGXCQyc44AkhJsoMLH 1k1VKlpdkFSer1fVr9XSWFbLjya6Hjux4gYI28JqoQzhLn1gtFsuLRS1ZpsFcbBoHt9D HCQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704796015; x=1705400815; h=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=kgqGlkcMY7u56Ey8Ssan/W4yPE2JFQtM3N3GgOR/j04=; b=R1eEdBhD9+wgodt54Oar9Xe6wt0dGPvNRt/S4xldbEnIZMi/DoViET2HZPkF/+NPHi yRpgjqm6PQpecZjkaFDvzy9laDOW6KCf2hU3rFgIcBppUz7BnPuFD1V8LNG5KKKet29I EojAzlKfqZe++1acJGULlB8HJmWiY8NTwTwiMj2E/a4iGQpqTsBQIpZ04f5I9ykTrd7R yfLEdTpg3QxFrYpWZv3E06KCJWR7Uscg16mIIszwtSRT91Y6jjzMWwlgWl54TRCrH6hL 09TEqAzMnX97XI1UuonGCkbEMB7O/kPqVdpMMwDD42uo1hIq78bB95uFlPlENVXLjWp4 x6bw== X-Gm-Message-State: AOJu0YwpWvwdxB6JFrgEkjWL0OeEmzbSfeDxxhjTVPQt/Os8GdmGtgff W5GRtFSa0gJpDSVE1CIv5jxITKA1JDau/RRMVv1/oc070ASavg== X-Received: by 2002:a25:fe10:0:b0:dbe:ab5b:c659 with SMTP id k16-20020a25fe10000000b00dbeab5bc659mr2117007ybe.37.1704796014777; Tue, 09 Jan 2024 02:26:54 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240105-fp4-thermals-v1-0-f95875a536b7@fairphone.com> <20240105-fp4-thermals-v1-2-f95875a536b7@fairphone.com> <18dc5f88-6590-4e2d-948f-fd77f4713f8b@linaro.org> In-Reply-To: <18dc5f88-6590-4e2d-948f-fd77f4713f8b@linaro.org> From: Dmitry Baryshkov Date: Tue, 9 Jan 2024 12:26:43 +0200 Message-ID: Subject: Re: [PATCH 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: Add PM6150L thermals To: Konrad Dybcio Cc: Luca Weiss , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , ~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 Content-Type: text/plain; charset="UTF-8" On Tue, 9 Jan 2024 at 12:10, Konrad Dybcio wrote: > > > > On 1/5/24 15:54, Luca Weiss wrote: > > Configure the thermals for the PA_THERM1, MSM_THERM, PA_THERM0, > > RFC_CAM_THERM, CAM_FLASH_THERM and QUIET_THERM thermistors connected to > > PM6150L. > > > > Due to hardware constraints we can only register 4 zones with > > pm6150l_adc_tm, the other 2 we can register via generic-adc-thermal. > > Ugh.. so the ADC can support more inputs than the ADC_TM that was > designed to ship alongside it can? Yes. ADC_TM can support monitoring of 8 channels in total. > > And that's why the "generic-adc-thermal"-provided zones need to > be polled? > > > > > The trip points can really only be considered as placeholders, more > > configuration with cooling etc. can be added later. > > > > Signed-off-by: Luca Weiss > > --- > [...] > > I've read the sentence above, but.. > > + sdm-skin-thermal { > > + polling-delay-passive = <1000>; > > + polling-delay = <5000>; > > + thermal-sensors = <&msm_therm_sensor>; > > + > > + trips { > > + active-config0 { > > + temperature = <125000>; > > + hysteresis = <1000>; > > + type = "passive"; > > I don't fancy burnt fingers for dinner! > > Konrad > -- With best wishes Dmitry