如何创建我自己的 linux 显示驱动程序

How to create my own linux display driver

我正在开发一个项目,该项目使用连接到使用 SPI 运行 linux 版本的电路板的电子墨水显示器。我现在可以从用户 space 很好地控制显示器,但我真正想做的是制作一个显示器驱动程序,以便 linux 将电子墨水显示器视为正常显示器。我在网上搜索了我必须做些什么才能完成这项工作,但我真的找不到任何东西。

有人能给我指出正确的方向吗?

请查看现有的 "fbtft" 驱动程序 here. Some Waveshare driver seems to be already supported and it might be what you are looking for or you can add support for the one you want. You can also have a look at the out of tree fbtft and tinydrm 驱动程序存储库。