0334261bb5912285dd5cb6c70309b459db598854
[openwrt/openwrt.git] /
1 From bbced22ee3d4c08612bbc35c860d2274e85d5a51 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 27 Aug 2020 18:57:26 +0100
4 Subject: [PATCH] overlays: Add option for composite to
5 vc4-kms-v3d-pi4.
6
7 Composite is an alternative to HDMI/DPI/DSI on Pi4 as it
8 requires very particular clock setups.
9 Add an option to vc4-kms-v3d-pi4 to enable composite and
10 disable all other graphics outputs.
11
12 NB This must be used in conjunction with enable_tvout=1
13
14 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
15 ---
16 arch/arm/boot/dts/overlays/README | 2 ++
17 .../dts/overlays/vc4-kms-v3d-pi4-overlay.dts | 26 +++++++++++++++++++
18 2 files changed, 28 insertions(+)
19
20 --- a/arch/arm/boot/dts/overlays/README
21 +++ b/arch/arm/boot/dts/overlays/README
22 @@ -2924,6 +2924,8 @@ Params: cma-256 CMA is 2
23 audio1 Enable or disable audio over HDMI1 (default
24 "on")
25 noaudio Disable all HDMI audio (default "off")
26 + composite Enable the composite output (disables all other
27 + outputs)
28
29
30 Name: vga666
31 --- a/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
32 +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
33 @@ -152,9 +152,35 @@
34 };
35 };
36
37 + fragment@21 {
38 + target = <&pixelvalve3>;
39 + __dormant__ {
40 + status = "okay";
41 + };
42 + };
43 +
44 + fragment@22 {
45 + target = <&vec>;
46 + __dormant__ {
47 + status = "okay";
48 + };
49 + };
50 +
51 __overrides__ {
52 audio = <0>,"!17";
53 audio1 = <0>,"!18";
54 noaudio = <0>,"=17", <0>,"=18", <0>,"!19";
55 + composite = <0>, "!1",
56 + <0>, "!2",
57 + <0>, "!3",
58 + <0>, "!4",
59 + <0>, "!6",
60 + <0>, "!7",
61 + <0>, "!8",
62 + <0>, "!9",
63 + <0>, "!10",
64 + <0>, "!16",
65 + <0>, "=21",
66 + <0>, "=22";
67 };
68 };