bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0699-ARM-dts-Permanently-disable-hdmi1-and-ddc1-on-CM4S.patch
1 From 27dd29f219300bf3d4e5c26d5986ab6c73faa1e7 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 2 Feb 2022 17:47:54 +0000
4 Subject: [PATCH] ARM: dts: Permanently disable hdmi1 and ddc1 on CM4S
5
6 CM4S has no HDMI1 output, so it is advisable to disable the controller
7 and its I2C interface in software. This is ordinarily done by setting
8 their status properties to "disabled", but the vc4-kms-v3d(-pi4)
9 overlay enables both HDMIs and DDCs as part of the transfer of control
10 from the VPU.
11
12 Knobble the CM4S dts in such a way that the overlay applies
13 successfully but the hdmi1 and ddc1 nodes remain disabled by changing
14 the compatible string to something unrecognised.
15
16 See: https://github.com/raspberrypi/linux/issues/4857
17
18 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
19 ---
20 arch/arm/boot/dts/bcm2711-rpi-cm4s.dts | 10 ++++++++++
21 1 file changed, 10 insertions(+)
22
23 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4s.dts
24 +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4s.dts
25 @@ -367,6 +367,16 @@
26 };
27 };
28
29 +/* Permanently disable HDMI1 */
30 +&hdmi1 {
31 + compatible = "disabled";
32 +};
33 +
34 +/* Permanently disable DDC1 */
35 +&ddc1 {
36 + compatible = "disabled";
37 +};
38 +
39 &leds {
40 act_led: led-act {
41 label = "led0";