]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: thead: th1520: add coefficients to the PVT node
authorIcenowy Zheng <zhengxingda@iscas.ac.cn>
Mon, 9 Mar 2026 16:24:57 +0000 (00:24 +0800)
committerDrew Fustini <fustini@kernel.org>
Fri, 20 Mar 2026 17:22:44 +0000 (10:22 -0700)
The manual of TH1520 contains a set of coefficients a little different
to the driver default ones.

Add them to the device tree node of PVT.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Drew Fustini <fustini@kernel.org>
arch/riscv/boot/dts/thead/th1520.dtsi

index b663077428940fee49216017f87c4594038d2357..5e91dc1d2b9b7eb1171203eaf405fc7a4d0ae66e 100644 (file)
                        reg-names = "common", "ts", "pd", "vm";
                        clocks = <&aonsys_clk>;
                        #thermal-sensor-cells = <1>;
+                       moortec,ts-coeff-g = <42740>;
+                       moortec,ts-coeff-h = <220500>;
+                       moortec,ts-coeff-j = <(-160)>;
+                       moortec,ts-coeff-cal5 = <4094>;
                };
 
                gpio@fffff52000 {