thermal dns for allwinner/h3

Daniel Braniss danny at cs.huji.ac.il
Mon Aug 27 05:40:31 UTC 2018


hi,
this overlay is working form me, though I think the actual temperature  reported is a bit off (40-50C)

/dts-v1/;
/plugin/;

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun8i-h3-ccu.h>
#include <dt-bindings/reset/sun8i-h3-ccu.h>

/ {
 compatible = "allwinner,sun8i-h3";
};

&{/soc} {
	ths: thermal_sensor at 1c25000 {
		 compatible = "allwinner,sun8i-h3-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";
		 status = "okay";
		 nvmem-cells = <&ths_calib>;
		 nvmem-cell-names = "ths-calib";
		 };
};




More information about the freebsd-arm mailing list