Browse Source

dtso: allwinner: Add an overlay for H3 thermal node

Reviewed by:	manu
freebsd/current/master
ganbold 1 year ago
parent
commit
2357c214a0
3 changed files with 34 additions and 1 deletions
  1. +5
    -0
      sys/dts/arm/overlays/sun8i-h3-sid.dtso
  2. +27
    -0
      sys/dts/arm/overlays/sun8i-h3-ths.dtso
  3. +2
    -1
      sys/modules/dtb/allwinner/Makefile

+ 5
- 0
sys/dts/arm/overlays/sun8i-h3-sid.dtso View File

@@ -10,5 +10,10 @@
compatible = "allwinner,sun8i-h3-sid";
reg = <0x1c14000 0x400>;
status = "okay";

/* Data cells */
ths_calib: calib@234 {
reg = <0x234 0x2>;
};
};
};

+ 27
- 0
sys/dts/arm/overlays/sun8i-h3-ths.dtso View File

@@ -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@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";
};
};

+ 2
- 1
sys/modules/dtb/allwinner/Makefile View File

@@ -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 \


Loading…
Cancel
Save