overlays: vc4-kms-v3d: Change composite handling
authorPhil Elwell <phil@raspberrypi.com>
Thu, 11 Nov 2021 13:33:25 +0000 (13:33 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 11 Nov 2021 16:08:23 +0000 (16:08 +0000)
On a Pi 4, enabling composite video disables the HDMI output. As a
consequence, the composite output is disabled by default. Change the
vc4-kms-v3d overlay used on older Pis to also disable composite by
default, replacing the "nocomposite" parameter with a "composite"
parameter.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/upstream-overlay.dts
arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts

index 8e4939377c40f4808f8f86c007e662159a254621..bedb501b3ce5288f88006faae86c2e6353d503b6 100644 (file)
@@ -3620,8 +3620,8 @@ Params: cma-512                 CMA is 512MB (needs 1GB)
         cma-default             Use upstream's default value
         audio                   Enable or disable audio over HDMI (default "on")
         noaudio                 Disable all HDMI audio (default "off")
-        nocomposite             Disable the composite video output (default
-                                "off")
+        composite               Enable the composite output (default "off")
+                                N.B. Disables all other outputs on a Pi 4.
 
 
 Name:   vc4-kms-v3d-pi4
index 7c4071a7cb2702079c30fcd289e8bc83a172d283..2852bea52309bd4a016a685eb44a914b3938f8ee 100644 (file)
@@ -1,4 +1,4 @@
-// redo: ovmerge -c vc4-kms-v3d-overlay.dts,cma-default dwc2-overlay.dts,dr_mode=otg
+// redo: ovmerge -c vc4-kms-v3d-overlay.dts,cma-default,composite dwc2-overlay.dts,dr_mode=otg
 
 /dts-v1/;
 /plugin/;
index 62e1d77a8182cfd6c22dccfd00624c4a26989bd5..351fc160e8030dce930e30c52d9051551b40b199 100644 (file)
@@ -89,7 +89,7 @@
 
        fragment@11 {
                target = <&vec>;
-               __overlay__  {
+               __dormant__  {
                        status = "okay";
                };
        };
        __overrides__ {
                audio   = <0>,"!13";
                noaudio = <0>,"=13";
-               nocomposite = <0>, "!11";
+               composite = <0>, "=11";
        };
 };