• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (c) 2023 Huawei Device Co., Ltd.
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<thermal version="0.01" product="lya">
17
18    <base>
19        <item tag="sim_tz" value="1"/>
20    </base>
21
22    <polling name="thermal">
23        <group name="actual" interval="30000">
24            <thermal_zone type="soc-thermal"/>
25            <thermal_zone type="gpu-thermal"/>
26        </group>
27        <group name="sim" interval="30000">
28            <thermal_node type="soc" path="data/service/el0/thermal/sensor/soc/temp"/>
29            <thermal_node type="cpu" path="data/service/el0/thermal/sensor/cpu/temp"/>
30            <thermal_node type="ap" path="data/service/el0/thermal/sensor/ap/temp"/>
31            <thermal_node type="pa" path="data/service/el0/thermal/sensor/pa/temp"/>
32            <thermal_node type="ambient" path="data/service/el0/thermal/sensor/ambient/temp"/>
33            <thermal_node type="charger" path="data/service/el0/thermal/sensor/charger/temp"/>
34            <thermal_node type="battery" path="data/service/el0/thermal/sensor/battery/temp"/>
35            <thermal_node type="shell" path="data/service/el0/thermal/sensor/shell/temp"/>
36        </group>
37    </polling>
38
39    <polling name="fan">
40        <group name="actual" interval="30000">
41            <thermal_zone type="soc-thermal"/>
42            <thermal_zone type="gpu-thermal"/>
43            <thermal_zone type="fan"/>
44        </group>
45        <group name="sim" interval="30000">
46            <thermal_node type="soc" path="data/service/el0/thermal/sensor/soc/temp"/>
47            <thermal_node type="gpu" path="data/service/el0/thermal/sensor/gpu/temp"/>
48            <thermal_node type="fan" path="data/service/el0/thermal/sensor/fan/speed"/>
49        </group>
50    </polling>
51
52    <tracing outpath="/data/log/thermal/thermal-log">
53        <node>
54            <title path="sys/class/thermal/thermal_zone0/type"/>
55            <value path="sys/class/thermal/thermal_zone0/temp"/>
56        </node>
57        <node>
58            <title name="gpu-thermal"/>
59            <value path="sys/class/thermal/thermal_zone1/temp"/>
60        </node>
61    </tracing>
62
63    <isolate>
64        <group name="actual">
65            <thermal_node type="soc" />
66        </group>
67        <group name="sim">
68            <thermal_node type="soc" path="/data/service/el0/thermal/sensor/soc/isolate"/>
69        </group>
70    </isolate>
71</thermal>
72