aboutsummaryrefslogtreecommitdiff
path: root/sys/dts/arm64/overlays
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2020-04-14 19:05:17 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2020-04-14 19:05:17 +0000
commitd6b44474961cb52be87177d81ac6c14ddc737f0f (patch)
tree3f3407ac1bffb2c4d2f89d569d07fe52fb07afa5 /sys/dts/arm64/overlays
parent211b4e42597ebf9e9807d3ec20e566794284d9ec (diff)
downloadsrc-d6b44474961cb52be87177d81ac6c14ddc737f0f.tar.gz
src-d6b44474961cb52be87177d81ac6c14ddc737f0f.zip
allwinner: aw_thermal: Cope with DTS changes
The upstream DTS now include the thermal device node and the SID calibration entry. Update our driver to cope with this change and remove the DTB overlays that aren't needed anymore. MFC after: 2 months X-MFC-With: r359934
Notes
Notes: svn path=/head/; revision=359935
Diffstat (limited to 'sys/dts/arm64/overlays')
-rw-r--r--sys/dts/arm64/overlays/sun50i-a64-sid.dtso17
-rw-r--r--sys/dts/arm64/overlays/sun50i-a64-ths.dtso27
-rw-r--r--sys/dts/arm64/overlays/sun50i-h5-sid.dtso17
-rw-r--r--sys/dts/arm64/overlays/sun50i-h5-ths.dtso26
4 files changed, 0 insertions, 87 deletions
diff --git a/sys/dts/arm64/overlays/sun50i-a64-sid.dtso b/sys/dts/arm64/overlays/sun50i-a64-sid.dtso
deleted file mode 100644
index 3d1b351b53c9..000000000000
--- a/sys/dts/arm64/overlays/sun50i-a64-sid.dtso
+++ /dev/null
@@ -1,17 +0,0 @@
-/dts-v1/;
-/plugin/;
-
-/ {
- compatible = "allwinner,sun50i-a64";
-};
-
-&{/soc} {
- sid: eeprom@1c14000 {
- compatible = "allwinner,sun50i-a64-sid";
- reg = <0x1c14000 0x400>;
-
- ths_calib: calib@234 {
- reg = <0x234 0x6>;
- };
- };
-};
diff --git a/sys/dts/arm64/overlays/sun50i-a64-ths.dtso b/sys/dts/arm64/overlays/sun50i-a64-ths.dtso
deleted file mode 100644
index a7c7dd21b2d0..000000000000
--- a/sys/dts/arm64/overlays/sun50i-a64-ths.dtso
+++ /dev/null
@@ -1,27 +0,0 @@
-/dts-v1/;
-/plugin/;
-
-#include <dt-bindings/interrupt-controller/arm-gic.h>
-#include <dt-bindings/clock/sun50i-a64-ccu.h>
-#include <dt-bindings/reset/sun50i-a64-ccu.h>
-
-/ {
- compatible = "allwinner,sun50i-a64";
-};
-
-&{/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 = <2>;
- status = "okay";
-
- nvmem-cells = <&ths_calib>;
- nvmem-cell-names = "ths-calib";
- };
-};
diff --git a/sys/dts/arm64/overlays/sun50i-h5-sid.dtso b/sys/dts/arm64/overlays/sun50i-h5-sid.dtso
deleted file mode 100644
index 9a87348dbc57..000000000000
--- a/sys/dts/arm64/overlays/sun50i-h5-sid.dtso
+++ /dev/null
@@ -1,17 +0,0 @@
-/dts-v1/;
-/plugin/;
-
-/ {
- compatible = "allwinner,sun50i-h5";
-};
-
-&{/soc} {
- sid: eeprom@1c14000 {
- compatible = "allwinner,sun50i-h5-sid";
- reg = <0x1c14000 0x400>;
-
- ths_calib: calib@234 {
- reg = <0x234 0x4>;
- };
- };
-};
diff --git a/sys/dts/arm64/overlays/sun50i-h5-ths.dtso b/sys/dts/arm64/overlays/sun50i-h5-ths.dtso
deleted file mode 100644
index 9099f1660d11..000000000000
--- a/sys/dts/arm64/overlays/sun50i-h5-ths.dtso
+++ /dev/null
@@ -1,26 +0,0 @@
-/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,sun50i-h5";
-};
-
-&{/soc} {
- ths: thermal_sensor@1c25000 {
- compatible = "allwinner,sun50i-h5-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>;
-
- nvmem-cells = <&ths_calib>;
- nvmem-cell-names = "ths-calib";
- };
-};