aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2021-11-24 16:36:34 +0000
committerAndriy Gapon <avg@FreeBSD.org>2022-02-09 09:35:39 +0000
commitb8db946c3b4498d9d2b22d3cd184b2c5033ade73 (patch)
tree307b28985fc44e85084ce08836ad7761343b0289
parentea331a2ef46844bb15630d0b4abdafbfce709271 (diff)
downloadsrc-b8db946c3b4498d9d2b22d3cd184b2c5033ade73.tar.gz
src-b8db946c3b4498d9d2b22d3cd184b2c5033ade73.zip
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. (cherry picked from commit f4a041af299c5faa4cb37eca9fc25b31259fe893)
-rw-r--r--sys/dts/arm/overlays/sun8i-h3-spi0.dtso10
-rw-r--r--sys/modules/dtb/allwinner/Makefile3
2 files changed, 12 insertions, 1 deletions
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 fe3dccc7fd91..ecb006092892 100644
--- a/sys/modules/dtb/allwinner/Makefile
+++ b/sys/modules/dtb/allwinner/Makefile
@@ -28,7 +28,8 @@ DTSO= sun8i-a83t-sid.dtso \
sun8i-h3-i2c0.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 \