Skip to content

Instantly share code, notes, and snippets.

@SkeLLLa
Last active January 20, 2025 17:21
Show Gist options
  • Save SkeLLLa/e5270c534b612c3444bb3e125469d782 to your computer and use it in GitHub Desktop.
Save SkeLLLa/e5270c534b612c3444bb3e125469d782 to your computer and use it in GitHub Desktop.
M5 CM4Stack
# Disable overscan assuming the display supports displaying the full resolution
# If the text shown on the screen disappears off the edge, comment this out
disable_overscan=1
# How much memory in MB to assign to the GPU on Pi models having
# 256, 512 or 1024 MB total memory
gpu_mem_256=100
gpu_mem_512=100
gpu_mem_1024=100
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=i2c0=on
dtparam=i2c1=on
dtparam=ant1
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# enable RTC
dtparam=i2c_vc=on
dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi
# enable dwc2 USB controller (USB 2.0)
dtoverlay=dwc2,dr_mode=host
# enable 64bits support
arm_64bit=1
[cm4]
otg_mode=1
[all]
# Core interfaces
dtparam=spi=on
dtparam=i2c_arm=on
dtparam=i2c1=on
dtdebug=5
dtoverlay=w1-gpio
enable_uart=1
dtoverlay=uart3
dtoverlay=pcie-32bit-dma
dtoverlay=i2c0,pins_44_45
dtoverlay=i2c-rtc,i2c0,pcf8563,wakeup-source
dtoverlay=m5stack-cm4
dtoverlay=aw88xx
# Fan control configuration for ME1502
dtoverlay=pwm,pin=13,func=4
dtoverlay=gpio-fan,gpiopin=13,temp=45000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment