mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Icenowy Zheng <uwu@icenowy.me>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	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>,
	Drew Fustini <fustini@kernel.org>, Guo Ren <guoren@kernel.org>,
	Fu Wei <wefu@redhat.com>, Philipp Zabel <p.zabel@pengutronix.de>,
	Heiko Stuebner <heiko@sntech.de>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Robert Foss <rfoss@kernel.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Jonas Karlman <jonas@kwiboo.se>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Michal Wilczynski <m.wilczynski@samsung.com>
Cc: Han Gao <rabenda.cn@gmail.com>, Yao Zi <ziyao@disroot.org>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org
Subject: Re: [PATCH v3 2/9] dt-bindings: display: add verisilicon,dc
Date: Wed, 26 Nov 2025 11:22:45 +0100	[thread overview]
Message-ID: <0b7ba974-d8d5-4417-8182-3e9299315058@kernel.org> (raw)
In-Reply-To: <544ae21cc1b5f488d03a5650d9275ff22b237d63.camel@icenowy.me>

On 26/11/2025 10:50, Icenowy Zheng wrote:
>>> +maintainers:
>>> +  - Icenowy Zheng <uwu@icenowy.me>
>>> +
>>> +properties:
>>> +  $nodename:
>>> +    pattern: "^display@[0-9a-f]+$"
>>> +
>>> +  compatible:
>>> +    items:
>>> +      - enum:
>>> +          - thead,th1520-dc8200
>>> +      - const: verisilicon,dc
>>
>> I do not see any explanation of exception for generic compatibles,
>> maybe
>> except "self-identification" remark. Rob already pointed this out, so
>> be
>> explicit in commit msg why you are using a generic compatible.
> 
> Well I only get the meaning of "a SoC specific compatible is required"
> in his review message.
> 
> I think my binding now requires both a SoC-specific compatible and a
> generic compatible, which should be okay to satisfy Rob's original
> review.

You will get then the same questions for me - what justifies generic
compatible. You should be on this explicit, because otherwise people
misinterpret some commits and patches, and they think the generic
compatible is allowed for them as well.

> 
>>
>>> +
>>> +  reg:
>>> +    maxItems: 1
>>> +
>>> +  interrupts:
>>> +    maxItems: 1
>>> +
>>> +  clocks:
>>> +    minItems: 4
>>
>> This is not flexible. Device either has or has not these clocks.
> 
> The existence of all these clocks are verified by diagrams in manuals

So not flexible, then:

> of two different SoCs with DC8200 (T-Head TH1520 and StarFive JH7110).
> 
> Maybe a explicit `maxItems: 5` is needed here, but as my DT passes
> dtbs_check, I don't think it's necessary?

No, drop minItems only.

> 
> Or maybe I should drop the flexibility now and use a `minItems: 5` here
> (and leave DC8000 support as another story)? (The Eswin EIC7700 manual
> does not have a diagram showing external connections of the DC, like
> the two SoCs I mentioned above).

You document here only the devices explicitly mentioned in the binding.
You cannot add here constraints or clocks for some device which is not
in the binding and I see only th1520 in the binding.

Best regards,
Krzysztof

  reply	other threads:[~2025-11-26 10:22 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-24 10:52 [PATCH v3 0/9] Verisilicon DC8200 driver (and adaption to TH1520) Icenowy Zheng
2025-11-24 10:52 ` [PATCH v3 1/9] dt-bindings: vendor-prefixes: add verisilicon Icenowy Zheng
2025-11-24 10:52 ` [PATCH v3 2/9] dt-bindings: display: add verisilicon,dc Icenowy Zheng
2025-11-24 11:01   ` Krzysztof Kozlowski
2025-11-24 11:04     ` Icenowy Zheng
2025-11-24 11:09       ` Krzysztof Kozlowski
2025-11-24 11:13         ` Icenowy Zheng
2025-11-24 11:27           ` Krzysztof Kozlowski
2025-11-24 12:05             ` Conor Dooley
2025-11-24 12:08               ` Krzysztof Kozlowski
2025-11-24 12:20                 ` Conor Dooley
2025-11-24 12:31                   ` Krzysztof Kozlowski
2025-11-24 15:25                     ` Icenowy Zheng
2025-11-24 17:40                       ` Krzysztof Kozlowski
2025-11-24 17:42                         ` Icenowy Zheng
2025-11-24 19:15                           ` Krzysztof Kozlowski
2025-11-26  9:50     ` Icenowy Zheng
2025-11-26 10:22       ` Krzysztof Kozlowski [this message]
2025-11-26 10:24         ` Icenowy Zheng
2025-11-27 13:47         ` Icenowy Zheng
2025-11-27 13:58           ` Krzysztof Kozlowski
2025-11-24 10:52 ` [PATCH v3 3/9] drm: verisilicon: add a driver for Verisilicon display controllers Icenowy Zheng
2025-11-24 10:52 ` [PATCH v3 4/9] dt-bindings: display/bridge: add binding for TH1520 HDMI controller Icenowy Zheng
2025-11-24 10:52 ` [PATCH v3 5/9] drm/bridge: add a driver for T-Head " Icenowy Zheng
2025-11-24 10:52 ` [PATCH v3 6/9] riscv: dts: thead: add DPU and HDMI device tree nodes Icenowy Zheng
2025-11-24 11:35   ` Krzysztof Kozlowski
2025-11-24 10:52 ` [PATCH v3 7/9] riscv: dts: thead: lichee-pi-4a: enable HDMI Icenowy Zheng
2025-11-24 10:52 ` [PATCH v3 8/9] MAINTAINERS: assign myself as maintainer for verisilicon DC driver Icenowy Zheng
2025-11-24 10:52 ` [PATCH v3 9/9] mailmap: map all Icenowy Zheng's mail addresses Icenowy Zheng
2025-11-24 10:57 ` [PATCH v3 0/9] Verisilicon DC8200 driver (and adaption to TH1520) Krzysztof Kozlowski
2025-11-24 15:23   ` Icenowy Zheng
2025-11-24 17:39     ` Krzysztof Kozlowski

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=0b7ba974-d8d5-4417-8182-3e9299315058@kernel.org \
    --to=krzk@kernel.org \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fustini@kernel.org \
    --cc=guoren@kernel.org \
    --cc=heiko@sntech.de \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=m.wilczynski@samsung.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=p.zabel@pengutronix.de \
    --cc=rabenda.cn@gmail.com \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    --cc=uwu@icenowy.me \
    --cc=wefu@redhat.com \
    --cc=ziyao@disroot.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®