Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1173989rdd; Wed, 10 Jan 2024 10:48:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IELUZV2ZKBFO4sDm301bRT5x37wvi8i3gAVEO1JrFAhRHrQmov6Z69Le5JVPKKks8V1Oos/ X-Received: by 2002:a05:622a:54b:b0:429:9a69:9855 with SMTP id m11-20020a05622a054b00b004299a699855mr929665qtx.9.1704912536555; Wed, 10 Jan 2024 10:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704912536; cv=none; d=google.com; s=arc-20160816; b=YdEp9uXL2CK+5N4JpHIk4jVV+dZ3ooVTefFuNsCZ8I0lGVBxYFcXUwGjub6aKM0/Up kqQeSGRtxwAzeqkBzLhGP9WBkH9aOCXICY98qhfH0NnHIlPG/7Z7wgpbBzRdgNpBxhZN +1DYpNVR9IZ5G7jntb5mmO98OlDMUSNLhplbG44mYUAGE+sOhsskdvYTFhF5NK8E9YgX LRdfZGGQNQoCYQ4CJ/w96o0VomgvzabeZb6nxGAnlyrOrYBVjiLzYnD4RVR6Ewxzs+yR 4Hx0danXkznPd1HGa3ILbNWOgD+OnBnYEHd8+Xv8gfSH1bljIfAWQjhoKo0vm6wOUP0Z ljDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=B6mb0czv63qlEAoF67252Cwq/CzM41U890/VQajpAFQ=; fh=mUP3yzCd5Gk9Rz/MDNqFU7wkONBfwKZJLjK9rFFh1Fg=; b=QbaWcZzT6kAgINYLdfs1AoVrsfTejqJFOWeufkVVbxiAS+R5EZbYLaZu/akFog/YD3 7IPH6KR1u36GfAndhg2byuVE2TQosUBpQhbkuosglpdFXnufYyr3AltJGl9YuIEkU+Kd cCSIyoy7DoqrNvwB5LnkD8NYrtmh89ZgzkFw6B8lckqrQY+8oy0d8XQ1KGK7AT3Kj5Ij +VM/nO4BKviRdTe/vUpb7dB5XvnKmacxRVjcwaYE0HRpASzY53bzu3Vap2tYANB8upVl anHe0NXtvtQYVYcDLDL/dTcHR0r8ymIDwY8hphRJnAI4eDEtmzmXz4uARbUFxSMl6jvQ oNMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Yy37O5/a"; spf=pass (google.com: domain of linux-kernel+bounces-22612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22612-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g1-20020ac87d01000000b004277ffa516dsi4642297qtb.428.2024.01.10.10.48.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 10:48:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22612-linux.lists.archive=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=@linaro.org header.s=google header.b="Yy37O5/a"; spf=pass (google.com: domain of linux-kernel+bounces-22612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22612-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 4AD251C2262D for ; Wed, 10 Jan 2024 18:48:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D0034D59E; Wed, 10 Jan 2024 18:48:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Yy37O5/a" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 970A94D580 for ; Wed, 10 Jan 2024 18:48:43 +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-lf1-f42.google.com with SMTP id 2adb3069b0e04-50eaaf2c7deso4857599e87.2 for ; Wed, 10 Jan 2024 10:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704912521; x=1705517321; 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=B6mb0czv63qlEAoF67252Cwq/CzM41U890/VQajpAFQ=; b=Yy37O5/aBNKJLMK/i1JsDBJ7DbBSu+pDKXoTfY/l/69BCaYLh5/pLf7aI+kLRp7Cnt PAaTZUfVEXzUwRjjkpGwA/r8bbkDMQQBeqQeG7UZo3cwVeRl/Pmh8aMhvzF9N4JU2sUZ sCakASOhrt6+/fQS8/sVf/svnBYcMYNI2wcghlDR8XLm6S1cDSB25vVtYKmNbphs1Cpp Un2aG9HOkk4dzPUMdKHkKqQOf/1zln9rocRUmShO1mVMeIKv6Xfix2jg5r0zJAFeCxfl 6Mv/1ARIQiZbaF4e1nLKGYgXOb4O0JMtth563sx7ffM8J87u/Ta0lT3MNIeV8I8alVP8 EP6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704912521; x=1705517321; 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=B6mb0czv63qlEAoF67252Cwq/CzM41U890/VQajpAFQ=; b=Ri7jjPLZhUhYCBt1sqYqtAp/TPHDx/BbHeXVKwZofS16Hne7cawC4xvSfe+cLnB7IB cpcN25ixI/pT4+USD/fdq2bJZWAb5Y7f/F28xe4tgvqbd672egMKruY5d3jWScWSX3pq IL8TuT/sZjsfI8MCXx3r+j8dAu+D8sSa13xVGt9qShvp9RiUmwye9NvCCz/nBrdasqy3 3GN/UQxZl0DtzClxZCqJ3h+BDtjpIo9dHdoNVtL/lv1DqpHbmzBMQVzv0wZ3kxRAvRBi T6w48/GbQ3ql5G/EqTCFXa0rZsv8ed9J2LZrOuKmh5UcNVtaoEaqLl4cZrQ8Lp87kH4L /Mgg== X-Gm-Message-State: AOJu0Yy+a3bCG7tOBz1lp9d73BCq07/aGeCZLkPl/46FfBk35hSUv9TV XGcdyktzKHfbybxTxQ2X51q/fLf5Wl/J+A== X-Received: by 2002:a05:6512:110d:b0:50e:7bf5:5424 with SMTP id l13-20020a056512110d00b0050e7bf55424mr793665lfg.47.1704912521468; Wed, 10 Jan 2024 10:48:41 -0800 (PST) Received: from [172.30.205.123] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id f13-20020a05651232cd00b0050e137ef4adsm732212lfg.155.2024.01.10.10.48.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jan 2024 10:48:41 -0800 (PST) Message-ID: Date: Wed, 10 Jan 2024 19:48:38 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] arm64: dts: qcom: sm7225-fairphone-fp4: Add PMK8003 thermals Content-Language: en-US To: Luca Weiss , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley 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 References: <20240105-fp4-thermals-v1-0-f95875a536b7@fairphone.com> <20240105-fp4-thermals-v1-1-f95875a536b7@fairphone.com> From: Konrad Dybcio In-Reply-To: <20240105-fp4-thermals-v1-1-f95875a536b7@fairphone.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > --- > 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