Received: by 10.192.165.156 with SMTP id m28csp9940imm; Tue, 17 Apr 2018 05:47:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx49EEsA3fSmxCipwMmZ1ERIGsW98d6Zntd17poDeue9Kcj5Hp7b1V9BrByh+JDILiHJBBOfd X-Received: by 10.99.185.74 with SMTP id v10mr1689317pgo.372.1523969230455; Tue, 17 Apr 2018 05:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523969230; cv=none; d=google.com; s=arc-20160816; b=qnjfDXNGRNkCAVAmt618rpJQvoL3IgHalwHmNKNQRmyWAqzDoTF0LYYp4/krBK+oTG /CpW9flNJyB/tpyPFNwYX3EXGvmO49EKM724nUG00AUXI4y1ojn8XtmFuNFOPl5Sd7g3 NBV611YUVjUZv6FkYdoJIvAUS99D3x+mvf27D+pBYL3AQDqRR1SaYUi+KfKaBJdchJJt bH3kp8UKC1CumAAcocZZuBUki0uOdSdzGP0KKZRzQlbp9bAG7V5DAFDCOnrV7K51jAwY JHa3eM1tO+6Hz7BKTTehSKYEBFu+igdPX8oMQs14gCkW5u9QGKHJUZ62m2WCpnbjcO3z TvFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=ZqVLH+brhT5hMy4ob4fNWUuAl4oELXRaO9v3pHI6dmg=; b=e+CQyBqlThER911F1XMGkyZG5Tm4qAXx/Cnbgaj57o881odk9qTeYwR/HHo1+ON0Nk b7k2M3ocmOeWtgVpwGiM3BMrR20QpaDjPw9LpVoHxSLQJoVirddZ8AGMn4g5Z4umHbvR MHcYbhpNiVPGUC3UrbphBaavEF96b3cb5DSp+qYhkbpOty//97Oy+zeHTOQ3UUQZvpWJ X9/RS2BUxWf3JOAd8lnzO35AMZYGtDO1FGb2ThNoR03J7Gg2zQ9eYJ/qSxx1g0nq9jna FpaPURp2LFr41AJR1Mp1gm43IiKCegfFxLLVjGnOoOrRaLxOE8Pu/cv6koAWoS7t61sH +Y1A== 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 q9-v6si4873323plr.70.2018.04.17.05.46.56; Tue, 17 Apr 2018 05:47:10 -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 S1753164AbeDQMpa (ORCPT + 99 others); Tue, 17 Apr 2018 08:45:30 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]:62546 "EHLO smtp1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753088AbeDQMp1 (ORCPT ); Tue, 17 Apr 2018 08:45:27 -0400 Received: from avionic-0020 (unknown [80.151.56.191]) (Authenticated sender: albeu@free.fr) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 59184B00514; Tue, 17 Apr 2018 14:45:00 +0200 (CEST) Date: Tue, 17 Apr 2018 14:44:57 +0200 From: Alban To: Rob Herring Cc: Alban , 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: <20180417144457.2831140e@avionic-0020> In-Reply-To: <20180416210851.shu73nlincslxlde@rob-hp-laptop> References: <1521933899-362-1-git-send-email-albeu@free.fr> <1521933899-362-3-git-send-email-albeu@free.fr> <20180416210851.shu73nlincslxlde@rob-hp-laptop> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/YaQdhV8Xmwhoyq.u7ihIurc"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/YaQdhV8Xmwhoyq.u7ihIurc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 16 Apr 2018 16:08:51 -0500 Rob Herring wrote: > 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. > >=20 > > 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.t= xt > >=20 > > diff --git a/Documentation/devicetree/bindings/nvmem/mtd-nvmem.txt b/Do= cumentation/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 @@ > > +=3D NVMEM in MTD =3D > > + > > +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 prov= ider > > +by having an 'nvmem-cells' subnode as defined in nvmem.txt. > > + > > +Example: > > + > > + flash@0 { > > + ... > > + > > + partition@2 { =20 >=20 > This unit address is not correct... Is it because I ellipsed the #address-cells and #size-cells? I will add them. =20 > > + label =3D "art"; > > + reg =3D <0x7F0000 0x010000>; =20 >=20 > Lowercase hex. Will do. > > + read-only; > > + > > + nvmem-cells { > > + compatible =3D "nvmem-cells"; > > + #address-cells =3D <1>; > > + #size-cells =3D <1>; > > + > > + eeprom@1000 { =20 >=20 > "eeprom" isn't specific data. The purpose of the nvmem binding is to=20 > provide specific data fields like MAC addresseses. >=20 > Plus "eeprom" is the node name for EEPROM devices. This example is from a board using an ath9k chip and this field contains what the driver names EEPROM, although it is in fact only a config binary blob. However I agree that it is misleading for such an example, I will replace it with something like "wifi-config-data". Alban --Sig_/YaQdhV8Xmwhoyq.u7ihIurc Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJa1exKAAoJEHSUmkuduC28DRcQALqSRWKNSEwlkDiawwP6OTu2 cR0rBDAJ6j2Hc4Xe9+kk9Ns1DyGEh3/wanyr4/jyVHCmy2qW2bQi6+lC6Z9mtVR7 jk5j0iUH4KyPoa2GRqjMdhU2LIH4g4UDrOgPa/Uje90sP6kZ29dCIphh8cUG0W/Z gyGNvrbFjSINaVs5VaNz/Uobd4md/dKu/oI2zFa0UrMGY6G+pL4ZnxpEyRngUy58 91i4tEPQJbWc8/LmWoIySwPG2PBi3vHi7RPDSvNGLey6BNDJxZwJYttVrvbbpoxh ajBL05V9NkZ/o486m3+PZSu4hxyDtGLjP4TmokqdCS+aqrJ//O6pXWaiaIjJgg8b lTOnNrcIRIeGx6yqOmvZ2A4lYtVK0407km8BbJbybS3Gk0l14Qk9psLVKAMsrkC+ nO2rlQ9qP9cly90cwZ2MdSYhGD4sNI3/UFNyIXv/wtTLDJFB59ws8COjugdEaRjB j5b8Oo42O0pCnpnKWqdVeRyoKrJKb34v932SOdHFGI8J738RglTMpNaWgRgv2Stz 0uBwhjtaxg73I7rgt+n5KdN+kd0J3FlAW7HYsM4Gh3tULeQc+hUp6uuKcscDhkTo 0PbcObJW2vsltl8rH9yJ0SspB4ROi1WT0l3H4EI7bue/bSEoTOc2m6IDQ6N4ji/j 5owAfRtQdnI0kCIVm7yF =pCmc -----END PGP SIGNATURE----- --Sig_/YaQdhV8Xmwhoyq.u7ihIurc--