[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <sxepkcq5sbksj3xsq4mlvpzg6ljaz23bdhrehahhfjmalrlege@4atufz3uxs6x>
Date: Mon, 17 Feb 2025 21:03:39 +0200
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: Rob Clark <robdclark@...il.com>,
Abhinav Kumar <quic_abhinavk@...cinc.com>, Sean Paul <sean@...rly.run>,
Marijn Suijten <marijn.suijten@...ainline.org>, David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>, Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Krishna Manikandan <quic_mkrishn@...cinc.com>,
Jonathan Marek <jonathan@...ek.ca>, Kuogee Hsieh <quic_khsieh@...cinc.com>,
Neil Armstrong <neil.armstrong@...aro.org>, linux-arm-msm@...r.kernel.org, dri-devel@...ts.freedesktop.org,
freedreno@...ts.freedesktop.org, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Srini Kandagatla <srinivas.kandagatla@...aro.org>
Subject: Re: [PATCH v2 11/16] drm/msm/dsi/phy: Add support for SM8750
On Mon, Feb 17, 2025 at 05:41:32PM +0100, Krzysztof Kozlowski wrote:
> Add support for DSI PHY v7.0 on Qualcomm SM8750 SoC which comes with an
> incompatible hardware interface change:
>
> ICODE_ACCUM_STATUS_LOW and ALOG_OBSV_BUS_STATUS_1 registers - their
> offsets were just switched. Currently these registers are not used in
> the driver, so the easiest is to document both but keep them commented
> out to avoid conflict.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
>
> ---
>
> Changes in v2:
> 1.
:-)
> ---
> drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +
> drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 1 +
> drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 79 ++++++++++++++++++++--
> .../gpu/drm/msm/registers/display/dsi_phy_7nm.xml | 14 ++++
> 4 files changed, 90 insertions(+), 6 deletions(-)
>
> @@ -191,11 +192,24 @@ xsi:schemaLocation="https://gitlab.freedesktop.org/freedreno/ rules-fd.xsd">
> <reg32 offset="0x01b0" name="COMMON_STATUS_ONE"/>
> <reg32 offset="0x01b4" name="COMMON_STATUS_TWO"/>
> <reg32 offset="0x01b8" name="BAND_SEL_CAL"/>
> + <!--
> + Starting from SM8750, offset moved from 0x01bc to 0x01cc, however
> + we keep only one register map. That's not a problem, so far,
> + because this register is not used. The register map should be split
> + once it is going to be used. Comment out the code to prevent
> + any misuse due to the change in the offset.
Mumbles a lot about the hardware design.
> <reg32 offset="0x01bc" name="ICODE_ACCUM_STATUS_LOW"/>
> + <reg32 offset="0x01cc" name="ICODE_ACCUM_STATUS_LOW"/>
> + -->
> <reg32 offset="0x01c0" name="ICODE_ACCUM_STATUS_HIGH"/>
> <reg32 offset="0x01c4" name="FD_OUT_LOW"/>
> <reg32 offset="0x01c8" name="FD_OUT_HIGH"/>
> + <!--
> + Starting from SM8750, offset moved from 0x01cc to 0x01bc, however
> + we keep only one register map. See above comment.
> <reg32 offset="0x01cc" name="ALOG_OBSV_BUS_STATUS_1"/>
> + <reg32 offset="0x01bc" name="ALOG_OBSV_BUS_STATUS_1"/>
> + -->
> <reg32 offset="0x01d0" name="PLL_MISC_CONFIG"/>
> <reg32 offset="0x01d4" name="FLL_CONFIG"/>
> <reg32 offset="0x01d8" name="FLL_FREQ_ACQ_TIME"/>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
--
With best wishes
Dmitry
Powered by blists - more mailing lists