From 8299d1f057439f94c6a4412e2e5c5082b82a30c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sat, 21 Aug 2021 10:54:34 +0200 Subject: bcm27xx: add kernel 5.10 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas --- ...-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch (limited to 'target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch') diff --git a/target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch b/target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch new file mode 100644 index 0000000000..2f1d1799a0 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch @@ -0,0 +1,41 @@ +From 7109030996578e85610f30dc60c04c952e87fb2a Mon Sep 17 00:00:00 2001 +From: Maxime Ripard +Date: Thu, 25 Feb 2021 14:42:03 +0100 +Subject: [PATCH] drm/vc4: hvs: Make the HVS bind first + +We'll need to have the HVS binding before the HDMI controllers so that +we can check whether the firmware allows to run in 4kp60. Reorder a bit +the component list, and document the current constraints we're aware of. + +Acked-by: Dave Stevenson +Acked-by: Thomas Zimmermann +Signed-off-by: Maxime Ripard +--- + drivers/gpu/drm/vc4/vc4_drv.c | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +--- a/drivers/gpu/drm/vc4/vc4_drv.c ++++ b/drivers/gpu/drm/vc4/vc4_drv.c +@@ -354,12 +354,21 @@ static const struct component_master_ops + .unbind = vc4_drm_unbind, + }; + ++/* ++ * This list determines the binding order of our components, and we have ++ * a few constraints: ++ * - The TXP driver needs to be bound before the PixelValves (CRTC) ++ * but after the HVS to set the possible_crtc field properly ++ * - The HDMI driver needs to be bound after the HVS so that we can ++ * lookup the HVS maximum core clock rate and figure out if we ++ * support 4kp60 or not. ++ */ + static struct platform_driver *const component_drivers[] = { ++ &vc4_hvs_driver, + &vc4_hdmi_driver, + &vc4_vec_driver, + &vc4_dpi_driver, + &vc4_dsi_driver, +- &vc4_hvs_driver, + &vc4_txp_driver, + &vc4_crtc_driver, + &vc4_firmware_kms_driver, -- cgit v1.2.3