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

kernel=kernel8-fastgoodix.img

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm_baudrate=400000
dtparam=i2c_arm=on
#dtparam=i2c_vc=on
dtparam=i2s=on
dtparam=spi=on
# Codec revision. EXACTLY ONE of these two must be active: both codecs answer at i2c
# 0x1a, so with both enabled the second client cannot register and there is no audio.
# 12.288 MHz SSM2603 mainboard:
dtoverlay=gr2-ssm2603-audio
# 12 MHz WM8731 mainboard (legacy):
#dtoverlay=audioinjector-wm8731-audio
dtoverlay=disable-bt
# dtoverlay=disable-wifi

# 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

[pi4]
# 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
dtoverlay=dwc2,dr_mode=peripheral

[pi5]
dtoverlay=dwc2,dr_mode=peripheral

[all]
enable_uart=1
dtoverlay=vc4-kms-v3d
#DSI1 Use
dtoverlay=vc4-kms-dsi-waveshare-panel,7_0_inchC,i2c1,invx,invy
#DSI0 Use
#dtoverlay=vc4-kms-dsi-waveshare-panel,7_0_inchC,i2c1,dsi0

dtoverlay=pwm,pin=12,func=4
dtoverlay=midi-uart0

#initramfs initramfs8 followkernel
initramfs initrd.img-6.6.78-v8-fastgoodix+ followkernel
