From: Harikrishna shenoy <h-shenoy@ti.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: <andrzej.hajda@intel.com>, <neil.armstrong@linaro.org>,
<rfoss@kernel.org>, <Laurent.pinchart@ideasonboard.com>,
<jonas@kwiboo.se>, <jernej.skrabec@gmail.com>,
<airlied@gmail.com>, <simona@ffwll.ch>,
<maarten.lankhorst@linux.intel.com>, <mripard@kernel.org>,
<tzimmermann@suse.de>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <sjakhade@cadence.com>,
<yamonkar@cadence.com>, <lumag@kernel.org>,
<dianders@chromium.org>, <jani.nikula@intel.com>,
<luca.ceresoli@bootlin.com>, <andy.yan@rock-chips.com>,
<dri-devel@lists.freedesktop.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <devarsht@ti.com>,
<u-kumar1@ti.com>, <s-jain1@ti.com>,
<tomi.valkeinen@ideasonboard.com>
Subject: Re: [PATCH v5 1/2] dt-bindings: drm/bridge: MHDP8546 bridge binding changes for DSC
Date: Fri, 17 Oct 2025 16:28:15 +0530 [thread overview]
Message-ID: <8ace674c-9d57-4500-b155-caa662903774@ti.com> (raw)
In-Reply-To: <d2367789-6b54-4fc2-bb7c-609c0fe084d3@ti.com>
On 22/09/25 13:11, Harikrishna Shenoy wrote:
>
>
> On 9/18/25 07:00, Krzysztof Kozlowski wrote:
>> On Mon, Sep 15, 2025 at 04:00:40PM +0530, Harikrishna Shenoy wrote:
>>> From: Swapnil Jakhade<sjakhade@cadence.com>
>>>
>>> Add binding changes for DSC(Display Stream Compression) in the MHDP8546
>>> DPI/DP bridge.
>>>
>>> Signed-off-by: Swapnil Jakhade<sjakhade@cadence.com>
>>> Signed-off-by: Harikrishna Shenoy<h-shenoy@ti.com>
>>> ---
>>> .../display/bridge/cdns,mhdp8546.yaml | 24 ++++++++++++-------
>>> 1 file changed, 15 insertions(+), 9 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml
>>> index c2b369456e4e..2a05a7d5847f 100644
>>> --- a/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml
>>> +++ b/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml
>>> @@ -27,13 +27,12 @@ properties:
>>> Register block for DSS_EDP0_INTG_CFG_VP registers in case of TI J7 SoCs.
>>> - description:
>>> Register block of mhdptx sapb registers.
>>> + - description:
>>> + Register block for mhdptx DSC encoder registers.
>>>
>>> reg-names:
>>> - minItems: 1
>>> - items:
>>> - - const: mhdptx
>>> - - const: j721e-intg
>>> - - const: mhdptx-sapb
>>> + description:
>>> + Names corresponding to entries in the reg property.
>> No, top-level should have broadest constraints. In your case it is
>> min/maxItems.
>>
>> Description is completely redundant. Wasn't here before, so why adding
>> it?
>>
> Noted, will remove description and add minItems:1.
>>>
>>> clocks:
>>> maxItems: 1
>>> @@ -100,18 +99,25 @@ allOf:
>>> properties:
>>> reg:
>>> minItems: 2
>>> - maxItems: 3
>>> + maxItems: 4
>>> reg-names:
>>> minItems: 2
>>> - maxItems: 3
>>> + items:
>>> + - const: mhdptx
>>> + - const: j721e-intg
>>> + - const: mhdptx-sapb
>>> + - const: dsc
>>> else:
>>> properties:
>>> reg:
>>> minItems: 1
>>> - maxItems: 2
>>> + maxItems: 3
>>> reg-names:
>>> minItems: 1
>>> - maxItems: 2
>>> + items:
>>> + - const: mhdptx
>>> + - const: mhdptx-sapb
>> This is wrong. Previously CDNS variant had two items means it had
>> "j721e-intg". Now it's something else.
>>
>> First, this is an ABI break.
>>
>> Second, there is no explanation at all for it in the commit msg! Looks
>> like random change.
>>
>> Read carefully writing-bindings doc.
>>
>> Best regards,
>> Krzysztof
>>
>
> Hi Krzysztof,
>
>
> Keeping this patch series aside, The existing binding-docs clearly have
> a bug.
>
> Since even for cadence specific compatible "cdns,mhdp8546" it
> compulsorily expects "j721e-intg" register space
>
> which is NOT part of the cadence IP block mhdp8546 and hence not
> applicable to "cdns,mhdp8546".
>
> This was also discussed here [1] and can also be referred in this TRM
> section [2],
>
> which clearly show that "j721e-intg" is part of TI wrapper IP block and
> should be
>
> applicable to "ti,j721e-mhdp8546" compatible.
>
> Yes agreed it breaks the ABI but it also fixes a bug and I don't see any
> one using only "cdns,mhdp8546" yet.
>
> so I am thinking it's more appropriate to fix this as a separate patch
> independent of this series.
>
> Kindly let me know if I should submit a separate patch to fix this bug
> or I should just ignore this bug.
>
> Depending on your suggestion, if it's agreed upon to send the bug fix
> patch first, I will send out an independent
>
> bug fix to remove "j721e-intg" for compatible "cdns,mhdp8546" and then
> rebase the series for adding DSC reg blocks
>
> on top of bug fix.
>
> [1]: https://lore.kernel.org/all/20250903220312.GA2903503-
> robh@kernel.org/ <https://lore.kernel.org/all/20250903220312.GA2903503-
> robh@kernel.org/>
> [2]: Link to TRM ZIP:https://www.ti.com/lit/zip/spruil1 <https://
> www.ti.com/lit/zip/spruil1>
> Table 2-1. MAIN Domain Memory Map
> DSS_EDP0_V2A_CORE_VP_REGS_APB are EDP core register identified by name
> mhdptx in DT.
> DSS_EDP0_INTG_CFG_VP identified by j721e-intg in DT.
>
> Section 12.6.6.16.4: EDP_CFG Registers
>
> Driver use: TI j721e Cadence MHDP8546 DP wrapper(drivers/gpu/drm/bridge/
> cadence/cdns-mhdp8546-j721e.c)
>
>
> Regards.
Hi Krzysztof,
Could you please let us know your thoughts on above, will re-spin it
accordingly.
Regards.
>
next prev parent reply other threads:[~2025-10-17 10:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-15 10:30 [PATCH v5 0/2] Add support for DSC and FEC for cadence MHDP8546 bridge Harikrishna Shenoy
2025-09-15 10:30 ` [PATCH v5 1/2] dt-bindings: drm/bridge: MHDP8546 bridge binding changes for DSC Harikrishna Shenoy
2025-09-18 1:30 ` Krzysztof Kozlowski
[not found] ` <d2367789-6b54-4fc2-bb7c-609c0fe084d3@ti.com>
2025-10-17 10:58 ` Harikrishna shenoy [this message]
2025-09-15 10:30 ` [PATCH v5 2/2] drm: bridge: cdns-mhdp8546: Add support for DSC and FEC Harikrishna Shenoy
2025-09-15 11:06 ` Dmitry Baryshkov
2025-09-15 18:53 ` Dmitry Baryshkov
2025-09-30 12:41 ` Harikrishna Shenoy
2025-09-19 19:38 ` kernel test robot
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=8ace674c-9d57-4500-b155-caa662903774@ti.com \
--to=h-shenoy@ti.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=andy.yan@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devarsht@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=s-jain1@ti.com \
--cc=simona@ffwll.ch \
--cc=sjakhade@cadence.com \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tzimmermann@suse.de \
--cc=u-kumar1@ti.com \
--cc=yamonkar@cadence.com \
/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®