* Fwd: DTS video mode parameters
[not found] ` <9D79B9A9194389468A922F618415D0A4F515D6-AVTXnJZEH6Hrjyi1UH1rQg@public.gmane.org>
@ 2012-06-18 12:03 ` Michal Simek
0 siblings, 0 replies; only message in thread
From: Michal Simek @ 2012-06-18 12:03 UTC (permalink / raw)
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Grant Likely
Hi guys,
not sure why this email didn't go through but let me forward it to mailing list.
Thanks for your comments.
Thanks,
Michal
-------- Original Message --------
Subject: DTS video mode parameters
Date: Thu, 14 Jun 2012 17:29:02 +0200
From: Davor Joja <Davor.Joja-bBue3UIS71U2IjGS+8YXRQ@public.gmane.org>
To: <devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>
CC: Michal Simek <michal.simek-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org>, Goran Pantar <Goran.Pantar-bBue3UIS71U2IjGS+8YXRQ@public.gmane.org>
Hello all,
I'm developing framebuffer driver for configurable video controller FPGA
IP
core. Fb driver is getting all hw parameters from dts.
Video controller is used with various flat panels which demands specific
video
timings, so I have created small non-standard videomode "database" for
modes
which are not supported by kernel modedb.c
I have placed database in DTS to avoid fb driver code growing with this
database.
Is there already existing way to place fb videomode parameters (not EDID
parameters) in dts, so that any new specific videomode can easily be
added in
dts and then used by fb driver, without need for recompiling kernel or
module?
This flexible approach would be very useful when working on embedded
systems
with various non-standard resolution flat panels used, if it is
possible.
DT node for videomode parameters that fb driver now reads is based on
fb.h
struct fb_videomode and one of them looks like this:
800x480 {
name = "800x480";
refresh = <60>;
xres = <800>;
yres = <480>;
pixclock-khz = <31500>;
left-margin = <56>;
right-margin = <64>;
upper-margin = <14>;
lower-margin = <28>;
hsync-len = <80>;
vsync-len = <3>;
sync = <0>;
vmode = <0>;
};
Driver is searching videomode name and if found it reads all parameters,
storing them internally and then initializing hw.
Thanks for any suggestion or help!
Davor
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-18 12:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9D79B9A9194389468A922F618415D0A4F515D6@abc.xylon.local>
[not found] ` <9D79B9A9194389468A922F618415D0A4F515D6-AVTXnJZEH6Hrjyi1UH1rQg@public.gmane.org>
2012-06-18 12:03 ` Fwd: DTS video mode parameters Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).