Re: [PATCH v2 4/5] arm64: dts: google: Add initial dts for frankel/blazer/mustang
Doug Anderson <[email protected]>
| Newsgroups | dev.linux.lists.soc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-samsung-soc,org.kernel.vger.linux-serial |
|---|---|
| Message-ID | <CAD=FV=WUMKGRUbAyd7XFFc-NGoJEKRwu4MaUnEQUDB9Mq6YYXA@mail.gmail.com> |
Hi, On Wed, Aug 19, 2026 at 11:03 PM Krzysztof Kozlowski <[email protected]> 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. > > 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". 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 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? That's a pretty neat idea. If you confirm that's what you mean, I can see about implementing it. It would also be nice if you could confirm that this was an OK thing to do even though the bootloader is closed-source. We'd obviously want a comment in the device tree itself indicating that the "ufs:" label is consumed by the bootloader so it doesn't get removed. -Doug