Skip to content

Commit

Permalink
nix/configuration-cm3: fix HDMI hot plug detection
Browse files Browse the repository at this point in the history
The upstream .dts file has the wrong GPIO pin configured for hotplug, so
the kernel assumes no display is connected.

Sent upstream in http://lists.infradead.org/pipermail/linux-arm-kernel/2024-July/943386.html
  • Loading branch information
flokli committed Jul 15, 2024
1 parent 61c6fcd commit c5df83d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions nix/configuration-cm3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,22 @@ in
# u-boot doesn't know the proper device tree name, so cannot pick from FTDIR
# on its own.
hardware.deviceTree.name = "broadcom/bcm2837-rpi-cm3-io3.dtb";
hardware.deviceTree.overlays = [
{
# http://lists.infradead.org/pipermail/linux-arm-kernel/2024-July/943386.html
name = "fix-hdmi-hpd-gpio-port";
dtsText = ''
/dts-v1/;
/plugin/;
/ {
compatible = "raspberrypi,3-compute-module", "brcm,bcm2837";
};
&{/soc} {
hdmi {
hpd-gpios = <&expgpio 0 1>;
};
};
'';
}
];
}

0 comments on commit c5df83d

Please sign in to comment.