-# $OpenBSD: GENERIC,v 1.244 2022/11/08 19:07:34 tobhe Exp $
+# $OpenBSD: GENERIC,v 1.245 2022/11/08 19:49:34 patrick Exp $
#
# GENERIC machine description file
#
# Qualcomm SoCs
qcdwusb* at fdt?
qcgpio* at acpi?
-qcgpio* at fdt?
+qcgpio* at fdt? early 1
qciic* at acpi?
qciic* at fdt?
iic* at qciic?
+qcspmi* at fdt?
+qcpmic* at qcspmi?
+qcpmicgpio* at qcpmic?
+qcpon* at qcpmic?
+qcrtc* at qcpmic?
# Sunxi SoCs
sxipio* at fdt? early 1 # GPIO pins for leds & PHYs
-# $OpenBSD: RAMDISK,v 1.181 2022/11/06 15:36:13 patrick Exp $
+# $OpenBSD: RAMDISK,v 1.182 2022/11/08 19:49:34 patrick Exp $
machine arm64
maxusers 4
# Qualcomm SoCs
qcdwusb* at fdt?
qcgpio* at acpi?
-qcgpio* at fdt?
+qcgpio* at fdt? early 1
qciic* at acpi?
qciic* at fdt?
iic* at qciic?
+qcspmi* at fdt?
+qcpmic* at qcspmi?
+qcpmicgpio* at qcpmic?
+qcpon* at qcpmic?
+qcrtc* at qcpmic?
# Sunxi SoCs
sxipio* at fdt? early 1 # GPIO pins for leds & PHYs
-# $OpenBSD: files.fdt,v 1.168 2022/11/08 19:06:57 tobhe Exp $
+# $OpenBSD: files.fdt,v 1.169 2022/11/08 19:49:34 patrick Exp $
#
# Config file and device description for machine-independent FDT code.
# Included by ports that need it.
+define spmi {}
+
device iicmux: i2cbus
attach iicmux at fdt
file dev/fdt/iicmux.c iicmux
# Qualcomm I2C controller
attach qciic at fdt with qciic_fdt
file dev/fdt/qciic_fdt.c qciic
+
+# Qualcomm SPMI controller
+device qcspmi: spmi
+attach qcspmi at fdt
+file dev/fdt/qcspmi.c qcspmi
+
+# Qualcomm PMIC
+device qcpmic: spmi
+attach qcpmic at spmi
+file dev/fdt/qcpmic.c qcpmic
+
+# Qualcomm PMIC GPIO
+device qcpmicgpio
+attach qcpmicgpio at spmi
+file dev/fdt/qcpmicgpio.c qcpmicgpio
+
+# Qualcomm PMIC PON
+device qcpon
+attach qcpon at spmi
+file dev/fdt/qcpon.c qcpon
+
+# Qualcomm PMIC RTC
+device qcrtc
+attach qcrtc at spmi
+file dev/fdt/qcrtc.c qcrtc