Re: [PATCH v3 2/2] riscv: dts: thead: th1520: add coefficients to the PVT node

From: Drew Fustini

Date: Fri Mar 20 2026 - 13:32:43 EST


On Sat, Mar 14, 2026 at 09:57:43AM -0700, Drew Fustini wrote:
> On Tue, Mar 10, 2026 at 12:24:57AM +0800, Icenowy Zheng wrote:
> > 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@xxxxxxxxxx>
> > Signed-off-by: Icenowy Zheng <zhengxingda@xxxxxxxxxxx>
> > Reviewed-by: Drew Fustini <fustini@xxxxxxxxxx>
> > ---
> > Changes in v3:
> > - Added Drew's R-b.
> > No changes in v2.
> >
> > arch/riscv/boot/dts/thead/th1520.dtsi | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
> > index bd5d33840884e..2160c8b6c2261 100644
> > --- a/arch/riscv/boot/dts/thead/th1520.dtsi
> > +++ b/arch/riscv/boot/dts/thead/th1520.dtsi
> > @@ -753,6 +753,10 @@ pvt: pvt@fffff4e000 {
> > 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 {
> > --
> > 2.52.0
> >
>
> I have applied this to thead-dt-for-next:

I had removed this due to missing binding in next. However, it is now
again applied to thead-dt-for-next as the binding change is now in
linux-next via the hwmon tree.

https://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux.git/commit/?h=thead-dt-for-next&id=a7aa874b69460896349985833059a764e688f1d0

Thanks,
Drew