RPi Zero Configuration
There are two parts to configuring the RPI Zero. Defining the hardware connectivity and controlling the hardware.
Both are controlled from /boot/firmware/config.txt
The hardware connectivity is defined using two device tree overlays.
dpi24.dts tells the output pins to read the DPI data from the GPU. The code repository will contain dpi23.dts, where pin 4 has been excluded from the list.
There is also a need for an overlay to set the pin 4 to transmit the osciallator clock.
Here is what claude says to add to the config.txt file. enable_dpi_lcd=1 dpi_group=2 dpi_mode=87 dpi_output_format=0x6f005 dpi_timings=640 0 16 96 48 480 0 10 2 33 0 0 0 60 0 25000000 1 dtoverlay=dpi24x
#The dpi_timings fields in order:
# 640 — horizontal active pixels
# 0 — hsync polarity (0 = negative)
# 16 — horizontal front porch
# 96 — hsync pulse width
# 48 — horizontal back porch
# 480 — vertical active lines
# 0 — vsync polarity (0 = negative)
# 10 — vertical front porch
# 2 — vsync pulse width
# 33 — vertical back porch
# 0 0 0 — offsets/pixel rep (unused)
# 60 — frame rate
# 0 — interlaced (no)
# 25000000 — pixel clock (25 MHz)
# 1 — aspect ratio (4:3)
# Pixel clock is 25 MHz — close to the standard 25.175 MHz.
# Most displays accept this.