Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support tsens in ipq5210 & ipq9650
@ 2026-05-15 10:17 Varadarajan Narayanan
  2026-05-15 10:17 ` [PATCH 1/2] thermal/drivers/qcom/tsens: Add support for ipq5210 tsens Varadarajan Narayanan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Varadarajan Narayanan @ 2026-05-15 10:17 UTC (permalink / raw)
  To: Amit Kucheria, Thara Gopinath, Rafael J. Wysocki, Daniel Lezcano,
	Zhang Rui, Lukasz Luba
  Cc: linux-arm-msm, linux-pm, linux-kernel, Varadarajan Narayanan

ipq5210 and ipq9560 have the Qualcomm tsens-v2 IP. The tsens framework
in these two SoCs are similar to the one found in ipq5332. This series
adds the sensor data to the tsens-v2 driver.

Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
---
Varadarajan Narayanan (2):
      thermal/drivers/qcom/tsens: Add support for ipq5210 tsens
      thermal/drivers/qcom/tsens: Add support for ipq9650 tsens

 drivers/thermal/qcom/tsens-v2.c | 8 ++++++++
 drivers/thermal/qcom/tsens.c    | 6 ++++++
 drivers/thermal/qcom/tsens.h    | 2 +-
 3 files changed, 15 insertions(+), 1 deletion(-)
---
base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83
change-id: 20260515-tsens-driver-779b1f46da85
prerequisite-change-id: 20260515-tsens-yaml-5f517c948b89:v1
prerequisite-patch-id: 23a443cf15da9852d647ceb75a1b7ca98078a1e3

Best regards,
-- 
Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] thermal/drivers/qcom/tsens: Add support for ipq5210 tsens
  2026-05-15 10:17 [PATCH 0/2] Add support tsens in ipq5210 & ipq9650 Varadarajan Narayanan
@ 2026-05-15 10:17 ` Varadarajan Narayanan
  2026-05-15 12:24   ` Konrad Dybcio
  2026-05-15 10:18 ` [PATCH 2/2] thermal/drivers/qcom/tsens: Add support for ipq9650 tsens Varadarajan Narayanan
  2026-05-15 11:21 ` [PATCH 0/2] Add support tsens in ipq5210 & ipq9650 Pankaj Patil
  2 siblings, 1 reply; 6+ messages in thread
From: Varadarajan Narayanan @ 2026-05-15 10:17 UTC (permalink / raw)
  To: Amit Kucheria, Thara Gopinath, Rafael J. Wysocki, Daniel Lezcano,
	Zhang Rui, Lukasz Luba
  Cc: linux-arm-msm, linux-pm, linux-kernel, Varadarajan Narayanan

ipq5210's tsens is similar to ipq5332 tsens. Re-use the ipq5332
data for ipq5210.

Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
---
 drivers/thermal/qcom/tsens.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
index a2422ebee816..c0c7ecdb9c2b 100644
--- a/drivers/thermal/qcom/tsens.c
+++ b/drivers/thermal/qcom/tsens.c
@@ -1110,6 +1110,9 @@ static const struct of_device_id tsens_table[] = {
 	{
 		.compatible = "qcom,ipq5018-tsens",
 		.data = &data_ipq5018,
+	}, {
+		.compatible = "qcom,ipq5210-tsens",
+		.data = &data_ipq5332,
 	}, {
 		.compatible = "qcom,ipq5332-tsens",
 		.data = &data_ipq5332,

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] thermal/drivers/qcom/tsens: Add support for ipq9650 tsens
  2026-05-15 10:17 [PATCH 0/2] Add support tsens in ipq5210 & ipq9650 Varadarajan Narayanan
  2026-05-15 10:17 ` [PATCH 1/2] thermal/drivers/qcom/tsens: Add support for ipq5210 tsens Varadarajan Narayanan
@ 2026-05-15 10:18 ` Varadarajan Narayanan
  2026-05-15 12:26   ` Konrad Dybcio
  2026-05-15 11:21 ` [PATCH 0/2] Add support tsens in ipq5210 & ipq9650 Pankaj Patil
  2 siblings, 1 reply; 6+ messages in thread
From: Varadarajan Narayanan @ 2026-05-15 10:18 UTC (permalink / raw)
  To: Amit Kucheria, Thara Gopinath, Rafael J. Wysocki, Daniel Lezcano,
	Zhang Rui, Lukasz Luba
  Cc: linux-arm-msm, linux-pm, linux-kernel, Varadarajan Narayanan

ipq9650's tsens is similar to ipq5332 tsens but has different number of
sensors. Re-use the ipq5332 data for ipq9650 and modify the sensor
related information.

Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
---
 drivers/thermal/qcom/tsens-v2.c | 8 ++++++++
 drivers/thermal/qcom/tsens.c    | 3 +++
 drivers/thermal/qcom/tsens.h    | 2 +-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/drivers/thermal/qcom/tsens-v2.c b/drivers/thermal/qcom/tsens-v2.c
index 8d9698ea3ec4..ef1fee2266a3 100644
--- a/drivers/thermal/qcom/tsens-v2.c
+++ b/drivers/thermal/qcom/tsens-v2.c
@@ -300,6 +300,14 @@ const struct tsens_plat_data data_ipq5424 = {
 	.fields		= tsens_v2_regfields,
 };
 
+const struct tsens_plat_data data_ipq9650 = {
+	.num_sensors	= 11,
+	.ops		= &ops_ipq5332,
+	.hw_ids		= (unsigned int []){5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15},
+	.feat		= &ipq5332_feat,
+	.fields		= tsens_v2_regfields,
+};
+
 /* Kept around for backward compatibility with old msm8996.dtsi */
 struct tsens_plat_data data_8996 = {
 	.num_sensors	= 13,
diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
index c0c7ecdb9c2b..1d7c2d85c839 100644
--- a/drivers/thermal/qcom/tsens.c
+++ b/drivers/thermal/qcom/tsens.c
@@ -1125,6 +1125,9 @@ static const struct of_device_id tsens_table[] = {
 	}, {
 		.compatible = "qcom,ipq8074-tsens",
 		.data = &data_ipq8074,
+	}, {
+		.compatible = "qcom,ipq9650-tsens",
+		.data = &data_ipq9650,
 	}, {
 		.compatible = "qcom,mdm9607-tsens",
 		.data = &data_9607,
diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h
index 2a7afa4c899b..d9d50d32c962 100644
--- a/drivers/thermal/qcom/tsens.h
+++ b/drivers/thermal/qcom/tsens.h
@@ -657,6 +657,6 @@ extern const struct tsens_plat_data data_ipq5018;
 
 /* TSENS v2 targets */
 extern struct tsens_plat_data data_8996, data_ipq8074, data_tsens_v2;
-extern const struct tsens_plat_data data_ipq5332, data_ipq5424;
+extern const struct tsens_plat_data data_ipq5332, data_ipq5424, data_ipq9650;
 
 #endif /* __QCOM_TSENS_H__ */

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2] Add support tsens in ipq5210 & ipq9650
  2026-05-15 10:17 [PATCH 0/2] Add support tsens in ipq5210 & ipq9650 Varadarajan Narayanan
  2026-05-15 10:17 ` [PATCH 1/2] thermal/drivers/qcom/tsens: Add support for ipq5210 tsens Varadarajan Narayanan
  2026-05-15 10:18 ` [PATCH 2/2] thermal/drivers/qcom/tsens: Add support for ipq9650 tsens Varadarajan Narayanan
@ 2026-05-15 11:21 ` Pankaj Patil
  2 siblings, 0 replies; 6+ messages in thread
From: Pankaj Patil @ 2026-05-15 11:21 UTC (permalink / raw)
  To: Varadarajan Narayanan, Amit Kucheria, Thara Gopinath,
	Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba
  Cc: linux-arm-msm, linux-pm, linux-kernel

On 5/15/2026 3:47 PM, Varadarajan Narayanan wrote:
> ipq5210 and ipq9560 have the Qualcomm tsens-v2 IP. The tsens framework
> in these two SoCs are similar to the one found in ipq5332. This series
> adds the sensor data to the tsens-v2 driver.
> 
> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
> ---
> Varadarajan Narayanan (2):
>       thermal/drivers/qcom/tsens: Add support for ipq5210 tsens
>       thermal/drivers/qcom/tsens: Add support for ipq9650 tsens
> 
>  drivers/thermal/qcom/tsens-v2.c | 8 ++++++++
>  drivers/thermal/qcom/tsens.c    | 6 ++++++
>  drivers/thermal/qcom/tsens.h    | 2 +-
>  3 files changed, 15 insertions(+), 1 deletion(-)
> ---
> base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83
> change-id: 20260515-tsens-driver-779b1f46da85
> prerequisite-change-id: 20260515-tsens-yaml-5f517c948b89:v1
> prerequisite-patch-id: 23a443cf15da9852d647ceb75a1b7ca98078a1e3
> 
> Best regards,

Can you club this with,
[PATCH] dt-bindings: thermal: tsens: add ipq5210 & ipq9650 compatible?
Or send 2 separate series for each target, helps reduce maintainer work
Bindings should be in the same series which introduces the compatible

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] thermal/drivers/qcom/tsens: Add support for ipq5210 tsens
  2026-05-15 10:17 ` [PATCH 1/2] thermal/drivers/qcom/tsens: Add support for ipq5210 tsens Varadarajan Narayanan
@ 2026-05-15 12:24   ` Konrad Dybcio
  0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2026-05-15 12:24 UTC (permalink / raw)
  To: Varadarajan Narayanan, Amit Kucheria, Thara Gopinath,
	Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba
  Cc: linux-arm-msm, linux-pm, linux-kernel

On 5/15/26 12:17 PM, Varadarajan Narayanan wrote:
> ipq5210's tsens is similar to ipq5332 tsens. Re-use the ipq5332
> data for ipq5210.
> 
> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
> ---
>  drivers/thermal/qcom/tsens.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
> index a2422ebee816..c0c7ecdb9c2b 100644
> --- a/drivers/thermal/qcom/tsens.c
> +++ b/drivers/thermal/qcom/tsens.c
> @@ -1110,6 +1110,9 @@ static const struct of_device_id tsens_table[] = {
>  	{
>  		.compatible = "qcom,ipq5018-tsens",
>  		.data = &data_ipq5018,
> +	}, {
> +		.compatible = "qcom,ipq5210-tsens",
> +		.data = &data_ipq5332,

Fallback compatible, perhaps then?

Konrad

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] thermal/drivers/qcom/tsens: Add support for ipq9650 tsens
  2026-05-15 10:18 ` [PATCH 2/2] thermal/drivers/qcom/tsens: Add support for ipq9650 tsens Varadarajan Narayanan
@ 2026-05-15 12:26   ` Konrad Dybcio
  0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2026-05-15 12:26 UTC (permalink / raw)
  To: Varadarajan Narayanan, Amit Kucheria, Thara Gopinath,
	Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba
  Cc: linux-arm-msm, linux-pm, linux-kernel

On 5/15/26 12:18 PM, Varadarajan Narayanan wrote:
> ipq9650's tsens is similar to ipq5332 tsens but has different number of
> sensors. Re-use the ipq5332 data for ipq9650 and modify the sensor
> related information.
> 
> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
> ---
>  drivers/thermal/qcom/tsens-v2.c | 8 ++++++++
>  drivers/thermal/qcom/tsens.c    | 3 +++
>  drivers/thermal/qcom/tsens.h    | 2 +-
>  3 files changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/thermal/qcom/tsens-v2.c b/drivers/thermal/qcom/tsens-v2.c
> index 8d9698ea3ec4..ef1fee2266a3 100644
> --- a/drivers/thermal/qcom/tsens-v2.c
> +++ b/drivers/thermal/qcom/tsens-v2.c
> @@ -300,6 +300,14 @@ const struct tsens_plat_data data_ipq5424 = {
>  	.fields		= tsens_v2_regfields,
>  };
>  
> +const struct tsens_plat_data data_ipq9650 = {
> +	.num_sensors	= 11,
> +	.ops		= &ops_ipq5332,
> +	.hw_ids		= (unsigned int []){5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15},

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-15 12:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-15 10:17 [PATCH 0/2] Add support tsens in ipq5210 & ipq9650 Varadarajan Narayanan
2026-05-15 10:17 ` [PATCH 1/2] thermal/drivers/qcom/tsens: Add support for ipq5210 tsens Varadarajan Narayanan
2026-05-15 12:24   ` Konrad Dybcio
2026-05-15 10:18 ` [PATCH 2/2] thermal/drivers/qcom/tsens: Add support for ipq9650 tsens Varadarajan Narayanan
2026-05-15 12:26   ` Konrad Dybcio
2026-05-15 11:21 ` [PATCH 0/2] Add support tsens in ipq5210 & ipq9650 Pankaj Patil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox