Hi, the timing is in chapter 8 of the data sheet.
Details on DPI are here https://www.raspberrypi.com/documentati ... -interface
Aim for mode6 connection as that will allow you tp use I2C (i.e. For adding an I2C GPIO expander, comes handy when you want a configurable scan direction i.e.) and both PWM channels (for Backlight brightness control).
use this overlay for your DPI display https://github.com/raspberrypi/linux/bl ... verlay.dts
Details what goes to where is available from the READMEthere are tons of examples on how to use DPI on the forum as well.
Details on DPI are here https://www.raspberrypi.com/documentati ... -interface
Aim for mode6 connection as that will allow you tp use I2C (i.e. For adding an I2C GPIO expander, comes handy when you want a configurable scan direction i.e.) and both PWM channels (for Backlight brightness control).
use this overlay for your DPI display https://github.com/raspberrypi/linux/bl ... verlay.dts
Details what goes to where is available from the README
Code:
Name: vc4-kms-dpi-genericInfo: Enable a generic DPI display under KMS. Default timings are for the Adafruit Kippah with 800x480 panel and RGB666 (GPIOs 0-21) Requires vc4-kms-v3d to be loaded.Load: dtoverlay=vc4-kms-dpi-generic,<param>=<val>Params: clock-frequency Display clock frequency (Hz) hactive Horizontal active pixels hfp Horizontal front porch hsync Horizontal sync pulse width hbp Horizontal back porch vactive Vertical active lines vfp Vertical front porch vsync Vertical sync pulse width vbp Vertical back porch hsync-invert Horizontal sync active low vsync-invert Vertical sync active low de-invert Data Enable active low pixclk-invert Negative edge pixel clock width-mm Define the screen width in mm height-mm Define the screen height in mm rgb565 Change to RGB565 output on GPIOs 0-19 rgb565-padhi Change to RGB565 output on GPIOs 0-8, 12-17, and 20-24 bgr666 Change to BGR666 output on GPIOs 0-21. bgr666-padhi Change to BGR666 output on GPIOs 0-9, 12-17, and 20-25 rgb666-padhi Change to RGB666 output on GPIOs 0-9, 12-17, and 20-25 bgr888 Change to BGR888 output on GPIOs 0-27 rgb888 Change to RGB888 output on GPIOs 0-27 bus-format Override the bus format for a MEDIA_BUS_FMT_* value. NB also overridden by rgbXXX overrides. backlight-gpio Defines a GPIO to be used for backlight control (default of none). backlight-pwm Defines a PWM channel to be used for backlight control (default of none). NB Disables audio headphone output as that also uses PWM. backlight-pwm-chan Choose channel on &pwm node for backlight control. (default 0). backlight-pwm-gpio GPIO pin to be used for the PWM backlight. See pwm-2chan for valid options. (default 18 - note this can only work with rgb666-padhi). backlight-pwm-func Pin function of GPIO used for the PWM backlight. See pwm-2chan for valid options. (default 2). backlight-def-brightness Set the default brightness. Normal range 1-16. (default 16). rotate Display rotation {0,90,180,270} (default 0)
Statistics: Posted by aBUGSworstnightmare — Sun Feb 04, 2024 7:28 am