git: b8db946c3b44 - stable/13 - add overlay for enabling spi0 on allwinner h3

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 09 Feb 2022 09:36:14 UTC
The branch stable/13 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=b8db946c3b4498d9d2b22d3cd184b2c5033ade73

commit b8db946c3b4498d9d2b22d3cd184b2c5033ade73
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-24 16:36:34 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2022-02-09 09:35:39 +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.
    
    (cherry picked from commit f4a041af299c5faa4cb37eca9fc25b31259fe893)
---
 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 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 \