git: 184d0b3fe348 - main - aw_syscon: enable for Allwinner D1 (riscv)

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Sat, 16 Nov 2024 19:04:30 UTC
The branch main has been updated by mhorne:

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

commit 184d0b3fe348a6419794673f9431a290cb32e47b
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2024-11-16 19:02:49 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2024-11-16 19:04:04 +0000

    aw_syscon: enable for Allwinner D1 (riscv)
    
    Add the relevant compatible string and build glue. Update the man page
    with relevant compat strings.
    
    Reviewed by:    manu
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D47516
---
 share/man/man4/man4.arm/aw_syscon.4 | 10 +++++++++-
 sys/arm/allwinner/aw_syscon.c       |  1 +
 sys/riscv/allwinner/files.allwinner |  1 +
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/share/man/man4/man4.arm/aw_syscon.4 b/share/man/man4/man4.arm/aw_syscon.4
index 034bca716bcf..e32f329e489a 100644
--- a/share/man/man4/man4.arm/aw_syscon.4
+++ b/share/man/man4/man4.arm/aw_syscon.4
@@ -24,7 +24,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd January 7, 2018
+.Dd November 11, 2024
 .Dt AW_SYSCON 4
 .Os
 .Sh NAME
@@ -48,9 +48,17 @@ strings:
 .It
 allwinner,sun50i-a64-system-controller
 .It
+allwinner,sun50i-a64-system-control
+.It
 allwinner,sun8i-a83t-system-controller
 .It
 allwinner,sun8i-h3-system-controller
+.It
+allwinner,sun8i-h3-system-control
+.It
+allwinner,sun50i-h5-system-control
+.It
+allwinner,sun20i-d1-system-control
 .El
 .Sh AUTHORS
 The
diff --git a/sys/arm/allwinner/aw_syscon.c b/sys/arm/allwinner/aw_syscon.c
index 6a880a9b617e..cd2d3eeb53cd 100644
--- a/sys/arm/allwinner/aw_syscon.c
+++ b/sys/arm/allwinner/aw_syscon.c
@@ -51,6 +51,7 @@ static struct ofw_compat_data compat_data[] = {
 	{"allwinner,sun8i-h3-system-controller", 1},
 	{"allwinner,sun8i-h3-system-control", 1},
 	{"allwinner,sun50i-h5-system-control", 1},
+	{"allwinner,sun20i-d1-system-control", 1},
 	{NULL,             0}
 };
 
diff --git a/sys/riscv/allwinner/files.allwinner b/sys/riscv/allwinner/files.allwinner
index af6a9a36ee4c..e29300c627a1 100644
--- a/sys/riscv/allwinner/files.allwinner
+++ b/sys/riscv/allwinner/files.allwinner
@@ -1,5 +1,6 @@
 
 arm/allwinner/aw_rtc.c			optional aw_rtc fdt
+arm/allwinner/aw_syscon.c		optional syscon
 arm/allwinner/aw_wdog.c			optional aw_wdog
 
 # Allwinner clock drivers