From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 6/7] arm64: dts: qcom: sm8450-hdk: define DIE_TEMP channels
Date: Fri, 30 Jun 2023 10:15:07 +0200 [thread overview]
Message-ID: <bfe2f1a6-e8d8-e2de-ea40-aedfb543bba0@linaro.org> (raw)
In-Reply-To: <20230630061315.4027453-7-dmitry.baryshkov@linaro.org>
On 30.06.2023 08:13, Dmitry Baryshkov wrote:
> Declare the DIE_TEMP channels provided by PMICs. Use them to provide
> temperature reading for the spmi-temp-alarm thermal zones.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
> arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 43 +++++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> index dabb7e872f38..d07e402eaba3 100644
> --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> @@ -6,6 +6,10 @@
> /dts-v1/;
>
> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> +#include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h>
> +#include <dt-bindings/iio/qcom,spmi-adc7-pm8350b.h>
> +#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
> +#include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h>
> #include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
> #include "sm8450.dtsi"
> #include "pm8350.dtsi"
> @@ -588,6 +592,45 @@ &pcie1_phy {
> vdda-pll-supply = <&vreg_l6b_1p2>;
> };
>
> +&pm8350_temp_alarm {
> + io-channels = <&pmk8350_vadc PM8350_ADC7_DIE_TEMP(1)>;
> + io-channel-names = "thermal";
> +};
> +
> +&pm8350b_temp_alarm {
> + io-channels = <&pmk8350_vadc PM8350B_ADC7_DIE_TEMP>;
> + io-channel-names = "thermal";
> +};
> +
> +&pmr735a_temp_alarm {
> + io-channels = <&pmk8350_vadc PMR735A_ADC7_DIE_TEMP>;
> + io-channel-names = "thermal";
> +};
> +
> +&pmk8350_vadc {
> + status = "okay";
> +
> + channel@3 {
> + reg = <PMK8350_ADC7_DIE_TEMP>;
> + label = "pmk8350_die_temp";
> + };
> +
> + channel@103 {
> + reg = <PM8350_ADC7_DIE_TEMP(1)>;
> + label = "pm8350_die_temp";
> + };
> +
> + channel@303 {
> + reg = <PM8350B_ADC7_DIE_TEMP>;
> + label = "pm8350b_die_temp";
> + };
> +
> + channel@403 {
> + reg = <PMR735A_ADC7_DIE_TEMP>;
> + label = "pmr735a_die_temp";
> + };
> +};
> +
> &remoteproc_adsp {
> status = "okay";
> firmware-name = "qcom/sm8450/adsp.mbn";
next prev parent reply other threads:[~2023-06-30 8:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-30 6:13 [PATCH 0/7] arm64: dts: qcom: sm8450-hdk: improve thermal monitoring Dmitry Baryshkov
2023-06-30 6:13 ` [PATCH 1/7] arm64: dts: qcom: pm8350: fix thermal zone name Dmitry Baryshkov
2023-06-30 8:11 ` Konrad Dybcio
2023-06-30 6:13 ` [PATCH 2/7] arm64: dts: qcom: pm8350b: " Dmitry Baryshkov
2023-06-30 8:12 ` Konrad Dybcio
2023-06-30 6:13 ` [PATCH 3/7] arm64: dts: qcom: pmr735b: " Dmitry Baryshkov
2023-06-30 8:12 ` Konrad Dybcio
2023-06-30 6:13 ` [PATCH 4/7] arm64: dts: qcom: pmk8350: fix ADC-TM compatible string Dmitry Baryshkov
2023-06-30 8:13 ` Konrad Dybcio
2023-06-30 10:11 ` Dmitry Baryshkov
2023-06-30 11:26 ` Konrad Dybcio
2023-06-30 6:13 ` [PATCH 5/7] arm64: dts: qcom: sm8450-hdk: remove pmr735b PMIC inclusion Dmitry Baryshkov
2023-06-30 8:13 ` Konrad Dybcio
2023-06-30 8:25 ` Neil Armstrong
2023-06-30 6:13 ` [PATCH 6/7] arm64: dts: qcom: sm8450-hdk: define DIE_TEMP channels Dmitry Baryshkov
2023-06-30 8:15 ` Konrad Dybcio [this message]
2023-06-30 6:13 ` [PATCH 7/7] arm64: dts: qcom: sm8450-hdk: add ADC-TM thermal zones Dmitry Baryshkov
2023-06-30 8:19 ` Konrad Dybcio
2023-06-30 10:07 ` Dmitry Baryshkov
2023-06-30 11:27 ` Konrad Dybcio
2023-06-30 12:57 ` Dmitry Baryshkov
2023-06-30 16:15 ` Konrad Dybcio
2023-06-30 17:42 ` Dmitry Baryshkov
2023-06-30 20:59 ` Bjorn Andersson
2023-06-30 21:04 ` Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bfe2f1a6-e8d8-e2de-ea40-aedfb543bba0@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox