Received: by 10.192.165.156 with SMTP id m28csp1096270imm; Mon, 16 Apr 2018 14:05:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx48w9XCKozYwR5zph2xNhub6qzslHDDW8wgPifR76y87KE6cgwQUc4KxNiBDQmRxSb44iJjU X-Received: by 10.99.160.106 with SMTP id u42mr13714886pgn.389.1523912755542; Mon, 16 Apr 2018 14:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523912755; cv=none; d=google.com; s=arc-20160816; b=hUIUkGZ4+e7keh3cKrJKj29iQTiWZDpT2X0JeHQAZdrxvmOGSDdxmJgif9R2B3X0BC yO3gJ77tuJ3YihQIMuqZgMfdoNpKINoNb1fimeP+fvyOzfcb5aILitklb7JFqQ7SDPXW /dUB7PM5FgedNSPMsJta75x4FlaKtmFsDcsIBJIxyRAROd66JA0XBRYcCQGS/KbNLOn4 7h5Nu8REq1on+bO42XoC2RhP/NfO16jX/MV6f1u3NL8VK2V8CkFJGM+N1poO6AQczqGE aA0/FVPECM9HkJ3zfL0h/LJfUkx5CyqSxCjM9ZQltSP87nYKMb8sDlFWRZc9OKEBdM63 F+bw== 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=+bkg9rnLOu3akAasmLEUlQEIugop1a69nuQB+JGfRB0=; b=JzxZU5sctX9OS3oiZtMabdFPJYDqFHNgKDuVAMnCQMOAPiZRG96f1DOWeUC7WbJ9DG +Oocd+xgdxOaMFVE7+0wcbL/HgMWtCCteJ5xfW+zCd6hIan4ZXuOYGTlv9uxQu9zGl5P 4Mswmxeoj+11ROU0IN9tW3ELnP0sSz/yWoYoURNapqSSfv41z2a+KM41wUuzUn5t2+Pr uivdv6slXgrsmLJJMKDTJ9yo4defB0DZyyXlQKlbXuIAUAj0pGeQ7hWK4HI9RYJkNKm3 gSteC8e0BdeAjgSl0mob887Zxl1w18Vc4rvHwTviDdrf82P7jr0FYw3wWIUuFCYZlKqU nceQ== 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 g12-v6si12563584pla.133.2018.04.16.14.05.41; Mon, 16 Apr 2018 14:05:55 -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 S1751169AbeDPVEc (ORCPT + 99 others); Mon, 16 Apr 2018 17:04:32 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:46179 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750946AbeDPVEb (ORCPT ); Mon, 16 Apr 2018 17:04:31 -0400 Received: by mail-ot0-f194.google.com with SMTP id v64-v6so19022448otb.13; Mon, 16 Apr 2018 14:04:31 -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=+bkg9rnLOu3akAasmLEUlQEIugop1a69nuQB+JGfRB0=; b=gFxb2eLY/edCtK+A3UENey/2Ta2wr1wMoQyNhok9sKvictEPDvzXF7EkReLCi8xyRw KB+H5ubRR+8BspvOyfuZJ/9MhOYdReZeX0Gmdp6HSUQYa6ifXz+2/5RiHFxg/e2Kbzyb cpoEtkfsyRTLxRtcy8cExSyU6im+8MuDt8o5iKB633Iw+O9mWRAT+tDtARgjh5b4P2g4 CES+C+Ljb5BKo7B8V81cRYN9c9bcX7xNkWMQBaNgx/iJ+rgDH5xUjfWKKncNOxxUaN8+ zg9DWYplmuiS/D8L7TiBUK5ezqbSmP1snEcg6Z/sQCHNnGkrKMEJMbbFaIFZgeF0fT+G zO2w== X-Gm-Message-State: ALQs6tBk67z9tDxs2xp9NTCikYzV3ZT2KUW4Rep0HTmHUbXqg+Xpg17L hgOuRO72T5L0rG2XPkVASw== X-Received: by 2002:a9d:2874:: with SMTP id h49-v6mr12241146otd.2.1523912670913; Mon, 16 Apr 2018 14:04:30 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id r12-v6sm11250430otr.27.2018.04.16.14.04.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 14:04:30 -0700 (PDT) Date: Mon, 16 Apr 2018 16:04:29 -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 1/3] nvmem: Update the OF binding to use a subnode for the cells list Message-ID: <20180416210429.e3yo52f355qxnopb@rob-hp-laptop> References: <1521933899-362-1-git-send-email-albeu@free.fr> <1521933899-362-2-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-2-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:57AM +0100, Alban Bedel wrote: > Having the cells as subnodes of the provider device without any > compatible property might clash with other bindings. To avoid this > problem update the binding to have all the cells in a 'nvmem-cells' > subnode with a 'nvmem-cells' compatible string. This new binding > guarantee that we can turn any kind of device in a nvmem provider. > > While discouraged for new uses the old scheme is still supported for > backward compatibility. > > Signed-off-by: Alban Bedel > --- > Documentation/devicetree/bindings/nvmem/nvmem.txt | 55 ++++++++++++++++------- > drivers/nvmem/core.c | 10 +++++ > 2 files changed, 48 insertions(+), 17 deletions(-) > > diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.txt b/Documentation/devicetree/bindings/nvmem/nvmem.txt > index fd06c09..6b723e7 100644 > --- a/Documentation/devicetree/bindings/nvmem/nvmem.txt > +++ b/Documentation/devicetree/bindings/nvmem/nvmem.txt > @@ -11,14 +11,29 @@ these data from, and where they are stored on the storage device. > This document is here to document this. > > = Data providers = > -Contains bindings specific to provider drivers and data cells as children > -of this node. > +A data provider should have a subnode named 'nvmem-cells' that contains > +a subnodes for each data cells. > + > +For backward compatibility the nvmem data cells can be direct children > +of the data provider. This use is discouraged as it can conflict with > +other bindings. I don't think we need to go this far. Whether this is necessary depends on the provider. > > Optional properties: > read-only: Mark the provider as read only. > > += Data cells list = > +The data cells list node should be named 'nvmem-cells' and have a > +child node for each data cell. > + > +Required properties: > + compatible: Must be "nvmem-cells" > + #address-cells: <1> if the provider use 32 bit addressing, > + <2> for 64 bits addressing > + #size-cells: <1> if the provider use 32 bit sizes, > + <2> for 64 bits sizes > + > = Data cells = > -These are the child nodes of the provider which contain data cell > +These are the child nodes of the nvmem-cells node which contain data cell > information like offset and size in nvmem provider.