summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/conf
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2024-03-25 17:24:04 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2024-03-25 17:24:04 +0000
commit003b93e13797f12042e617988e136edbe09a3f70 (patch)
treeefb401957417179de9b0feba02c742d62bdd752e /sys/arch/arm64/conf
parenta7a4a4b0ff14437bc94699063b8127eba17d8c01 (diff)
Add rpigpio(4), a driver for the RP1 GPIO controller on the Raspberry Pi 5.
With this, GPIOs can be correctly configured and engaged. Complete pinctrl as well as IRQ functionality is yet to be implemented. ok kettenis@
Diffstat (limited to 'sys/arch/arm64/conf')
-rw-r--r--sys/arch/arm64/conf/GENERIC3
-rw-r--r--sys/arch/arm64/conf/RAMDISK3
-rw-r--r--sys/arch/arm64/conf/files.arm646
3 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/arm64/conf/GENERIC b/sys/arch/arm64/conf/GENERIC
index be2f71ed588..b6421e6e22c 100644
--- a/sys/arch/arm64/conf/GENERIC
+++ b/sys/arch/arm64/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.285 2024/03/24 22:34:48 patrick Exp $
+# $OpenBSD: GENERIC,v 1.286 2024/03/25 17:24:03 patrick Exp $
#
# GENERIC machine description file
#
@@ -244,6 +244,7 @@ bse* at fdt?
bse* at acpi?
dwctwo* at fdt?
usb* at dwctwo?
+rpigpio* at fdt? early 1
# Amlogic SoCs
amlclock* at fdt? early 1
diff --git a/sys/arch/arm64/conf/RAMDISK b/sys/arch/arm64/conf/RAMDISK
index 23be641497f..c25a704337d 100644
--- a/sys/arch/arm64/conf/RAMDISK
+++ b/sys/arch/arm64/conf/RAMDISK
@@ -1,4 +1,4 @@
-# $OpenBSD: RAMDISK,v 1.215 2024/03/24 22:34:48 patrick Exp $
+# $OpenBSD: RAMDISK,v 1.216 2024/03/25 17:24:03 patrick Exp $
machine arm64
maxusers 4
@@ -180,6 +180,7 @@ bse* at fdt?
bse* at acpi?
dwctwo* at fdt?
usb* at dwctwo?
+rpigpio* at fdt? early 1
# Amlogic SoCs
amlclock* at fdt? early 1
diff --git a/sys/arch/arm64/conf/files.arm64 b/sys/arch/arm64/conf/files.arm64
index 117a99b10e4..833ea3f050f 100644
--- a/sys/arch/arm64/conf/files.arm64
+++ b/sys/arch/arm64/conf/files.arm64
@@ -1,4 +1,4 @@
-# $OpenBSD: files.arm64,v 1.68 2024/01/01 18:25:50 kettenis Exp $
+# $OpenBSD: files.arm64,v 1.69 2024/03/25 17:24:03 patrick Exp $
maxpartitions 16
maxusers 2 8 128
@@ -259,6 +259,10 @@ attach smmu at fdt with smmu_fdt
file arch/arm64/dev/smmu.c smmu
file arch/arm64/dev/smmu_fdt.c smmu_fdt
+device rpigpio
+attach rpigpio at fdt
+file arch/arm64/dev/rpigpio.c rpigpio
+
# ACPI
include "dev/acpi/files.acpi"