public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Swamil Jain <s-jain1@ti.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: <jyri.sarha@iki.fi>, <tomi.valkeinen@ideasonboard.com>,
	<maarten.lankhorst@linux.intel.com>, <mripard@kernel.org>,
	<tzimmermann@suse.de>, <airlied@gmail.com>, <simona@ffwll.ch>,
	<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<devarsht@ti.com>, <dri-devel@lists.freedesktop.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<praneeth@ti.com>, <vigneshr@ti.com>
Subject: Re: [PATCH v2] dt-bindings: display: ti,am65x-dss: Fix AM62L DSS reg and clock constraints
Date: Mon, 16 Mar 2026 18:06:42 +0530	[thread overview]
Message-ID: <7b3660cf-cc5a-47d6-9cc8-362544cfdb37@ti.com> (raw)
In-Reply-To: <4b554339-95e1-4980-8899-57ba637ba80c@ti.com>



On 2/6/26 19:48, Swamil Jain wrote:
> Hi Krzysztof,
> 
> On 2/5/26 18:55, Krzysztof Kozlowski wrote:
>> On Thu, Jan 29, 2026 at 08:36:01PM +0530, Swamil Jain wrote:
>>> The AM62L DSS [1] support incorrectly used the same register and
>>> clock constraints as AM65x, but AM62L has a single video port.
>>>
>>> Fix this by adding conditional constraints that properly define the
>>> register regions and clocks for AM62L DSS (single video port) versus
>>> other AM65x variants (dual video port).
>>>
>>> [1]: Section 12.7 (Display Subsystem and Peripherals)
>>> Link : https://www.ti.com/lit/pdf/sprujb4
>>>
>>> Fixes: cb8d4323302c ("dt-bindings: display: ti,am65x-dss: Add support 
>>> for AM62L DSS")
>>> Cc: stable@vger.kernel.org
>>>
>>
>> There are never blank lines between tags.
>>
> 
> Sorry, will fix this.
> 
>>> Signed-off-by: Swamil Jain <s-jain1@ti.com>
>>> ---
>>> Changelog:
>>> v1->v2:
>>> - Remove oneOf from top level constraints, it makes bindings redundant
>>> - Remove minItems from top level constraints
>>> - "dma-coherent" property shouldn't be changed in v1 itself
>>> - Add description for reg-names, clock and clock-names
>>> - Add constraints specific to AM62L and for other SoCs within allOf
>>>    check
>>>
>>> Link to v1:
>>> https://lore.kernel.org/all/20251224133150.2266524-1-s-jain1@ti.com/
>>> ---
>>>   .../bindings/display/ti/ti,am65x-dss.yaml     | 93 +++++++++++++------
>>>   1 file changed, 67 insertions(+), 26 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/display/ti/ti,am65x- 
>>> dss.yaml b/Documentation/devicetree/bindings/display/ti/ti,am65x- 
>>> dss.yaml
>>> index 38fcee91211e..dbc9d754cf9e 100644
>>> --- a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>>> +++ b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>>> @@ -36,38 +36,18 @@ properties:
>>>     reg:
>>>       description:
>>>         Addresses to each DSS memory region described in the SoC's TRM.
>>> -    items:
>>> -      - description: common DSS register area
>>> -      - description: VIDL1 light video plane
>>> -      - description: VID video plane
>>> -      - description: OVR1 overlay manager for vp1
>>> -      - description: OVR2 overlay manager for vp2
>>> -      - description: VP1 video port 1
>>> -      - description: VP2 video port 2
>>> -      - description: common1 DSS register area
>>
>> No, I do not understand this change. We spoke so many times, documented
>> it, wrotre on presentation slides: broadest constraints are always
>> defined in top level. TI received this feedback more than once.
>>
> 
> There is no superset constraints since am62l register sequence (common, 
> vidl1, ovr1, vp1, common1) is different than non-am62l SoCs (common, 
> vidl1, vid, ...-> here it is different), so thought to adopt this 
> approach where there is if-else block for each SoC and ran this through 
> dt-bindings check as well, looking at the replies maybe I misunderstood 
> what the suggestion was, reading the reply as I understand below is the 
> suggestion:
> 
> ```
> reg:
>      description:
>        Addresses to each DSS memory region described in the SoC's TRM.
>      oneOf:
>        - items:
>            - description: common DSS register area
>            - description: VIDL1 light video plane
>            - description: VID video plane
>            - description: OVR1 overlay manager for vp1
>            - description: OVR2 overlay manager for vp2
>            - description: VP1 video port 1
>            - description: VP2 video port 2
>            - description: common1 DSS register area
>        - items:
>            - description: common DSS register area
>            - description: VIDL1 light video plane
>            - description: OVR1 overlay manager for vp1
>            - description: VP1 video port 1
>            - description: common1 DSS register area
> 
> .....(Similarly for reg-names, clocks, clock-names,...)
> 
> allOf:
>    - if:
>        properties:
>          compatible:
>            contains:
>              const: ti,am62l-dss
>      then:
>        properties:
>          clock-names:
>            maxItems: 2
>          clocks:
>            maxItems: 2
>          reg:
>            maxItems: 5
>      else:
>        properties:
>          clock-names:
>            minItems: 3
>          clocks:
>            minItems: 3
>          reg:
>            minItems: 8
> 
> ```
> 
> Could you please confirm on this?

Hi Krzysztof,

Gentle ping, could you please confirm on the above design?

Regards,
Swamil.

> 
> Regards,
> Swamil.
> 
> 
>> Sorry guys, but you are not individual contributors which do it in spare
>> time. Why the same feedback - already documented - has to be repeated?
>>
>> Best regards,
>> Krzysztof
>>
>>
> 
> 


  reply	other threads:[~2026-03-16 12:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-29 15:06 [PATCH v2] dt-bindings: display: ti,am65x-dss: Fix AM62L DSS reg and clock constraints Swamil Jain
2026-02-05 13:25 ` Krzysztof Kozlowski
2026-02-06 14:18   ` Swamil Jain
2026-03-16 12:36     ` Swamil Jain [this message]
2026-03-16 16:44       ` Krzysztof Kozlowski
2026-04-10 11:06         ` Swamil Jain

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=7b3660cf-cc5a-47d6-9cc8-362544cfdb37@ti.com \
    --to=s-jain1@ti.com \
    --cc=airlied@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devarsht@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jyri.sarha@iki.fi \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=praneeth@ti.com \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tzimmermann@suse.de \
    --cc=vigneshr@ti.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