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 B4E6BC433EF for ; Mon, 7 Mar 2022 23:18:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CEF7829FF; Tue, 8 Mar 2022 00:18:22 +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 583168269E; Tue, 8 Mar 2022 00:18:20 +0100 (CET) Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.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 F247481520 for ; Tue, 8 Mar 2022 00:18:16 +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-oo1-f49.google.com with SMTP id l24-20020a4a8558000000b00320d5a1f938so7220067ooh.8 for ; Mon, 07 Mar 2022 15:18:16 -0800 (PST) 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=1eYH5LzkgdU6jpG2HhAfPxnYbI/wmwp3XDqYY0cCFis=; b=fNwc14Hv7AoDvctxl5pIxa9F9rSpX50vxbi46iRG6rOkBsSoOiKYdSBkHHAT1eTwjo z7ro9IesT5ZmdoJlEQ4ZwydPKQ7qZDaizEbBlP/d0fzd1w5OBrI1+iNJ0KiKK+y0OZXY lNVYrImAoFfIqvY1ssocjakT+8Ba38F2MtGJxm4Wq32jwo2ay8+WTXWqcpLQDmJkREpA rxztM1zWZqilOwgTR5ITUVJcjfhFDjx8Pe6CyvNoD1yY1pZIQlV0LL/ClrLknX1ZN8jj t1mhe1dVsuT7Sfdu+BUVgh6HzuqlO5J66EjVoPLmUDTfBc/pc7gRcHl1KIFTlRUnN0Yc ezYQ== X-Gm-Message-State: AOAM533I0rDSnDP9fIAaX49CgEvOuGg34Dapuguzyc6sSuM7cm5P0pl3 zt3cDGMQUWXRFccpSQiH5w== X-Google-Smtp-Source: ABdhPJxtAt0kquLQKafmRDFI779u0QNiU3qKgeI3NW63XN5lJ8QdUhYcl74kj2jxq9JNC0EhE6OHNQ== X-Received: by 2002:a05:6870:a986:b0:da:b3f:3279 with SMTP id ep6-20020a056870a98600b000da0b3f3279mr746426oab.297.1646695095451; Mon, 07 Mar 2022 15:18:15 -0800 (PST) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7598050oiw.2.2022.03.07.15.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 15:18:14 -0800 (PST) Received: (nullmailer pid 3447775 invoked by uid 1000); Mon, 07 Mar 2022 23:18:13 -0000 Date: Mon, 7 Mar 2022 17:18:13 -0600 From: Rob Herring To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Tom Rini , Srinivas Kandagatla , Krzysztof Kozlowski , Ricardo Salveti , Michal Simek , Jorge Ramirez-Ortiz , Sean Anderson , devicetree@vger.kernel.org, u-boot@lists.denx.de, linux-kernel@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= 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, Feb 28, 2022 at 02:12:50PM +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 A u-boot maintainer should ack this. Rob