Set specific pixelclk / pixelclock in kernel for TFT panel
Posted: Wed Mar 22, 2017 6:41 pm
Dear friendlyarm,
I´m trying to drive a TFT panel (1280x120px) via RGB interface of the NanoPi S2.
http://www.naxtechnologies.com/datasheets/TFT/TFT1280120-1-E(11D)v1.1.pdf
I`ve modified kernel source code and added the timings for the TFT panel in:
and compiled the kernel (uImage).
However one critical parameter is missing in lcds.c:
The pixelclock. The TFT panel needs a specific pixel clock of 11 MHz.
This is not to be confused with the parameter in .
So when booting up the NanoPiS2, I see via serial console (UART interface) the following line:
This "Pixelclk" value is obviously wrong and cant be set in lcds.c
What I did so far:
1) Modify lcds.c
2) Compile kernel (uImage)
3) Copy uImage to boot partition and clone it as well to uImage.hdmi
4) Interrupt boot process via serial interface to set bootargs
5) set bootargs to include lcd=BTFT1280 (my config)
6) saveenv
7) boot
Where to set the correct pixelclock for the TFT panel?
Thanks for all your answers!
I´m trying to drive a TFT panel (1280x120px) via RGB interface of the NanoPi S2.
http://www.naxtechnologies.com/datasheets/TFT/TFT1280120-1-E(11D)v1.1.pdf
I`ve modified kernel source code and added the timings for the TFT panel in:
Code: Select all
/arch/arm/plat-s5p4418/nanopi2/lcds.c
and compiled the kernel (uImage).
However one critical parameter is missing in lcds.c:
The pixelclock. The TFT panel needs a specific pixel clock of 11 MHz.
This is not to be confused with the
Code: Select all
.freq
Code: Select all
/arch/arm/plat-s5p4418/nanopi2/lcds.c
So when booting up the NanoPiS2, I see via serial console (UART interface) the following line:
Code: Select all
[ 0.876000] Display.0 fps=161 (6 ms), wait= 4 jiffies, Pixelclk=200000000hz
This "Pixelclk" value is obviously wrong and cant be set in lcds.c
What I did so far:
1) Modify lcds.c
2) Compile kernel (uImage)
3) Copy uImage to boot partition and clone it as well to uImage.hdmi
4) Interrupt boot process via serial interface to set bootargs
5) set bootargs to include lcd=BTFT1280 (my config)
6) saveenv
7) boot
Where to set the correct pixelclock for the TFT panel?
Thanks for all your answers!