mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add spigen overlay for Raspberry Pi 4
Submitted by: gergely.czuczy@harmless.hu
This commit is contained in:
parent
66f2e4b620
commit
eb5e1004e2
2 changed files with 32 additions and 1 deletions
30
sys/dts/arm64/overlays/spigen-rpi4.dtso
Normal file
30
sys/dts/arm64/overlays/spigen-rpi4.dtso
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* $FreeBSD$ */
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm2711";
|
||||
};
|
||||
|
||||
&{/soc/spi@7e204000} {
|
||||
status = "okay";
|
||||
spigen0: spigen0 {
|
||||
compatible = "freebsd,spigen";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <500000>; /* Req'd property, override with spi(8) */
|
||||
status = "okay";
|
||||
};
|
||||
spigen1: spigen1 {
|
||||
compatible = "freebsd,spigen";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <500000>; /* Req'd property, override with spi(8) */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&{/soc/gpio@7e200000/spi0_cs_pins} {
|
||||
brcm,pins = <8 7>;
|
||||
brcm,function = <4>; /* ALT0 */
|
||||
};
|
||||
|
||||
|
|
@ -6,7 +6,8 @@ DTSO= \
|
|||
spigen-rpi2.dtso
|
||||
.elif ${MACHINE_ARCH} == "aarch64"
|
||||
DTSO= \
|
||||
spigen-rpi3.dtso
|
||||
spigen-rpi3.dtso \
|
||||
spigen-rpi4.dtso
|
||||
.endif
|
||||
|
||||
.include <bsd.dtb.mk>
|
||||
|
|
|
|||
Loading…
Reference in a new issue