arm64: Add DTS overlays for A64
- sun50i-a64-sid.dtso registers the Security ID node, needed for thermal - sun50i-a64-ths.dtso registers the thermal node, for which we already have a driver - sun50i-a64-timer.dtso registers the timer node, needed as the generic timer glitch on A64 SoC. Approved by: re (gjb)
This commit is contained in:
parent
29f9b2a93e
commit
a9e5047fa6
7
sys/dts/arm64/Makefile
Normal file
7
sys/dts/arm64/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
DTS!=ls *.dts
|
||||
|
||||
all: test-dts
|
||||
|
||||
.include <bsd.init.mk>
|
7
sys/dts/arm64/overlays/Makefile
Normal file
7
sys/dts/arm64/overlays/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
DTSO!=ls *.dtso
|
||||
|
||||
all: test-dtso
|
||||
|
||||
.include <bsd.init.mk>
|
17
sys/dts/arm64/overlays/sun50i-a64-sid.dtso
Normal file
17
sys/dts/arm64/overlays/sun50i-a64-sid.dtso
Normal file
@ -0,0 +1,17 @@
|
||||
/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>;
|
||||
};
|
||||
};
|
||||
};
|
27
sys/dts/arm64/overlays/sun50i-a64-ths.dtso
Normal file
27
sys/dts/arm64/overlays/sun50i-a64-ths.dtso
Normal file
@ -0,0 +1,27 @@
|
||||
/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";
|
||||
};
|
||||
};
|
17
sys/dts/arm64/overlays/sun50i-a64-timer.dtso
Normal file
17
sys/dts/arm64/overlays/sun50i-a64-timer.dtso
Normal file
@ -0,0 +1,17 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
/ {
|
||||
compatible = "allwinner,sun50i-a64";
|
||||
};
|
||||
|
||||
&{/soc} {
|
||||
timer@1c20c00 {
|
||||
compatible = "allwinner,sun8i-a23-timer";
|
||||
reg = <0x1c20c00 0x2C>;
|
||||
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
@ -43,6 +43,11 @@ DTS= \
|
||||
allwinner/sun50i-a64-pine64.dts \
|
||||
allwinner/sun50i-a64-sopine-baseboard.dts \
|
||||
allwinner/sun50i-h5-orangepi-pc2.dts
|
||||
|
||||
DTSO= sun50i-a64-sid.dtso \
|
||||
sun50i-a64-ths.dtso \
|
||||
sun50i-a64-timer.dtso
|
||||
|
||||
.endif
|
||||
|
||||
.include <bsd.dtb.mk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user