mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
raspberry-pi: clarify PWM0 migration guidance
This commit is contained in:
1 parent
5d01b9f343
commit
6075dd2edd
1 file changed
+2
-3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user