svn commit: r351452 - in head/sys: dts/arm/overlays modules/dtb/allwinner
Ganbold Tsagaankhuu
ganbold at FreeBSD.org
Sat Aug 24 13:26:36 UTC 2019
Author: ganbold
Date: Sat Aug 24 13:26:34 2019
New Revision: 351452
URL: https://svnweb.freebsd.org/changeset/base/351452
Log:
dtso: allwinner: Add an overlay for H3 thermal node
Reviewed by: manu
Added:
head/sys/dts/arm/overlays/sun8i-h3-ths.dtso (contents, props changed)
Modified:
head/sys/dts/arm/overlays/sun8i-h3-sid.dtso
head/sys/modules/dtb/allwinner/Makefile
Modified: head/sys/dts/arm/overlays/sun8i-h3-sid.dtso
==============================================================================
--- head/sys/dts/arm/overlays/sun8i-h3-sid.dtso Sat Aug 24 12:51:46 2019 (r351451)
+++ head/sys/dts/arm/overlays/sun8i-h3-sid.dtso Sat Aug 24 13:26:34 2019 (r351452)
@@ -10,5 +10,10 @@
compatible = "allwinner,sun8i-h3-sid";
reg = <0x1c14000 0x400>;
status = "okay";
+
+ /* Data cells */
+ ths_calib: calib at 234 {
+ reg = <0x234 0x2>;
+ };
};
};
Added: head/sys/dts/arm/overlays/sun8i-h3-ths.dtso
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/dts/arm/overlays/sun8i-h3-ths.dtso Sat Aug 24 13:26:34 2019 (r351452)
@@ -0,0 +1,27 @@
+/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";
+ #thermal-sensor-cells = <0>;
+ status = "okay";
+
+ nvmem-cells = <&ths_calib>;
+ nvmem-cell-names = "ths-calib";
+ };
+};
Modified: head/sys/modules/dtb/allwinner/Makefile
==============================================================================
--- head/sys/modules/dtb/allwinner/Makefile Sat Aug 24 12:51:46 2019 (r351451)
+++ head/sys/modules/dtb/allwinner/Makefile Sat Aug 24 13:26:34 2019 (r351452)
@@ -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 \
More information about the svn-src-head
mailing list