From: Dave Stevenson <dave.stevenson@raspberrypi.com>
To: "Maxime Ripard" <mripard@kernel.org>,
"Maíra Canal" <mcanal@igalia.com>,
"Raspberry Pi Kernel Maintenance" <kernel-list@raspberrypi.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Florian Fainelli" <florian.fainelli@broadcom.com>,
"Broadcom internal kernel review list"
<bcm-kernel-feedback-list@broadcom.com>,
"Ray Jui" <rjui@broadcom.com>,
"Scott Branden" <sbranden@broadcom.com>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Javier Martinez Canillas" <javierm@redhat.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will@kernel.org>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
Dom Cobley <popcornmix@gmail.com>
Subject: [PATCH 00/37] drm/vc4: Add support for BCM2712 / Pi5 display hardware
Date: Wed, 23 Oct 2024 17:49:57 +0100 [thread overview]
Message-ID: <20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com> (raw)
This series adds the required DRM, clock, and DT changes
required to support the display hardware on Pi5.
There are a couple of minor fixes first before the main patches.
Many of the patches were authored by Maxime whilst working
for us, however there have been a number of fixes squashed
into his original patches as issues have been found. I also
reworked the way UBM allocations are done to avoid double
buffering of the handles as they are quite a limited resource.
There are 2 variants of the IP. Most Pi5's released to date
have used the C1 step of the SoC, whilst the 2GB Pi5 released
in August is using the D0 step, as will other boards in future.
Due to various reasons the register map got reworked between
the steps, so there is extra code to handle the differences.
Which step is in use is read out of the hardware, so they
share a compatible string.
Thanks!
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
Dave Stevenson (12):
drm/vc4: Limit max_bpc to 8 on Pi0-3
drm/vc4: Use of_device_get_match_data to set generation
drm/vc4: Fix reading of frame count on GEN5 / Pi4
drm/vc4: drv: Add support for 2712 D-step
drm/vc4: hvs: Add in support for 2712 D-step.
drm/vc4: plane: Add support for 2712 D-step.
drm/vc4: hdmi: Support 2712 D-step register map
drm/vc4: Enable bg_fill if there are no planes enabled
drm/vc4: Drop planes that are completely off-screen or 0 crtc size
arm64: dts: broadcom: Add firmware clocks and power nodes to Pi5 DT
arm64: dts: broadcom: Add display pipeline support to BCM2712
arm64: dts: broadcom: Add DT for D-step version of BCM2712
Dom Cobley (3):
clk: bcm: rpi: Add ISP to exported clocks
clk: bcm: rpi: Allow cpufreq driver to also adjust gpu clocks
clk: bcm: rpi: Enable minimize for all firmware clocks
Maxime Ripard (22):
dt-bindings: display: Add BCM2712 HDMI bindings
dt-bindings: display: Add BCM2712 HVS bindings
dt-bindings: display: Add BCM2712 PixelValve bindings
dt-bindings: display: Add BCM2712 MOP bindings
dt-bindings: display: Add BCM2712 MOPLET bindings
dt-bindings: display: Add BCM2712 KMS driver bindings
drm/vc4: drv: Support BCM2712
drm/vc4: hvs: Add support for BCM2712 HVS
drm/vc4: crtc: Add support for BCM2712 PixelValves
drm/vc4: hdmi: Add support for BCM2712 HDMI controllers
drm/vc4: txp: Introduce structure to deal with revision differences
drm/vc4: txp: Rename TXP data structure
drm/vc4: txp: Add byte enable toggle bit
drm/vc4: txp: Add horizontal and vertical size offset toggle bit
drm/vc4: txp: Handle 40-bits DMA Addresses
drm/vc4: txp: Move the encoder type in the variant structure
drm/vc4: txp: Add a new TXP encoder type
drm/vc4: txp: Add support for BCM2712 MOP
drm/vc4: txp: Add BCM2712 MOPLET support
drm/vc4: Add additional warn_on for incorrect revisions
clk: bcm: rpi: Create helper to retrieve private data
clk: bcm: rpi: Add disp clock
.../bindings/display/brcm,bcm2711-hdmi.yaml | 2 +
.../bindings/display/brcm,bcm2835-hvs.yaml | 5 +-
.../bindings/display/brcm,bcm2835-pixelvalve0.yaml | 3 +
.../bindings/display/brcm,bcm2835-txp.yaml | 5 +-
.../bindings/display/brcm,bcm2835-vc4.yaml | 1 +
arch/arm64/boot/dts/broadcom/Makefile | 1 +
arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts | 37 +
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts | 42 +
arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 188 +++++
drivers/clk/bcm/clk-raspberrypi.c | 34 +-
drivers/gpu/drm/vc4/tests/vc4_mock.c | 8 +-
drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c | 106 +--
drivers/gpu/drm/vc4/vc4_crtc.c | 96 ++-
drivers/gpu/drm/vc4/vc4_drv.c | 19 +-
drivers/gpu/drm/vc4/vc4_drv.h | 54 +-
drivers/gpu/drm/vc4/vc4_hdmi.c | 112 ++-
drivers/gpu/drm/vc4/vc4_hdmi.h | 4 +
drivers/gpu/drm/vc4/vc4_hdmi_phy.c | 640 +++++++++++++++
drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 217 ++++++
drivers/gpu/drm/vc4/vc4_hvs.c | 737 ++++++++++++++++--
drivers/gpu/drm/vc4/vc4_kms.c | 102 ++-
drivers/gpu/drm/vc4/vc4_plane.c | 866 ++++++++++++++++++++-
drivers/gpu/drm/vc4/vc4_regs.h | 297 +++++++
drivers/gpu/drm/vc4/vc4_txp.c | 91 ++-
include/soc/bcm2835/raspberrypi-firmware.h | 1 +
25 files changed, 3464 insertions(+), 204 deletions(-)
---
base-commit: 91e21479c81dd4e9e22a78d7446f92f6b96a7284
change-id: 20241002-drm-vc4-2712-support-9ad3236e3caf
Best regards,
--
Dave Stevenson <dave.stevenson@raspberrypi.com>
next reply other threads:[~2024-10-23 16:50 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-23 16:49 Dave Stevenson [this message]
2024-10-23 16:49 ` [PATCH 01/37] drm/vc4: Limit max_bpc to 8 on Pi0-3 Dave Stevenson
2024-10-24 15:14 ` Maxime Ripard
2024-10-23 16:49 ` [PATCH 02/37] drm/vc4: Use of_device_get_match_data to set generation Dave Stevenson
2024-10-24 15:14 ` Maxime Ripard
2024-10-24 20:13 ` kernel test robot
2024-10-23 16:50 ` [PATCH 03/37] drm/vc4: Fix reading of frame count on GEN5 / Pi4 Dave Stevenson
2024-10-24 15:16 ` Maxime Ripard
2024-10-23 16:50 ` [PATCH 04/37] dt-bindings: display: Add BCM2712 HDMI bindings Dave Stevenson
2024-10-24 20:39 ` Rob Herring (Arm)
2024-10-23 16:50 ` [PATCH 05/37] dt-bindings: display: Add BCM2712 HVS bindings Dave Stevenson
2024-10-24 20:40 ` Rob Herring (Arm)
2024-10-23 16:50 ` [PATCH 06/37] dt-bindings: display: Add BCM2712 PixelValve bindings Dave Stevenson
2024-10-24 20:40 ` Rob Herring (Arm)
2024-10-23 16:50 ` [PATCH 07/37] dt-bindings: display: Add BCM2712 MOP bindings Dave Stevenson
2024-10-24 20:41 ` Rob Herring (Arm)
2024-10-23 16:50 ` [PATCH 08/37] dt-bindings: display: Add BCM2712 MOPLET bindings Dave Stevenson
2024-10-24 20:41 ` Rob Herring (Arm)
2024-10-23 16:50 ` [PATCH 09/37] dt-bindings: display: Add BCM2712 KMS driver bindings Dave Stevenson
2024-10-24 20:43 ` Rob Herring (Arm)
2024-10-23 16:50 ` [PATCH 10/37] drm/vc4: drv: Support BCM2712 Dave Stevenson
2024-10-23 16:50 ` [PATCH 11/37] drm/vc4: hvs: Add support for BCM2712 HVS Dave Stevenson
2024-10-24 22:07 ` kernel test robot
2024-10-23 16:50 ` [PATCH 12/37] drm/vc4: crtc: Add support for BCM2712 PixelValves Dave Stevenson
2024-10-23 16:50 ` [PATCH 13/37] drm/vc4: hdmi: Add support for BCM2712 HDMI controllers Dave Stevenson
2024-10-23 16:50 ` [PATCH 14/37] drm/vc4: txp: Introduce structure to deal with revision differences Dave Stevenson
2024-10-23 16:50 ` [PATCH 15/37] drm/vc4: txp: Rename TXP data structure Dave Stevenson
2024-10-23 16:50 ` [PATCH 16/37] drm/vc4: txp: Add byte enable toggle bit Dave Stevenson
2024-10-23 16:50 ` [PATCH 17/37] drm/vc4: txp: Add horizontal and vertical size offset " Dave Stevenson
2024-10-23 16:50 ` [PATCH 18/37] drm/vc4: txp: Handle 40-bits DMA Addresses Dave Stevenson
2024-10-23 16:50 ` [PATCH 19/37] drm/vc4: txp: Move the encoder type in the variant structure Dave Stevenson
2024-10-23 16:50 ` [PATCH 20/37] drm/vc4: txp: Add a new TXP encoder type Dave Stevenson
2024-10-23 16:50 ` [PATCH 21/37] drm/vc4: txp: Add support for BCM2712 MOP Dave Stevenson
2024-10-25 9:45 ` kernel test robot
2024-10-23 16:50 ` [PATCH 22/37] drm/vc4: txp: Add BCM2712 MOPLET support Dave Stevenson
2024-10-25 12:09 ` kernel test robot
2024-10-23 16:50 ` [PATCH 23/37] drm/vc4: drv: Add support for 2712 D-step Dave Stevenson
2024-10-24 15:05 ` Maxime Ripard
2024-10-23 16:50 ` [PATCH 24/37] drm/vc4: hvs: Add in " Dave Stevenson
2024-10-24 15:07 ` Maxime Ripard
2024-10-23 16:50 ` [PATCH 25/37] drm/vc4: plane: Add " Dave Stevenson
2024-10-24 15:09 ` Maxime Ripard
2024-10-23 16:50 ` [PATCH 26/37] drm/vc4: hdmi: Support 2712 D-step register map Dave Stevenson
2024-10-24 15:09 ` Maxime Ripard
2024-10-23 16:50 ` [PATCH 27/37] drm/vc4: Add additional warn_on for incorrect revisions Dave Stevenson
2024-10-23 16:50 ` [PATCH 28/37] drm/vc4: Enable bg_fill if there are no planes enabled Dave Stevenson
2024-10-24 15:10 ` Maxime Ripard
2024-10-23 16:50 ` [PATCH 29/37] drm/vc4: Drop planes that are completely off-screen or 0 crtc size Dave Stevenson
2024-10-24 15:11 ` Maxime Ripard
2024-10-23 16:50 ` [PATCH 30/37] clk: bcm: rpi: Add ISP to exported clocks Dave Stevenson
2024-11-21 22:48 ` Stephen Boyd
2024-10-23 16:50 ` [PATCH 31/37] clk: bcm: rpi: Allow cpufreq driver to also adjust gpu clocks Dave Stevenson
2024-10-24 14:40 ` Maxime Ripard
2024-11-21 22:48 ` Stephen Boyd
2024-10-23 16:50 ` [PATCH 32/37] clk: bcm: rpi: Enable minimize for all firmware clocks Dave Stevenson
2024-11-21 22:48 ` Stephen Boyd
2024-10-23 16:50 ` [PATCH 33/37] clk: bcm: rpi: Create helper to retrieve private data Dave Stevenson
2024-11-21 22:47 ` Stephen Boyd
2024-10-23 16:50 ` [PATCH 34/37] clk: bcm: rpi: Add disp clock Dave Stevenson
2024-11-21 22:47 ` Stephen Boyd
2024-10-23 16:50 ` [PATCH 35/37] arm64: dts: broadcom: Add firmware clocks and power nodes to Pi5 DT Dave Stevenson
2024-10-23 16:50 ` [PATCH 36/37] arm64: dts: broadcom: Add display pipeline support to BCM2712 Dave Stevenson
2024-10-23 16:50 ` [PATCH 37/37] arm64: dts: broadcom: Add DT for D-step version of BCM2712 Dave Stevenson
2024-11-21 15:37 ` [PATCH 00/37] drm/vc4: Add support for BCM2712 / Pi5 display hardware Dave Stevenson
2024-11-22 8:06 ` Maxime Ripard
2024-11-24 17:00 ` Florian Fainelli
2024-11-27 14:43 ` Dave Stevenson
2024-12-03 20:40 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com \
--to=dave.stevenson@raspberrypi.com \
--cc=airlied@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=florian.fainelli@broadcom.com \
--cc=javierm@redhat.com \
--cc=kernel-list@raspberrypi.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mcanal@igalia.com \
--cc=mripard@kernel.org \
--cc=mturquette@baylibre.com \
--cc=popcornmix@gmail.com \
--cc=rjui@broadcom.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=sbranden@broadcom.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®