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