9546d10
# Options you can adjust for all Raspberry Pi Revisions
9546d10
# https://www.raspberrypi.com/documentation/computers/config_txt.html
d1640cb
# Some settings may impact device functionality. See link above for details
9546d10
c6d9fc5
# To use this on Fedora you need to use firmware provided device tree, not kernel
c6d9fc5
# For this functionality follow the following guide:
c6d9fc5
# https://fedoraproject.org/w/index.php?title=Architectures/ARM/Raspberry_Pi/HATs
c6d9fc5
d1640cb
# Details on overlays and additional parameters are documented in
d1640cb
# /boot/efi/overlays/README
d1640cb
b204e42
# Default Fedora configs for all Raspberry Pi Revisions
232ae0e
06bce12
# Put the RPi into 64 bit mode
06bce12
arm_64bit=1
232ae0e
232ae0e
# We use U-Boot
489ba9a
kernel=rpi-u-boot.bin
06bce12
d1640cb
# Run as fast as the firmware allows
d1640cb
arm_boost=1
d1640cb
6bcbd28
# Enable UART
6bcbd28
# Only enable UART if you're going to use it as it has speed implications
6bcbd28
# Serial console is ttyS0 on RPi3 and ttyAMA0 on all other variants
6bcbd28
# u-boot will auto detect serial and pass corrent options to kernel if enabled
6bcbd28
# Speed details: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=141195
5559614
enable_uart=1
6bcbd28
d1640cb
# Enable audio (loads snd_bcm2835)
d1640cb
dtparam=audio=on
d1640cb
232ae0e
# Automatically load overlays for detected cameras
232ae0e
camera_auto_detect=1
d1640cb
232ae0e
# Automatically load overlays for detected DSI displays
232ae0e
display_auto_detect=1
1fb1ee7
232ae0e
# Enable DRM VC4 V3D driver
d1640cb
dtoverlay=vc4-kms-v3d
d1640cb
max_framebuffers=2
b204e42
232ae0e
# Don't have the firmware create an initial video= setting in cmdline.txt.
232ae0e
# Use the kernel's default instead.
232ae0e
disable_fw_kms_setup=1
232ae0e
d1640cb
# Stop the RPi turning on HDMI monitors on reboot
d1640cb
hdmi_ignore_cec_init=1
9546d10
232ae0e
# Raspberry Pi 3 series
232ae0e
[pi3]
232ae0e
dtoverlay=upstream
9546d10
232ae0e
# Raspberry Pi 4 series
232ae0e
[pi4]
232ae0e
dtoverlay=upstream-pi4
d1640cb
232ae0e
# Allow 256Mb of CMA by default on RPi4+
232ae0e
dtoverlay=cma,cma-256
232ae0e
# 4K display support - RPi4+ only, only one port possible
232ae0e
# hdmi_enable_4kp60=1
d1640cb
232ae0e
# Raspberry Pi CM4
232ae0e
[cm4]
232ae0e
# Enable host mode on the 2711 built-in XHCI USB controller.
232ae0e
# This line should be removed if the legacy DWC2 controller is required
232ae0e
# (e.g. for USB device mode) or if USB support is not required.
232ae0e
otg_mode=1
232ae0e
232ae0e
# Raspberry Pi 5
232ae0e
[pi5]
232ae0e
# Allow 256Mb of CMA by default on RPi4+
232ae0e
dtoverlay=cma,cma-256
232ae0e
# 4K display support - RPi4+ only, only one port possible
232ae0e
# hdmi_enable_4kp60=1
232ae0e
232ae0e
[all]
72bde9c
b96aa78
# HAT and DT overlays. Documentation at Raspberry Pi here:
b96aa78
# https://www.raspberrypi.org/documentation/configuration/device-tree.md
b96aa78
# Each dtoverlay line is an individual HAT/overlay, multiple lines allowed
b96aa78
# dtoverlay=rpi-sense
d1640cb
d1640cb
#dtparam=i2c_arm=on
d1640cb
#dtparam=i2s=on
d1640cb
#dtparam=spi=on
d1640cb