git: f4a041af299c - main - add overlay for enabling spi0 on allwinner h3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jan 2022 09:42:28 UTC
The branch main has been updated by avg:
URL: https://cgit.FreeBSD.org/src/commit/?id=f4a041af299c5faa4cb37eca9fc25b31259fe893
commit f4a041af299c5faa4cb37eca9fc25b31259fe893
Author: Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-24 16:36:34 +0000
Commit: Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2022-01-26 09:42:20 +0000
add overlay for enabling spi0 on allwinner h3
At least on Orange Pi PC Plus it is routed to the 40-pin header, so it
can used to communicate with external devices.
MFC after: 2 weeks
---
sys/dts/arm/overlays/sun8i-h3-spi0.dtso | 10 ++++++++++
sys/modules/dtb/allwinner/Makefile | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/sys/dts/arm/overlays/sun8i-h3-spi0.dtso b/sys/dts/arm/overlays/sun8i-h3-spi0.dtso
new file mode 100644
index 000000000000..c0e79da15e1b
--- /dev/null
+++ b/sys/dts/arm/overlays/sun8i-h3-spi0.dtso
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "allwinner,sun8i-h3";
+};
+
+&{/soc/spi@1c68000} {
+ status = "okay";
+};
diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile
index 9e730e7d41bd..143df739bbfd 100644
--- a/sys/modules/dtb/allwinner/Makefile
+++ b/sys/modules/dtb/allwinner/Makefile
@@ -29,7 +29,8 @@ DTSO= sun8i-a83t-sid.dtso \
sun8i-h3-i2c1.dtso \
sun8i-h3-mmc0-disable.dtso \
sun8i-h3-mmc1-disable.dtso \
- sun8i-h3-mmc2-disable.dtso
+ sun8i-h3-mmc2-disable.dtso \
+ sun8i-h3-spi0.dtso
LINKS= \
${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \