dtso: allwinner: Add an overlay for H3 thermal node
Reviewed by: manu
This commit is contained in:
parent
74fa3a52ce
commit
a3965ba248
@ -10,5 +10,10 @@
|
||||
compatible = "allwinner,sun8i-h3-sid";
|
||||
reg = <0x1c14000 0x400>;
|
||||
status = "okay";
|
||||
|
||||
/* Data cells */
|
||||
ths_calib: calib@234 {
|
||||
reg = <0x234 0x2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
27
sys/dts/arm/overlays/sun8i-h3-ths.dtso
Normal file
27
sys/dts/arm/overlays/sun8i-h3-ths.dtso
Normal 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";
|
||||
};
|
||||
};
|
@ -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…
Reference in New Issue
Block a user