svn commit: r354678 - in stable/12/sys: dts/arm/overlays modules/dtb/allwinner
Ganbold Tsagaankhuu
ganbold at FreeBSD.org
Wed Nov 13 10:08:46 UTC 2019
Author: ganbold
Date: Wed Nov 13 10:08:45 2019
New Revision: 354678
URL: https://svnweb.freebsd.org/changeset/base/354678
Log:
MFC r351452
dtso: allwinner: Add an overlay for H3 thermal node
Added:
stable/12/sys/dts/arm/overlays/sun8i-h3-ths.dtso (contents, props changed)
Modified:
stable/12/sys/dts/arm/overlays/sun8i-h3-sid.dtso
stable/12/sys/modules/dtb/allwinner/Makefile
Modified: stable/12/sys/dts/arm/overlays/sun8i-h3-sid.dtso
==============================================================================
--- stable/12/sys/dts/arm/overlays/sun8i-h3-sid.dtso Wed Nov 13 07:43:11 2019 (r354677)
+++ stable/12/sys/dts/arm/overlays/sun8i-h3-sid.dtso Wed Nov 13 10:08:45 2019 (r354678)
@@ -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: stable/12/sys/dts/arm/overlays/sun8i-h3-ths.dtso
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ stable/12/sys/dts/arm/overlays/sun8i-h3-ths.dtso Wed Nov 13 10:08:45 2019 (r354678)
@@ -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: stable/12/sys/modules/dtb/allwinner/Makefile
==============================================================================
--- stable/12/sys/modules/dtb/allwinner/Makefile Wed Nov 13 07:43:11 2019 (r354677)
+++ stable/12/sys/modules/dtb/allwinner/Makefile Wed Nov 13 10:08:45 2019 (r354678)
@@ -24,7 +24,8 @@ DTS= \
sun8i-h3-orangepi-plus2e.dts
DTSO= sun8i-a83t-sid.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-all
mailing list