Received: by 10.192.165.156 with SMTP id m28csp1102518imm; Mon, 16 Apr 2018 14:12:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YNhp/4ZtPj27uO2h6DoN7Ie9hs8pktQisTj5KT5KN0A6TMRwyQloW/OGlooc+yofw+neh X-Received: by 2002:a17:902:584:: with SMTP id f4-v6mr15708169plf.290.1523913176781; Mon, 16 Apr 2018 14:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523913176; cv=none; d=google.com; s=arc-20160816; b=kK40N79yMoiGSzlm62201YQKMOexbc9dNTLT7gO1aQxkoicJcbMoQRlCbUbCA0AQgD If6WSpu/BUdngbsFmtJHjvpG9kHOlLxstZEFGdn9wdhXUwKuzcCE5wZ7l3dGZnXrg6W6 Dp89GKoRU5qeamg8JHPgJiZOZ2h6x75598EtSjebsnJx/zOeCG//AqsSMh0MGhuQuV0g BPG918j/x9hRlAA6Wpv0feyfyAG4F9TUG9eWporH/8UCVCazlG7Kn0NiNdvkIaP7jdHn 8guVWPWhy+YKibxWbXPoxRdL/SNvK/+ZcXZdXHM0V6j4nVOnxMAkn45d+7ofJ1Y+pmqG JRLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=2Xnyb4E4AQQwmktgMyhWoe+jdFZyrS0AymtAqXrl7D4=; b=D4VwEBdvGheStkkeLxlyceMTiV4Y9AN5IXcaMSzkrCX1FQo92sq6KDay3+iizLOGqu RQR6B8DoIkfl3PCltBbLw+lnDqC2ykqog8XvnPA76taWzh6pQelES9/UNOuvYrwbHZPC vqUZTLOykqtBHWvspx+oNAOyp/Je4sfv3Moz8+++WrjbNOEKa3MGm2d+TxhuTMKQsQGM fN/MNlg+XSl6Ei73lH1bWDJhsRa/EbWvKo/GAKHRPL517Z2MfcZWMi8gdyb5tN9PfLlE TH7Gsyyk0wdJL2Zk8lvY90HaDAqFEAoIKIbeLMBbDxCbnRMIeYnLmRhd1BSxoC+5ylNn LE/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si2728997pfi.289.2018.04.16.14.12.12; Mon, 16 Apr 2018 14:12:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbeDPVIy (ORCPT + 99 others); Mon, 16 Apr 2018 17:08:54 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:41761 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbeDPVIx (ORCPT ); Mon, 16 Apr 2018 17:08:53 -0400 Received: by mail-ot0-f195.google.com with SMTP id m22-v6so19032349otf.8; Mon, 16 Apr 2018 14:08:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2Xnyb4E4AQQwmktgMyhWoe+jdFZyrS0AymtAqXrl7D4=; b=bUSWL1A/8p3cy9Bn5phNQOvIpoNYFez7wrNqDqlpsXSby/zJNz4KWSDvCHBahrBOAC YJb4l92Qj1qDoEyisMnVxcbsJrorpmfvhu4AYCWQkg/fdWDe9RZ/h6azE34VUtqvg8B7 5czVRyca1ap1rNOzcPP6/QJFmF/+mf+bYg0PJ59ZZP/FuMTmNHqOtupGsq/KEmK2siSz fuaGqloC0uusS2n8PMBA18On/dvuL1aCipq/dYuh9PLrsbQQss2bT31UmMnK/wT1+lzh 5N0yFIN1nNhm77DXBbARxv6lHuGMFlLwDWH0Rj1wcU1sWUpyiY2LSY6zYz6QPmNxY3nS MWfA== X-Gm-Message-State: ALQs6tDOiPKABI6835neAakLiERT1v+YGFhngiXWCV0PbBBRVOIH+/uS gqRDrSIgnu3po/REdwEwWQ== X-Received: by 2002:a9d:14b8:: with SMTP id d53-v6mr5529362ote.113.1523912932450; Mon, 16 Apr 2018 14:08:52 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id 5-v6sm7818679ote.77.2018.04.16.14.08.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 14:08:51 -0700 (PDT) Date: Mon, 16 Apr 2018 16:08:51 -0500 From: Rob Herring To: Alban Bedel Cc: linux-kernel@vger.kernel.org, Srinivas Kandagatla , Mark Rutland , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH v3 2/3] doc: bindings: Add bindings documentation for mtd nvmem Message-ID: <20180416210851.shu73nlincslxlde@rob-hp-laptop> References: <1521933899-362-1-git-send-email-albeu@free.fr> <1521933899-362-3-git-send-email-albeu@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521933899-362-3-git-send-email-albeu@free.fr> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 25, 2018 at 12:24:58AM +0100, Alban Bedel wrote: > Config data for drivers, like MAC addresses, is often stored in MTD. > Add a binding that define how such data storage can be represented in > device tree. > > Signed-off-by: Alban Bedel > --- > Changelog: > v2: * Added a "Required properties" section with the nvmem-provider > property > v3: * Fixed my name in From and Signed-off-by > * Moved to the new nvmem binding with the nvmem-cells subnode > --- > .../devicetree/bindings/nvmem/mtd-nvmem.txt | 27 ++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/mtd-nvmem.txt > > diff --git a/Documentation/devicetree/bindings/nvmem/mtd-nvmem.txt b/Documentation/devicetree/bindings/nvmem/mtd-nvmem.txt > new file mode 100644 > index 0000000..c819a69 > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/mtd-nvmem.txt > @@ -0,0 +1,27 @@ > += NVMEM in MTD = > + > +Config data for drivers, like MAC addresses, is often stored in MTD. > +An MTD device, or one of its partition, can be defined as a NVMEM provider > +by having an 'nvmem-cells' subnode as defined in nvmem.txt. > + > +Example: > + > + flash@0 { > + ... > + > + partition@2 { This unit address is not correct... > + label = "art"; > + reg = <0x7F0000 0x010000>; Lowercase hex. > + read-only; > + > + nvmem-cells { > + compatible = "nvmem-cells"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + eeprom@1000 { "eeprom" isn't specific data. The purpose of the nvmem binding is to provide specific data fields like MAC addresseses. Plus "eeprom" is the node name for EEPROM devices. > + reg = <0x1000 0x1000>; > + }; > + }; > + }; > + }; > -- > 2.7.4 >