From 80b8c34c5c27069db9a8854a0a20152bd866c4af Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Sun, 4 Feb 2024 02:10:00 +0530 Subject: [PATCH] ARM: dts: qcom: Update tsens hardware mapping for sun-v2 Update tsens controller 1 and controller 3 sensor count and update sensor id of impacted thermal zones for sun-v2. Change-Id: I52cf2ecb0445ec9b4d1b2df16c4ea7002fff89eb Signed-off-by: Manaf Meethalavalappu Pallikunhi --- qcom/sun-v2.dtsi | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/qcom/sun-v2.dtsi b/qcom/sun-v2.dtsi index 2bc90d41..31fa699e 100644 --- a/qcom/sun-v2.dtsi +++ b/qcom/sun-v2.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2023-2024, Qualcomm Innovation Center, Inc. All rights reserved. */ #include "sun.dtsi" @@ -9,3 +9,45 @@ compatible = "qcom,sun"; qcom,msm-id = <618 0x20000>; }; + +&tsens1 { + #qcom,sensors = <7>; +}; + +&tsens3 { + #qcom,sensors = <9>; +}; + +&thermal_zones { + nsphvx-0 { + thermal-sensors = <&tsens3 1>; + }; + + nsphvx-1 { + thermal-sensors = <&tsens3 2>; + }; + + nsphvx-2 { + thermal-sensors = <&tsens3 3>; + }; + + nsphmx-0 { + thermal-sensors = <&tsens3 4>; + }; + + nsphmx-1 { + thermal-sensors = <&tsens3 5>; + }; + + nsphmx-2 { + thermal-sensors = <&tsens3 6>; + }; + + nsphmx-3 { + thermal-sensors = <&tsens3 7>; + }; + + ddr { + thermal-sensors = <&tsens3 8>; + }; +};