arm64: dts: msm8998: thermal: split address space into two
PATCH 1/1 arm64: dts: msm8998: thermal: split address space into two
In reply to a message not in the archiveWe added support to split the register address space for tsens into TM and SROT regions in 'Commit 5b1283984fa3 ("thermal: tsens:
Add support to split up register address space into two")'.
Split up the tsens address space for msm8998 since it has a similar register layout to other versions of the IP to allow for better code sharing.
---
(Compile-tested only, since I don't have the hardware)
arch/arm64/boot/dts/qcom/msm8998.dtsi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/qcom/msm8998.dtsi +6 -5
@@ -577,17 +577,18 @@ cell-index = <0>; }; - tsens0: thermal@10aa000 { + tsens0: thermal@10ab000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10aa000 0x2000>; - + reg = <0x10ab000 0x1000>, /* TM */ + <0x10aa000 0x1000>; /* SROT */ #qcom,sensors = <12>; #thermal-sensor-cells = <1>; }; - tsens1: thermal@10ad000 { + tsens1: thermal@10ae000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10ad000 0x2000>; + reg = <0x10ae000 0x1000>, /* TM */ + <0x10ad000 0x1000>; /* SROT */ #qcom,sensors = <8>; #thermal-sensor-cells = <1>;
Signature · 1 line
2.17.1
Quoted 9 lines · Amit Kucheria
We added support to split the register address space for tsens into TM and SROT regions in 'Commit
5b1283984fa3("thermal: tsens:
Add support to split up register address space into two")'.Split up the tsens address space for msm8998 since it has a similar register layout to other versions of the IP to allow for better code sharing.
Signed-off-by Amit Kucheria <[email protected]>
Quoted 2 lines
---
(Compile-tested only, since I don't have the hardware)
You do have hardware, it's available in our conmux.
Regards,
Bjorn
Quoted 34 lines
arch/arm64/boot/dts/qcom/msm8998.dtsi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)arch/arm64/boot/dts/qcom/msm8998.dtsi +6
-5@@ -577,17 +577,18 @@ cell-index = <0>; }; - tsens0: thermal@10aa000 { + tsens0: thermal@10ab000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10aa000 0x2000>; - + reg = <0x10ab000 0x1000>, /* TM */ + <0x10aa000 0x1000>; /* SROT */ #qcom,sensors = <12>; #thermal-sensor-cells = <1>; }; - tsens1: thermal@10ad000 { + tsens1: thermal@10ae000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10ad000 0x2000>; + reg = <0x10ae000 0x1000>, /* TM */ + <0x10ad000 0x1000>; /* SROT */ #qcom,sensors = <8>; #thermal-sensor-cells = <1>;Signature · 1 line
2.17.1