STRUCT ILI9322_CONFIG(9)
πΈ NAME πΈ
okay so welcome to the Kernel API Manual, bestie π this is the page for struct ili9322_config(9) β literally the system specific ILI9322 configuration. Itβs giving tiny struct, big panel energy, and weβre gonna go through every single member, no cap. π«Ά
β¨ SYNOPSIS β¨
struct ili9322_config {
u32 width_mm;
u32 height_mm;
bool flip_horizontal;
bool flip_vertical;
enum ili9322_input input;
u32 vreg1out_mv;
u32 vcom_high_percent;
u32 vcom_amplitude_percent;
bool dclk_active_high;
bool de_active_high;
bool hsync_active_high;
bool vsync_active_high;
u8 syncmode;
u8 gamma_corr_pos[8];
u8 gamma_corr_neg[8];
};
π«Ά Members π«Ά
width_mmβ physical panel width[mm]πheight_mmβ physical panel height[mm]πflip_horizontalβ flip the image horizontally (right-to-left scan) (only in RGB and YUV modes) πflip_verticalβ flip the image vertically (down-to-up scan) (only in RGB and YUV modes) πinputβ the input/entry type used in this system; if this is set toILI9322_INPUT_UNKNOWNthe driver will try to figure it out by probing the hardware πvreg1out_mvβ the output in microvolts for the VREGOUT1 regulator used to drive the physical display. Valid ranges are 3600 thru 6000 in 100 microvolt increments. If not specified, hardware defaults will be used (4.5V). β‘vcom_high_percentβ the percentage of VREGOUT1 used for the peak voltage on the communications link. Valid ranges are 37 thru 100 percent. If not specified, hardware defaults will be used (91%). π₯vcom_amplitude_percentβ the percentage of VREGOUT1 used for the peak-to-peak amplitude of the communcation signals to the physical display. Valid ranges are 70 thru 132 percent in increments if two percent. Odd percentages will be truncated. If not specified, hardware defaults will be used (114%). πdclk_active_highβ data/pixel clock active high, data will be clocked in on the rising edge of the DCLK (this is usually the case). β°de_active_highβ DE (data entry) is active high πhsync_active_highβ HSYNC is active high πΆvsync_active_highβ VSYNC is active high πΊsyncmodeβ The synchronization mode, what sync signals are emitted. See the enum for details. ποΈgamma_corr_posβ a set of 8 nybbles describing positive gamma correction for voltages V1 thru V8. Valid range 0..15 πgamma_corr_negβ a set of 8 nybbles describing negative gamma correction for voltages V1 thru V8. Valid range 0..15 π
π Description π
These adjust what grayscale voltage will be output for input data V1 = 0, V2 = 16, V3 = 48, V4 = 96, V5 = 160, V6 = 208, V7 = 240 and V8 = 255. The curve is shaped like this:
^ | V8 |
V7 | V6 |
V5 | V4 | V3 | V2 | V1
+-----------------------------------------------------------> 0 16
48 96 160 208 240 255
The negative and postive gamma values adjust the V1 thru V8 up/down according to the datasheet specifications. This is a property of the physical display connected to the display controller and may vary. If defined, both arrays must be supplied in full. If the properties are not supplied, hardware defaults will be used.
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/panel/panel-ilitek-ili9322.cβ go read it, bestie, itβs the main character π
mwah π source/version: ./drivers/gpu/drm/panel; date: October 2026. Thatβs the struct ili9322_config(9) page, periodt. π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms