Re: [PATCH v2 4/5] arm64: dts: google: Add initial dts for frankel/blazer/mustang
Doug Anderson <[email protected]>
| Newsgroups | org.kernel.vger.linux-serial,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 |
|---|---|
| Message-ID | <CAD=FV=WjWd8fRuByAUn-mk-fMJqJN9wrzxAsYH7yYY3XxoDFqA@mail.gmail.com> |
Hi, On Thu, Aug 20, 2026 at 12:04 AM Linus Walleij <[email protected]> wrote: > > This is where the imperialistic ambition of device tree > kicks in: the piece of software - be that a manufacturing > run-it-once piece of code - that produced said calibration > should have *also* used device tree to find the thing it > was to calibrate. Supposedly looping over all UFS devices > in the device tree and calibrating them one at a time, > something like this. Sure. I guess this is one way to look at the root of the problem. The firmware doesn't itself consume the device tree. It has its own independent ways to know what hardware is present. Trying to get Pixel's firmware to use device tree is pretty far out of scope, but I do see how this fundamental disconnect can be seen as the root fo the problem. > "I have a random piece of calibration data and only I know > which UFS it is for, so I am going to encode that knowledge > into the device tree as an alias." To be fair, it's not encoding the calibration as an alias. It's using an alias to _find_ the node where it can put the calibration data. ;-) > I don't know if this solves your problem other than saying > "go with any hack because this takes place in an imperfect > world", but at least it points out how this kind of problems > collide with some of the core philosophy of device tree. LOL. Yeah, I think at this point I'm ready to give up and just hardcode the path that we hope we'll end up with upstream. ...and if we're not allowed to have an "empty UFS node" for now, I guess I'll just have to have the first detect that it's running on an upstream device tree and have it not fail if it can't find the UFS node. Ugly, but it'll get us booting and I guess will be uncontroversial. -Doug