[PATCH V2] video: implement a simple framebuffer driver
Arnd Bergmann
arnd at arndb.de
Wed May 1 01:07:57 EST 2013
On Tuesday 30 April 2013, Alexander Shiyan wrote:
> > On 04/04/2013 05:39 AM, Stephen Warren wrote:
> > > A simple frame-buffer describes a raw memory region that may be rendered
> > > to, with the assumption that the display hardware has already been set
> > > up to scan out from that buffer.
> > >
> > > This is useful in cases where a bootloader exists and has set up the
> > > display hardware, but a Linux driver doesn't yet exist for the display
> > > hardware.
> > >
> > > Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>
> ...
> > > + framebuffer {
> > > + compatible = "simple-framebuffer";
> > > + reg = <0x1d385000 (1600 * 1200 * 2)>;
> > > + width = <1600>;
> > > + height = <1200>;
> > > + stride = <(1600 * 2)>;
> > > + format = "r5g6b5";
> > > + };
> >
> > I'm not an expert on DT, but I think the point of DT is to describe the
> > hardware. This doesn't describe the hardware at all.
>
> On my incompetent opinion, "bpp" parameter can replace size of
> framebuffer and "stride". Is not it?
Not necessarily: you could have a stride that is larger than a line.
Arnd
More information about the devicetree-discuss
mailing list