Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Doug Anderson <dianders@chromium.org>
Cc: "Rob Herring" <robh@kernel.org>,
	"Conor Dooley" <conor@kernel.org>,
	"Peter Griffin" <peter.griffin@linaro.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"André Draszik" <andre.draszik@linaro.org>,
	"Tudor Ambarus" <tudor.ambarus@linaro.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Jiri Slaby" <jirislaby@kernel.org>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Will Deacon" <will@kernel.org>, "Arnd Bergmann" <arnd@arndb.de>,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Linus Walleij" <linusw@kernel.org>,
	"Drew Fustini" <fustini@kernel.org>,
	"Kees Cook" <kees@kernel.org>, "Tony Luck" <tony.luck@intel.com>,
	"Guilherme G. Piccoli" <gpiccoli@igalia.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org,
	soc@lists.linux.dev, "Juan Yescas" <jyescas@google.com>,
	"RD Babiera" <rdbabiera@google.com>,
	"Brian Norris" <briannorris@google.com>,
	"William McVicker" <willmcvicker@google.com>,
	kernel-team@android.com
Subject: Re: [PATCH v2 4/5] arm64: dts: google: Add initial dts for frankel/blazer/mustang
Date: Fri, 21 Aug 2026 08:50:56 +0200	[thread overview]
Message-ID: <d6685094-b241-415e-9e56-d2fba75f3269@kernel.org> (raw)
In-Reply-To: <CAD=FV=WUMKGRUbAyd7XFFc-NGoJEKRwu4MaUnEQUDB9Mq6YYXA@mail.gmail.com>

On 21/08/2026 01:40, Doug Anderson wrote:
> Hi,
> 
> On Wed, Aug 19, 2026 at 11:03 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>
>>> I'm happy to document. Can you please point to how / where I would
>>
>> Description of:
>> Documentation/devicetree/bindings/ufs/ufs-common.yaml
> 
> Got it.
> 
> If you tell me that the patch won't be instantly NAKed I'd be happy to
> post an addition to this file saying:
> 
> If this UFS controller has a well-known ID <N>, a "ufsN" alias may be
> created in the "aliases" node. If this UFS controller is a singleton
> (no other UFS controllers in the system), a "ufs0" alias may be
> created in the "aliases" node.
> 
> 
>> And obviously, as with every binding/ABI, you also need open-source,
>> upstream user of this.
> 
> As I understand it, this isn't truly policy. I know DT folks often
> want to look at an open-source driver to ensure the hardware is
> described correctly. I also know that a badly written but
> "open-source" driver doesn't justify landing your bindings. ...but in
> this case, it doesn't feel like there is any complexity understanding
> what's going on.

It is a policy. We do not take unused bindings. Also we do not take
bindings for downstream, because then we would have to take a ton of crap.

> 
> 
>>> document this? As far as I can tell, no aliases are documented today,
>>
>> git grep disagrees with you, e.g. second paragraph of serial.yaml.
> 
> Ah, I see! I was looking for something more formal. Something like a
> list of allowed aliases or something that would automatically validate
> which aliases are permitted. You're just saying to document this in
> prose.
> 
> Thank you for clarifying. I didn't understand this based on your
> previous emails.
> 
> 
>>> I think I've presened my problem fairly concretely [1]. If you hate
>>
>> There is no description of the problem at [1], except "bootloader adds
>> the same type of calibration data".
>>
>> So I repeat my questions: to every UFS node? To every node? To one UFS
>> node (but how do you guarantee that?)?
> 
> I'm sure it's not what you want to hear, but I guess my answer would
> be "for these boards".

No, the question is how many aliases you need. Devices might have more
than one UFS storage, e.g. ExynosAuto.

And then someone might need to calibrate UFS and SPI NOR storage? And MMC?

> 
> In my opinion, this would be fine as an ABI contract between the
> device trees intended to run on Pixel 10 phones and the Pixel 10
> bootloader. While I'm still of the opinion that people should be

Unfortunately no, because you are coming with a generic property so it
has to be treated as generic one.

> allowed to include UFS aliases in general and it would be handy if
> that affected the "dev/ufsN" node created in Linux, I know that's not
> a popular opinion among DT maintainers. If upstream would allow a less
> "generic" sounding alias "google,ufs = <&xyz>" I could do that, but I
> doubt that would make you any happier.
> 
> 
>> I gave you two solutions, depending on actual upstream need of this. If
>> you have the second case - so not the boot device - then you basically
>> want to re-implement overlays which you cannot. Use overlays, which
>> gives you nice stable and build-time verifiable label/phandle.
> 
> I'm not quite clear on the "overlay" suggestion here. You're saying
> that we should require the base device tree to be compiled with "-@"?
> ...and not because we necessarily have any overlays upstream, but
> because the bootloader will generate an overlay dynamically? Compiling
> with "-@" would mean we could give a "ufs:" label to the UFS node and
> with "-@" that would be preserved. The bootloader could then use the
> "ufs:" label to find the node. When compiling with "-@", the exposed
> labels are essentially ABI. Did I get that right?

I am saying that if you cannot answer my questions earlier (and you did
not), thus this should be treated as adding calibration to multiple
random nodes, then essentially you are reimplementing overlays and this
won't be accepted. Instead you should use overlays.

"-@" will give you the labels in __symbols__ section, but it won't be
treated as ABI because it is not feasible. No one would remember which
boards have @ and which don't thus which labels are needed externally.
Only a comment in DTS code would prevent it from being changed.

Well, same for aliases honestly. There is no tool which would guard that
ABI.

Best regards,
Krzysztof


  reply	other threads:[~2026-08-21  6:51 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-22  9:55 [PATCH v2 0/5] Add Laguna/Tensor G5 SoC and Frankel, Blazer & Mustang boards Peter Griffin
2026-07-22  9:55 ` [PATCH v2 1/5] dt-bindings: arm: google: Add dt bindings for frankel/blazer/mustang Peter Griffin
2026-07-24  6:42   ` Krzysztof Kozlowski
2026-07-30 23:33   ` Doug Anderson
2026-07-22  9:55 ` [PATCH v2 2/5] dt-bindings: serial: snps-dw-apb-uart: Add "google,lga-uart" Peter Griffin
2026-07-22  9:55 ` [PATCH v2 3/5] arm64: dts: google: Add dts directory for Google-designed silicon Peter Griffin
2026-07-24  6:46   ` Krzysztof Kozlowski
2026-07-22  9:55 ` [PATCH v2 4/5] arm64: dts: google: Add initial dts for frankel/blazer/mustang Peter Griffin
2026-07-22 23:51   ` Brian Norris
2026-07-24  6:59   ` Krzysztof Kozlowski
2026-07-30 23:32     ` Doug Anderson
2026-08-18 22:13       ` Doug Anderson
2026-08-19  8:28         ` Linus Walleij
2026-08-19 17:03           ` Doug Anderson
2026-08-19 23:29             ` Linus Walleij
2026-08-19 23:40               ` Doug Anderson
2026-08-20  7:04                 ` Linus Walleij
2026-08-20 23:41                   ` Doug Anderson
2026-08-19  9:02         ` Krzysztof Kozlowski
2026-08-19 17:04           ` Doug Anderson
2026-08-20  6:03             ` Krzysztof Kozlowski
2026-08-20 23:40               ` Doug Anderson
2026-08-21  6:50                 ` Krzysztof Kozlowski [this message]
2026-08-19  9:26         ` Krzysztof Kozlowski
2026-08-19 17:04           ` Doug Anderson
2026-07-22  9:55 ` [PATCH v2 5/5] arm64: defconfig: enable Tensor G5 SoC family Peter Griffin
2026-07-30 23:34   ` Doug Anderson
2026-07-22 23:58 ` [PATCH v2 0/5] Add Laguna/Tensor G5 SoC and Frankel, Blazer & Mustang boards Brian Norris
2026-07-24  6:40   ` 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=d6685094-b241-415e-9e56-d2fba75f3269@kernel.org \
    --to=krzk@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=andre.draszik@linaro.org \
    --cc=arnd@arndb.de \
    --cc=briannorris@google.com \
    --cc=catalin.marinas@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dianders@chromium.org \
    --cc=fustini@kernel.org \
    --cc=gpiccoli@igalia.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=jyescas@google.com \
    --cc=kees@kernel.org \
    --cc=kernel-team@android.com \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=rdbabiera@google.com \
    --cc=robh@kernel.org \
    --cc=soc@lists.linux.dev \
    --cc=tony.luck@intel.com \
    --cc=tudor.ambarus@linaro.org \
    --cc=will@kernel.org \
    --cc=willmcvicker@google.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