5.4 Configuring XLCDC Parameters

Module Selection: The Extended Liquid Crystal Display Controller (XLCDC) is added as the primary display controller, interfacing with the MIPI DSI driver.

Parameters:

  • Pixel clock: 83330 kHz
  • Resolution: 720x1280 pixels
  • Pixel Format: RGB888 (24-bit color depth). The Raspberry Pi Touch Display 2 (with ILI9881C) is designed for 24-bit RGB888 input (8 bits per color). Using RGB565 (16-bit) would reduce the color depth and may not be natively supported without some additional configuration.
  • Timing: Configured horizontal/vertical sync, back/front porch values per the Raspberry Pi Touch Display 2’s Ilitek ILI9881C Linux panel driver (see raspberrypi/linux/blob/rpi-6.6.y/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c#L1902).
Table 5-1. XLCDC Parameters
ParameterValue
Horizontal Active720
Horizontal Front Porch239
Horizontal Sync Width33
Horizontal Back Porch50
Total Horizontal Period1042
Vertical Active1280
Vertical Front Porch20
Vertical Sync Width2
Vertical Back Porch30
Total Vertical Period1332
  • Output Interface: Set to MIPI DSI, linking XLCDC to the DSI controller.
  • Integration: XLCDC handles pixel data rendering, which is passed to DSI for display output.
    A screenshot of a computer AI-generated content                     may be incorrect.
  • The value 2,555,032 is not the fractional factor itself but the numerator used in the PLL’s fractional division to achieve the fractional part of 0.60916799. This numerator, combined with an appropriate denominator (specific to the clock generator’s design), fine-tunes the multiplication of the 24 MHz source clock to produce the desired output frequency (583,310,005 Hz), which is then divided by 2 to yield the pixel clock (83,330,000 Hz). The exact denominator depends on the PLL’s internal settings. In this case:
    fO/PCLK=fSRC×MULTIPLIER+FRACTIONAL FACTOR222
= 24,000,000 (48 + 2,555,032 2 22 )

=24,000,00048+0.60916799

= 1,166,620,010  Hz

With Divider = 2:

fO/PCLK = 1166620010 2
= 583,310,005  Hz