mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
73 lines
3.0 KiB
Diff
73 lines
3.0 KiB
Diff
From 61b138adaeaddefe749f421a3b69c67d4a49a8e3 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Wed, 11 Oct 2023 11:03:51 +0100
|
|
Subject: [PATCH] dt: Add overrides for drm framebuffer allocations on Pi5
|
|
|
|
Adds dtparam overrides to the base Pi5 DT such that vc4,
|
|
DSI0, DSI1, or DPI can be requested to be /dev/fb[012].
|
|
No override is specified by default, so the order will be
|
|
based on probe order (aka semi-random). Any device that
|
|
doesn't have an override specified will be placed above
|
|
all specified overrides. Having an fb1 or fb2 override but
|
|
no fb0 one will result in no console via fbcon.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
arch/arm/boot/dts/bcm2712-rpi-5-b.dts | 12 ++++++++++++
|
|
arch/arm/boot/dts/overlays/README | 24 ++++++++++++++++++++++++
|
|
2 files changed, 36 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/bcm2712-rpi-5-b.dts
|
|
+++ b/arch/arm/boot/dts/bcm2712-rpi-5-b.dts
|
|
@@ -824,5 +824,17 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
|
|
act_led_trigger = <&act_led>, "linux,default-trigger";
|
|
pwr_led_activelow = <&pwr_led>, "gpios:8";
|
|
pwr_led_trigger = <&pwr_led>, "linux,default-trigger";
|
|
+ drm_fb0_rp1_dsi0 = <&aliases>, "drm_fb0=",&dsi0;
|
|
+ drm_fb0_rp1_dsi1 = <&aliases>, "drm_fb0=",&dsi1;
|
|
+ drm_fb0_rp1_dpi = <&aliases>, "drm_fb0=",&dpi;
|
|
+ drm_fb0_vc4 = <&aliases>, "drm_fb0=",&vc4;
|
|
+ drm_fb1_rp1_dsi0 = <&aliases>, "drm_fb1=",&dsi0;
|
|
+ drm_fb1_rp1_dsi1 = <&aliases>, "drm_fb1=",&dsi1;
|
|
+ drm_fb1_rp1_dpi = <&aliases>, "drm_fb1=",&dpi;
|
|
+ drm_fb1_vc4 = <&aliases>, "drm_fb1=",&vc4;
|
|
+ drm_fb2_rp1_dsi0 = <&aliases>, "drm_fb2=",&dsi0;
|
|
+ drm_fb2_rp1_dsi1 = <&aliases>, "drm_fb2=",&dsi1;
|
|
+ drm_fb2_rp1_dpi = <&aliases>, "drm_fb2=",&dpi;
|
|
+ drm_fb2_vc4 = <&aliases>, "drm_fb2=",&vc4;
|
|
};
|
|
};
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -173,6 +173,30 @@ Params:
|
|
cooling_fan Enables the Pi 5 cooling fan (enabled
|
|
automatically by the firmware)
|
|
|
|
+ drm_fb0_rp1_dpi Assign /dev/fb0 to the RP1 DPI output
|
|
+
|
|
+ drm_fb0_rp1_dsi0 Assign /dev/fb0 to the RP1 DSI0 output
|
|
+
|
|
+ drm_fb0_rp1_dsi1 Assign /dev/fb0 to the RP1 DSI1 output
|
|
+
|
|
+ drm_fb0_vc4 Assign /dev/fb0 to the vc4 outputs
|
|
+
|
|
+ drm_fb1_rp1_dpi Assign /dev/fb1 to the RP1 DPI output
|
|
+
|
|
+ drm_fb1_rp1_dsi0 Assign /dev/fb1 to the RP1 DSI0 output
|
|
+
|
|
+ drm_fb1_rp1_dsi1 Assign /dev/fb1 to the RP1 DSI1 output
|
|
+
|
|
+ drm_fb1_vc4 Assign /dev/fb1 to the vc4 outputs
|
|
+
|
|
+ drm_fb2_rp1_dpi Assign /dev/fb2 to the RP1 DPI output
|
|
+
|
|
+ drm_fb2_rp1_dsi0 Assign /dev/fb2 to the RP1 DSI0 output
|
|
+
|
|
+ drm_fb2_rp1_dsi1 Assign /dev/fb2 to the RP1 DSI1 output
|
|
+
|
|
+ drm_fb2_vc4 Assign /dev/fb2 to the vc4 outputs
|
|
+
|
|
eee Enable Energy Efficient Ethernet support for
|
|
compatible devices (default "on"). See also
|
|
"tx_lpi_timer". Pi3B+ only.
|