Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a framebuffer driver for LiteVideo #8

Open
mithro opened this issue Apr 12, 2017 · 4 comments
Open

Write a framebuffer driver for LiteVideo #8

mithro opened this issue Apr 12, 2017 · 4 comments

Comments

@mithro
Copy link
Member

mithro commented Apr 12, 2017

Should be as simple as allocating a couple of buffers in memory and then setting the correct CSR registers.

@mithro
Copy link
Member Author

mithro commented May 1, 2017

http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/display/connector/hdmi-connector.txt

  1 HDMI Connector
  2 ==============
  3 
  4 Required properties:
  5 - compatible: "hdmi-connector"
  6 - type: the HDMI connector type: "a", "b", "c", "d" or "e"
  7 
  8 Optional properties:
  9 - label: a symbolic name for the connector
 10 - hpd-gpios: HPD GPIO number
 11 - ddc-i2c-bus: phandle link to the I2C controller used for DDC EDID probing
 12 
 13 Required nodes:
 14 - Video port for HDMI input
 15 
 16 Example
 17 -------
 18 
 19 hdmi0: connector@1 {
 20         compatible = "hdmi-connector";
 21         label = "hdmi";
 22 
 23         type = "a";
 24 
 25         port {
 26                 hdmi_connector_in: endpoint {
 27                         remote-endpoint = <&tpd12s015_out>;
 28                 };
 29         };
 30 };

@mithro
Copy link
Member Author

mithro commented May 1, 2017

@mithro
Copy link
Member Author

mithro commented May 2, 2017

Reply from Dave Airlie when I asked him how to go about this;

How would you recommend we go about creating a driver? I assume there should be
fairly dumb framebuffer driver we could modify? Is there any documentation
we should be following?

So ignore the fbdev layer at this stage, if you want to submit anything upstream.

At this point the state of the art it is possibly tinydrm

https://01.org/linuxgraphics/gfx-docs/drm/gpu/tinydrm.html

I think that should be enough for your needs, to write a small driver to start off.

Should we maybe we should start with something like statically allocating
memory for the framebuffer and using the "simple-framebuffer" driver? I've
also seen things about a "tiny-drm" and a "simple-drm"?

Using CMA is pretty trivial and should cover the case.

@mithro
Copy link
Member Author

mithro commented May 2, 2017

Dave suggested this would be a good driver to copy https://lists.freedesktop.org/archives/dri-devel/2017-April/138714.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant