diff --git a/sys/dts/arm/overlays/sun8i-h3-sid.dtso b/sys/dts/arm/overlays/sun8i-h3-sid.dtso index 24a24c26ef8e..16502d3e4e64 100644 --- a/sys/dts/arm/overlays/sun8i-h3-sid.dtso +++ b/sys/dts/arm/overlays/sun8i-h3-sid.dtso @@ -10,5 +10,10 @@ compatible = "allwinner,sun8i-h3-sid"; reg = <0x1c14000 0x400>; status = "okay"; + + /* Data cells */ + ths_calib: calib@234 { + reg = <0x234 0x2>; + }; }; }; diff --git a/sys/dts/arm/overlays/sun8i-h3-ths.dtso b/sys/dts/arm/overlays/sun8i-h3-ths.dtso new file mode 100644 index 000000000000..ba65caf74da1 --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-ths.dtso @@ -0,0 +1,27 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc} { + ths: thermal_sensor@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "apb", "ths"; + resets = <&ccu RST_BUS_THS>; + reset-names = "apb"; + #thermal-sensor-cells = <0>; + status = "okay"; + + nvmem-cells = <&ths_calib>; + nvmem-cell-names = "ths-calib"; + }; +}; diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile index df2016d42ba9..dee581f4fa4b 100644 --- a/sys/modules/dtb/allwinner/Makefile +++ b/sys/modules/dtb/allwinner/Makefile @@ -25,7 +25,8 @@ DTS= \ DTSO= sun8i-a83t-sid.dtso \ sun8i-h3-i2c0.dtso \ - sun8i-h3-sid.dtso + sun8i-h3-sid.dtso \ + sun8i-h3-ths.dtso LINKS= \ ${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \