From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 DDBF83E00A for ; Wed, 18 Oct 2023 20:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="g6YkwfXq" Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0803010CB for ; Wed, 18 Oct 2023 13:30:57 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-507bd644a96so3204168e87.3 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=Jb3MDO8Y/xFxc3AS+dKHHhy8rdaYqHLYj5PDPnfcbGKT8JC5csR6uz2i10s51R+QvK 5qN47FspYwj34LueUAsk9iS1++U1nxdD5KT1qjwvHIlV/ZN44drE08rgicyWfNMs2OIi NwQT22z0MB6xU8LM7VUFg4y3E8GUjUnXhkxR1HQIjc3aupAi5x9RLZ19Rjm6/kpOLOE0 5AmTutEVIhDoRmAVNBypLfaDoXmYjFdtVciBfz98ZsDrRhFSgtYn3mRWQD6JTcWYXsem aF4rPzHaaeNj1erav800nhAf+dqkpcQk0sosQ+o9Nbe4sLIqEJ0H8YOTn/dmbPbuZTq4 5olw== X-Gm-Message-State: AOJu0YyBeuAuIWU+Ez+VQVbilA+2kHpT9PD/FHfLXadDXZQyQRaOLvdb OqOFRZfHvggWSI5rxI8cqXgXrg== X-Google-Smtp-Source: AGHT+IHBjUypDmWrqXXAFpTBonvTU/yYmmcDyIk9OSHMujkMEV9jxWpZCCOnXesh0MIXVFwf/+WweA== 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 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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