
An initial solution is in the latest firmware update. config.txt option dpi_output_format can control all the dpi peripheral fields.HeBus wrote: I suppose that every option may be useful thenAFAIC, any way of specifying all these is good for me : structure mapped into u32 bits, or some "dpi_settings=<rgb_order> <output_format> ..." line similar to hdmi_timings.
Thanks again for taking care about this.
Code: Select all
output_format = (dpi_output_format >> 0) & 0xf;
rgb_order = (dpi_output_format >> 4) & 0xf;
output_enable_mode = (dpi_output_format >> 8) & 0x1;
invert_pixel_clock = (dpi_output_format >> 9) & 0x1;
hsync_disable = (dpi_output_format >> 12) & 0x1;
vsync_disable = (dpi_output_format >> 13) & 0x1;
output_enable_disable = (dpi_output_format >> 14) & 0x1;
hsync_polarity = (dpi_output_format >> 16) & 0x1;
vsync_polarity = (dpi_output_format >> 17) & 0x1;
output_enable_polarity = (dpi_output_format >> 18) & 0x1;
hsync_phase = (dpi_output_format >> 20) & 0x1;
vsync_phase = (dpi_output_format >> 21) & 0x1;
output_enable_phase = (dpi_output_format >> 22) & 0x1;
Code: Select all
output_format:
1: DPI_OUTPUT_FORMAT_9BIT_666
2: DPI_OUTPUT_FORMAT_16BIT_565_CFG1
3: DPI_OUTPUT_FORMAT_16BIT_565_CFG2
4: DPI_OUTPUT_FORMAT_16BIT_565_CFG3
5: DPI_OUTPUT_FORMAT_18BIT_666_CFG1
6: DPI_OUTPUT_FORMAT_18BIT_666_CFG2
7: DPI_OUTPUT_FORMAT_24BIT_888
rgb_order:
1: DPI_RGB_ORDER_RGB
2: DPI_RGB_ORDER_BGR
3: DPI_RGB_ORDER_GRB
4: DPI_RGB_ORDER_BRG
output_enable_mode : 0: DPI_OUTPUT_ENABLE_MODE_DATA_VALID 1: DPI_OUTPUT_ENABLE_MODE_COMBINED_SYNCS
invert_pixel_clock : 0: RGB Data changes on rising edge and is stable at falling edge 1: RGB Data changes on falling edge and is stable at rising edge.
hsync/vsync/output_enable_polarity : 0: default for HDMI mode 1: inverted
hsync/vsync/oe phases : 0: DPI_PHASE_POSEDGE 1: DPI_PHASE_NEGEDGE
Composite and VGA (through DPI) can be driven concurrently.AirRietveld wrote:I was wondering if it would be possible to have the VGA output and the composite signal as separate outputs. It states everywhere that you can build a dual monitor setup with VGA and HDMI, but how about the composite output? Is this a copy of the HDMI signal?
r1ch999999 wrote:I said I was in for one with the guy making them, but I never heard more.
Another question, the Banana Pro has the same gpio pinout as the B+, any idea if this vga add-on would work?
I missed the shelving bit then, thanks for letting me know. Also, thanks for the info about the banana pro.mikronauts wrote:Hi,
I shelved it, as previously posted, as the Pi Hut got it into production and with only about 8 responses, I did not want to order the 200pcb's it would have taken to make the PCB inexpensive. If I ordered only 20pcb's, it would be cheaper for buyers to order from Pi Hut as the PCB's would have cost me approx. $5 each - before shipping, taxes, duty etc.
The Banana Pro has a compatible connector, but it has a totally different video subsystem, so it is not possible to use this circuit on it.
r1ch999999 wrote:I missed the shelving bit then, thanks for letting me know. Also, thanks for the info about the banana pro.mikronauts wrote:Hi,
I shelved it, as previously posted, as the Pi Hut got it into production and with only about 8 responses, I did not want to order the 200pcb's it would have taken to make the PCB inexpensive. If I ordered only 20pcb's, it would be cheaper for buyers to order from Pi Hut as the PCB's would have cost me approx. $5 each - before shipping, taxes, duty etc.
The Banana Pro has a compatible connector, but it has a totally different video subsystem, so it is not possible to use this circuit on it.
I had a quick look, it looks like the display FPC connector on the Banana Pro supports DPI (unlike the RPi's, which does DSI), so you might be able to hack up an adapter using a 40-pin FPC cable and breakout. Be sure to look up the drive capabilities of the BPi SoC first to avoid nasty surprises.r1ch999999 wrote:Another question, the Banana Pro has the same gpio pinout as the B+, any idea if this vga add-on would work?
Fat D wrote:I had a quick look, it looks like the display FPC connector on the Banana Pro supports DPI (unlike the RPi's, which does DSI), so you might be able to hack up an adapter using a 40-pin FPC cable and breakout. Be sure to look up the drive capabilities of the BPi SoC first to avoid nasty surprises.r1ch999999 wrote:Another question, the Banana Pro has the same gpio pinout as the B+, any idea if this vga add-on would work?
PR77 wrote:Hi There,
I have a couple of small Sharp LCD panels (400x240) with a parallel interface I'm planning to connect to the Pi. I have all the data for the LCD available and from my initial investigations the interface seems to be suitable with the DPI. Has any been able to get their own parallel interface RAW LCD panels working with the DPI? Additional I have been able to find any hint o how to set an arbitrary resolution (400x240), is this possible?
Thanks!
Have you read my posts in this thread? I believe all the settings are configurable though config.txtmikronauts wrote:That would depend on the Pi Foundation releasing either information or a utility to allow setting the dot clock, vertical & horizontal front and back porches, vertical and horizontal sync values, active pixels per line and active lines per frame. Something like the X.org mode lines.
dom wrote:Have you read my posts in this thread? I believe all the settings are configurable though config.txtmikronauts wrote:That would depend on the Pi Foundation releasing either information or a utility to allow setting the dot clock, vertical & horizontal front and back porches, vertical and horizontal sync values, active pixels per line and active lines per frame. Something like the X.org mode lines.
mikronauts wrote:dom,
My apologies - I forgot about that!
Now that you have mentioned it, I do recall your posts a while ago.
My excuse is that I am old and grey.
I will investigate config.txt thoroughly... I have quite a few raw panels in my lab.
Update - Links to relevant posts in this thread:
dom (config.txt to set display mode)
http://lb.raspberrypi.org/forums/viewto ... 61#p628061
dom (how to set mode/resolution)
http://lb.raspberrypi.org/forums/viewto ... 26#p613926
dom (pixel modes, etc)
http://lb.raspberrypi.org/forums/viewto ... 38#p617738
dom (dpi display structure)
http://lb.raspberrypi.org/forums/viewto ... 19#p617719
HeBus (how to enable pixel clock)
http://lb.raspberrypi.org/forums/viewto ... 62#p617662
dom wrote:Have you read my posts in this thread? I believe all the settings are configurable though config.txtmikronauts wrote:That would depend on the Pi Foundation releasing either information or a utility to allow setting the dot clock, vertical & horizontal front and back porches, vertical and horizontal sync values, active pixels per line and active lines per frame. Something like the X.org mode lines.
Code: Select all
dpi_cvt 400 240 50 6
dpi_group=2
dpi_mode=87
rpdom wrote:From a quick look at those posts I'd say something likewould be a start. That's assuming the refresh rate for your screen is 50Hz and 15:9 ratio.Code: Select all
dpi_cvt 400 240 50 6 dpi_group=2 dpi_mode=87
You'll have to check the figures and put in suitable values.
Code: Select all
[email protected] { function = "dpi"; termination = "no_pulling"; }; // Pixel Clock
[email protected] { function = "dpi"; termination = "no_pulling"; }; // Data Enable
Code: Select all
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=5
#dpi_cvt 400 240 50 6
#dpi_group=2
#dpi_mode=87
#dpi_mode=82
rgb_order=1
Code: Select all
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=5
dpi_cvt 400 240 50 6
dpi_group=2
dpi_mode=87
#dpi_mode=82
rgb_order=1
PR77 wrote:Brilliant! I will check this once I get a chance! Perhaps I will try and post a picture!![]()
rpdom wrote:From a quick look at those posts I'd say something likewould be a start. That's assuming the refresh rate for your screen is 50Hz and 15:9 ratio.Code: Select all
dpi_cvt 400 240 50 6 dpi_group=2 dpi_mode=87
You'll have to check the figures and put in suitable values.
DPI works for me by duplicating the existing DPI rows from the VGA device tree for the extra pins needed. Be sure that you compile the new blob correctly as per http://www.raspberrypi.org/documentatio ... uration.md - I had issues by mixing up -o and -O. Your issue of getting an analog signal that does not exceed 1V sounds like all you get is capacitively-coupled interference from the other lines - which makes sense if both ends of the line are unterminated inputs.PR77 wrote:EDIT: Given the P_CLK and DE are with "no_termination" possibly I either need to externally terminate (with 100K pull up / down) or re-compile the DTS to set a termination type. This might explain the straight signals here. Question: If a GPIO is set to "no_termination" is the output structure a "simple" open collector / open drain?
Eliminating a potential fault with the LCD or the interface PCB I made I removed these and probed the bare Raspi B+ and observed the same behaviour. I (re)downloaded the latest firmware from github to ensure this was OK; no change.Code: Select all
[email protected] { function = "dpi"; termination = "no_pulling"; }; // Pixel Clock [email protected] { function = "dpi"; termination = "no_pulling"; }; // Data Enable
Interestingly I am only seeing the above mentioned activity with the following config.txt;
Code: Select all
enable_dpi_lcd=1 display_default_lcd=1 dpi_output_format=5 #dpi_cvt 400 240 50 6 #dpi_group=2 #dpi_mode=87 #dpi_mode=82 rgb_order=1
I just figured this out the hard way. CVT works for DPI, but you still need to set up the custom mode with hdmi_cvt, not dpi_cvt. I forsee problems if/when multi-screen support comes out, but for now, this is how it goes.PR77 wrote: However when I using the following;
There is no activity on the DPI port at all. I hope I'm missing something stupid! I'm open to debugging suggestions.Code: Select all
enable_dpi_lcd=1 display_default_lcd=1 dpi_output_format=5 dpi_cvt 400 240 50 6 dpi_group=2 dpi_mode=87 #dpi_mode=82 rgb_order=1
Thanks!
PR77 wrote:Brilliant! I will check this once I get a chance! Perhaps I will try and post a picture!![]()
rpdom wrote:From a quick look at those posts I'd say something likewould be a start. That's assuming the refresh rate for your screen is 50Hz and 15:9 ratio.Code: Select all
dpi_cvt 400 240 50 6 dpi_group=2 dpi_mode=87
You'll have to check the figures and put in suitable values.