# Options you can adjust for Raspberry Pis
# https://www.raspberrypi.com/documentation/computers/config_txt.html
# Some settings may impact device functionality. See link above for details

# To use HATs with U-Boot you need to use firmware provided DTs rather than kernel DTs
# For this functionality follow the following guide:
# https://fedoraproject.org/w/index.php?title=Architectures/ARM/Raspberry_Pi/HATs

# Details on overlays and additional parameters are documented in
# /boot/efi/overlays/README

# Default Fedora configs for all Raspberry Pi Revisions

# Put the CPU into 64 bit mode
arm_64bit=1

# We use U-Boot
kernel=rpi-u-boot.bin

# Run as fast as the firmware allows
arm_boost=1

# Enable UART
# Uncomment this to enable UART over GPIO on Pi3/4. Upstream enables this by default, we disable it because it forces the core clock to the minimum.
# enable_uart=1

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Old FW camera
camera_auto_detect=0

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
# If you want to disable HDMI audio, append ',noaudio' to the end of this line
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Raspberry Pi 3 Family
[pi3]
dtoverlay=upstream

# Raspberry Pi 4 Family
[pi4]
dtoverlay=upstream-pi4

# Allow 256Mb of CMA by default on RPi4+
dtoverlay=cma,cma-256
# 4K display support - RPi4+ only, only one port possible
# hdmi_enable_4kp60=1

# Raspberry Pi 5
[pi5]
# Allow 512Mb of CMA memory split by default on Pi5
dtoverlay=cma,cma-512

# 4K display support only one port possible
# hdmi_enable_4kp60=1

# Enable m.2 HAT+ by default
dtparam=rpi-m2

# Set this to 1 to force CSI/DSI and GPIO to output 3.3v power
power_force_3v3_pwm=0

[all]

# HAT and DT overlays. Documentation at Raspberry Pi here:
# https://www.raspberrypi.org/documentation/configuration/device-tree.md
# Each dtoverlay line is an individual HAT/overlay, multiple lines allowed
# dtoverlay=rpi-sense

#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# For cameras enable the sensor, examples below, support is still very early
# EG RPi Camera Module 2
dtparam=imx219