Skip to content

overlay: Rework/fix the Pi 5 MIDI UART overlays#6743

Merged
pelwell merged 1 commit intoraspberrypi:rpi-6.12.yfrom
pelwell:midiuart5
Mar 27, 2025
Merged

overlay: Rework/fix the Pi 5 MIDI UART overlays#6743
pelwell merged 1 commit intoraspberrypi:rpi-6.12.yfrom
pelwell:midiuart5

Conversation

@pelwell
Copy link
Copy Markdown
Contributor

@pelwell pelwell commented Mar 26, 2025

The old Pi 5 MIDI UART overlays replaced the reference to the UART's source clock with a fixed clock (essentially an integer dressed up like a clock). This is fragile, in that the fixed clock must be updated if the source clock's (fixed) frequency is ever changed, but it also relies on the source clock having been enabled, which is likely not to be the case unless another RP1 UART is being actively used.

Switching to a fixed-factor-clock solves both of those problems.

See: https://forums.raspberrypi.com/viewtopic.php?t=385906

The old Pi 5 MIDI UART overlays replaced the reference to the UART's
source clock with a fixed clock (essentially an integer dressed up like
a clock). This is fragile, in that the fixed clock must be updated if
the source clock's (fixed) frequency is ever changed, but it also relies
on the source clock having been enabled, which is likely not to be the
case unless another RP1 UART is being actively used.

Switching to a fixed-factor-clock solves both of those problems.

See: https://forums.raspberrypi.com/viewtopic.php?t=385906

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell pelwell merged commit 90bd324 into raspberrypi:rpi-6.12.y Mar 27, 2025
13 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Mar 31, 2025
kernel: overlay: Rework/fix the Pi 5 MIDI UART overlays
See: raspberrypi/linux#6743

kernel: Add debug knobs to pcie_brcmstb
See: raspberrypi/linux#6745

kernel: ARM64: dts: Add sd and sd_poll_once params to CM5
See: raspberrypi/linux#6744

firmware: Vl805 reset improvements
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Mar 31, 2025
kernel: overlay: Rework/fix the Pi 5 MIDI UART overlays
See: raspberrypi/linux#6743

kernel: Add debug knobs to pcie_brcmstb
See: raspberrypi/linux#6745

kernel: ARM64: dts: Add sd and sd_poll_once params to CM5
See: raspberrypi/linux#6744

firmware: Vl805 reset improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant