From: Cyrille Pitchen <cyrille.pitchen@microchip.com>
To: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
Russell King <linux@armlinux.org.uk>
Cc: <dri-devel@lists.freedesktop.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
Cyrille Pitchen <cyrille.pitchen@microchip.com>
Subject: [PATCH 0/5] drm/microchip: add GFX2D support for SAM9X60 and SAM9X75
Date: Thu, 11 Sep 2025 17:26:24 +0200 [thread overview]
Message-ID: <20250911-cpitchen-mainline_gfx2d-v1-0-d7fab1a381ee@microchip.com> (raw)
Hi all,
This series of patches adds GFX2D support.
The GFX2D is a 2D GPU embedded in some Microchip SoCs such as the
SAM9X60 and SAM9X75.
Patches have been developped on top the 'linux-6.12-mchp' branch of the
https://github.com/linux4microchip/linux.git repository and tested on
mainly on a sam9x75-curiosity board and also on a sam9x60-ek board.
Then patches have been rebased on top of the 'drm-misc-next' branch
of the https://gitlab.freedesktop.org/drm/misc/kernel.git repository
for mainlining.
About the tests, the GFX2D driver was used with the M2D (Multi 2D)
library: https://github.com/linux4sam/libm2d
This is an open source library that abstracts 2D GPUs like the Microchip
GFX2D (and later the Vivante GC520UL), providing graphics applications
of libraries with a unified API, inspired from OpenGL but focused on 2D
GPUs. The libm2d library itself relies on the libdrm library to send
commands to the relevant DRM driver in the Linux kernel.
M2D comes with a m2d_test program to run basic unitary tests.
In addition, libm2d has been integrated to two graphics frameworks:
- EGT: https://github.com/linux4sam/egt
- LVGL: https://github.com/lvgl/lvgl/pull/8729
BR,
Cyrille
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@microchip.com>
---
Cyrille Pitchen (5):
dt-bindings: gpu: add bindings for the Microchip GFX2D GPU
drm/microchip: add a driver for the Microchip GFX2D GPU
ARM: dts: microchip: sam9x60: Add GFX2D GPU
ARM: dts: microchip: sam9x7: Add GFX2D GPU
ARM: configs: at91_dt_defconfig: enable GFX2D driver
.../devicetree/bindings/gpu/microchip,gfx2d.yaml | 53 +
MAINTAINERS | 10 +
arch/arm/boot/dts/microchip/sam9x60.dtsi | 9 +
arch/arm/boot/dts/microchip/sam9x7.dtsi | 9 +
arch/arm/configs/at91_dt_defconfig | 1 +
drivers/gpu/drm/Kconfig | 2 +
drivers/gpu/drm/Makefile | 1 +
drivers/gpu/drm/microchip/Kconfig | 21 +
drivers/gpu/drm/microchip/Makefile | 8 +
drivers/gpu/drm/microchip/mchp_gfx2d_cmd.c | 1808 ++++++++++++++++++++
drivers/gpu/drm/microchip/mchp_gfx2d_cmd.h | 169 ++
drivers/gpu/drm/microchip/mchp_gfx2d_drv.c | 350 ++++
drivers/gpu/drm/microchip/mchp_gfx2d_drv.h | 132 ++
drivers/gpu/drm/microchip/mchp_gfx2d_gem.c | 263 +++
drivers/gpu/drm/microchip/mchp_gfx2d_gem.h | 90 +
drivers/gpu/drm/microchip/mchp_gfx2d_ioctl.c | 274 +++
drivers/gpu/drm/microchip/mchp_gfx2d_ioctl.h | 17 +
include/uapi/drm/microchip_drm.h | 286 ++++
18 files changed, 3503 insertions(+)
---
base-commit: d2624d90a0b776db468e889cb079ff1d3edaccf3
change-id: 20250911-cpitchen-mainline_gfx2d-6631e9352af7
Best regards,
--
Cyrille Pitchen <cyrille.pitchen@microchip.com>
next reply other threads:[~2025-09-11 15:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-11 15:26 Cyrille Pitchen [this message]
2025-09-11 15:26 ` [PATCH 1/5] dt-bindings: gpu: add bindings for the Microchip GFX2D GPU Cyrille Pitchen
2025-09-11 18:05 ` Conor Dooley
2025-09-11 15:26 ` [PATCH 2/5] drm/microchip: add a driver " Cyrille Pitchen
2025-09-11 15:26 ` [PATCH 3/5] ARM: dts: microchip: sam9x60: Add " Cyrille Pitchen
2025-09-11 15:26 ` [PATCH 4/5] ARM: dts: microchip: sam9x7: " Cyrille Pitchen
2025-09-11 15:26 ` [PATCH 5/5] ARM: configs: at91_dt_defconfig: enable GFX2D driver Cyrille Pitchen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250911-cpitchen-mainline_gfx2d-v1-0-d7fab1a381ee@microchip.com \
--to=cyrille.pitchen@microchip.com \
--cc=airlied@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®