> Date: Sun, 29 Sep 2019 21:25:11 +0200 > From: Krystian Lewandowski <[email protected]> > > Hello Mark, tech@, > since A64 now supports dynamic frequencies and thermal zones I thought > I could go back to sxisid driver idea. > > Device tree excerpts: > > &{/soc} { > ths: thermal_sensor@1c25000 { > compatible = "allwinner,sun50i-a64-ths"; > reg = <0x01c25000 0x100>; > interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; > clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; > clock-names = "apb", "ths"; > resets = <&ccu RST_BUS_THS>; > reset-names = "apb"; > #thermal-sensor-cells = <1>; > status = "okay"; > > nvmem-cells = <&ths_calib>; > nvmem-cell-names = "ths-calib"; > }; > }; > > &{/soc} { > sid: eeprom@1c14000 { > compatible = "allwinner,sun50i-a64-sid"; > reg = <0x1c14000 0x400>; > > ths_calib: calib@234 { > reg = <0x234 0x6>; > }; > }; > }; > > Some parts of my original post are stil valid: > > > [...] I noticed sxitemp (OpenBSD) and aw_thermal (FreeBSD) are showing > > different values for temperature data and the difference isn't just > > related to the CPU load or environment I think. > > > > FreeBSD: > > # sysctl dev.aw_thermal > > dev.aw_thermal.0.gpu2: 24C > > dev.aw_thermal.0.gpu1: 22C > > dev.aw_thermal.0.cpu: 24C > > > > OpenBSD: > > $ sysctl hw > > hw.sensors.sxitemp0.temp0=43.57 degC (CPU) > > hw.sensors.sxitemp0.temp1=43.57 degC (GPU) > > hw.sensors.sxitemp0.temp2=44.39 degC
The FreeBSD values seem to be very low. I'm not sure I believe they are more accurate than the uncalibrated values that OpenBSD currently provides.
