Commit 507b1b28 authored by Michael Kao's avatar Michael Kao Committed by Matthias Brugger

arm64: dts: mt8183-kukui: Add tboard thermal zones

Add tboard thermal zones.
The tboard thermal sensors are a kind of NTC sensors which are located
on PCB board to correlate the temperature of the case (Tskin).

pull-up voltage: 1800 mv
pull-up resistor: 75K

Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
AuxIn = Vsense * 4096 / 1500
Signed-off-by: default avatarMichael Kao <michael.kao@mediatek.com>
Signed-off-by: default avatarBen Tseng <ben.tseng@mediatek.com>
Tested-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>

Link: https://lore.kernel.org/r/20210604093755.13288-1-ben.tseng@mediatek.comSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 4fa8492d
...@@ -851,6 +851,20 @@ &ssusb { ...@@ -851,6 +851,20 @@ &ssusb {
status = "okay"; status = "okay";
}; };
&thermal_zones {
tboard1 {
polling-delay = <1000>; /* milliseconds */
polling-delay-passive = <0>; /* milliseconds */
thermal-sensors = <&tboard_thermistor1>;
};
tboard2 {
polling-delay = <1000>; /* milliseconds */
polling-delay-passive = <0>; /* milliseconds */
thermal-sensors = <&tboard_thermistor2>;
};
};
&u3phy { &u3phy {
status = "okay"; status = "okay";
}; };
......
...@@ -673,7 +673,7 @@ thermal: thermal@1100b000 { ...@@ -673,7 +673,7 @@ thermal: thermal@1100b000 {
nvmem-cell-names = "calibration-data"; nvmem-cell-names = "calibration-data";
}; };
thermal-zones { thermal_zones: thermal-zones {
cpu_thermal: cpu_thermal { cpu_thermal: cpu_thermal {
polling-delay-passive = <100>; polling-delay-passive = <100>;
polling-delay = <500>; polling-delay = <500>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment