git: aa460944533a - stable/12 - add overlay for enabling spi0 on allwinner h3

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

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

commit aa460944533af10672151bf1eb2c064ab5d982f6
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:39:13 +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 8309c1289889..0a47ca31f3af 100644
--- a/sys/modules/dtb/allwinner/Makefile
+++ b/sys/modules/dtb/allwinner/Makefile
@@ -25,7 +25,8 @@ DTS=	\
 	sun8i-h3-orangepi-plus2e.dts
 
 DTSO=	sun8i-a83t-sid.dtso \
-	sun8i-h3-i2c0.dtso
+	sun8i-h3-i2c0.dtso \
+	sun8i-h3-spi0.dtso
 
 LINKS= \
 	${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \