From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B99EC433F5 for ; Wed, 23 Mar 2022 16:57:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E2C083F70; Wed, 23 Mar 2022 17:56:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 56E8983F84; Wed, 23 Mar 2022 17:56:56 +0100 (CET) Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6E6E483F55 for ; Wed, 23 Mar 2022 17:56:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=robherring2@gmail.com Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-dacc470e03so2286775fac.5 for ; Wed, 23 Mar 2022 09:56:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=v7L9ap4GpNRjjElNdT0yh/Sp/wCcecw0FkTSkrd8bsw=; b=tJ4ROxo79WE5ToqHpzvJNggh+XWDqlo+Ere/JzkYdXWLQmUCv9cQKrsANVAPnXd3EE D7/HtHfUoqbGE6OM40bg9rPaIcT3nNDk/5FB7vuOkAf4KB7C3cFQFwji+v1bovgLpflP 5hT3A2ZMAbCOEVxTaaoXjBPMy0+Bz/aWgFV/N52QsYjJamSdjPO3NbLqM7M+15S/hFJV BHIFDr9M4J57RotGV9n0efXdGwrhaCP5nFZXZ322pw5aBz1AzvMV6npJlcMi8gjoGqvH JkZIckABSX9tDtD+rvt1y5q+3Ri5kf1JteDOOQ4U12q9GtyPLmSekLZdMZ2DcWzafc1Y z7bw== X-Gm-Message-State: AOAM533OupCOHAdGS+NsRigoH+71bZLVEOQOP04NJBsLN9VNfa4sKHoD 4CTqKuxk7K+fzpio3esMtA== X-Google-Smtp-Source: ABdhPJx0rcy71J5iBnTkDYdwY7ow5S9sY6VGoRn0bx+CmDpmUoBHODo18+Ib2exeipbENAG7oZNWsw== X-Received: by 2002:a05:6871:203:b0:dd:bd36:fd8b with SMTP id t3-20020a056871020300b000ddbd36fd8bmr4664191oad.122.1648054611728; Wed, 23 Mar 2022 09:56:51 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id p22-20020a056870831600b000ccfbea4f23sm219920oae.33.2022.03.23.09.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 09:56:50 -0700 (PDT) Received: (nullmailer pid 74591 invoked by uid 1000); Wed, 23 Mar 2022 16:56:49 -0000 Date: Wed, 23 Mar 2022 11:56:49 -0500 From: Rob Herring To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Srinivas Kandagatla , Jorge Ramirez-Ortiz , Tom Rini , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Anderson , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Michal Simek , Ricardo Salveti , Rob Herring , Krzysztof Kozlowski , u-boot@lists.denx.de Subject: Re: [PATCH V3] dt-bindings: nvmem: add U-Boot environment variables binding Message-ID: References: <20220228131250.16943-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220228131250.16943-1-zajec5@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Mon, 28 Feb 2022 14:12:50 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > 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 > --- > 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!