# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

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

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
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

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[cm5]
dtoverlay=dwc2,dr_mode=host

[all]
### lysmarine ####################################

# Enable USB on some CM4 boards
[cm4]
dtoverlay=dwc2,dr_mode=host

[all]
# See: https://www.reddit.com/r/raspberry_pi/comments/lahsow/raspberry_pi4_8gb_seems_useless_as_media_player/glsi86w?utm_source=share&utm_medium=web2x&context=3
#gpu_mem=128
dtoverlay=rpivid-v4l2
#disable_fw_kms_setup=1
disable_splash=1
start_x=1

# For pypilot motor controller attached to gpio UART
#dtoverlay=disable-bt

enable_uart=1

dtparam=i2c_arm=on
dtparam=spi=on
#dtoverlay=w1-gpio

# Backlight control module for supporting it screens
#dtoverlay=rpi-backlight

### lysmarine - screen preset ####################

## http://www.raspberrypiwiki.com/index.php/7_inch_HDMI_TFT_Capacitive_Touch_Screen_800x480_SKU:400579
#max_usb_current=1
#hdmi_group=2
#hdmi_mode=1
#hdmi_mode=87
#hdmi_cvt 800 480 60 6 0 0 0
#hdmi_drive=1

## Generic 7Inch screen
#hdmi_cvt=800 480 60 0 0
#hdmi_group=2
#hdmi_mode=87
#hdmi_drive=2

## http://www.raspberrypiwiki.com/index.php/7_inch_HDMI_LCD_(H)
#max_usb_current=1
#hdmi_force_hotplug=1
#config_hdmi_boost=10
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt 1024 600 60 6 0 0 0

## https://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)
max_usb_current=1
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt 800 480 60 6 0 0 0
#hdmi_cvt 1024 600 60 6 0 0 0
#hdmi_cvt 1280 800 60 6 0 0 0
#hdmi_drive=1
