Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3075229pxp; Tue, 8 Mar 2022 07:18:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxbGT8yY9jkCyZiVEZSk+1G+t6aZEz8e1q6/JlVwgm5i1lAtRy/Vz6F7mv/VUFtamhH10n X-Received: by 2002:a63:be0e:0:b0:363:e0be:613f with SMTP id l14-20020a63be0e000000b00363e0be613fmr14381192pgf.448.1646752685930; Tue, 08 Mar 2022 07:18:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646752685; cv=none; d=google.com; s=arc-20160816; b=OuYB0c/ksvzGvWFuJLOPuSHFj6kkNcscMunp2OlYKoYviSyY3+SuJttkq9zU/eBq8l 4naA1hGMF97A/tzBIONrMB20AcCqcF4XUhSV/RqJbRAAp7t1sUhj7grQDW+1mMectLvU IhSxkxoDq+8OKDZuhlfAHqENDG8Ij5HqWtGFCwxu7aE3JiwunKVg5spudpr8iLH3ReV8 UiWP+PBDfLvczXamNRXvpnqly40Jr1BsqOhVMwlaJbIefS6fA16z0SZzsrFCZB9NqQhJ hHEPHxU774G/5BRxtYreeA6IASh/69QQvl0/j9OprBqAkvafcWHXEMF5rkzb/otPlmj9 g9WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1eYH5LzkgdU6jpG2HhAfPxnYbI/wmwp3XDqYY0cCFis=; b=Q+r4HHcOkNHQI7MEnGStnLf4aFWYuTqxCQU8z2gEPHFE27R5zCcMsgTSuax3qAsdON W1cxb72XUqLxm/AKex+z9IZQz68BVuJUT5yk2rvXS4anY7KKJkUySCNofe4ABdyixAQl ZB5xc/bIKEoTEoYQSbEe+Bzb939KiEPnH9h7Lfg8gJGDQENmUWgGo9Grq3spQ07aD+ur d5euPYR7W91pmynNPZ4gRt4AHr/bCpLcT/hhhhjJ7ooyKfp0nYCX3roHNQiOL/yuVNB7 HyzHZMGLZK65y9s6rCgzKuKTkhDnmUq1MpI9JP1vJFmgFd7M7qTOWqoFsuIpB5We1oKd jkBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a634708000000b00374844c777asi15271319pga.299.2022.03.08.07.17.47; Tue, 08 Mar 2022 07:18:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233677AbiCGXTN (ORCPT + 99 others); Mon, 7 Mar 2022 18:19:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231462AbiCGXTK (ORCPT ); Mon, 7 Mar 2022 18:19:10 -0500 Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D5392FFE6; Mon, 7 Mar 2022 15:18:16 -0800 (PST) Received: by mail-oo1-f53.google.com with SMTP id h16-20020a4a6f10000000b00320507b9ccfso19884586ooc.7; 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=5fuouBviDbhAhV1DEzXDeLsxqFTVU9oO7Gd2r+zjSrwHIB2s1RtNx3jK9I62edeeZo in0D8mA3iBaRRN8ol8fIy7x8ulFmOUoZfF72eGubNMj3tryYQlSBJgUSHdWBxRKRCBkE ZYDeY1inUYCjjldXnltWNaIxvPz8bOEqbCFk5YMgQolI+Gnuk36aaKbSIX2XaU17SyCu q956DN5vEPWMh9lnlfM5puD1bSlPaaikVRVc1F1CL5hzenzuMXmCD3voXuTw7XrEcAPW GxNQy89yf4CMVnZB01k+FvBjysSAY97sz+A+c1e3gjmfQyDV+YSajpjXFiEWNjoOrYk/ 482g== X-Gm-Message-State: AOAM533HBNtjple75iVOf4G9RxQrnNt3BF60UO/HTmFhh5b3fiaOvAEB XKoLJoQC3O5KNYPsG3pU+Q== 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-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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