public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: jaswinder.singh@linaro.org, u-boot@lists.denx.de,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	etienne.carriere@linaro.org, trini@konsulko.com,
	sjg@chromium.org, sughosh.ganu@linaro.org, xypron.glpk@gmx.de,
	takahiro.akashi@linaro.org, michal.simek@amd.com
Subject: Re: [PATCH] dt/bindings: fwu-mdata-mtd: drop changes outside FWU
Date: Wed, 3 May 2023 17:37:37 +0300	[thread overview]
Message-ID: <ZFJxsVkHrv6Q/3hW@hera> (raw)
In-Reply-To: <ea7fe555-f91e-93e1-18af-f8f12200a504@linaro.org>

Hi Krzysztof,

On Tue, Apr 11, 2023 at 07:38:11AM +0200, Krzysztof Kozlowski wrote:
> On 11/04/2023 01:21, jaswinder.singh@linaro.org wrote:
> > From: Jassi Brar <jaswinder.singh@linaro.org>
> >
> > Any requirement of FWU should not require changes to bindings
> > of other subsystems. For example, for mtd-backed storage we
> > can do without requiring 'fixed-partitions' children to also
> > carry 'uuid', a property which is non-standard and not in the
> > bindings.
> >
> >  There exists no code yet, so we can change the fwu-mtd bindings
> > to contain all properties within the fwu-mdata node.
> >
> > Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
> > ---
> >
> > Hi Rob, Hi Krzysztof,
> >
> >   I was suggested, and I agree, it would be a good idea to get your blessings
> > for the location and meta-data (fwu-mdata) bindings for the FWU.
> >
> >   The FWU images can be located in GPT partitions or MTD backed storage.
> > The basic bindings for fwu-mdata has already been merged in uboot (ideally they
> > too should have had your review). Now I am trying to fully support MTD backed
> > storage and hence looking for your review. The proposed bindings are totally
> > self-contained and don't require changes to any other subsystem.
> >
> > Thanks.
>
> I think we do not review U-Boot bindings usually, except these put in
> the Linux kernel. There were few targeting U-Boot specifically (e.g.
> Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml and
> Documentation/devicetree/bindings/nvmem/u-boot,env.yaml) so if you want
> our blessing, the bindings should be done in Linux kernel repo.
>
> I am pretty sure that reviewing other project bindings would be too much
> of work for me.

Sure that makes sense.  But an answer here of whether the bindings make
sense to the DT maintainers or not would help to move forward.

These bindings are trying to define a standardized interface for A/B *firmware*
updates [0] which is not what traditionally goes into a device tree.  OTOH we
already have some U-Boot specific bindings as you already mentioned.  As we
move forward we need to be very precise on what is allowed or not on the DT
since it's now tested and verified on SystemReady certifications.  IOW if
we add those binding in U-Boot only, we would need to strip them before
handing the DT to linux, otherwise certification would fail.  If you do
think that having them in the kernel repo makes sense,  it would help
standardizing other boot loaders (at least it would standardize where that
metadata lives) if they want to implement something similar.

Just keep in mind we would need a schema per storage medium.  IOW this tries to
standardize devices which keep the firmware binary in an mtd.  There's also
another biding which describes firmware files on a GPT [1].

[0] https://developer.arm.com/documentation/den0118/a
[1] https://source.denx.de/u-boot/u-boot/-/blob/master/doc/device-tree-bindings/firmware/fwu-mdata-gpt.yaml

Thanks
/Ilias

>
> Best regards,
> Krzysztof
>

  parent reply	other threads:[~2023-05-03 14:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-10 23:21 [PATCH] dt/bindings: fwu-mdata-mtd: drop changes outside FWU jaswinder.singh
2023-04-11  5:38 ` Krzysztof Kozlowski
2023-04-14 14:01   ` Michal Simek
2023-05-03 14:37   ` Ilias Apalodimas [this message]
2023-05-03 14:54     ` Krzysztof Kozlowski
2023-05-03 16:26       ` Tom Rini
2023-05-03 16:32         ` Krzysztof Kozlowski
2023-05-03 17:24     ` Rob Herring
2023-05-04 10:45       ` Ilias Apalodimas
2023-05-04 11:57         ` Sughosh Ganu
2023-05-04 12:08           ` Ilias Apalodimas
2023-05-04 14:01             ` Jassi Brar
2023-05-04 15:19               ` Rob Herring
2023-05-04 15:39                 ` Jassi Brar
2023-05-04 16:19                   ` Tom Rini
2023-05-04 16:30                     ` Ilias Apalodimas
2023-05-04 16:41                       ` Jassi Brar
2023-05-05 15:47                         ` Rob Herring
2023-05-05  8:38                 ` Michal Simek

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=ZFJxsVkHrv6Q/3hW@hera \
    --to=ilias.apalodimas@linaro.org \
    --cc=etienne.carriere@linaro.org \
    --cc=jaswinder.singh@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=michal.simek@amd.com \
    --cc=robh+dt@kernel.org \
    --cc=sjg@chromium.org \
    --cc=sughosh.ganu@linaro.org \
    --cc=takahiro.akashi@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /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