[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YjtRUVL2fRZpLFl5@robh.at.kernel.org>
Date: Wed, 23 Mar 2022 11:56:49 -0500
From: Rob Herring <robh@...nel.org>
To: Rafał Miłecki <zajec5@...il.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Jorge Ramirez-Ortiz <jorge@...ndries.io>,
Tom Rini <trini@...sulko.com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Sean Anderson <seanga2@...il.com>,
Rafał Miłecki <rafal@...ecki.pl>,
Michal Simek <michal.simek@...inx.com>,
Ricardo Salveti <ricardo@...ndries.io>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>,
u-boot@...ts.denx.de
Subject: Re: [PATCH V3] dt-bindings: nvmem: add U-Boot environment variables
binding
On Mon, 28 Feb 2022 14:12:50 +0100, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@...ecki.pl>
>
> U-Boot uses environment variables for storing device setup data. It
> usually needs to be accessed by a bootloader, kernel and often
> user-space.
>
> This binding allows describing environment data located in a raw flash
> partition. It's treated as NVMEM device and can be reused later for
> other storage devices.
>
> Using DT should be cleaner than hardcoding & duplicating such info in
> multiple places. Bootloader & kernel can share DTS and user-space can
> try reading it too or just have correct data exposed by a kernel.
>
> A custom "compatible" string allows system to automatically load
> relevant NVMEM driver but phandle can be also used for reading raw
> location.
>
> Signed-off-by: Rafał Miłecki <rafal@...ecki.pl>
> ---
> V2: Update descriptions to don't make this binding MTD (flash partition)
> specific. Mention multiple possible storage ways.
> V3: Drop
> allOf:
> - $ref: nvmem.yaml#
> as we don't use anything rom the nvmem.yaml. Thanks Rob.
> ---
> .../devicetree/bindings/nvmem/u-boot,env.yaml | 62 +++++++++++++++++++
> MAINTAINERS | 5 ++
> 2 files changed, 67 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/nvmem/u-boot,env.yaml
>
Applied, thanks!
Powered by blists - more mailing lists