Skip to content

Commit eec99f4

Browse files
Josh-Tsaiamstan
authored andcommitted
fwk: dogwood: support cpu virtual temperature
Add the CPU virtual temperature device in the devicetree BRANCH=fwk-dogwood-27111 BUG=https://app.clickup.com/t/86et9h4tv TEST=ec console "temps" can get the APU virtual temperature TEST=print the coefficients is the same as devicetree setting Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>
1 parent 54bc46b commit eec99f4

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

zephyr/program/framework/dogwood/i2c.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@
131131
compatible = "cros-ec,temp-sensor-sb-tsi";
132132
reg = <0x4c>;
133133
};
134+
135+
temp_cpu_virtual: cpu_virtual@4c {
136+
compatible = "cros-ec,temp-sensor-sb-tsi";
137+
reg = <0x4c>;
138+
};
134139
};
135140

136141
&i2c_ctrl7 {

zephyr/program/framework/dogwood/thermal.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,19 @@
5555
power-good-pin = <&gpio_slp_s3_l>;
5656
sensor = <&temp_cpu>;
5757
};
58+
59+
temp_sensor_virtual: amd-apu-virtual {
60+
temp_host_warn = <108>;
61+
temp_host_high = <108>;
62+
temp_host_halt = <127>;
63+
temp_host_release_warn = <60>;
64+
temp_host_release_high = <60>;
65+
temp_host_release_halt = <122>;
66+
temp_fan_off = <50>;
67+
temp_fan_max = <100>;
68+
power-good-pin = <&gpio_slp_s3_l>;
69+
sensor = <&temp_cpu_virtual>;
70+
coefficients = <15 31 15 16384 (-31313) 14991>;
71+
};
5872
};
5973
};

0 commit comments

Comments
 (0)