Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?
To adjust the “horizontal frequency” for VGA output on your T20 module with the Iris 2.0 carrier board, you’ll need to understand how the display timings work and how they are defined in the Linux kernel for your device. The “horizontal frequency” is determined by the horizontal timing parameters, including the horizontal sync width, back porch, front porch, and the resolution’s width. These parameters collectively define the time it takes to display one line, hence affecting the horizontal frequency.
Given the context of your very old kernel version and the snippet provided, it seems you are looking at the right place in the kernel source code for adjusting the display timings. The disappearance of these settings in newer kernel versions could be due to a restructuring or an update in the display driver architecture, aiming for a more dynamic or configurable approach, possibly moving towards using device tree overlays or a different method for specifying display settings.
To set or adjust the “horizontal frequency” for VGA output, you would modify the horizontal timing parameters (h_sync_width
, h_back_porch
, h_front_porch
, and h_active
) in the colibri_t20_panel_modes[]
array within the board-colibri_t20-panel.c
file. The calculation for the horizontal frequency (in kHz) can be approximated by:
[ Horizontal\ Frequency = \frac{Pixel\ Clock}{Total\ Horizontal\ Pixels} ]
Where:
- Pixel Clock is the
pclk
value in Hz.
- Total Horizontal Pixels is the sum of
h_active
+ h_front_porch
+ h_sync_width
+ h_back_porch
.
After adjusting these values to achieve the desired horizontal frequency, you would need to recompile the kernel and deploy it to your device. Ensure that the vidargs
environment variable in U-Boot matches the resolution and color depth you’ve configured.
Keep in mind that changing display timings can affect the compatibility and stability of the display output. It’s crucial to ensure that the timings are supported by both the display and the Tegra 2 SoC on your T20 module. If you’re not seeing the expected changes, double-check the kernel configuration and make sure the display driver is using the modified panel configuration.
Remember, altering kernel source code requires a good understanding of the Linux kernel, display technologies, and the specific hardware you’re working with. Testing any changes thoroughly before deploying them in a production environment is essential.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Display Output, Resolution and Timings (Linux) | Toradex Developer Center.