From 6cf665bde8a21f8e89f2130d0dea593c53de65ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Fri, 1 Nov 2024 14:01:36 +0100 Subject: [PATCH] panel-mipi-dbi: initial addition of the firmware blob assembler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This python script assembles a list of human readable commands into a firmware blob. The firmware blob is interpreted by the `panel-mipi-dbi` Linux driver to initialize a MIPI DBI display panel and its controller. MIPI DBI is not to be confused with MIPI DSI. The former is usually used to drive small displays that are attached via SPI, while the latter is a fast communication standard using differential signaling, that is also suitable for larger displays. Signed-off-by: Leonard Göhrs Signed-off-by: Khem Raj --- .../panel-mipi-dbi-native_git.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-oe/recipes-graphics/panel-mipi-dbi/panel-mipi-dbi-native_git.bb diff --git a/meta-oe/recipes-graphics/panel-mipi-dbi/panel-mipi-dbi-native_git.bb b/meta-oe/recipes-graphics/panel-mipi-dbi/panel-mipi-dbi-native_git.bb new file mode 100644 index 0000000000..0e88e84aff --- /dev/null +++ b/meta-oe/recipes-graphics/panel-mipi-dbi/panel-mipi-dbi-native_git.bb @@ -0,0 +1,28 @@ +SUMMARY = "Firmware file compiler for the panel-mipi-dbi display driver" +DESCRIPTION = "The panel-mipi-dbi Linux display driver allows using the same \ + driver for most MIPI DBI based display panels. \ + This means many displays attached via SPI, even if the \ + datasheet does not explicitly mention DBI support. \ + To do so it uses tiny firmware files that contain \ + display/controller-specific initialization commands. \ + The mipi-dbi-cmd tool compiles these firmware files from a \ + text format to a firmware blob format." +HOMEPAGE = "https://github.com/notro/panel-mipi-dbi" +SECTION = "graphics" +LICENSE = "CC0-1.0" +LIC_FILES_CHKSUM = "file://mipi-dbi-cmd;beginline=4;endline=13;md5=5e3d3f14cc87aa9e8976d728520cbcae" +SRCREV = "1cbd40135a8c7f25d7b444a7fac77fd3c3ad471e" + +SRC_URI = "git://github.com/notro/panel-mipi-dbi.git;protocol=https;branch=main" + +S = "${WORKDIR}/git" + +inherit native + +do_configure[noexec] = "1" +do_compile[noexec] = "1" +do_install () { + install -D -p -m 0755 ${S}/mipi-dbi-cmd ${D}${bindir}/mipi-dbi-cmd +} + +RDEPENDS:${PN} += "python3-native"