From: patrick Date: Tue, 8 Nov 2022 19:49:34 +0000 (+0000) Subject: Hook up all those Qualcomm SoC SPMI devices. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ac2be58b88804ab2a3fb5c8a085b9ef5e4370518;p=openbsd Hook up all those Qualcomm SoC SPMI devices. --- diff --git a/sys/arch/arm64/conf/GENERIC b/sys/arch/arm64/conf/GENERIC index eabd63cdf22..293f48c0240 100644 --- a/sys/arch/arm64/conf/GENERIC +++ b/sys/arch/arm64/conf/GENERIC @@ -1,4 +1,4 @@ -# $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 # @@ -308,10 +308,15 @@ sdmmc* at dwmmc? # 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 diff --git a/sys/arch/arm64/conf/RAMDISK b/sys/arch/arm64/conf/RAMDISK index 7557959289a..39b44f4181e 100644 --- a/sys/arch/arm64/conf/RAMDISK +++ b/sys/arch/arm64/conf/RAMDISK @@ -1,4 +1,4 @@ -# $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 @@ -235,10 +235,15 @@ sdmmc* at dwmmc? # 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 diff --git a/sys/dev/fdt/files.fdt b/sys/dev/fdt/files.fdt index f01a350b87a..eb7a42e0da0 100644 --- a/sys/dev/fdt/files.fdt +++ b/sys/dev/fdt/files.fdt @@ -1,8 +1,10 @@ -# $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 @@ -636,3 +638,28 @@ file dev/fdt/qcgpio_fdt.c qcgpio # 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