From 6075dd2edd23bbca2959be4400473146a361f6b4 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 25 Oct 2026 15:18:55 -0700 Subject: [PATCH] raspberry-pi: clarify PWM0 migration guidance --- raspberry-pi/4/pwm0.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/raspberry-pi/4/pwm0.nix b/raspberry-pi/4/pwm0.nix index 13b11c56..d4d076a1 100644 --- a/raspberry-pi/4/pwm0.nix +++ b/raspberry-pi/4/pwm0.nix @@ -10,8 +10,7 @@ "pwm0" ] '' - If hardware.raspberry-pi."4".pwm0.enable was false, remove it without adding firmware configuration. - If it was true, use the pwm firmware overlay for PWM0 on GPIO18: + To enable PWM0 on GPIO18, use the pwm firmware overlay: { boot.loader.generic-extlinux-compatible.useGenerationDeviceTree = false; @@ -29,7 +28,7 @@ The removed pwm0 module explicitly assigned a 100 MHz clock. Keep clock = 100000000 to preserve that assignment. Without clock, the pwm overlay leaves the base clock configuration unchanged: - https://github.com/raspberrypi/linux/blob/e165a3e0c5c6729d077c30c6d720c029d688d99d/arch/arm/boot/dts/overlays/pwm-overlay.dts + https://github.com/raspberrypi/linux/blob/rpi-6.18.y/arch/arm/boot/dts/overlays/pwm-overlay.dts Before switching, migrate any remaining hardware.deviceTree.overlays used only in generation DTBs. For firmware installation, read "Device tree overlays" in raspberry-pi/README.md.