hippy
Posts: 2179
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Gert's VGA add-on for the B+

Thu Sep 11, 2014 5:56 pm

jojopi wrote:On Model A/B Rev1, GPIO2/3 (V/H sync) are only available on the camera connector...
Ah yes, that's a change I'd forgotten about. Thanks. Should be okay though for Rev 2 A/B ...

http://www.raspberrypi-spy.co.uk/2012/0 ... -and-pins/

User avatar
Gert van Loo
Posts: 2422
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: Gert's VGA add-on for the B+

Thu Sep 11, 2014 6:02 pm

... reason to deep-dive into the Broadcomm docs
I did not say Broadcom docs. I said 'manual'....

User avatar
mikronauts
Posts: 2621
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Gert's VGA add-on for the B+

Thu Sep 11, 2014 6:03 pm

oops!

Thanks for the correction, it will save me a lot of time looking in the wrong place.
Gert van Loo wrote:
... reason to deep-dive into the Broadcomm docs
I did not say Broadcom docs. I said 'manual'....
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

ceteras
Posts: 231
Joined: Fri Jan 27, 2012 1:42 pm
Location: Romania

Re: Gert's VGA add-on for the B+

Thu Sep 11, 2014 6:21 pm

Gert van Loo wrote: There is no need for specific driver support. As all the pins are driven by hardware the signals ARE already present.
They just don't come out until you set the GPIO pins to DPI mode.

Now if you read the manual very carefully you should be able to find out how to get these signals out.
Hint: look at the installation section and at all the files present on github.
jdb wrote:As a manual workaround, use a GPIO-poking interface (wiringpi or similar) to directly set GPIO0 and GPIO1 to ALT2 to gain access to PCLK and DE.
Thank you!
The next thing is finding out how to set this up as early as possible in the boot process.
This is a very exciting way to get the older people (like me) to start reading and actually learning something!

User avatar
jojopi
Posts: 2993
Joined: Tue Oct 11, 2011 8:38 pm

Re: Gert's VGA add-on for the B+

Thu Sep 11, 2014 7:44 pm

jojopi wrote:… only available on the camera connector, and on Rev2 GPIO21 (red7) is. So even 8 colour mode is difficult to wire.
I had not read the documentation. Using dpi_output_format=6, red7 can be moved to GPIO25, and then 8 colour mode presents no wiring difficulty on a Model A/B Rev2.

Better still, with board modification to free GPIO16 and GPIO6 (which can be remapped in the device tree), the four most significant bits are available for all three guns. So 4096 colours would appear to be possible without having to write non-standard data in the framebuffer.

Does hvs_set_dither work on the DPI peripheral? Would it be technically possible to extend it to support dithering to 4:4:4 bits?

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Gert's VGA add-on for the B+

Thu Sep 11, 2014 8:41 pm

Would it be possible to convert this adapter to generate a composite video signal at 1vpp with a 50Hz retrace signal??

I am aware of the colour limitation but I would like to explore the possibility of drawing pixels in the VBI region and if genlock was possible mix / overlay this with the composite video port.
Basically I want to simulate the teletext service on my Pi and maybe add subtitles to video clips so they be recorded to S-VHS tape rather than putting the text over the frames. :)

Richard S.

User avatar
mikronauts
Posts: 2621
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Gert's VGA add-on for the B+

Fri Sep 12, 2014 4:55 am

I've posted a couple of pics of my hand-wired prototype work-in-progress, and will blog about my build experience at:

http://www.mikronauts.com/raspberry-pi/ ... del-bplus/

I hope to see VGA output RSN!
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
mikronauts
Posts: 2621
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Gert's VGA add-on for the B+

Mon Sep 15, 2014 1:28 am

Update:

So far, I have 11 boards spoken for (7 for me, 4 for others)

If I order:
20 boards, I'll have to charge $5-$6 USD + s/h per bare board not to lose money
50 boards, I'll have to charge $4-$5USD + s/h per bare board not to lose money
100 boards, I'll have to charge $2-$3 USD + s/h per bare board not to lose money

I'll take the risk for carrying some stock - say 50 boards - but I'd really like to know that I won't be stuck with 89 boards, so if you want some, please speak up!

Note: at above prices I am not charging my time for filling orders etc
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

ceteras
Posts: 231
Joined: Fri Jan 27, 2012 1:42 pm
Location: Romania

Re: Gert's VGA add-on for the B+

Tue Sep 16, 2014 5:20 pm

Is there a way to set up the resolution on DPI port to custom values, such as 480x272, for using with a smaller LCD screen?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5100
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Gert's VGA add-on for the B+

Tue Sep 16, 2014 5:32 pm

ceteras wrote:Is there a way to set up the resolution on DPI port to custom values, such as 480x272, for using with a smaller LCD screen?
In theory. Start here:
http://jp.raspberrypi.org/forums/viewto ... 29&t=24679

If you set up a custom hdmi mode, then use:
dpi_group=2
dpi_mode=87

it will use the custom hdmi timings for DPI.
You may need a datasheet for the display to determine the timings required, although starting with the CVT settings may get you an image is the display is happy with that.

User avatar
Burngate
Posts: 4976
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK
Contact: Website

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 10:46 am

Just as an aside, what does DPI stand for? Google points me at http://www.dpi.state.wi.us/ but I'm not sure that's relevant

ceteras
Posts: 231
Joined: Fri Jan 27, 2012 1:42 pm
Location: Romania

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 11:01 am

I believe it's Display Parallel Interface.

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 11:02 am

Burngate wrote:Just as an aside, what does DPI stand for? Google points me at http://www.dpi.state.wi.us/ but I'm not sure that's relevant
http://en.m.wikipedia.org/wiki/Dots_per_inch
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 11:04 am

ceteras wrote:Is there a way to set up the resolution on DPI port to custom values, such as 480x272, for using with a smaller LCD screen?
Did you mean DSI :?: :?:
http://en.m.wikipedia.org/wiki/Display_Serial_Interface
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5100
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 11:18 am

fruitoftheloom wrote:Did you mean DSI :?: :?:
No, as certeras said it is "Display Parallel Interface". Like DSI but simpler by using more pins.

hippy
Posts: 2179
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 11:45 am

Yet Broadcom seem to think "DPI" means "display pixel interface", and that matches with MIPI DPI. Whatever it's called there doesn't seem to be a lot of detail in the public domain on the SoC hardware.

http://www.broadcom.com/press/glossary.php?index=D

ceteras
Posts: 231
Joined: Fri Jan 27, 2012 1:42 pm
Location: Romania

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 12:13 pm

If DSI is display serial interface, it only makes sense for DPI to be "parallel"...
Anyway, you don't really find out anything about its existence any way you look it up in the internet.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5100
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 2:42 pm

hippy wrote:Yet Broadcom seem to think "DPI" means "display pixel interface", and that matches with MIPI DPI. Whatever it's called there doesn't seem to be a lot of detail in the public domain on the SoC hardware.
I think this is right. I've checked the peripheral spec and it just refers to "DPI" - no mention of "display parallel" or "display pixel".
The internet has very few references to either. I believe we are compatible with MIPI DPI, and they do call it "display pixel interface".

I think I'll just stick to calling it DPI and DSI, with the former needing lots of pins due to its parallel nature, and the latter using fewer pins due to its serial nature...

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4621
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Gert's VGA add-on for the B+

Wed Sep 17, 2014 2:47 pm

"Display Parallel Interface" according to the internal documentation.

User avatar
Burngate
Posts: 4976
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK
Contact: Website

Re: Gert's VGA add-on for the B+

Thu Sep 18, 2014 11:25 am

Thankyou for that.
Either makes sense, though parallel is aesthetically more pleasing to me.

I'm now wondering what else is hidden in the green <reserved> boxes, and how they might differ from the <internal> ones

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4621
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Gert's VGA add-on for the B+

Thu Sep 18, 2014 11:30 am

Burngate wrote:Thankyou for that.
Either makes sense, though parallel is aesthetically more pleasing to me.

I'm now wondering what else is hidden in the green <reserved> boxes, and how they might differ from the <internal> ones
Gordon did say in an interview that there's some documentation that's in the pipeline for release, but who knows how long that will take.

User avatar
TonyD
Posts: 439
Joined: Thu Sep 08, 2011 10:58 am
Location: Newcastle, UK
Contact: Website

Re: Gert's VGA add-on for the B+

Thu Sep 18, 2014 11:54 am

ShiftPlusOne wrote:..
Gordon did say in an interview that there's some documentation that's in the pipeline for release, but who knows how long that will take.
I hope they release some documentation on the "secondary memory interface".
Tony

User avatar
Gert van Loo
Posts: 2422
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: Gert's VGA add-on for the B+

Thu Sep 18, 2014 12:04 pm

I did not document the DPI or the SMI as a the time they could not be used due to a severe lack of available pins.
There was never any 'secrecy' about these interfaces.
It was more 'what can I do in the limited time allocated: the important interfaces first'.

We now have a lot more pins on the B+ and there are now people working full-time on the PI
so I assume the details will appear in due time.

User avatar
mikronauts
Posts: 2621
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Gert's VGA add-on for the B+

Thu Sep 18, 2014 2:08 pm

Gert,

I really appreciate your efforts in getting more features documented.

DPI is already giving me a lot of ideas, and I am sure SMI will as well.
Gert van Loo wrote:I did not document the DPI or the SMI as a the time they could not be used due to a severe lack of available pins.
There was never any 'secrecy' about these interfaces.
It was more 'what can I do in the limited time allocated: the important interfaces first'.

We now have a lot more pins on the B+ and there are now people working full-time on the PI
so I assume the details will appear in due time.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 9565
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Gert's VGA add-on for the B+

Thu Sep 18, 2014 4:24 pm

Gert van Loo wrote:I did not document the DPI or the SMI as a the time they could not be used due to a severe lack of available pins.
There was never any 'secrecy' about these interfaces.
It was more 'what can I do in the limited time allocated: the important interfaces first'.

We now have a lot more pins on the B+ and there are now people working full-time on the PI
so I assume the details will appear in due time.
I'm very curious as to what the secondary memory interface is good for. I noticed it has a wide data bus, but only a few address lines, so it it for some kind of paged block mode flash device, like a K9K2G16Q0M, or for some kind of FIFO RAM?
Or something else altogether.
Is it possible to add a fast swap mechanism (virtual memory) using it?
Or, I'm speculating even more, for a SATA interface....

:?: :?: :?: :?:

Return to “B+ addons”

Who is online

Users browsing this forum: No registered users and 1 guest