From 011660e3f7480f3ea807bb0e53003e6961872d12 Mon Sep 17 00:00:00 2001 From: "Issam E. Maghni" Date: Thu, 19 Feb 2026 08:09:59 -0500 Subject: [PATCH] raspberry-pi/5: add modules for RP1 controller --- raspberry-pi/5/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/raspberry-pi/5/default.nix b/raspberry-pi/5/default.nix index bc2bc79d..d90c7886 100644 --- a/raspberry-pi/5/default.nix +++ b/raspberry-pi/5/default.nix @@ -5,6 +5,9 @@ ... }: +let + linuxVariant = config.boot.kernelPackages.kernel.pname; +in { imports = [ ../common/default.nix ]; @@ -15,7 +18,13 @@ initrd.availableKernelModules = [ "nvme" "pcie-brcmstb" - ]; + "clk-rp1" + ] + # CONFIG_MISC_RP1 is named CONFIG_MFD_RP1 in RPi's fork. + ++ lib.optional (linuxVariant == "linux") "rp1_pci" + ++ lib.optional (linuxVariant == "linux-rpi") "rp1" + # CONFIG_PINCTRL_RP1 is not a tristate in RPi's fork. + ++ lib.optional (linuxVariant == "linux") "pinctrl-rp1"; }; hardware.deviceTree.filter = lib.mkDefault "bcm2712*-rpi-*.dtb";