linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: bcm2835: Enable 3D rendering through V3D
@ 2024-04-12 13:25 Maíra Canal
  2024-04-12 13:33 ` Krzysztof Kozlowski
  2024-04-12 17:17 ` Stefan Wahren
  0 siblings, 2 replies; 6+ messages in thread
From: Maíra Canal @ 2024-04-12 13:25 UTC (permalink / raw)
  To: Maxime Ripard, Melissa Wen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Ray Jui, Scott Branden, Andre Przywara,
	Romain Perier, Stefan Wahren
  Cc: dri-devel, bcm-kernel-feedback-list, devicetree, linux-rpi-kernel,
	linux-arm-kernel, kernel-dev, Maíra Canal

RPi 0-3 is packed with a GPU that provides 3D rendering capabilities to
the RPi. Currently, the downstream kernel uses an overlay to enable the
GPU and use GPU hardware acceleration. When deploying a mainline kernel
to the RPi 0-3, we end up without any GPU hardware acceleration
(essentially, we can't use the OpenGL driver).

Therefore, enable the V3D core for the RPi 0-3 in the mainline kernel.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
---

I decided to add the status property to the `bcm2835-common.dtsi`, but
there are two other options:

1. To add the status property to the `bcm2835-rpi-common.dtsi` file
2. To add the status property to each individual RPi model, e.g.
`bcm2837-rpi-3-b.dts`.

Let me know which option is more suitable, and if `bcm2835-common.dtsi`
is not the best option, I can send a v2.

Best Regards,
- Maíra

 arch/arm/boot/dts/broadcom/bcm2835-common.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/broadcom/bcm2835-common.dtsi b/arch/arm/boot/dts/broadcom/bcm2835-common.dtsi
index 9261b67dbee1..851a6bce1939 100644
--- a/arch/arm/boot/dts/broadcom/bcm2835-common.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm2835-common.dtsi
@@ -139,6 +139,7 @@ v3d: v3d@7ec00000 {
 			compatible = "brcm,bcm2835-v3d";
 			reg = <0x7ec00000 0x1000>;
 			interrupts = <1 10>;
+			status = "okay";
 		};
 
 		vc4: gpu {
-- 
2.44.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-14 19:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-12 13:25 [PATCH] ARM: dts: bcm2835: Enable 3D rendering through V3D Maíra Canal
2024-04-12 13:33 ` Krzysztof Kozlowski
2024-04-12 17:17 ` Stefan Wahren
2024-04-14 18:43   ` Phil Elwell
2024-04-14 18:54     ` Stefan Wahren
2024-04-14 19:09     ` Maíra Canal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).