[rpi] Reorganize spigen(4) overlays for Raspberry Pi
- Remove CS=2 entry from spigen-rpi2 since it didn't work - Add spigen-rpi3 overlay for Raspberry Pi 3 - Enable rpi overlay modules for GENERIC kernel on aarch64 PR: 233489 Submitted by: bobf@mrp3.com Reviewed by: db MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D16088
This commit is contained in:
parent
abfa3c39e7
commit
00a4815fc6
@ -296,4 +296,4 @@ options FDT
|
||||
device acpi
|
||||
|
||||
# DTBs
|
||||
makeoptions MODULES_EXTRA="dtb/allwinner dtb/rockchip"
|
||||
makeoptions MODULES_EXTRA="dtb/allwinner dtb/rockchip dtb/rpi"
|
||||
|
@ -12,6 +12,7 @@
|
||||
spigen0: spigen0 {
|
||||
compatible = "freebsd,spigen";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <500000>; /* Req'd property, override with spi(8) */
|
||||
status = "okay";
|
||||
};
|
||||
spigen1: spigen1 {
|
||||
@ -20,20 +21,10 @@
|
||||
spi-max-frequency = <500000>; /* Req'd property, override with spi(8) */
|
||||
status = "okay";
|
||||
};
|
||||
spigen2: spigen2 {
|
||||
compatible = "freebsd,spigen";
|
||||
reg = <2>;
|
||||
spi-max-frequency = <500000>; /* Req'd property, override with spi(8) */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&{/soc/gpio@7e200000/spi0_cs_pins} {
|
||||
brcm,pins = <8 7 16>;
|
||||
brcm,pins = <8 7>;
|
||||
brcm,function = <4>; /* ALT0 */
|
||||
};
|
||||
|
||||
&{/soc/gpio@7e200000/spi0_gpio7} {
|
||||
brcm,pins = <7 8 16 9 10 11>;
|
||||
};
|
||||
|
||||
|
30
sys/dts/arm64/overlays/spigen-rpi3.dtso
Normal file
30
sys/dts/arm64/overlays/spigen-rpi3.dtso
Normal file
@ -0,0 +1,30 @@
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm2837";
|
||||
};
|
||||
|
||||
&{/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 */
|
||||
};
|
||||
|
@ -1,7 +1,12 @@
|
||||
# $FreeBSD$
|
||||
# DTS files for the Raspberry Pi-B
|
||||
.if ${MACHINE_ARCH:Marmv[67]*} != ""
|
||||
DTSO= \
|
||||
spigen-rpi-b.dtso \
|
||||
spigen-rpi2.dtso \
|
||||
spigen-rpi2.dtso
|
||||
.elif ${MACHINE_ARCH} == "aarch64"
|
||||
DTSO= \
|
||||
spigen-rpi3.dtso
|
||||
.endif
|
||||
|
||||
.include <bsd.dtb.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user