public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@kernel.org>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Jon Hunter <jonathanh@nvidia.com>,
	devicetree@vger.kernel.org, linux-tegra@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: pwm: Document Tegra194 and Tegra264 controllers
Date: Tue, 24 Mar 2026 09:30:17 +0100	[thread overview]
Message-ID: <acJKkASRYT_iPUrh@orome> (raw)
In-Reply-To: <aa424f26-1bc8-41d3-b83a-5f1879cd2559@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 2013 bytes --]

On Mon, Mar 23, 2026 at 04:00:54PM +0100, Krzysztof Kozlowski wrote:
> On 23/03/2026 15:45, Thierry Reding wrote:
> > On Sat, Mar 21, 2026 at 11:47:59AM +0100, Krzysztof Kozlowski wrote:
> >> On Sat, Mar 21, 2026 at 12:40:55AM +0100, Thierry Reding wrote:
> >>> From: Thierry Reding <treding@nvidia.com>
> >>>
> >>> The PWM controller found on Tegra264 is largely compatible with the one
> >>> on prior generations, but it comes with some extra features, hence a new
> >>> compatible string is needed.
> >>
> >> Extra features means devices are compatible.
> >>
> >> You also always need a new compatible even without extra features, so
> >> last part is just confusing. Suggests like you could skip new
> >> compatible.
> > 
> > Erm... if the hardware was exactly identical, then there'd be no need
> > for a new compatible string. It's certainly good practice to add one
> > anyway, but what's the point in having 10 different compatible strings
> > for exactly the same hardware?
> 
> Because integration is different. Nothing new here, DT maintainers
> request it for years and is since long time documented in writing bindings.

It's more subtle than that. The reason why we want a specific compatible
string is because the different integration might potentially introduce
a bug that we might, potentially, have to work around at some point
using a specific compatible string. If the hardware is backwards-
compatible and the driver can match on an existing compatible string and
work, there's no requirement for an extra, more specific compatible.

What you describe is good practice, and I agree it's a good idea. But if
we had chosen to not implement the new features and not update the
bindings and instead reuse any of the existing compatible strings,
nobody would've care one bit.

Heck, if your position is that you *need* a new compatible for every new
integration, there'd be no point in even having fallback compatible
strings in the first place.

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-03-24  8:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-20 23:40 [PATCH 1/2] dt-bindings: pwm: Document Tegra194 and Tegra264 controllers Thierry Reding
2026-03-20 23:40 ` [PATCH 2/2] arm64: tegra: Add PWM controllers on Tegra264 Thierry Reding
2026-03-21 10:47 ` [PATCH 1/2] dt-bindings: pwm: Document Tegra194 and Tegra264 controllers Krzysztof Kozlowski
2026-03-23 14:45   ` Thierry Reding
2026-03-23 15:00     ` Krzysztof Kozlowski
2026-03-24  8:30       ` Thierry Reding [this message]
2026-03-21 10:49 ` Krzysztof Kozlowski
2026-03-23  2:45   ` Mikko Perttunen
2026-03-23  7:23     ` Krzysztof Kozlowski
2026-03-24  4:24       ` Mikko Perttunen
2026-03-24  7:02         ` Krzysztof Kozlowski
2026-03-24  8:32           ` Thierry Reding
2026-03-25  1:13             ` Mikko Perttunen
2026-03-23 14:50   ` Thierry Reding
2026-03-23 15:04     ` 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=acJKkASRYT_iPUrh@orome \
    --to=thierry.reding@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=robh@kernel.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