Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4052123rdg; Wed, 18 Oct 2023 13:31:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPlQ0fVZwIuhwpUJy7fq9GAT4x/pYeBBTT/VQichehgAVWpL/4FhnEwT2v6GIY3ZUHJeXz X-Received: by 2002:a05:6a00:2189:b0:6b2:5d32:58c with SMTP id h9-20020a056a00218900b006b25d32058cmr203602pfi.22.1697661111955; Wed, 18 Oct 2023 13:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697661111; cv=none; d=google.com; s=arc-20160816; b=OoEUgRLqCbhcdBGc543vhaykkRyy58IQ7XVc1GFzIMdPNMIgsu3UVXqRmTPNTQ4NZA HqGQQwcHLgpak26j/cO7ySVG+fDfbhH7ZUpdp1tyK21v7HtsKzJk1KZrcWrqBeMRhBJ6 45nMSAf8b7uSItiJ/lkgOUGU+fNFrMokHGnnBzVe3H/gbYIFxvY31fg0mp6HVWQ/nL0n 5apipuWIO6I4JK9Q4Dl3qiQV5YoKibfWGfrVRn600+hmK/0cDIfJ0TF1nZHiaFOIoo2q lVo2nTE7rUr19T28d7h3EJoOKaSUPFHaMrXsZLjvb3k37L9fF4sDZQmywPYhe3KJO+t9 wjdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PUFmNB1C9eKBrNEGefhzHUl4Gkv1IjDp8gNWoDQwEGk=; fh=Z45JHSH+kB3qnvuJE73jnaIekLVMuZD6ZmqXs8coEWw=; b=QZLg7EtVHRjrNclQtOtC2H7Okkj8FaG5O0TrACp/Cb3DXBlapJ0jBafC0hohhyGtdu fV3Le+0dEEbUZ2XXD3ltfQJJiJik6WBc+vpQ6yuuPcjRAXFTPpJ8Jg20WSXSDwe/WRM9 b5tXmYKiUqq7zn9wxuq0UygiSCUykmyKT4MSW9U9B08TjdIj9FYvvUv4rIOTHLtoUsqj 1Xi/JpfIYbdSXveSQR0E17Alig0Imd4aVov+6fWJXDwRpa7oR3q/7pZWZWuxkEQ4IrJi VfT3o8KwlsQ465LFotJetzIglqbORpn9poXPRaxpuMuFHiiV8Wmo+4XTo2A33GH6bqh8 ABFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g6YkwfXq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id g12-20020aa796ac000000b006be077531adsi4463613pfk.125.2023.10.18.13.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g6YkwfXq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ADB8B81D0C6C; Wed, 18 Oct 2023 13:31:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232677AbjJRUbp (ORCPT + 99 others); Wed, 18 Oct 2023 16:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232419AbjJRUbd (ORCPT ); Wed, 18 Oct 2023 16:31:33 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10FCC10D2 for ; Wed, 18 Oct 2023 13:30:58 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507ad511315so5325392e87.0 for ; Wed, 18 Oct 2023 13:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697661056; x=1698265856; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PUFmNB1C9eKBrNEGefhzHUl4Gkv1IjDp8gNWoDQwEGk=; b=g6YkwfXqwADUSouGWxg8GzFwFWNS3JMsfsZxJ8gEN6JiAiIXNBsMSlw+Zay9ubnBfs 62VQWUt4Fibk0ozzgeXnmNGWwHYSrbcYnFlogQ4SCGWOr5u1Z8HvbBItop8nT91BMtuf 8+QeFvuXa8Qc1cq2RFZE8xNF4OMcYpbRL2FA8/o2pMRdAaPC+qjXh0p7F5tIn1AekCdq Fj+gJLsAc3Pg8mK+1Ek6ojS36Ju5bkJuRPDeLCBKv+QudDrJUje4MraShy3CF8d0ylG6 YPde/MG7w3AvEII1lUijAButu/IQOrEGp3VDMyURXJmqeUXcKflU9AFhg1stoA9QmoM1 aDlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697661056; x=1698265856; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PUFmNB1C9eKBrNEGefhzHUl4Gkv1IjDp8gNWoDQwEGk=; b=upxuiU7/nnPX7z/PLu7klePIbQo6RTlIvE2dvmSULk/LpBsxKhsliI9CH2a0qLQyq/ GOZIZ4m2FSCO2Yh0i2ejb19uHiUbjZb1hnzJoqJgmu4ZafBehLUuL8pPm+bIZPTAEDX4 yQpic8tcYhfj5UaDGdGiGRJtekqY1Jb+UgJwgtW7iwW3ITBfPFRRrdLXX1xjWchZsvSl CAicHmZ+SciW4EXD8RNI1YMef8X4pruyDtR02RnqyfF84thRa/0gvSf82QLaHw2GBXvt NxSTuZVxolskePwgmp92+Jg/3kgZQtbd6eGnOf6eyiSqoUNuurgR2PjBbt+gfbTcmIeO E5lA== X-Gm-Message-State: AOJu0Yx8jeZMPp1tMa5DIobF9dZMDwN+5j5s+fii2Qm1FOiybcde0ygS p9owixwvKV6uAVBukeG0kQ+w/Q== X-Received: by 2002:a19:654c:0:b0:507:a8d1:6e57 with SMTP id c12-20020a19654c000000b00507a8d16e57mr73921lfj.40.1697661055845; Wed, 18 Oct 2023 13:30:55 -0700 (PDT) Received: from [172.30.205.86] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id v12-20020ac2558c000000b00507aced147esm825302lfg.203.2023.10.18.13.30.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 13:30:55 -0700 (PDT) Message-ID: <5c97da4e-eb7a-47c2-9f0a-69e019a73778@linaro.org> Date: Wed, 18 Oct 2023 22:30:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] arm64: dts: qcom: qcm6490-fairphone-fp5: Add PM7250B thermals Content-Language: en-US To: Luca Weiss , Andy Gross , Bjorn Andersson , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org References: <20231013-fp5-thermals-v1-0-f14df01922e6@fairphone.com> <20231013-fp5-thermals-v1-2-f14df01922e6@fairphone.com> From: Konrad Dybcio In-Reply-To: <20231013-fp5-thermals-v1-2-f14df01922e6@fairphone.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 13:31:50 -0700 (PDT) On 10/13/23 10:09, Luca Weiss wrote: > Configure the thermals for the CHARGER_SKIN_THERM and USB_CONN_THERM > thermistors connected to PM7250B. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 66 ++++++++++++++++++++++ > 1 file changed, 66 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts > index 2de0b8c26c35..7fe19b556e6a 100644 > --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts > +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts > @@ -134,6 +134,36 @@ afvdd_2p8: regulator-afvdd-2p8 { > enable-active-high; > vin-supply = <&vreg_bob>; > }; > + > + thermal-zones { > + chg-skin-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&pm7250b_adc_tm 0>; > + > + trips { > + active-config0 { > + temperature = <125000>; I guess looking at skin-temp-thermal in x13s dts for starters is a good idea.. we should probably then adjust it to something more pocketable.. Konrad