git: 87a7011b0974 - stable/14 - add allwinner overlays for enabling additional USB ports

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Sat, 17 Feb 2024 15:12:16 UTC
The branch stable/14 has been updated by avg:

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

commit 87a7011b0974492c3244fbd97516c24de7f2755f
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2022-07-10 20:09:23 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2024-02-17 14:15:10 +0000

    add allwinner overlays for enabling additional USB ports
    
    For instance, on NanoPi NEO two additional ports are available via a
    GPIO header.
    
    (cherry picked from commit 197944948e6229f625306f38403737ed723e544e)
---
 sys/dts/arm/overlays/sun8i-h3-usb1.dtso | 14 ++++++++++++++
 sys/dts/arm/overlays/sun8i-h3-usb2.dtso | 14 ++++++++++++++
 sys/modules/dtb/allwinner/Makefile      |  4 +++-
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/sys/dts/arm/overlays/sun8i-h3-usb1.dtso b/sys/dts/arm/overlays/sun8i-h3-usb1.dtso
new file mode 100644
index 000000000000..247faa370a14
--- /dev/null
+++ b/sys/dts/arm/overlays/sun8i-h3-usb1.dtso
@@ -0,0 +1,14 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+	compatible = "allwinner,sun8i-h3";
+};
+
+&{/soc/usb@1c1b000} {
+	status = "okay";
+};
+
+&{/soc/usb@1c1b400} {
+	status = "okay";
+};
diff --git a/sys/dts/arm/overlays/sun8i-h3-usb2.dtso b/sys/dts/arm/overlays/sun8i-h3-usb2.dtso
new file mode 100644
index 000000000000..02533289e3dc
--- /dev/null
+++ b/sys/dts/arm/overlays/sun8i-h3-usb2.dtso
@@ -0,0 +1,14 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+	compatible = "allwinner,sun8i-h3";
+};
+
+&{/soc/usb@1c1c000} {
+	status = "okay";
+};
+
+&{/soc/usb@1c1c400} {
+	status = "okay";
+};
diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile
index 524636e380d6..f04be9ca0dc9 100644
--- a/sys/modules/dtb/allwinner/Makefile
+++ b/sys/modules/dtb/allwinner/Makefile
@@ -29,7 +29,9 @@ DTSO=	sun8i-a83t-sid.dtso \
 	sun8i-h3-mmc0-disable.dtso \
 	sun8i-h3-mmc1-disable.dtso \
 	sun8i-h3-mmc2-disable.dtso \
-	sun8i-h3-spi0.dtso
+	sun8i-h3-spi0.dtso \
+	sun8i-h3-usb1.dtso \
+	sun8i-h3-usb2.dtso
 
 LINKS= \
 	${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \