Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs

2025-02-26 Thread Dmitry Baryshkov
On Mon, 27 Jan 2025 14:21:04 +0100, Krzysztof Kozlowski wrote: > DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide > two clocks. The respective clock ID is used by drivers and DTS, so it > should be documented as explicit ABI. > > Applied, thanks! [1/2] dt-bindings: dis

Re: [PATCH v2 0/4] Add and enable the panel

2025-02-26 Thread Dmitry Baryshkov
On Tue, 18 Feb 2025 01:24:27 +0300, Danila Tikhonov wrote: > This patch series adds support for the Visionox RM692E5 panel, which is > used on the Nothing Phone (1) and then adds it to the DTS. > > Before integrating the panel into the DTS, we update the DSI code to > allow bits-per-component (b

Re: [PATCH] drm/msm: Use str_enable_disable-like helpers

2025-02-26 Thread Dmitry Baryshkov
On Tue, 14 Jan 2025 20:17:24 +0100, Krzysztof Kozlowski wrote: > Replace ternary (condition ? "enable" : "disable") syntax with helpers > from string_choices.h because: > 1. Simple function call with one argument is easier to read. Ternary >operator has three arguments and with wrapping migh

Re: [PATCH v2] drm/msm/dpu: Fall back to a single DSC encoder (1:1:1) on small SoCs

2025-02-26 Thread Dmitry Baryshkov
On Wed, 22 Jan 2025 17:23:44 +0100, Marijn Suijten wrote: > Some SoCs such as SC7280 (used in the Fairphone 5) have only a single > DSC "hard slice" encoder. The current hardcoded use of 2:2:1 topology > (2 LM and 2 DSC for a single interface) make it impossible to use > Display Stream Compressi

Re: [PATCH v2] drm/msm/dpu: Add writeback support for SM6150

2025-02-26 Thread Dmitry Baryshkov
On Tue, 14 Jan 2025 16:55:24 +0800, Fange Zhang wrote: > On the SM6150 platform there is WB_2 block. Add it to the SM6150 catalog. > > Applied, thanks! [1/1] drm/msm/dpu: Add writeback support for SM6150 https://gitlab.freedesktop.org/lumag/msm/-/commit/23c0a9d36f78 Best regards, -- D

Re: [PATCH v5 0/2] drm/msm/dsi/phy: Improvements around concurrent PHY_CMN_CLK_CFG[01]

2025-02-26 Thread Dmitry Baryshkov
On Wed, 19 Feb 2025 17:23:31 +0100, Krzysztof Kozlowski wrote: > Changes in v5: > - Drop applied patches 1-3 > - Split part touching pll_7nm_register() from last (#4) patch to new patch >- Thus: new patch #1 in new numbering. > - Link to v4: > https://lore.kernel.org/r/20250217-drm-msm-phy-p

Re: [PATCH] drm/msm/dpu: Simplify using local 'ctl' variable

2025-02-26 Thread Dmitry Baryshkov
On Tue, 14 Jan 2025 16:59:59 +0100, Krzysztof Kozlowski wrote: > In few places we store 'phys_enc->hw_ctl' to local 'ctl' variable so use > it everywhere. No functional change. > > Applied, thanks! [1/1] drm/msm/dpu: Simplify using local 'ctl' variable https://gitlab.freedesktop.org/lu

Re: [PATCH RFC] drm/msm/dsi/phy: Program clock inverters in correct register

2025-02-26 Thread Dmitry Baryshkov
On Wed, 29 Jan 2025 12:55:04 +0100, Krzysztof Kozlowski wrote: > Since SM8250 all downstream sources program clock inverters in > PLL_CLOCK_INVERTERS_1 register and leave the PLL_CLOCK_INVERTERS as > reset value (0x0). The most recent Hardware Programming Guide for 3 nm, > 4 nm, 5 nm and 7 nm PH

Re: [PATCH v3 0/3] drm/msm: Initial fixes for DUALPIPE (+DSC) topology

2025-02-26 Thread Dmitry Baryshkov
On Mon, 17 Feb 2025 12:17:40 +0100, Marijn Suijten wrote: > This series covers a step-up towards supporting the DUALPIPE DSC > topology, also known as 2:2:2 topology (on active-CTL hardware). It > involves 2 layer mixers, 2 DSC compression encoders, and 2 interfaces > (on DSI, this is called bon

Re: [PATCH v2 0/4] drm/msm/dsi: Minor cleanups

2025-02-26 Thread Dmitry Baryshkov
On Fri, 14 Feb 2025 14:17:43 +0100, Krzysztof Kozlowski wrote: > Changes in v2: > - Patch #2: Update commit msg > - Tags > - Link to v1: > https://lore.kernel.org/r/20250106-drm-msm-cleanups-v1-0-271ff1c00...@linaro.org > > Few minor improvements/cleanups why browsing the code. > > [...] Appl

Re: [PATCH v3 0/5] drm/msm: add a display mmu fault handler

2025-02-26 Thread Dmitry Baryshkov
On Wed, 19 Feb 2025 11:49:16 -0800, Jessica Zhang wrote: > To debug display mmu faults, this series introduces a display fault > handler similar to the gpu one. > > This series has been tested on sc7280 chromebook by using triggering > a smmu fault by forcing an incorrect stride on the planes. >

Re: [PATCH v4 0/4] dt-bindings: display: qcom, sm8[56]50-mdss: properly document the interconnect paths

2025-02-26 Thread Dmitry Baryshkov
On Thu, 13 Feb 2025 17:27:55 +0100, Neil Armstrong wrote: > The mdp1-mem is not supported on the SM8550 & SM8650 SoCs, so properly > document > the mdp0-mem and cpu-cfg interconnect entries. > > This fixes the following errors: > display-subsystem@ae0: interconnects: [[200, 3, 7, 32, 1, 7]]

Re: [PATCH] drm/msm/dsi: Add check for devm_kstrdup()

2025-02-26 Thread Dmitry Baryshkov
On Wed, 19 Feb 2025 12:07:12 +0800, Haoxiang Li wrote: > Add check for the return value of devm_kstrdup() in > dsi_host_parse_dt() to catch potential exception. > > Applied, thanks! [1/1] drm/msm/dsi: Add check for devm_kstrdup() https://gitlab.freedesktop.org/lumag/msm/-/commit/52b3f0e

Re: [PATCH v2 0/4] drm/msm/dpu: follow rules for drm_atomic_helper_check_modeset()

2025-02-26 Thread Dmitry Baryshkov
On Thu, 23 Jan 2025 14:43:32 +0200, Dmitry Baryshkov wrote: > As pointed out by Simona, the drm_atomic_helper_check_modeset() and > drm_atomic_helper_check() require the former function is rerun if the > driver's callbacks modify crtc_state->mode_changed. MSM is one of the > drivers which failed

Re: [PATCH v7 11/15] drm/msm/dpu: split PIPES_PER_STAGE definition per plane and mixer

2025-02-26 Thread Jun Nie
Jessica Zhang 于2025年2月27日周四 09:38写道: > > > > On 2/26/2025 4:31 AM, Jun Nie wrote: > > The stage contains configuration for a mixer pair. Currently the plane > > supports just one stage and 2 pipes. Quad-pipe support will require > > handling 2 stages and 4 pipes at the same time. In preparation fo

[PATCH v6] drm/msm/dpu: allow sharing SSPP between planes

2025-02-26 Thread Dmitry Baryshkov
Since SmartDMA planes provide two rectangles, it is possible to use them to drive two different DRM planes, first plane getting the rect_0, another one using rect_1 of the same SSPP. The sharing algorithm is pretty simple, it requires that each of the planes can be driven by the single rectangle an

Re: [PATCH v7 13/15] drm/msm/dpu: support SSPP assignment for quad-pipe case

2025-02-26 Thread Jun Nie
Jessica Zhang 于2025年2月27日周四 02:10写道: > > > > On 2/26/2025 4:31 AM, Jun Nie wrote: > > Currently, SSPPs are assigned to a maximum of two pipes. However, > > quad-pipe usage scenarios require four pipes and involve configuring > > two stages. In quad-pipe case, the first two pipes share a set of > >

[PATCH v3 2/7] drm/msm/mdp4: drop mpd4_lvds_pll_init stub

2025-02-26 Thread Dmitry Baryshkov
Drop the !COMMON_CLK stub for mpd4_lvds_pll_init(), the DRM_MSM driver depends on COMMON_CLK. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.

[PATCH v3 7/7] arm: dts: qcom: apq8064: link LVDS clocks

2025-02-26 Thread Dmitry Baryshkov
Link LVDS clocks to the from MDP4 to the MMCC and back from the MMCC to the MDP4 display controller. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch

[PATCH v3 1/7] dt-bindings: display: msm: mdp4: add LCDC clock and PLL source

2025-02-26 Thread Dmitry Baryshkov
Add the LCDC / LVDS clock input and the XO used to drive internal LVDS PLL to MDP4 controller bindings. The controller also provides LVDS PHY PLL, so add optional #clock-cells to the device. Acked-by: Rob Herring (Arm) Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/displa

[PATCH v3 4/7] drm/msm/mdp4: use parent_data for LVDS PLL

2025-02-26 Thread Dmitry Baryshkov
Instead of using .parent_names, use .parent_data, which binds parent clocks by using relative names specified in DT in addition to using global system clock names. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_pll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 del

[PATCH v3 6/7] drm/msm/mdp4: switch LVDS to use drm_bridge/_connector

2025-02-26 Thread Dmitry Baryshkov
LVDS support in MDP4 driver makes use of drm_connector directly. However LCDC encoder and LVDS connector are wrappers around drm_panel. Switch them to use drm_panel_bridge/drm_bridge_connector. This allows using standard interface for the drm_panel and also inserting additional bridges between enco

[PATCH v3 5/7] drm/msm/mdp4: move move_valid callback to lcdc_encoder

2025-02-26 Thread Dmitry Baryshkov
We can check the LCDC clock directly from the LCDC encoder driver, so remove it from the LVDS connector. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h | 1 - drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c | 27

[PATCH v3 3/7] drm/msm/mdp4: register the LVDS PLL as a clock provider

2025-02-26 Thread Dmitry Baryshkov
The LVDS/LCDC controller uses pixel clock coming from the multimedia controller (mmcc) rather than using the PLL directly. Stop using LVDS PLL directly and register it as a clock provider. Use lcdc_clk as a pixel clock for the LCDC. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov ---

[PATCH v3 0/7] drm/msm/mdp4: rework LVDS/LCDC panel support

2025-02-26 Thread Dmitry Baryshkov
The LCDC controller uses pixel clock provided by the multimedia clock controller (mmcc) instead of using LVDS PHY clock directly. Link LVDS clocks properly, taking MMCC into account. MDP4 uses custom code to handle LVDS panel. It predates handling EPROBE_DEFER, it tries to work when the panel devi

Re: [PATCH v7 11/15] drm/msm/dpu: split PIPES_PER_STAGE definition per plane and mixer

2025-02-26 Thread Jessica Zhang
On 2/26/2025 4:31 AM, Jun Nie wrote: The stage contains configuration for a mixer pair. Currently the plane supports just one stage and 2 pipes. Quad-pipe support will require handling 2 stages and 4 pipes at the same time. In preparation for that add a separate define, PIPES_PER_PLANE, to den

Re: [PATCH v7 10/15] drm/msm/dpu: handle pipes as array

2025-02-26 Thread Jessica Zhang
On 2/26/2025 4:30 AM, Jun Nie wrote: There are 2 pipes in a drm plane at most currently, while 4 pipes are required for quad-pipe case. Generalize the handling to pipe pair and ease handling to another pipe pair later. Store pipes in array with removing dedicated r_pipe. Signed-off-by: Jun Ni

Re: [PATCH v2 4/4] drm/msm/dpu: don't set crtc_state->mode_changed from atomic_check()

2025-02-26 Thread Dmitry Baryshkov
On Wed, 26 Feb 2025 at 20:36, Jessica Zhang wrote: > > > > On 2/26/2025 3:55 AM, Dmitry Baryshkov wrote: > > On Thu, Jan 23, 2025 at 02:43:36PM +0200, Dmitry Baryshkov wrote: > >> The MSM driver uses drm_atomic_helper_check() which mandates that none > >> of the atomic_check() callbacks toggles cr

Re: [PATCH v2 4/4] drm/msm/dpu: don't set crtc_state->mode_changed from atomic_check()

2025-02-26 Thread Jessica Zhang
On 2/26/2025 3:55 AM, Dmitry Baryshkov wrote: On Thu, Jan 23, 2025 at 02:43:36PM +0200, Dmitry Baryshkov wrote: The MSM driver uses drm_atomic_helper_check() which mandates that none of the atomic_check() callbacks toggles crtc_state->mode_changed. Perform corresponding check before calling t

Re: [PATCH v7 13/15] drm/msm/dpu: support SSPP assignment for quad-pipe case

2025-02-26 Thread Jessica Zhang
On 2/26/2025 4:31 AM, Jun Nie wrote: Currently, SSPPs are assigned to a maximum of two pipes. However, quad-pipe usage scenarios require four pipes and involve configuring two stages. In quad-pipe case, the first two pipes share a set of mixer configurations and enable multi-rect mode when cer

Re: [PATCH v2] dt-bindings: display/msm: qcom,sa8775p-mdss: Add missing eDP phy

2025-02-26 Thread Rob Herring (Arm)
On Fri, 21 Feb 2025 16:13:11 +0100, Krzysztof Kozlowski wrote: > The Qualcomm SA8775p MDSS display block comes with eDP phy, already used > in DTS and already documented in phy/qcom,edp-phy.yaml binding. Add the > missing device node in the binding and extend example to silence > dtbs_check warn

[PATCH v7 04/15] drm/msm/dpu: polish log for resource allocation

2025-02-26 Thread Jun Nie
It is more likely that resource allocation may fail in complex usage case, such as quad-pipe case, than existing usage cases. A resource type ID is printed on failure in the current implementation, but the raw ID number is not explicit enough to help easily understand which resource caused the fail

[PATCH v7 14/15] drm/msm/dpu: support plane splitting in quad-pipe case

2025-02-26 Thread Jun Nie
The content of every half of screen is sent out via one interface in dual-DSI case. The content for every interface is blended by a LM pair in quad-pipe case, thus a LM pair should not blend any content that cross the half of screen in this case. Clip plane into pipes per left and right half screen

[PATCH v7 15/15] drm/msm/dpu: Enable quad-pipe for DSC and dual-DSI case

2025-02-26 Thread Jun Nie
To support high-resolution cases that exceed the width limitation of a pair of SSPPs, or scenarios that surpass the maximum MDP clock rate, additional pipes are necessary to enable parallel data processing within the SSPP width constraints and MDP clock rate. Request 4 mixers and 4 DSCs for high-r

[PATCH v7 13/15] drm/msm/dpu: support SSPP assignment for quad-pipe case

2025-02-26 Thread Jun Nie
Currently, SSPPs are assigned to a maximum of two pipes. However, quad-pipe usage scenarios require four pipes and involve configuring two stages. In quad-pipe case, the first two pipes share a set of mixer configurations and enable multi-rect mode when certain conditions are met. The same applies

[PATCH v7 12/15] drm/msm/dpu: blend pipes per mixer pairs config

2025-02-26 Thread Jun Nie
Currently, only 2 pipes are used at most for a plane. A stage structure describes the configuration for a mixer pair. So only one stage is needed for current usage cases. The quad-pipe case will be added in future and 2 stages are used in the case. So extend the stage to an array with array size ST

[PATCH v7 10/15] drm/msm/dpu: handle pipes as array

2025-02-26 Thread Jun Nie
There are 2 pipes in a drm plane at most currently, while 4 pipes are required for quad-pipe case. Generalize the handling to pipe pair and ease handling to another pipe pair later. Store pipes in array with removing dedicated r_pipe. Signed-off-by: Jun Nie Reviewed-by: Dmitry Baryshkov --- dri

[PATCH v7 11/15] drm/msm/dpu: split PIPES_PER_STAGE definition per plane and mixer

2025-02-26 Thread Jun Nie
The stage contains configuration for a mixer pair. Currently the plane supports just one stage and 2 pipes. Quad-pipe support will require handling 2 stages and 4 pipes at the same time. In preparation for that add a separate define, PIPES_PER_PLANE, to denote number of pipes that can be used by th

[PATCH v7 09/15] drm/msm/dpu: Add pipe as trace argument

2025-02-26 Thread Jun Nie
Add pipe as trace argument in trace_dpu_crtc_setup_mixer() to ease converting pipe into pipe array later. Signed-off-by: Jun Nie Reviewed-by: Dmitry Baryshkov Reviewed-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 10 +-

[PATCH v7 08/15] drm/msm/dpu: bind correct pingpong for quad pipe

2025-02-26 Thread Jun Nie
There are 2 interfaces and 4 pingpong in quad pipe. Map the 2nd interface to 3rd PP instead of the 2nd PP. Signed-off-by: Jun Nie Reviewed-by: Dmitry Baryshkov Reviewed-by: Jessica Zhang --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 10 -- 1 file changed, 8 insertions(+), 2 deletio

[PATCH v7 07/15] drm/msm/dpu: switch RM to use crtc_id rather than enc_id for allocation

2025-02-26 Thread Jun Nie
Up to now the driver has been using encoder to allocate hardware resources. Switch it to use CRTC id so that mixer number can be known in dpu_plane_virtual_assign_resources() via CRTC id for sspp alloation. Because the mixer allocation is done in drm_atomic_helper_check_modeset() as part of CRTC o

[PATCH v7 06/15] drm/msm/dpu: fix mixer number counter on allocation

2025-02-26 Thread Jun Nie
Current code only supports usage cases with one pair of mixers at most. To support quad-pipe usage case, two pairs of mixers need to be reserved. The lm_count for all pairs is cleared if a peer allocation fails in current implementation. Reset the current lm_count to an even number instead of compl

[PATCH v7 05/15] drm/msm/dpu: decide right side per last bit

2025-02-26 Thread Jun Nie
Currently, only one pair of mixers is supported, so a non-zero counter value is sufficient to identify the correct mixer within that pair. However, future implementations may involve multiple mixer pairs. With the current implementation, all mixers within the second pair would be incorrectly select

[PATCH v7 03/15] drm/msm/dpu: configure DSC per number in use

2025-02-26 Thread Jun Nie
Currently if DSC support is requested, the driver only supports using 2 DSC blocks. We need 4 DSC in quad-pipe topology in future. So Only configure DSC engines in use, instead of the maximum number of DSC engines. Signed-off-by: Jun Nie Reviewed-by: Dmitry Baryshkov Reviewed-by: Jessica Zhang

[PATCH v7 02/15] drm/msm/dpu: Do not fix number of DSC

2025-02-26 Thread Jun Nie
Currently, if DSC is enabled, only 2 DSC engines are supported so far. More usage cases will be added, such as 4 DSC in 4:4:2 topology. So get the real number of DSCs to decide whether DSC merging is needed. Signed-off-by: Jun Nie Reviewed-by: Dmitry Baryshkov Reviewed-by: Jessica Zhang --- dr

[PATCH v7 01/15] drm/msm/dpu: check every pipe per capability

2025-02-26 Thread Jun Nie
The capability stored in sblk and pipe_hw_caps is checked only for SSPP of the first pipe in the pair with current implementation. That of the 2nd pipe, r_pipe, is not checked and may violate hardware capability. Move requirement check to dpu_plane_atomic_check_pipe() for the check of every pipe.

[PATCH v7 00/15] drm/msm/dpu: Support quad pipe with dual-DSI

2025-02-26 Thread Jun Nie
2 or more SSPPs and dual-DSI interface are need for super wide panel. And 4 DSC are preferred for power optimal in this case due to width limitation of SSPP and MDP clock rate constrain. This patch set extends number of pipes to 4 and revise related mixer blending logic to support quad pipe. All th

Re: [PATCH v2 4/4] drm/msm/dpu: don't set crtc_state->mode_changed from atomic_check()

2025-02-26 Thread Dmitry Baryshkov
On Thu, Jan 23, 2025 at 02:43:36PM +0200, Dmitry Baryshkov wrote: > The MSM driver uses drm_atomic_helper_check() which mandates that none > of the atomic_check() callbacks toggles crtc_state->mode_changed. > Perform corresponding check before calling the drm_atomic_helper_check() > function. > >

Re: [PATCH v3 02/25] drm/dumb-buffers: Provide helper to set pitch and size

2025-02-26 Thread Thomas Zimmermann
Hi Am 25.02.25 um 14:45 schrieb Tomi Valkeinen: Hi, On 21/02/2025 11:19, Thomas Zimmermann wrote: Hi Am 20.02.25 um 11:53 schrieb Tomi Valkeinen: Hi, On 20/02/2025 12:05, Thomas Zimmermann wrote: Hi Am 20.02.25 um 10:18 schrieb Tomi Valkeinen: [...] + * Color modes of 10, 12, 15, 30 and 6

[PATCH v8 6/7] drm/msm/hdmi: also send the SPD and HDMI Vendor Specific InfoFrames

2025-02-26 Thread Dmitry Baryshkov
Extend the driver to send SPD and HDMI Vendor Specific InfoFrames. While the HDMI block has special block to send HVS InfoFrame, use GENERIC0 block instead. VENSPEC_INFO registers pack frame data in a way that requires manual repacking in the driver, while GENERIC0 doesn't have such format require

[PATCH v8 7/7] drm/msm/hdmi: use DRM HDMI Audio framework

2025-02-26 Thread Dmitry Baryshkov
In order to simplify the driver even further and to remove the boilerplate code, rewrite the audio interface to use the DRM HDMI Audio framework. Audio InfoFames are controlled centrally via the DRM HDMI framework. Correct InfoFrame data is programmed at the atomic_pre_enable() time (if it was set

[PATCH v8 5/7] drm/msm/hdmi: update HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE definition

2025-02-26 Thread Dmitry Baryshkov
The GENERIC0_UPDATE field is a single bit. Redefine it as boolean to simplify its usage in the driver. Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/registers/display/hdmi.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/dr

[PATCH v8 3/7] drm/msm/hdmi: make use of the drm_connector_hdmi framework

2025-02-26 Thread Dmitry Baryshkov
Setup the HDMI connector on the MSM HDMI outputs. Make use of atomic_check hook and of the provided Infoframe infrastructure. Acked-by: Maxime Ripard Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/Kconfig| 2 + drivers/gpu/drm/msm/hdmi/hdmi.c

[PATCH v8 4/7] drm/msm/hdmi: get rid of hdmi_mode

2025-02-26 Thread Dmitry Baryshkov
Use connector->display_info.is_hdmi instead of manually using drm_detect_hdmi_monitor(). Acked-by: Maxime Ripard Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi.c| 2 +- drivers/gpu/drm/msm/hdmi/hdmi.h| 2 -- drivers/gpu/drm/msm/hd

[PATCH v8 2/7] drm/msm/hdmi: program HDMI timings during atomic_pre_enable

2025-02-26 Thread Dmitry Baryshkov
The mode_set callback is deprecated, it doesn't get the drm_bridge_state, just mode-related argumetns. Also Abhinav pointed out that HDMI timings should be programmed before setting up HDMI PHY and PLL. Rework the code to program HDMI timings at the start of atomic_pre_enable(). Reviewed-by: Maxim

[PATCH v8 1/7] drm/msm/hdmi: switch to atomic bridge callbacks

2025-02-26 Thread Dmitry Baryshkov
Change MSM HDMI bridge to use atomic_* callbacks in preparation to enablign the HDMI connector support. Acked-by: Maxime Ripard Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 13 + 1 file changed, 9 insertions(+), 4 deletions

[PATCH v8 0/7] drm/msm: make use of the HDMI connector infrastructure

2025-02-26 Thread Dmitry Baryshkov
This patchset sits on top Maxime's HDMI connector patchset ([1]). Currently this is an RFC exploring the interface between HDMI bridges and HDMI connector code. This has been lightly verified on the Qualcomm DB820c, which has native HDMI output. If this approach is considered to be acceptable, I'l

Re: [PATCH 07/11] arm64: dts: qcom: sa8775p-ride: add anx7625 DSI to DP bridge nodes

2025-02-26 Thread Krzysztof Kozlowski
On Tue, Feb 25, 2025 at 02:31:05PM +0100, Krzysztof Kozlowski wrote: > On 25/02/2025 13:18, Ayushi Makhija wrote: > > + pinctrl-0 = <&dsi0_int_pin>, > > + <&dsi0_cbl_det_pin>, > > + <&dsi1_int_pin>, > > + <&dsi1