bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1037-dt-Add-overrides-for-drm-framebuffer-allocations-on-.patch
1 From 61b138adaeaddefe749f421a3b69c67d4a49a8e3 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 11 Oct 2023 11:03:51 +0100
4 Subject: [PATCH] dt: Add overrides for drm framebuffer allocations on Pi5
5
6 Adds dtparam overrides to the base Pi5 DT such that vc4,
7 DSI0, DSI1, or DPI can be requested to be /dev/fb[012].
8 No override is specified by default, so the order will be
9 based on probe order (aka semi-random). Any device that
10 doesn't have an override specified will be placed above
11 all specified overrides. Having an fb1 or fb2 override but
12 no fb0 one will result in no console via fbcon.
13
14 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
15 ---
16 arch/arm/boot/dts/bcm2712-rpi-5-b.dts | 12 ++++++++++++
17 arch/arm/boot/dts/overlays/README | 24 ++++++++++++++++++++++++
18 2 files changed, 36 insertions(+)
19
20 --- a/arch/arm/boot/dts/bcm2712-rpi-5-b.dts
21 +++ b/arch/arm/boot/dts/bcm2712-rpi-5-b.dts
22 @@ -824,5 +824,17 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
23 act_led_trigger = <&act_led>, "linux,default-trigger";
24 pwr_led_activelow = <&pwr_led>, "gpios:8";
25 pwr_led_trigger = <&pwr_led>, "linux,default-trigger";
26 + drm_fb0_rp1_dsi0 = <&aliases>, "drm_fb0=",&dsi0;
27 + drm_fb0_rp1_dsi1 = <&aliases>, "drm_fb0=",&dsi1;
28 + drm_fb0_rp1_dpi = <&aliases>, "drm_fb0=",&dpi;
29 + drm_fb0_vc4 = <&aliases>, "drm_fb0=",&vc4;
30 + drm_fb1_rp1_dsi0 = <&aliases>, "drm_fb1=",&dsi0;
31 + drm_fb1_rp1_dsi1 = <&aliases>, "drm_fb1=",&dsi1;
32 + drm_fb1_rp1_dpi = <&aliases>, "drm_fb1=",&dpi;
33 + drm_fb1_vc4 = <&aliases>, "drm_fb1=",&vc4;
34 + drm_fb2_rp1_dsi0 = <&aliases>, "drm_fb2=",&dsi0;
35 + drm_fb2_rp1_dsi1 = <&aliases>, "drm_fb2=",&dsi1;
36 + drm_fb2_rp1_dpi = <&aliases>, "drm_fb2=",&dpi;
37 + drm_fb2_vc4 = <&aliases>, "drm_fb2=",&vc4;
38 };
39 };
40 --- a/arch/arm/boot/dts/overlays/README
41 +++ b/arch/arm/boot/dts/overlays/README
42 @@ -173,6 +173,30 @@ Params:
43 cooling_fan Enables the Pi 5 cooling fan (enabled
44 automatically by the firmware)
45
46 + drm_fb0_rp1_dpi Assign /dev/fb0 to the RP1 DPI output
47 +
48 + drm_fb0_rp1_dsi0 Assign /dev/fb0 to the RP1 DSI0 output
49 +
50 + drm_fb0_rp1_dsi1 Assign /dev/fb0 to the RP1 DSI1 output
51 +
52 + drm_fb0_vc4 Assign /dev/fb0 to the vc4 outputs
53 +
54 + drm_fb1_rp1_dpi Assign /dev/fb1 to the RP1 DPI output
55 +
56 + drm_fb1_rp1_dsi0 Assign /dev/fb1 to the RP1 DSI0 output
57 +
58 + drm_fb1_rp1_dsi1 Assign /dev/fb1 to the RP1 DSI1 output
59 +
60 + drm_fb1_vc4 Assign /dev/fb1 to the vc4 outputs
61 +
62 + drm_fb2_rp1_dpi Assign /dev/fb2 to the RP1 DPI output
63 +
64 + drm_fb2_rp1_dsi0 Assign /dev/fb2 to the RP1 DSI0 output
65 +
66 + drm_fb2_rp1_dsi1 Assign /dev/fb2 to the RP1 DSI1 output
67 +
68 + drm_fb2_vc4 Assign /dev/fb2 to the vc4 outputs
69 +
70 eee Enable Energy Efficient Ethernet support for
71 compatible devices (default "on"). See also
72 "tx_lpi_timer". Pi3B+ only.